WebSite X5Help Center

 
Şeref Şeroğlu
Şeref Şeroğlu
User

Php, the table rows , separate , I want to give a different color.  en

Автор: Şeref Şeroğlu
Просмотрено 1264, Подписчики 1, Размещенный 0  

Merhaba, Websitex5 v12 - Professional kullanıyorum. 
Yapmış olduğum tablolarımda , ayrı renk yapmak istiyorum. Fakat, hiç bir kodumu kabul etmiyor ve bir türlü beceremedim.

Yapmak istediğim aşağıdaki şekildedir. 

http://resim.sanalkurs.net/uploads/1_32.jpg

Bu konuda sitlerden destek bekliyorum.

<h3>YENİ SİPARİŞLER VE KARGO BİLGİSİ GİRİLMESİ GEREKENLER</h3>
<table style="width: 100%; border: yellow 3px ridge;" border="0">

<tr style="background: maroon; color: white;">



<td >TARIH <a href='http://senkar.net/siparis/indextarihazalan.php'> src='gallery/asagi1616.png'><a href='http://senkar.net/siparis/indextarihartan.php'> src='gallery/yukari1616.png'></th>
<td >SATIŞ KODU </th>
<td >MAGAZA</th>
<td align="left">MÜŞTERİ</th>
<td >DEPO</th>
<td >TEDARİKÇİ</th>
<td >TUTAR</th>
<td >TD</th>
<td >KD</th>

</tr>

<?
while($field=mysql_fetch_array($sorgu)){



echo '<tr >';
echo '<td align="left"><a href="tariharama.php?arama='.$field['tarih'].'"><b><font color="#006699">'.$field['tarih'].'</font></b></a></td>';
echo '<td align="left"><a href="siparisdetay.php?arama='.$field['id'].'"><b><font color="#003300">'.$field['satis_kodu'].'</font></b></a></td>';
echo '<td align="left"><a href="magazaarama.php?arama='.$field['magaza'].'"><font color="#006699">'.$field['magaza'].'</font></td>';
echo '<td align="left"><a href="arama.php?arama='.$field['adisoyadi'].'"><b><font color="#003300">'.$field['adisoyadi'].'</font></b></td>';
echo '<td align="left"><a href="tedarikarama.php?arama='.$field['tedarikci'].'"><font color="#006699">'.$field['urun_tedarikcisi'].'</font></td>';
echo '<td align="left"><a href="tedarikarama.php?arama='.$field['tedarikci'].'">'.$field['tedarikci'].'</td>';
echo '<td align="right">'.$field['tutar'].'&nbsp;TL.</td>';
echo "<td><a target='_blank' href='tedarikciduzenle.php?komut=duzelt&id=$field[id]'><img src='gallery/tedarikci.jpg'></a></td>";
echo "<td><a href='kargo-gir-ve-duezenle.php?komut=duzelt&id=$field[id]'><img src='gallery/kargo.png'></a></td>";
echo '</tr>';

}

?>
</table>

2 Ответы
Incomedia
Simone G.
Incomedia

Hi Şeref,

unfortunately we don't give direct support for customized codes, because they are not directly related to the software.

You can leave the post public, as it is now, and wait for some other users to help you.

Thank you very much

***** Google Translation:
Merhaba Şeref,

doğrudan yazılımla ilgili değil çünkü ne yazık ki biz, özel kodlar için doğrudan destek vermeyin.

Sen şimdi olduğu gibi, post halkı bırakın ve diğer bazı kullanıcıların size yardımcı olmak için bekleyebilir.

Çok teşekkür ederim

 

Читать больше
Размещено От Simone G.
Şeref Şeroğlu
Şeref Şeroğlu
User
Автор

Merhaba, Uzman ( CSS ) bölümüne aşağıdaki kodu eklemeniz yeterli olacaktır.

body {
font:13px "Trebuchet MS", Arial, Helvetica, sans-serif;
background:#EEE;
}

table {
width:100%;
margin:3px auto;

}

caption {
font-size:18px;
margin-bottom:10px;
color:#CC0;
font-weight:bold;
caption-side:top;
}

tr:nth-child(odd) {
background:#DDD;
}

td, th {
padding:8px;
}

th {
background:#0DD;
}

Читать больше
Размещено От Şeref Şeroğlu