<form name="form1" method="post" action=" "> <table width="99%" border="1" align="center"> <tr bgcolor="#CC99FF"> <th colspan="8" bgcolor="#FFCCFF" class="e"><h1> <center> จัดการรายชื่อนักศึกษา </center></h1></th> </tr> <tr bgcolor="#FFFFCC"> <th width="28" height="38" class="q">No.</th> <th width="86" class="q">Username</th> <th width="53" class="q">Articel</th> <th width="96" class="q">Firstname</th> <th width="99" class="q">Lastname</th> <th width="136" class="q">Email</th> <th width="166" class="q">Department</th> <th width="46"><center> Allow </center></th> </tr> <?php $sql = "select * from users u,departments d where (d.departmentId = u.departmentId) and level= 'student' order by userName"; $result = mysql_query($sql); $num = mysql_num_rows($result); $color = "#CCCC99"; for ($i=1;$i<=$num;$i++){ $row = mysql_fetch_array($result); if ($color == "#CCCC99") $color = "#CCFFCC"; else $color = "#CCCC99"; //$color=(@$color=="#ffffff")?"#cccccc":"#ffffff"; ?> <?php if (!empty($username)){ $sql = "delete from users where userName='$adusername'"; $result = mysql_query($sql) or die("$sql"); die("<script>alert('xxx'); window.location='xxxx';</script>"); }?> <tr bgcolor="<?php echo $color ?>"> <th height="16" class="text3"><span class="q"><?php echo $i?></span></th> <th class="text3"><?php echo $row["userName"] ?></th> <th class="text3"><?php echo $row["article"] ?></th> <th class="text3"><?php echo $row["firstName"] ?></th> <th class="text3"><?php echo $row["lastName"] ?></th> <th class="text3"><?php echo $row["email"] ?></th> <th class="text3"><?php echo $row["depThaiName"] ?></th> <th> <label><input name="chkallow[]" type="checkbox" value="0" checked ></label> </th> </tr> <?php } ?> </table> <?php echo mysql_error(); ?> <table width="200" border="0" align="center"> <tr> <th scope="col"><label> <input type="reset" name="Reset" id="submit" value="Reset"> </label> <label> <input type="submit" name="reset" id="reset" value="Submit"> </label></th> </tr> </table> </form>
<input name="chkallow[]" type="checkbox" value="<?=ข้อมูล?>" <?="checked"?>>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง