Viewing file: v_report003_search.php (6.19 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<SCRIPT language=JavaScript type="text/JavaScript">
function checkType() {
if(document.myform.type[0].checked) {
document.myform.programAlumniId.disabled = false;
document.myform.graduateY.disabled = false;
document.myform.stdCode.disabled = true;
}
else if(document.myform.type[1].checked) {
document.myform.programAlumniId.disabled = true;
document.myform.graduateY.disabled = true;
document.myform.stdCode.disabled = false;
}
}
</SCRIPT>
<?php
$type = (isset($type)) ? $type : "";
?>
<table width="100%">
<tr>
<td align="center"><span class="h error">รายงานแสดงการได้รับรางวัลของศิษย์เก่า</span></td>
</tr>
<tr>
<td><br /></td>
</tr>
<tr>
<td><table class="szone"><?php echo form_open($this->config->item("ea_folder")."report/report003_show", array("name" => "myform", "id" => "myform"));?>
<tr bgcolor="<?php echo $this->config->item('tr_c_even');?>">
<td colspan="2"><fieldset>
<table class="szone">
<tr>
<td class="coltd_szone">
<input type="radio" name="type" id="type" value="C" checked onClick="return checkType()" <?php echo ((set_value('type')=='C')? 'checked': ((set_value('type')=='A') ? '' : 'checked'));?>/>
<label for="type"><b>รายหลักสูตร</b></label></td>
</tr>
<tr bgcolor="<?php echo $this->config->item('tr_c_even');?>">
<td class="coltd_szone2">หลักสูตรตามระบบทะเบียนศิษย์เก่า</td>
<td>
<?php
$disabled = ($type=="A") ? "disabled" : "";
$js_programAlumniId = 'id="programAlumniId"'.$disabled;
echo form_dropdown('programAlumniId', $rs_pa, set_value('programAlumniId'), $js_programAlumniId);
?>
<span class="error"> *<?php echo form_error('programAlumniId');?></span></td>
</tr>
<tr bgcolor="<?php echo $this->config->item('tr_c_even');?>">
<td class="coltd_szone2">ปีการศึกษาที่จบ</td>
<td><input type="text" name="graduateY" id="graduateY" value="<?php echo isset($acY) ? set_value('graduateY',$acY) : set_value('graduateY');?>" class="required-int" size="5" maxlength="4" <?php echo ($type=="A") ? "disabled" : "";?> />
<span class="error"> *<?php echo form_error('graduateY');?></span></td>
</tr>
</table>
</fieldset></td>
</tr>
<tr bgcolor="<?php echo $this->config->item('tr_c_even');?>">
<td colspan="2"><fieldset>
<table class="szone">
<tr>
<td class="coltd_szone">
<input type="radio" name="type" id="type" value="A" onClick="return checkType()" <?php echo ((set_value('type')=='A') ? 'checked' : '');?> />
<label for="type">รายนักศึกษา</label></b></font></td>
</tr>
<tr>
<td class="coltd_szone2">รหัสนักศึกษา</td>
<td><input type="text" name="stdCode" id="stdCode" value="<?php echo set_value('stdCode');?>" <?php echo (set_value('stdCode')=="" || $type=="C") ? "disabled" : "";?> class="required-int" size="11" maxlength="10" />
<span class="error"> *<?php echo form_error('stdCode');?></span></td>
</tr>
</table>
</fieldset></td>
</tr>
<tr bgcolor="<?php echo $this->config->item('tr_c_even');?>">
<td class="coltd_szone" colspan="2"><br /></td>
</tr>
<!-- <tr bgcolor="<?php echo $this->config->item('tr_c_even');?>">
<td width="215px" class="indent"><b>ประเภทรางวัล</b></td>
<td>
--><?php
//echo form_dropdown('typeAward', $rs_ta, set_value('typeAward'));
?>
<!-- <span class="error"><?php echo form_error('typeAward');?></span></td>
</tr>
<tr bgcolor="<?php echo $this->config->item('tr_c_even');?>">
<td class="indent"><b>ระดับการได้รับรางวัล</b></td>
<td>
--><?php
//echo form_dropdown('levelAward', $rs_la, set_value('levelAward'));
?>
<!-- <span class="error"><?php echo form_error('levelAward');?></span></td>
</tr> -->
<tr bgcolor="<?php echo $this->config->item('tr_c_even');?>">
<td class="coltd_szone">ช่วงเวลาที่ได้รับรางวัล</td>
<td>
<input type="text" name="year1" id="year1" value="<?php echo set_value('year1');?>" size="5" maxlength="4" class="required-int" /> -
<input type="text" name="year2" id="year2" value="<?php echo set_value('year2');?>" size="5" maxlength="4" class="required-int" />
<br />ระบุเป็นปี พ.ศ.
<span class="error"><?php echo form_error('year1') ? form_error('year1') : form_error('year2');?></span></td>
</tr>
<tr bgcolor="<?php echo $this->config->item('tr_c_even');?>">
<td colspan="2" align="center">
<input type="submit" name="search" id="search" value="ค้นหา" />
</td>
</tr>
<?php echo form_close();?></table></td>
</tr>
<tr>
<td><br /></td>
</tr>
<?php
if(isset($hw) && count($hw)) {
?>
<tr>
<td><table class="headCol">
<tr bgcolor="<?php echo $this->config->item('table_c_even');?>">
<th colspan="2">แสดงการได้รับรางวัลของศิษย์เก่า</th>
</tr>
<?php
foreach($hw as $key => $val) {
foreach($val as $key_2 => $val_2) {
if($val_2['level']!="") {
?>
<tr bgcolor="<?php echo $this->config->item('tr_c_even');?>">
<td class="indent" colspan="2"><b><?php echo $val_2['level'];?></b></td>
</tr>
<?php
}
echo "<tr onmouseover=\"bgColor='".$this->config->item('tr_c_even')."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
?>
<td class="indentPm"><?php echo $val_2['typeaward'];?></td>
<td align="center"><b><span class="hand" onClick="sendPost('hidform', <?php echo $val_2['url'];?>, '<?php echo site_url($this->config->item('ea_folder').'report/report003_ex');?>')" /><?php echo $val_2['count'];?></span></b></td>
</tr>
<?php
}
}
?>
<!-- <tr bgcolor="<?php echo $this->config->item('tr_c_even');?>">
<td class="indent"><b>รวม</b></td>
<td align="center"><b>-</b></td>
</tr> -->
</table></td>
</tr>
<?php
}
?>
</table>
|