Viewing file: v_pop_mb.php (3.14 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php echo form_open("esa/attend/mb_insert_update", array("name" => "myform", "id" => "myform")); ?>
<table class='tb_1' border="0" width="100%">
<tr class='light'>
<th align="center">เลือก</th>
<th align="center">ลำดับ</th>
<th align="center">รหัสนักศึกษา</th>
<th align="center">ชื่อ - สกุลนักศึกษา</th>
<th align="center">หลักสูตร</th>
<th align="center">ชั้นปี</th>
</tr>
<?php
if (isset($rs_std) && $rs_std->num_rows()) {
$i = 1;
foreach ($rs_std->result() as $row_std) {
if (($i % 2) == 0)
$class = 'light3';
else
$class = 'light2';
?>
<tr class=<?php echo $class;?>>
<td align="center"><input type="checkbox" class="std_id" id="std_id[]" name="std_id[]" value="<?php echo $row_std->stdId;?>" /></td>
<td align="center"><?php echo $i;?></td>
<td align="center"><?php echo $row_std->stdCode;?></td>
<td><?php echo $row_std->stdName.' '.$row_std->stdSurname;?></td>
<td><?php echo $row_std->curName;?></td>
<td align="center"><?php echo $row_std->stdSyId;?></td>
</tr>
<?php
$i++;
}
} else {
?>
<tr class='notfound'>
<td colspan="6" align="center"><?php echo $this->config->item('sa_not_found');?></td>
</tr>
<?php
}
?>
<tr>
<td colspan="6"><input type="button" id="chkAll" name="chkAll" value="เลือกทั้งหมด" onClick="setChk('std_id', true)" />
<input type="button" id="chkCancel" name="chkCancel" value="ยกเลิกทั้งหมด" onClick="setChk('std_id', false)" /></td>
</tr>
</table>
<div align="center"><input type="submit" id="btnSubmit" name="btnSubmit" value="บันทึก" /></div>
<input type="hidden" id="type" name="type" value="<?php echo $type;?>" />
<input type="hidden" id="choice" name="choice" value="<?php echo $choice;?>" />
<input type="hidden" id="mb_smo_id" name="mb_smo_id" value="<?php echo $mb_smo_id;?>" />
<input type="hidden" id="mb_cl_id" name="mb_cl_id" value="<?php echo $mb_cl_id;?>" />
<input type="hidden" id="mb_mpj_id" name="mb_mpj_id" value="<?php echo $mb_mpj_id;?>" />
<input type="hidden" id="mb_acp_id" name="mb_acp_id" value="<?php echo $mb_acp_id;?>" />
<input type="hidden" id="mb_year" name="mb_year" value="<?php echo $mb_year;?>" />
<input type="hidden" id="mb_tmId" name="mb_tmId" value="<?php echo $mb_tmId;?>" />
<input type="hidden" id="mb_syId" name="mb_syId" value="<?php echo $mb_syId;?>" />
<input type="hidden" id="mb_fr_date" name="mb_fr_date" value="<?php echo $mb_fr_date;?>" />
<input type="hidden" id="mb_to_date" name="mb_to_date" value="<?php echo $mb_to_date;?>" />
<input type="hidden" id="cur_id" name="cur_id" value="<?php echo $cur_id;?>" />
<input type="hidden" id="sy_id" name="sy_id" value="<?php echo $sy_id;?>" />
<?php echo form_close();?>
<?php
if ($choice == "") {
?>
<script>
self.window.opener.location.reload(true);
window.close();
</script>
<?php
}
?>
|