Viewing file: v_popSearchTeacher.php (1.82 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<script language="JavaScript"><!-- function ReturnValue(psid,pscode,psname) { window.opener.document.myform.elements["ps_id"].value = psid; window.opener.document.myform.elements["ps_code"].value = pscode; window.opener.document.myform.elements["adviser"].value = psname; window.close(); } //--> </script> <?php echo form_open("esa/search/get_ps_list", array("name" => "myform", "id" => "myform")); ?> <table class='tb_1' border="0" width="100%" > <tr> <td colspan="2"><b>ชื่อ : <input type="text" name="name_search" value="" size="10" maxlength="30" /> ชื่อสกุล : <input type="text" name="lname_search" value="" size="10" maxlength="30" /> <input type="submit" name="search" value="ค้นหา"> </td> </tr> <tr> <td> </td> </tr> <tr> <td colspan="2"><font size="1" color="#808080" > ** คลิ้กที่ชื่อ-สกุล เพื่อเพิ่มรายการ</td> </tr> <tr class='light'> <th align=center width="15%">ลำดับ</th> <th align=center >ชื่อ - สกุล</th> </tr>
<?php if(isset($ps)){ $seq = 1; foreach ($ps->result() as $row){ if($seq%2==0) $class = 'light3'; else $class = 'light2'; ?> <tr class=<?=$class?>> <td align="center"><?=$seq?></td>
<td onClick="ReturnValue('<?=$row->personId?>','<?=$row->personCode?>','<?=$row->fName.' '.$row->lName;?>')" onMouseOver="this.style.cursor='pointer'"><?php echo $row->fName.' '.$row->lName; ?></td> </tr> <? $seq++; } }else{ ?> <tr > <td colspan="2" align="center" bgcolor="#D1DCF3">ไม่พบรายชื่ออาจารย์</td> </tr> <? } ?> </table> <?php echo form_close();?>
|