这是 TableA,当我单击“单击此处”按钮时,每次使用此代码加载特定表时
<tr>
<th style="height: 25px">NAME</th>
<th style="height: 25px">EMAIL</th>
<th style="height: 25px">CELL NO</th>
<th style="height: 25px">CITY</th>
<th style="height: 25px; width:120px">DATE APPLIED</th>
<th style="height: 25px">POST A MESSAGE TO CANDIDATE</th>
<th style="height: 25px">DETAILED CV</th>
<th>Hide Candidate</th>
<th>MARK AS IMPORTANT</th>
</tr>
<!-- /headings -->
<?php
if(isset($_GET['id'])) {
echo "<script>window.location = \"#showcand\";</script>";
if($result) {
if (mysql_num_rows($result) == 0) {
echo "<tr>";
echo "<td colspan=\"4\" ><p align=\"center\" class=\"message\"><blink><span style=\"color:red;\" > NO CANDIDATE APPLIED</span></blink></p></td>";
echo "</tr>";
}
while($data_set1 = mysql_fetch_array($result)) {
echo "<tr>";
echo "<td>{$data_set1['ename']}</td>";
echo "<td>{$data_set1['eemail']}</td>";
echo "<td>{$data_set1['ecell']}</td>";
echo "<td>{$data_set1['ecity']}</td>";
echo "<td>{$data_set1['date_of_jobapply']}</td>";
echo "<td><a href=\"reply.php?tid={$_SESSION['vid']}&id=1&name={$data_set1['ename']}&email={$data_set1['eemail']} \"><input class=\"button\" name=\"submit\" type=\"submit\" value=\"POST\" /></a></td>";
echo "<td><a href=\"detailcv.php?id={$data_set1['eid']}\" target=\"_blank\"><input style=\" cursor:hand;width:40px\" class=\"button\" name=\"cv\" type=\"button\" value=\"C V\" /></a></td>";
echo "<td><input type=\"checkbox\" name=\"hide_cand\" id=\"hide_cand\"onclick=\"return hideRow(this)\"/></td>";
echo "<td><input type=\"checkbox\" name=\"imp_cand\" id=\"hide_cand\"/></td>";
echo "</tr>";
}
} ?>
在最后一列中,我想使用复选框将特定行标记为 imp 而不是 imp,每次加载此表时,我都应该看到 imp 标记的行,它是如何完成的。