我有一个看起来像这样的表:
<table style="width:100%">
<tr>
<th style="max-width:150px; min-width:150px; width:150px;"> </th>
<th style="max-width:150px; min-width:150px; width:150px;">Senin</th>
<th style="max-width:150px; min-width:150px; width:150px;">Selasa</th>
<th style="max-width:150px; min-width:150px; width:150px;">Rabu</th>
<th style="max-width:150px; min-width:150px; width:150px;">Kamis</th>
<th style="max-width:150px; min-width:150px; width:150px;">Jumat</th>
</tr>
<tr>
<th style="max-width:150px; min-width:150px; width:150px;">06.00 - 07.00</th>
<?php if ($senin06 == "-") {$kelas = "kosong";} else {$kelas = "biasa";}
echo "<td style='max-width:150px; min-width:150px; width:150px;' class='$kelas'>"; echo $senin06; "</td>"; ?>
<?php if ($selasa06 == "-") {$kelas = "kosong";} else {$kelas = "biasa";}
echo "<td style='max-width:150px; min-width:150px; width:150px;' class='$kelas'>"; echo $selasa06; "</td>"; ?>
<?php if ($rabu06 == "-") {$kelas = "kosong";} else {$kelas = "biasa";}
echo "<td style='max-width:150px; min-width:150px; width:150px;' class='$kelas'>"; echo $rabu06; "</td>"; ?>
<?php if ($kamis06 == "-") {$kelas = "kosong";} else {$kelas = "biasa";}
echo "<td style='max-width:150px; min-width:150px; width:150px;' class='$kelas'>"; echo $kamis06; "</td>"; ?>
<?php if ($jumat06 == "-") {$kelas = "kosong";} else {$kelas = "biasa";}
echo "<td style='max-width:150px; min-width:150px; width:150px;' class='$kelas'>"; echo $jumat06; "</td>"; ?>
</tr>
当用户双击它时,我想更改 td 元素内的值。该表包含连接到的变量,PHPMyAdmin知道怎么做吗?
撒科打诨
江户川乱折腾
相关分类