Viewing file:      v_searchRptRis_org.php (7.23 KB)      -rwxr-xr-x Select action/file-type:    (+) |   (+) |   (+) | Code (+) | Session (+) |   (+) | SDB (+) |   (+) |   (+) |   (+) |   (+) |   (+) |
 
<script> function checkFormat() {     if(document.pc.curId.value == "") {         alert("กรุณากรอกชื่อหลักสูตร !");         document.pc.curId.focus();         return false;     }          return true; }
  function ver(form, msg) {     var c = 0;     for (var i=0; i<form.length; i++) {         if(form.elements[i].type == 'checkbox' && form.elements[i].name.substr(0, 11) =='stStatusArr') {             if(form.elements[i].checked)                 c = c+1;         }     }          if(c == 0) {         alert(msg);         return false;     } } </script> <table width="100%" align="center">     <tr>         <td>             <div align="center">             <table width="100%">                 <tr>                     <td colspan="2" align="center"><span class="h">รายชื่อสถานะนักศึกษาตามหลักสูตร</span></td>                 </tr>                 <tr>                     <td><br /></td>                 </tr>                 <tr>                     <td> <?php                     $attributes = array('name' => 'pc', 'id' => 'pc');                     echo form_open($this->config->item("rg_folder")."rpt_student/rptRis",$attributes); ?>                     <table class="szone">                     <tr bgcolor="<?php echo $tr_color_even;?>">                         <td class="coltd_szone">ชื่อหลักสูตร</td>                         <td> <?php                         echo form_dropdown('curId', $rs_cur, set_value('curId')); ?>                         <font size="2" color="<?=$font_color_err;?>">*</font></td>                     </tr>                     <tr bgcolor="<?=$tr_color_even;?>" valign="top">                         <td class="coltd_szone">ปีการศึกษาที่เข้า</td>                         <td><input type="text" name="stdAdY" id="stdAdY" size="4" maxlength="4"></td>                     </tr>                     <tr bgcolor="<?=$tr_color_even;?>" valign="top">                         <td class="coltd_szone">ชั้นปี</td>                         <td> <?php                         echo form_dropdown('syId', $rs_sy, set_value('syId')); ?>                         </td>                     </tr>                     <tr bgcolor="<?=$tr_color_even;?>" valign="top">                         <td class="coltd_szone">สถานะนักศึกษา<br>                         (เลือกอย่างน้อย 1 สถานะ)</td>                         <td><font size="2"> <?php                         $i = 0;                         if($rs_sst->num_rows()) {                             foreach($rs_sst->result() as $row) { ?>                         <input type="checkbox" name="stStatusArr<?=$i;?>" value="<?=$row->sstId;?>"> <?=$row->sstName;?><br> <?php                                 $i++;                             }                         } ?>                         </font></td>                     </tr>                     <tr bgcolor="<?=$tr_color_even;?>" valign="top">                         <td class="coltd_szone">แสดงรายการ</td>                         <td><font size="2"> <?php                         $fieldNames_settings = array(array('GPAX','GPA'),                         array('$row->sdtCitizenId','เลขที่บัตรประจำตัวประชาชน'),                         array('$row->sdtSex','เพศ'),                         array ('$row->nationName','สัญชาติ'),                         array ('$row->religionName','ศาสนา'),                         array ('$row->sdtBirthDate','วันเกิด'),                         array ('age','อายุ'),                         array ('$row->sdtPrvIdBirth','จังหวัดที่เกิด'),                         array ('$row->sdtHomeAddr','ที่อยู่นักศึกษาตามภูมิลำเนา'),                         array ('$row->sdtDtIdHome','ตำบลตามภูมิลำเนา'),                         array ('$row->sdtApIdHome','อำเภอตามภูมิลำเนา'),                         array ('$row->sdtPrvIdHome','จังหวัดตามภูมิลำเนา'),                         array ('$row->sdtHomePostCode','รหัสไปรษณีย์ตามภูมิลำเนา'),                         array ('$row->sdtHomePhoneNo','เบอร์โทรศัพท์บ้านตามภูมิลำเนา'),                         array ('$row->sdtFatherName','ชื่อ-สกุลบิดา'),                         array ('$row->sdtFatherOccupation','อาชีพบิดา'),                         array ('$row->sdtMotherName','ชื่อ-สกุลมารดา'),                         array ('$row->sdMotherOccupation','อาชีพมารดา'),                         array ('$row->sdtParentName','ชื่อ-สกุลผู้ปกครอง'),                         array ('$row->sdtParentRelationship','ความสัมพันธ์กับนักศึกษา'),                         array ('$row->sdtParentAddr','ที่อยู่ผู้ปกครองที่สามารถติดต่อได้'),                         array ('$row->sdtDtIdParent','ตำบลผู้ปกครอง'),                         array ('$row->sdtApIdParent','อำเภอผู้ปกครอง'),                         array ('$row->sdtPrvIdParent','จังหวัดผู้ปกครอง'),                         array ('$row->sdtParentPostCode','รหัสไปรษณีย์ผู้ปกครอง'),                         array ('$row->sdtParentPhoneNo','เบอร์โทรศัพท์บ้านผู้ปกครอง'),                         array ('$row->sdtParentMobileNo','เบอร์โทรศัพท์มือถือผู้ปกครอง'),                         array ('$row->sdtParentOccupation','อาชีพผู้ปกครอง'),                         array ('$row->sdtParentIncome','รายได้ผู้ปกครอง'),                         array ('$row->edgName','วุฒิการศึกษาก่อนรับเข้า'));                                                  $k = 0;                         foreach ($fieldNames_settings as $fieldNames) { ?>                         <input type="checkbox" name="fieldNamesArr<?php echo $k;?>" value="<?php echo $fieldNames[0];?>"> <?php echo $fieldNames[1];?><br> <?php                             $k++;                         } ?>                         </font></td>                     </tr>                     <tr bgcolor="<?=$tr_color_even;?>" valign="top">                         <td colspan="2" align="center">                         <input type="submit" name="submit" value="ตกลง" onClick="if(checkFormat()) return ver(this.form, 'เลือกอย่างน้อยหนึ่งสถานะ'); else return false;">                         <input type="reset" name="clear" value="เคลียร์ข้อมูล">                         <input type="hidden" name="cntStStatus" value="<?php echo $i;?>">                         <input type="hidden" name="cntFieldNames" value="<?php echo $k;?>"></td>                     </tr>                     </table><?php echo form_close();?></td>                 </tr>             </table></div>         <br></td>     </tr>     <tr>         <td><table width="100%">             <tr>                 <td width="12%" height="22"><font size="2" color="<?=$font_color_err;?>"><b>หมายเหตุ : </b></font></td>                 <td><font size="2" color="<?=$font_color_err;?>">* หมายถึง ต้องกรอกข้อมูลให้สมบูรณ์</font></td>             </tr>             <tr>                 <td height="22"></td>                 <td><font size="2" color="<?=$font_color_err;?>">สามารถออกรายงานในรูป .xls ได้ 4 กรณี คือ</font></td>             </tr>             <tr>                 <td height="22"></td>                 <td><font size="2" color="<?=$font_color_err;?>">1. จำแนกตามหลักสูตรอย่างเดียว</font></td>             </tr>             <tr>                 <td height="22"></td>                 <td><font size="2" color="<?=$font_color_err;?>">2. จำแนกตามหลักสูตร และปีการศึกษาที่เข้า</font></td>             </tr>             <tr>                 <td height="22"></td>                 <td><font size="2" color="<?=$font_color_err;?>">3. จำแนกตามหลักสูตร และชั้นปี</font></td>             </tr>             <tr>                 <td height="22"></td>                 <td><font size="2" color="<?=$font_color_err;?>">4. จำแนกตามหลักสูตร ปีการศึกษาที่เข้า และชั้นปี</font></td>             </tr>         </table></td>     </tr> </table>
  |