Viewing file:      v_importCSVToEa.php (5.52 KB)      -rwxr-xr-x Select action/file-type:    (+) |   (+) |   (+) | Code (+) | Session (+) |   (+) | SDB (+) |   (+) |   (+) |   (+) |   (+) |   (+) |
 
<table width="100%">
     <tr>
         <td align="center"><span class="h error">นำเข้าข้อมูลจากการอัพโหลดไฟล์</span></td>
     </tr>
     <tr>
         <td><br /></td>
     </tr>
 <?php
     if(!isset($arr)) {
 ?>
     <tr>
         <td><?php echo form_open_multipart($this->config->item("ea_folder")."import/process_importCSVToEa", array("name" => "myform", "id" => "myform"));?>
             <table border="0" width="100%">
                 <tr>
                     <td><b>แฟ้มข้อมูล</b>
                     <input type="file" name="uploadfile" id="uploadfile" />
                     <input type="submit" name="send" id="send" value="อัพโหลดไฟล์"/>
                     <?php echo form_error('uploadfile');?>
                     <input type="hidden" name="flgShow" id="flgShow" value="1" /></td>
                 </tr>
                 <tr>
                     <td><br /></td>
                 </tr>
                 <tr>
                     <td><b>สามารถดาวน์โหลดแฟ้มตัวอย่างได้</b> 
                     <?php echo anchor(base_url().$this->config->item('ea_csv').$this->config->item('ea_templateEa'), img(base_url().$this->config->item('ea_import')), array('title'    => 'คลิกดาวน์โหลด', 'class'    => 'hand'));?>
                     </td>
                 </tr>
                 <tr>
                     <td><br /></td>
                 </tr>
                 <tr>
                     <td align="center"><img src="<?php echo base_url().$this->config->item('ea_templateEa_pic');?>" border="1" height="90%" width="90%" /></td>
                 </tr>
             </table>
         <?php echo form_close();?></td>
     </tr>
 <?php
     }
 
 echo form_open($this->config->item("ea_folder")."import/insert_importCSVToEa", array("name" => "myform1", "id" => "myform1"));
 if(isset($arr)) {
 ?>
     <tr>
         <td>
         <table class="headCol">
             <tr bgcolor="<?php echo $this->config->item("table_c_even");?>">
                 <th class="seqCol">ลำดับที่</th>
                 <th class="stdCodeCol">รหัสนักศึกษา</th>
                 <th>ชื่อ - นามสกุล</th>
                 <th>หลักสูตร<br />(ทะเบียน)</th>
                 <th>หลักสูตร<br />(ศิษย์เก่า)</th>
                 <th class="domAmtCol">ปีที่เข้าศึกษา</th>
                 <th class="domAmtCol">ปีที่สำเร็จการศึกษา</th>
             </tr>
 <?php
     $i = 0;
     if(isset($arr) && count($arr)) {
         foreach($arr as $key => $val) {
             echo "<tr onmouseover=\"bgColor='".$this->config->item('tr_c_even')."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
 ?>
                 <td align="center"><?php echo $i+1;?></td>
                 <td align="center"><?php echo $val['stdCode'];?></td>
                 <td class="indent"><?php echo $val['pfName'].$val['stdName'].' '.$val['stdSurname'];?></td>
                 <td class="indent"><?php echo $val['curName'];?></td>
                 <td class="indent"><?php echo $val['programAlumni'];?></td>
                 <td align="center"><?php echo $val['admitAcY'];?></td>
                 <td align="center"><?php echo $val['graduateY'];?></td>
             </tr>
 <?php
             $i++;
         }
     } else {
 ?>
             <tr>
                 <td colspan="7" align="center"><span class="error">** ไม่ปรากฏข้อมูล **</span></td>
             </tr>
 <?php
     }
 ?>
         </table></td>
     </tr>
     <tr>
         <td colspan="7" align="center"><br />
         <input type="submit" name="confirm" id="confirm" value="ยืนยัน" <?php echo (isset($fail)) ? 'disabled' : '';?> />
         <input type="button" name="cancel" id="cancel" value="ยกเลิก" onClick="location.href = '<?php echo site_url($this->config->item("ea_folder"))."/import/importCSVToEa";?>'" />
         <input type="hidden" name="path" id="path" value="<?php echo isset($path) ? $path : '';?>" /></td>
     </tr>
     <tr>
     </tr>
 <?php
 }
 echo form_close();
 ?>
     <tr>
         <td><table class="mark">
             <tr>
                 <td class="coltd_mark"><span class="error"><b>หมายเหตุ </b>:</span></td>
                 <td><span class="error">1. แฟ้มข้อมูลต้องกรอกข้อมูลให้ครบถ้วนทุกช่อง</span></td>
             </tr>
             <tr>
                 <td></td>
                 <td><span class="error">2. ช่องคำนำหน้าชื่อ ต้องกรอกเป็นชื่อเต็มเท่านั้น</span></td>
             </tr>
             <tr>
                 <td></td>
                 <td><span class="error">3. ปีการศึกษาที่จบ ต้องเป็นปีการศึกษาสุดท้ายที่นักศึกษาลงทะเบียน</span></td>
             </tr>
             <tr>
                 <td></td>
                 <td><span class="error">4. ชื่อหลักสูตร(ทะเบียน) หมายถึง ชื่อหลักสูตรตามระบบทะเบียนฯ ต้องกรอกเป็นชื่อเต็มเท่านั้น แต่ในกรณีไม่ทราบหลักสูตรกรอกเป็น - แทน</span></td>
             </tr>
             <tr>
                 <td></td>
                 <td><span class="error">5. ชื่อหลักสูตร(ศิษย์เก่า) หมายถึง ชื่อหลักสูตรตามระบบศิษย์เก่า ต้องกรอกเป็นชื่อเต็มเท่านั้น แต่ในกรณีไม่ทราบหลักสูตรกรอกเป็น - แทน</span></td>
             </tr>
             <tr>
                 <td></td>
                 <td><span class="error">6. ชื่อหลักสูตร(ทะเบียน) และหลักสูตร(ศิษย์เก่า) ต้องกรอกอย่างน้อยหนึ่งช่อง</span></td>
             </tr>
         </table></td>
     </tr>
 </table>
  |