Viewing file: v_addAllowSendGrade.php (3.82 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$row_cur = (isset($qu_cur) && $qu_cur!=NULL) ? $qu_cur->row() : NULL;
$row_tm = (isset($qu_tm) && $qu_tm!=NULL) ? $qu_tm->row() : NULL;
?>
<table width="100%">
<tr>
<td>
<div align="center">
<?php echo form_open($this->config->item("rg_folder")."grade/asg_insert_update", array("name" => "myform", "id" => "myform"));?>
<table width="100%">
<tr>
<td colspan="2"><table class="szone">
<tr bgcolor="<?php echo $tr_color_even;?>">
<td class="coltd_szone">หลักสูตร</td>
<td><font size="2"><?php echo setValue('curName',$row_cur);?></font>
<input type="hidden" name="curId" id="curId" value="<?php echo setValue('curId',$row_cur);?>" /></td>
</tr>
<tr bgcolor="<?php echo $tr_color_even;?>">
<td class="coltd_szone">ปีการศึกษาที่เข้า</td>
<td><font size="2" ><?php echo $adY;?></font></td>
</tr>
<tr bgcolor="<?php echo $tr_color_even;?>">
<td class="coltd_szone">ภาค/ปีการศึกษาที่กู้ยืม</td>
<td><font size="2"><?php echo setValue('tmCode',$row_tm).'/'.$acY;;?></font>
<input type="hidden" name="tmId" id="tmId" value="<?php echo setValue('tmId',$row_tm);?>">
<input type="hidden" name="acY" id="acY" value="<?php echo $acY;?>">
<input type="hidden" name="adY" id="adY" value="<?php echo $adY;?>"></td>
</tr>
</table></td>
</tr>
<tr>
<td><br /></td>
</tr>
<tr>
<td colspan="2"><table class="headCol">
<tr>
<th class="seqCol"><font size="2" color="<?php echo $font_color_table;?>">เลือก</font></td>
<th class="stdCodeCol"><font size="2" color="<?php echo $font_color_table;?>">รหัสนักศึกษา</font></td>
<th><font size="2" color="<?php echo $font_color_table;?>">ชื่อ-นามสกุลนักศึกษา</font></td>
</tr>
<?php
$i = 0;
if(isset($rs_std) && $rs_std->num_rows()) {
foreach($rs_std->result() as $row_std) {
echo "<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
?>
<td align="center"><input type="checkbox" name="chk<?php echo $i;?>" id="chk<?php echo $i;?>" value="Y" <?php echo $row_std->asgStdId!=NULL ? 'checked' : '';?> />
<input type="hidden" name="stdId<?php echo $i;?>" id="stdId<?php echo $i;?>" value="<?php echo $row_std->stdId;?>" /></td>
<td align="center"><font size="2" ><?php echo $row_std->stdCode;?></font></td>
<td class="indent"><font size="2" ><?php echo $row_std->prefixName.$row_std->stdName.' '.$row_std->stdSurname;?></font></td>
</tr>
<?php
$i++;
}
} else {
?>
<tr>
<td colspan="3" align="center"><font size="2" color="<?php echo $font_color_err;?>">** ไม่ปรากฏรายการในฐานข้อมูล **</font></td>
</tr>
<?php
}
?>
</table></td>
</tr>
<tr>
<td align="left">
<input type="button" name="chkAll" value="เลือกทั้งหมด" onClick="doCheckAll(this.form, true)" <?php echo ($i==0) ? 'disabled' : '';?>>
<input type="button" name="cancelAll" value="ยกเลิกทั้งหมด" onClick="doCheckAll(this.form, false)" <?php echo ($i==0) ? 'disabled' : '';?>>
<td align="right"><font size="2" >รวม <?php echo $i;?> รายการ</font></td>
</tr>
<tr>
<td colspan="2" align="center"><br><input type="submit" name="add" value="บันทึก">
<input type="reset" name="cancel" value="ยกเลิก">
<input type="hidden" name="cnt" id="cnt" value="<?php echo $i;?>"></td>
</tr>
</table><?php echo form_close();?></div>
<br></td>
</tr>
</table>
|