Viewing file: v_settimeQn.php (2.81 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$row_tmc = (isset($qu_tmc) && $qu_tmc!=NULL) ? $qu_tmc->row() : NULL;
$frDate = ($row_tmc!=NULL) ? splitDateDb2(setValue('tmcFrDate',$row_tmc),'/') : '';
$toDate = ($row_tmc!=NULL) ? splitDateDb2(setValue('tmcToDate',$row_tmc),'/') : '';
?>
<table width="100%" align="center">
<tr>
<td>
<div align="center">
<table width="100%" border="0">
<tr>
<td align="center" class="h"><b>กำหนดเงื่อนไขการตอบแบบสอบถามข้อมูลการทำงานของผู้สำเร็จการศึกษาา</b></td>
</tr>
<tr>
<td align="right">
<?php
echo anchor_popup($this->config->item("ea_folder")."bdpbri/tmc_print", "<img src=\"".base_url()."images/".$this->config->item("ea_folder")."picture/print.gif\" width=\"15\" height=\"14\" align=\"absmiddle\" border=\"0\" />");
?>
</td>
</tr>
<tr>
<td><?php echo form_open($this->config->item("ea_folder")."query/tmc_insert_update");?>
<table class="szone">
<tr bgcolor="<?php echo $tr_color_even;?>">
<td class="coltd_szone">ปีการศึกษา (พ.ศ.)</td>
<td>
<?php
if($row_tmc!=NULL) {
echo setValue('tmcAcY',$row_tmc);
?>
<input type="hidden" name="tmcAcY" id="tmcAcY" value="<?php echo setValue('tmcAcY',$row_tmc);?>" size="4" maxlength="4" />
<?php
} else {
?>
<input type="text" name="tmcAcY" id="tmcAcY" value="<?php echo setValue('tmcAcY',$row_tmc);?>" size="4" maxlength="4" />
<font color="<?php echo $font_color_err;?>">*</font>
<br /><?php echo form_error('tmcAcY');?></span>
<?php
}
?>
</td>
</tr>
<tr bgcolor="<?php echo $tr_color_even;?>">
<td class="coltd_szone">วันที่เริ่มต้น</td>
<td><script>DateInput('tmcFrDate', true, 'DD/MM/YYYY', '<?php echo (set_value("tmcFrDate",$frDate)=="") ? getNowDateFw2() : set_value("tmcFrDate",$frDate);?>');</script>
<?php echo form_error('tmcFrDate');?></td>
</tr>
<tr bgcolor="<?php echo $tr_color_even;?>">
<td class="coltd_szone">วันที่สิ้นสุด</td>
<td><script>DateInput('tmcToDate', true, 'DD/MM/YYYY', '<?php echo (set_value("tmcToDate",$toDate)=="") ? getNowDateFw2() : set_value("tmcToDate",$toDate);?>');</script>
<?php echo form_error('tmcToDate');?></td>
</tr>
<tr bgcolor="<?php echo $tr_color_even;?>">
<td colspan="2" align="center">
<input type="submit" id="submit" name="add" value="บันทึก" />
<input type="reset" id="clear" name="clear" value="เคลียร์ข้อมูล" /></td>
</tr>
</table><?php echo form_close();?></td>
</tr>
</table></div>
</td>
</tr>
</table>
|