Viewing file: v_searchRptRis112.php (5.41 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<script language="JavaScript">
function disable(disableIt)
{
if(disableIt) {
document.myform.curId.disabled = true;
document.myform.syId.disabled = true;
document.myform.stdCode.disabled = false;
}
else {
document.myform.curId.disabled = false;
document.myform.syId.disabled = false;
document.myform.stdCode.disabled = true;
}
}
function disableTypeRpt(disableIt)
{
if(!disableIt) {
document.myform.bossname.disabled = true;
document.myform.bossposition.disabled = true;
}
else {
document.myform.bossname.disabled = false;
document.myform.bossposition.disabled = false;
}
}
</script>
<table width="100%">
<tr>
<td>
<div align="center">
<table width="100%">
<tr>
<td colspan="2" align="center"><span class="h error">รายงานผลการเรียนนักศึกษาแจ้งผู้ปกครอง</span></td>
</tr>
<tr>
<td><br /></td>
</tr>
<tr>
<td>
<?php echo form_open($this->config->item("rg_folder")."rpt_misc/rptRis112", array("name" => "myform", "id" => "myform" ,"target"=>"_blank"));
?>
<table class="szone">
<tr bgcolor="<?php echo $tr_color_even;?>">
<td class="coltd_szone">ปีการศึกษา</td>
<td><input type="text" name="acY" id="acY" value="<?php echo set_value('acY',$acY);?>" size="6" maxlength="4" class="required-int" />
<span class="error"><?php echo form_error('acY');?></span></td>
</tr>
<tr bgcolor="<?php echo $tr_color_even;?>">
<td class="coltd_szone">ภาคการศึกษา</td>
<td>
<?php
echo form_dropdown('tmId', $rs_tm, set_value('tmId',$tmId));
?>
<span class="error"><?php echo form_error('tmId');?></span>
</td>
</tr>
<tr bgcolor="<?php echo $tr_color_even;?>">
<td class="coltd_szone">หลักสูตร</td>
<td>
<?php
echo form_dropdown('curId', $rs_cur, set_value('curId'));
?>
<span class="error"><?php echo form_error('curId');?></span>
</td>
</tr>
<tr bgcolor="<?php echo $tr_color_even;?>">
<td class="coltd_szone">ชั้นปี</td>
<td><input type="text" name="syId" id="syId" size="2" maxlength="1" />
<span class="error"><?php echo form_error('syId');?></span>
</td>
</tr>
<tr bgcolor="<?php echo $tr_color_even;?>">
<td colspan="3" class="coltd_szone"><input type="checkbox" name="typeStd" id="typeStd" value="Y" onclick="disable(this.checked)" <? if(set_value('typeStd')=='Y') echo ' checked';?>/>
<font size="2"><b>รายนักศึกษา</b></font></td>
</tr>
<tr bgcolor="<?php echo $tr_color_even;?>">
<td class="coltd_szone">รหัสนักศึกษา</td>
<td><input type="text" name="stdCode" id="stdCode" size="10" maxlength="10" disabled class="required-int" <?=set_value('stdCode')?>/>
<?php echo form_error("stdCode");?></td>
</tr>
<tr bgcolor="<?php echo $tr_color_even;?>">
<td class="coltd_szone">ภาษา</td>
<td>
<input type="radio" name="typeLang" id="rad1" value="T1" <?php echo ((set_value('typeLang')=='T1')? 'checked': ((set_value('typeLang')=='E')? '': 'checked'));?> /> ไทย - เลขอารบิก<br />
<input type="radio" name="typeLang" id="rad2" value="T2" <?php echo ((set_value('typeLang')=='T2')? 'checked': '');?> /> ไทย - เลขไทย<br />
<input type="radio" name="typeLang" id="rad6" value="E" <?php echo ((set_value('typeLang')=='E')? 'checked':'');?> /> อังกฤษ</td>
</tr>
<tr bgcolor="<?php echo $tr_color_even;?>">
<td colspan="3" class="coltd_szone"><input type="checkbox" name="typeRpt" id="typeRpt" value="Y"
onclick="disableTypeRpt(this.checked)" <? if(set_value('typeRpt')=='Y') echo ' checked';?> />
<font size="2"><b>เลือกรายงานแสดง </b>ตำแหน่งหัวหน้างาน และที่อยู่วิทยาลัย</font></td>
</tr>
<tr bgcolor="<?php echo $tr_color_even;?>">
<td class="coltd_szone">ชื่อหัวหน้างาน</td>
<td><input type="text" name="bossname" id="bossname" size="50" maxlength="100" value="<?=set_value('bossname')?>" disabled/>
<?php echo form_error("bossname");?></td>
</tr>
<tr bgcolor="<?php echo $tr_color_even;?>">
<td class="coltd_szone">ชื่อตำแหน่งหัวหน้างาน</td>
<td><input type="text" name="bossposition" id="bossposition" size="50" maxlength="100" value="หัวหน้างานทะเบียน วัดและประเมินผลการศึกษา" disabled/>
<?php echo form_error("bossposition");?></td>
</tr>
<tr bgcolor="<?php echo $tr_color_even;?>">
<td align="center" colspan="3">
<input type="submit" name="add" id="add" value="ตกลง"/>
<input type="reset" name="clear" id="clear" value="เคลียร์ข้อมูล" />
</td>
</tr>
</table><?php echo form_close();?></td>
</tr>
</table></div>
<br><span class="error"><b>หมายเหตุ : </b>สามารถพิมพ์รายงานรายหลักสูตร หรือ รายนักศึกษาได้</span></td>
</tr>
</table>
|