!c99Shell v. 1.0 pre-release build #16!

Software: Apache/2.2.3 (CentOS). PHP/5.1.6 

uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44
EDT 2010 i686
 

uid=48(apache) gid=48(apache) groups=48(apache) 

Safe-mode: OFF (not secure)

/var/www/html/mis/application/controllers/eregis-12022565/   drwxrwxrwx
Free 51 GB of 127.8 GB (39.9%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     v_editStudentMBInfo2.php (60.26 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
    
if(isset($qu_sdt) && $qu_sdt->num_rows()){
        
$SetMuaSdt $qu_sdt->result();
        
$mua $this->load->database('mua'TRUE);
        
$query_countUocSTD $mua->query("SELECT count(*) as countUocSTD FROM `uoc_std` WHERE `STD_ID` = ".$SetMuaSdt[0]->stdCode);
        
$countUocSTD $query_countUocSTD->result();
        if(
$countUocSTD[0]->countUocSTD == 0){
            
$data = array(
                
'STD_ID' => $SetMuaSdt[0]->stdCode
             
);
             
$mua->insert('uoc_std'$data); 
        }
        
$query_UocSTD $mua->query("SELECT *  FROM `uoc_std` WHERE `STD_ID` = ".$SetMuaSdt[0]->stdCode);
        
$UocSTD $query_UocSTD->result();
    }
?>
<script language="JavaScript">
function copyAddr(chk) {
    var sdtHomeAddr = document.getElementById("sdtHomeAddr").value;
    var dtNameHome = document.getElementById("dtNameHome").value;
    var sdtDtIdHome = document.getElementById("sdtDtIdHome").value;
    var apNameHome = document.getElementById("apNameHome").value;
    var sdtApIdHome = document.getElementById("sdtApIdHome").value;
    var prvNameHome = document.getElementById("prvNameHome").value;
    var sdtPrvIdHome = document.getElementById("sdtPrvIdHome").value;
    var sdtHomePostCode = document.getElementById("sdtHomePostCode").value;
    var sdtHomePhoneNo = document.getElementById("sdtHomePhoneNo").value;

    
    if(chk.name=="currentChk") {
        if(document.myform.currentChk.checked==true) {
            document.getElementById("sdtCurrentAddr").value = sdtHomeAddr;
            document.getElementById("dtNameCurrent").value = dtNameHome;
            document.getElementById("sdtDtIdCurrent").value = sdtDtIdHome;
            document.getElementById("apNameCurrent").value = apNameHome;
            document.getElementById("sdtApIdCurrent").value = sdtApIdHome;
            document.getElementById("prvNameCurrent").value = prvNameHome;
            document.getElementById("sdtPrvIdCurrent").value = sdtPrvIdHome;
            document.getElementById("sdtCurrentPostCode").value = sdtHomePostCode;
            document.getElementById("sdtCurrentPhoneNo").value = sdtHomePhoneNo;
        } else {
            document.getElementById("sdtCurrentAddr").value = "";
            document.getElementById("dtNameCurrent").value = "";
            document.getElementById("sdtDtIdCurrent").value = "";
            document.getElementById("apNameCurrent").value = "";
            document.getElementById("sdtApIdCurrent").value = "";
            document.getElementById("prvNameCurrent").value = "";
            document.getElementById("sdtPrvIdCurrent").value = "";
            document.getElementById("sdtCurrentPostCode").value = "";
            document.getElementById("sdtCurrentPhoneNo").value = "";
        }
    }

    if(chk.name=="workChk") {
        if(document.myform.workChk.checked==true) {
            document.getElementById("sdtWorkAddr").value = sdtHomeAddr;
            document.getElementById("dtNameWork").value = dtNameHome;
            document.getElementById("sdtDtIdWork").value = sdtDtIdHome;
            document.getElementById("apNameWork").value = apNameHome;
            document.getElementById("sdtApIdWork").value = sdtApIdHome;
            document.getElementById("prvNameWork").value = prvNameHome;
            document.getElementById("sdtPrvIdWork").value = sdtPrvIdHome;
            document.getElementById("sdtWorkPostCode").value = sdtHomePostCode;
            document.getElementById("sdtWorkPhoneNo").value = sdtHomePhoneNo;
        } else {
            document.getElementById("sdtWorkAddr").value = "";
            document.getElementById("dtNameWork").value = "";
            document.getElementById("sdtDtIdWork").value = "";
            document.getElementById("apNameWork").value = "";
            document.getElementById("sdtApIdWork").value = "";
            document.getElementById("prvNameWork").value = "";
            document.getElementById("sdtPrvIdWork").value = "";
            document.getElementById("sdtWorkPostCode").value = "";
            document.getElementById("sdtWorkPhoneNo").value = "";
        }
    }

    if(chk.name=="fatherChk") {
        if(document.myform.fatherChk.checked==true) {
            document.getElementById("sdtFatherAddr").value = sdtHomeAddr;
            document.getElementById("dtNameFather").value = dtNameHome;
            document.getElementById("sdtDtIdFather").value = sdtDtIdHome;
            document.getElementById("apNameFather").value = apNameHome;
            document.getElementById("sdtApIdFather").value = sdtApIdHome;
            document.getElementById("prvNameFather").value = prvNameHome;
            document.getElementById("sdtPrvIdFather").value = sdtPrvIdHome;
            document.getElementById("sdtFatherPostCode").value = sdtHomePostCode;
            document.getElementById("sdtFatherPhoneNo").value = sdtHomePhoneNo;
        } else {
            document.getElementById("sdtFatherAddr").value = "";
            document.getElementById("dtNameFather").value = "";
            document.getElementById("sdtDtIdFather").value = "";
            document.getElementById("apNameFather").value = "";
            document.getElementById("sdtApIdFather").value = "";
            document.getElementById("prvNameFather").value = "";
            document.getElementById("sdtPrvIdFather").value = "";
            document.getElementById("sdtFatherPostCode").value = "";
            document.getElementById("sdtFatherPhoneNo").value = "";
        }
    }

    if(chk.name=="motherChk") {
        if(document.myform.motherChk.checked==true) {
            document.getElementById("sdtMotherAddr").value = sdtHomeAddr;
            document.getElementById("dtNameMother").value = dtNameHome;
            document.getElementById("sdtDtIdMother").value = sdtDtIdHome;
            document.getElementById("apNameMother").value = apNameHome;
            document.getElementById("sdtApIdMother").value = sdtApIdHome;
            document.getElementById("prvNameMother").value = prvNameHome;
            document.getElementById("sdtPrvIdMother").value = sdtPrvIdHome;
            document.getElementById("sdtMotherPostCode").value = sdtHomePostCode;
            document.getElementById("sdtMotherPhoneNo").value = sdtHomePhoneNo;
        } else {
            document.getElementById("sdtMotherAddr").value = "";
            document.getElementById("dtNameMother").value = "";
            document.getElementById("sdtDtIdMother").value = "";
            document.getElementById("apNameMother").value = "";
            document.getElementById("sdtApIdMother").value = "";
            document.getElementById("prvNameMother").value = "";
            document.getElementById("sdtPrvIdMother").value = "";
            document.getElementById("sdtMotherPostCode").value = "";
            document.getElementById("sdtMotherPhoneNo").value = "";
        }
    }

    if(chk.name=="contactChk") {
        if(document.myform.contactChk.checked==true) {
            document.getElementById("sdtContactAddr").value = sdtHomeAddr;
            document.getElementById("dtNameContact").value = dtNameHome;
            document.getElementById("sdtDtIdContact").value = sdtDtIdHome;
            document.getElementById("apNameContact").value = apNameHome;
            document.getElementById("sdtApIdContact").value = sdtApIdHome;
            document.getElementById("prvNameContact").value = prvNameHome;
            document.getElementById("sdtPrvIdContact").value = sdtPrvIdHome;
            document.getElementById("sdtContactPostCode").value = sdtHomePostCode;
            document.getElementById("sdtContactPhoneNo").value = sdtHomePhoneNo;
        } else {
            document.getElementById("sdtContactAddr").value = "";
            document.getElementById("dtNameContact").value = "";
            document.getElementById("sdtDtIdContact").value = "";
            document.getElementById("apNameContact").value = "";
            document.getElementById("sdtApIdContact").value = "";
            document.getElementById("prvNameContact").value = "";
            document.getElementById("sdtPrvIdContact").value = "";
            document.getElementById("sdtContactPostCode").value = "";
            document.getElementById("sdtContactPhoneNo").value = "";
        }
    }

    if(chk.name=="graduateChk") {
        if(document.myform.graduateChk.checked==true) {
            document.getElementById("sdtGraduateAddr").value = sdtHomeAddr;
            document.getElementById("dtNameGrad").value = dtNameHome;
            document.getElementById("sdtDtIdGraduate").value = sdtDtIdHome;
            document.getElementById("apNameGrad").value = apNameHome;
            document.getElementById("sdtApIdGraduate").value = sdtApIdHome;
            document.getElementById("prvNameGrad").value = prvNameHome;
            document.getElementById("sdtPrvIdGraduate").value = sdtPrvIdHome;
            document.getElementById("sdtGraduatePostCode").value = sdtHomePostCode;
            document.getElementById("sdtGraduatePhoneNo").value = sdtHomePhoneNo;
        } else {
            document.getElementById("sdtGraduateAddr").value = "";
            document.getElementById("dtNameGrad").value = "";
            document.getElementById("sdtDtIdGraduate").value = "";
            document.getElementById("sdtDtIdGraduate").value = "";
            document.getElementById("sdtApIdGraduate").value = "";
            document.getElementById("prvNameGrad").value = "";
            document.getElementById("sdtPrvIdGraduate").value = "";
            document.getElementById("sdtGraduatePostCode").value = "";
            document.getElementById("sdtGraduatePhoneNo").value = "";
        }
    }
}
</script>
<?php
$row_cfg 
= (isset($qu_cfg) && $qu_cfg->num_rows()) ? $qu_cfg->row() : NULL;
$row_sdt = (isset($qu_sdt) && $qu_sdt->num_rows()) ? $qu_sdt->row() : NULL;
$row_home = (isset($home) && $home->num_rows()) ? $home->row() : NULL;
$row_current = (isset($current) && $current->num_rows()) ? $current->row() : NULL;
$row_work = (isset($work) && $work->num_rows()) ? $work->row() : NULL;
$row_father = (isset($father) && $father->num_rows()) ? $father->row() : NULL;
$row_mother = (isset($mother) && $mother->num_rows()) ? $mother->row() : NULL;
$row_contact = (isset($contact) && $contact->num_rows()) ? $contact->row() : NULL;
$row_grad = (isset($graduate) && $graduate->num_rows()) ? $graduate->row() : NULL;
$birthDate = ($row_sdt!=NULL) ? splitDateDb2(setValue('sdtBirthDate',$row_sdt),'/') : '';
?>
<?php
 
// ส่วนเจ้าหน้าที่ และนักศึกษา

if(!isset($prs)) {
echo 
form_open_multipart($this->config->item("rg_folder")."studentinfo/std_insertStdMBInfo2", array("name" => "myform""id" => "myform"));?>
<table class="szone">
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td colspan="4" class="coltd_szone2"><span class="h error">ข้อมูลประวัติส่วนตัว</span></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ชื่อ-นามสกุล (อังกฤษ)</td>
        <td colspan="3"><?php echo setValue('prefixNameEng',$row_sdt);?>
        <input type="text" name="stdNameE" id="stdNameE" value="<?php echo set_value('stdNameE',setValue('stdNameE',$row_sdt));?>" size="20" maxlength="50" />
        <input type="text" name="stdSurnameE" id="stdSurnameE" value="<?php echo set_value('stdSurnameE',setValue('stdSurnameE',$row_sdt));?>" size="20" maxlength="50" />
        <span class="error">*<?php echo form_error('stdNameE') ? form_error('stdNameE') : form_error('stdSurnameE');?></span></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ชื่อเก่านักศึกษา (ไทย)</td>
        <td colspan="3">
        <input type="text" name="sdtOldName" id="sdtOldName" value="<?php echo set_value('sdtOldName',setValue('sdtOldName',$row_sdt));?>" size="30" maxlength="70" /></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">วุฒิการศึกษาก่อนรับเข้า</td>
        <td colspan="3">
<?php
        
echo form_dropdown('sdtEdgIdPre'$rs_edgset_value('sdtEdgIdPre',setValue('sdtEdgIdPre',$row_sdt)));
?>
        </td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">อีเมล์</td>
        <td colspan="3">
        <input type="text" name="sdtEmail" id="sdtEmail" value="<?php echo set_value('sdtEmail',setValue('sdtEmail',$row_sdt));?>" size="30" maxlength="50" />
        <span class="error">*<?php echo form_error('sdtEmail');?></span></td>
    </tr>
<?php
    
if(isset($act) && $act=='N') {
?>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">รูปภาพนักศึกษา</td>
        <td colspan="3">
        <input type="file" name="sdtPicturePath" id="sdtPicturePath" value="<?php echo setValue('sdtPicturePath'$row_sdt);?>" />
        <span class="error"> (ขนาดรูปภาพควรมีขนาด 100x115 pixels เป็น .jpg เท่านั้น และขนาดไฟล์ไม่เกิน 2 MB)</span>
        <span class="error"><?php echo form_error('sdtPicturePath');?></span></td>
    </tr>
<?php
    
}
?>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">เพศ</td>
        <td>
        <input type="radio" name="sdtSex" id="sdtSex" value="M" <?php echo ((setValue('sdtSex',$row_sdt)!='F') ? 'checked' '');?> />ชาย
        <input type="radio" name="sdtSex" id="sdtSex" value="F" <?php echo ((setValue('sdtSex',$row_sdt)=='F') ? 'checked' '');?> />หญิง
        </td>
        <td class="coltd_szone2">หมู่เลือด <br />(ตัวอัษรภาษาอังกฤษพิมพ์ใหญ่)</td>
        <td><input type="text" name="sdtBloodGroup" id="sdtBloodGroup" value="<?php echo set_value('sdtBloodGroup',setValue('sdtBloodGroup',$row_sdt));?>" size="3" maxlength="2" />
        <br /><?php echo form_error('sdtBloodGroup');?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">สัญชาติ</td>
        <td>
<?php
        
echo form_dropdown('sdtNtId'$rs_ntset_value('sdtNtId',setValue('sdtNtId',$row_sdt)));
?>
        </td>
        <td class="coltd_szone2">ศาสนา</td>
        <td>
<?php
        
echo form_dropdown('sdtRlgId'$rs_rlgset_value('sdtRlgId',setValue('sdtRlgId',$row_sdt)));
?>
        </td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">วันเกิด</td>
        <td colspan="3"><script>DateInput('sdtBirthDate', true, 'DD/MM/YYYY', '<?php echo (set_value("sdtBirthDate",$birthDate)=="" || set_value("sdtBirthDate",$birthDate)=="00/00/0000") ? getNowDateFw2() : set_value("sdtBirthDate",$birthDate);?>');</script></td>
    </tr>
    <tr >
        <td class="coltd_szone2" style="background-color:red;color:white;font-size:18px;">เลขรหัสประจำบ้าน</td>
        <td><input typr="text" name="HOUSE_ID"  value="<?=$UocSTD[0]->HOUSE_ID?>" /></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">จังหวัดที่เกิด</td>
        <td>
<?php
        
echo form_dropdown('sdtPrvIdBirth'$rs_prvset_value('sdtPrvIdBirth',setValue('sdtPrvIdBirth',$row_sdt)));
?>
        </td>
        <td class="coltd_szone2">ประเทศที่เกิด</td>
        <td>
<?php
        
echo form_dropdown('sdtCntId'$rs_cntset_value('sdtCntId',setValue('sdtCntId',$row_sdt)));
?>    
        </td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">สถานะการสมรส</td>
        <td>
<?php
        
echo form_dropdown('sdtMsId'$rs_msset_value('sdtMsId',setValue('sdtMsId',$row_sdt)));
?>
        </td>
        <td class="coltd_szone2">น้ำหนัก</td>
        <td><input type="text" name="sdtWeight" id="sdtWeight" value="<?php echo set_value('sdtWeight',setValue('sdtWeight',$row_sdt));?>" size="4" maxlength="3" class="required-int" />
        <span class="error">*<?php echo form_error('sdtWeight');?></span></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">สถานะการเกณฑ์ทหาร</td>
        <td>
<?php
        $att1 
setValue('sdtSex',$row_sdt)=='F' 'disabled' '';
        echo 
form_dropdown('sdtRtId'$rs_rtset_value('sdtRtId',setValue('sdtRtId',$row_sdt)),$att1);
?>
        </td>
        <td class="coltd_szone2">ส่วนสูง</td>
        <td><input type="text" name="sdtHeight" id="sdtHeight" value="<?php echo set_value('sdtHeight',setValue('sdtHeight',$row_sdt));?>" size="6" maxlength="5" />
        <span class="error">*<?php echo form_error('sdtHeight');?></span></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ผลการสอบวิชาชีพ</td>
<?php
        
if(isset($act) && $act=='N') {
?>
        <td>
<?php
        $att2 
setValue('stdSstId',$row_sdt)!='disabled' '';
        echo 
form_dropdown('sdtOccExamResult'$rs_occExamResultset_value('sdtOccExamResult',setValue('sdtOccExamResult',$rs_occExamResult)),$att2);
?>
        </td>
<?php
        
} else {
            if(
setValue('sdtOccExamResult',$row_sdt)=='P')
                
$occ "ผ่าน";
            else if(
setValue('sdtOccExamResult',$row_sdt)=='F')
                
$occ "ไม่ผ่าน";
            else
                
$occ "ไม่ปรากฏ";
?>
        <td><?php echo $occ;?></td>
<?php
        
}
?>
        <td class="coltd_szone2">ผลการสอบ Exit-Exam</td>
        <td>
<?php 
        
echo setValue('stdExitExam',$row_sdt).' : ';
        if(
setValue('stdExitExam',$row_sdt)=='N')
            echo 
"ไม่ผ่าน";
        else if(
setValue('stdExitExam',$row_sdt)=='Y' || setValue('stdExitExam',$row_sdt)=='P')
            echo 
"ผ่าน";
?>
        </td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td colspan="4" class="coltd_szone2"><span class="h error">ที่อยู่นักศึกษาตามภูมิลำเนาเดิม</span></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ที่อยู่นักศึกษา (ตามภูมิลำเนา)</td>
        <td colspan="3">
        <input type="text" name="sdtHomeAddr" id="sdtHomeAddr" value="<?php echo set_value('sdtHomeAddr',setValue('sdtHomeAddr',$row_home));?>" size="50" maxlength="70" /></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ตำบล</td>
        <td>
        <input type="text" name="dtNameHome" id="dtNameHome" value="<?php echo setValue('dtNameHome',$row_home);?>" class="input2" readonly />
        <input type="hidden" name="sdtDtIdHome" id="sdtDtIdHome" value="<?php echo setValue('sdtDtIdHome',$row_home);?>" readonly />
<?php
        
echo anchor_popup($this->config->item("rg_folder")."popup/dtHome_popup""<img src=\"".base_url().$this->config->item('rg_search')."\" width=\"15\" height=\"19\" align=\"absmiddle\" border=\"0\" />", array("width" => "550""height" => "350"));
?>
        </td>
        <td class="coltd_szone2">อำเภอ</td>
        <td>
        <input type="text" name="apNameHome" id="apNameHome" value="<?php echo setValue('apNameHome',$row_home);?>" class="input2" readonly />
        <input type="hidden" name="sdtApIdHome" id="sdtApIdHome" value="<?php echo setValue('sdtApIdHome',$row_home);?>" readonly />
        </td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">จังหวัด</td>
        <td>
        <input type="text" name="prvNameHome" id="prvNameHome" value="<?php echo setValue('prvNameHome',$row_home);?>" class="input2" readonly />
        <input type="hidden" name="sdtPrvIdHome" id="sdtPrvIdHome" value="<?php echo setValue('sdtPrvIdHome',$row_home);?>" readonly />
        </td>
        <td class="coltd_szone2">รหัสไปรษณีย์</td>
        <td><input type="text" name="sdtHomePostCode" id="sdtHomePostCode" value="<?php echo set_value('sdtHomePostCode',setValue('sdtHomePostCode',$row_home));?>" size="6" maxlength="5" class="required-int" />
        <span class="error"><?php echo form_error('sdtHomePostCode');?></span></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">โทรศัพท์บ้าน</td>
        <td colspan="3"><input type="text" name="sdtHomePhoneNo" id="sdtHomePhoneNo" value="<?php echo set_value('sdtHomePhoneNo',setValue('sdtHomePhoneNo',$row_home));?>" size="20" /><!--  maxlength="10" class="require-int" -->
        <span class="error"><?php echo form_error('sdtHomePhoneNo');?></span></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td colspan="4" class="coltd_szone2"><span class="h error">ที่อยู่ปัจจุบันนักศึกษา</span>
        <input type="checkbox" name="currentChk" id="currentChk" value="1" onClick="copyAddr(this)" /> ใช้ที่อยู่ปัจจุบันนักศึกษาตามที่อยู่ภูมิลำเนาเดิมนักศึกษา</td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ที่อยู่นักศึกษา (ปัจจุบัน)</td>
        <td colspan="3">
        <input type="text" name="sdtCurrentAddr" id="sdtCurrentAddr" value="<?php echo set_value('sdtCurrentAddr',setValue('sdtCurrentAddr',$row_current));?>" size="50" maxlength="70" /></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ตำบล</td>
        <td>
        <input type="text" name="dtNameCurrent" id="dtNameCurrent" value="<?php echo setValue('dtNameCurrent',$row_current);?>" class="input2" readonly />
        <input type="hidden" name="sdtDtIdCurrent" id="sdtDtIdCurrent" value="<?php echo setValue('sdtDtIdCurrent',$row_current);?>" readonly />
<?php
        
echo anchor_popup($this->config->item("rg_folder")."popup/dtCur_popup""<img src=\"".base_url().$this->config->item('rg_search')."\" width=\"15\" height=\"19\" align=\"absmiddle\" border=\"0\" />", array("width" => "550""height" => "350"));
?>
        </td>
        <td class="coltd_szone2">อำเภอ</td>
        <td>
        <input type="text" name="apNameCurrent" id="apNameCurrent" value="<?php echo setValue('apNameCurrent',$row_current);?>" class="input2" readonly />
        <input type="hidden" name="sdtApIdCurrent" id="sdtApIdCurrent" value="<?php echo setValue('sdtApIdCurrent',$row_current);?>" readonly />
        </td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">จังหวัด</td>
        <td>
        <input type="text" name="prvNameCurrent" id="prvNameCurrent" value="<?php echo setValue('prvNameCurrent',$row_current);?>" class="input2" readonly />
        <input type="hidden" name="sdtPrvIdCurrent" id="sdtPrvIdCurrent" value="<?php echo setValue('sdtPrvIdCurrent',$row_current);?>" readonly />
        </td>
        <td class="coltd_szone2">รหัสไปรษณีย์</td>
        <td><input type="text" name="sdtCurrentPostCode" id="sdtCurrentPostCode" value="<?php echo set_value('sdtCurrentPostCode',setValue('sdtCurrentPostCode',$row_current));?>" size="6" maxlength="5" class="required-int" />
        <span class="error"><?php echo form_error('sdtCurrentPostCode');?></span></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">โทรศัพท์บ้าน</td>
        <td colspan="3"><input type="text" name="sdtCurrentPhoneNo" id="sdtCurrentPhoneNo" value="<?php echo set_value('sdtCurrentPhoneNo',setValue('sdtCurrentPhoneNo',$row_current));?>" size="20" /><!-- size="11" maxlength="10" class="required-int" -->
        <span class="error"><?php echo form_error('sdtCurrentPhoneNo');?></span></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td colspan="4" class="coltd_szone2"><span class="h error">ที่อยู่ที่ทำงาน (ในกรณีที่ทำงานอยู่)</span>
        <input type="checkbox" name="workChk" id="workChk" value="1" onClick="copyAddr(this)" /> ใช้ที่อยู่ที่ทำงานตามที่อยู่ภูมิลำเนาเดิมนักศึกษา</td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ชื่อบริษัท/ที่ทำงาน</td>
        <td colspan="3">
        <input type="text" name="sdtWorkName" id="sdtWorkName " value="<?php echo set_value('sdtWorkName',setValue('sdtWorkName',$row_work));?>" size="50" maxlength="70" /></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ที่อยู่ที่ทำงาน (ในกรณีที่ทำงานอยู่)</td>
        <td colspan="3">
        <input type="text" name="sdtWorkAddr" id="sdtWorkAddr" value="<?php echo set_value('sdtWorkAddr',setValue('sdtWorkAddr',$row_work));?>" size="50" maxlength="70" /></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ตำบล</td>
        <td>
        <input type="text" name="dtNameWork" id="dtNameWork" value="<?php echo setValue('dtNameWork',$row_work);?>" class="input2" readonly />
        <input type="hidden" name="sdtDtIdWork" id="sdtDtIdWork" value="<?php echo setValue('sdtDtIdWork',$row_work);?>" readonly />
<?php
        
echo anchor_popup($this->config->item("rg_folder")."popup/dtWork_popup""<img src=\"".base_url().$this->config->item('rg_search')."\" width=\"15\" height=\"19\" align=\"absmiddle\" border=\"0\" />", array("width" => "550""height" => "350"));
?>
        </td>
        <td class="coltd_szone2">อำเภอ</td>
        <td>
        <input type="text" name="apNameWork" id="apNameWork" value="<?php echo setValue('apNameWork',$row_work);?>" class="input2" readonly />
        <input type="hidden" name="sdtApIdWork" id="sdtApIdWork" value="<?php echo setValue('sdtApIdWork',$row_work);?>" readonly />
        </td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">จังหวัด</td>
        <td>
        <input type="text" name="prvNameWork" id="prvNameWork" value="<?php echo setValue('prvNameWork',$row_work);?>" class="input2" readonly />
        <input type="hidden" name="sdtPrvIdWork" id="sdtPrvIdWork" value="<?php echo setValue('sdtPrvIdWork',$row_work);?>" readonly />
        </td>
        <td class="coltd_szone2">รหัสไปรษณีย์</td>
        <td><input type="text" name="sdtWorkPostCode" id="sdtWorkPostCode" value="<?php echo set_value('sdtWorkPostCode',setValue('sdtWorkPostCode',$row_work));?>" size="6" maxlength="5" class="required-int" />
        <span class="error"><?php echo form_error('sdtWorkPostCode');?></span></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">โทรศัพท์ที่ทำงาน</td>
        <td><input type="text" name="sdtWorkPhoneNo" id="sdtWorkPhoneNo" value="<?php echo set_value('sdtWorkPhoneNo',setValue('sdtWorkPhoneNo',$row_work));?>" size="20" /><!-- size="11" maxlength="10" class="required-int" -->
        <span class="error"><?php echo form_error('sdtWorkPhoneNo');?></span></td>
        <td class="coltd_szone2">เงินเดือน</td>
        <td><input type="text" name="sdtWorkSalary" id="sdtWorkSalary" value="<?php echo set_value('sdtWorkSalary',setValue('sdtWorkSalary',$row_work));?>" size="7" maxlength="6" class="required-int" />
        <span class="error"><?php echo form_error('sdtWorkSalary');?></span></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">สถานะการทำงาน</td>
        <td>
<?php
        
echo form_dropdown('sdtWorkStatus'$rs_workstatusset_value('sdtWorkStatus',setValue('sdtWorkStatus',$row_work)));
?>
        </td>
        <td class="coltd_szone2">ตำแหน่งงาน</td>
        <td><input type="text" name="sdtWorkPosition" id="sdtWorkPosition" value="<?php echo set_value('sdtWorkPosition',setValue('sdtWorkPosition',$row_work));?>" size="20" maxlength="30" /></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td colspan="4" class="coltd_szone2"><span class="h error">ข้อมูลบิดา-มารดา</span>
        <input type="checkbox" name="fatherChk" id="fatherChk" value="1" onClick="copyAddr(this)" /> ใช้ที่อยู่บิดาตามที่อยู่ภูมิลำเนาเดิมนักศึกษา
        <input type="checkbox" name="motherChk" id="motherChk" value="1" onClick="copyAddr(this)" /> ใช้ที่อยู่มารดาตามที่อยู่ภูมิลำเนาเดิมนักศึกษา</td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ชื่อ-สกุลบิดา (ไทย)</td>
        <td>
        <input type="text" name="sdtFatherName" id="sdtFatherName " value="<?php echo set_value('sdtFatherName',setValue('sdtFatherName',$row_father));?>" size="20" maxlength="50" />
        <input type="text" name="sdtFatherSurname" id="sdtFatherSurname " value="<?php echo set_value('sdtFatherSurname',setValue('sdtFatherSurname',$row_father));?>" size="20" maxlength="50" /></td>
        <td class="coltd_szone2">สถานภาพบิดา</td>
        <td>
<?php
        
echo form_dropdown('sdtFatherStatus'$rs_statusset_value('sdtFatherStatus',setValue('sdtFatherStatus',$row_father)));
?>
        </td>
    </tr>
    <tr>
        <td class="coltd_szone2" style="background-color:red;color:white;font-size:18px;">รหัสประชาชน บิดา</td>
        <td colspan="4"><input type="text" name="UocSTD_FAT_CITIZEN_ID" value="<?=$UocSTD[0]->FAT_CITIZEN_ID ?>" maxlength="13"></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ที่อยู่บิดา</td>
        <td colspan="3">
        <input type="text" name="sdtFatherAddr" id="sdtFatherAddr" value="<?php echo set_value('sdtFatherAddr',setValue('sdtFatherAddr',$row_father));?>" size="50" maxlength="70" /></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ตำบล</td>
        <td>
        <input type="text" name="dtNameFather" id="dtNameFather" value="<?php echo setValue('dtNameFather',$row_father);?>" class="input2" readonly />
        <input type="hidden" name="sdtDtIdFather" id="sdtDtIdFather" value="<?php echo setValue('sdtDtIdFather',$row_father);?>" readonly />
<?php
        
echo anchor_popup($this->config->item("rg_folder")."popup/dtFather_popup""<img src=\"".base_url().$this->config->item('rg_search')."\" width=\"15\" height=\"19\" align=\"absmiddle\" border=\"0\" />", array("width" => "550""height" => "350"));
?>
        </td>
        <td class="coltd_szone2">อำเภอ</td>
        <td>
        <input type="text" name="apNameFather" id="apNameFather" value="<?php echo setValue('apNameFather',$row_father);?>" class="input2" readonly />
        <input type="hidden" name="sdtApIdFather" id="sdtApIdFather" value="<?php echo setValue('sdtApIdFather',$row_father);?>" readonly />
        </td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">จังหวัด</td>
        <td>
        <input type="text" name="prvNameFather" id="prvNameFather" value="<?php echo setValue('prvNameFather',$row_father);?>" class="input2" readonly />
        <input type="hidden" name="sdtPrvIdFather" id="sdtPrvIdFather" value="<?php echo setValue('sdtPrvIdFather',$row_father);?>" readonly />
        </td>
        <td class="coltd_szone2">รหัสไปรษณีย์</td>
        <td><input type="text" name="sdtFatherPostCode" id="sdtFatherPostCode" value="<?php echo set_value('sdtFatherPostCode',setValue('sdtFatherPostCode',$row_father));?>" size="6" maxlength="5" class="required-int" />
        <span class="error"><?php echo form_error('sdtFatherPostCode');?></span></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">โทรศัพท์บ้าน</td>
        <td><input type="text" name="sdtFatherPhoneNo" id="sdtFatherPhoneNo" value="<?php echo set_value('sdtFatherPhoneNo',setValue('sdtFatherPhoneNo',$row_father));?>" size="20" /><!-- size="10" maxlength="10" class="required-int" -->
        <span class="error"><?php echo form_error('sdtFatherPhoneNo');?></span></td>
        <td class="coltd_szone2">อาชีพ</td>
        <td><input type="text" name="sdtFatherOccupation" id="sdtFatherOccupation" value="<?php echo set_value('sdtFatherOccupation',setValue('sdtFatherOccupation',$row_father));?>" /></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ชื่อ-สกุลมารดา (ไทย)</td>
        <td>
        <input type="text" name="sdtMotherName" id="sdtMotherName " value="<?php echo set_value('sdtMotherName',setValue('sdtMotherName',$row_mother));?>" size="20" maxlength="50" />
        <input type="text" name="sdtMotherSurname" id="sdtMotherSurname " value="<?php echo set_value('sdtMotherSurname',setValue('sdtMotherSurname',$row_mother));?>" size="20" maxlength="50" /></td>
        <td class="coltd_szone2">สถานภาพมารดา</td>
        <td>
<?php
        
echo form_dropdown('sdtMotherStatus'$rs_statusset_value('sdtMotherStatus',setValue('sdtMotherStatus',$row_mother)));
?>
        </td>
    </tr>
    <tr>
        <td class="coltd_szone2" style="background-color:red;color:white;font-size:18px;">รหัสประชาชน มารดา</td>
        <td colspan="4"><input type="text"  name="UocSTD_MOT_CITIZEN_ID" value="<?=$UocSTD[0]->MOT_CITIZEN_ID ?>" maxlength="13"></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ที่อยู่มารดา</td>
        <td colspan="3">
        <input type="text" name="sdtMotherAddr" id="sdtMotherAddr" value="<?php echo set_value('sdtMotherAddr',setValue('sdtMotherAddr',$row_mother));?>" size="50" maxlength="70" /></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ตำบล</td>
        <td>
        <input type="text" name="dtNameMother" id="dtNameMother" value="<?php echo setValue('dtNameMother',$row_mother);?>" class="input2" readonly />
        <input type="hidden" name="sdtDtIdMother" id="sdtDtIdMother" value="<?php echo setValue('sdtDtIdMother',$row_mother);?>" readonly />
<?php
        
echo anchor_popup($this->config->item("rg_folder")."popup/dtMother_popup""<img src=\"".base_url().$this->config->item('rg_search')."\" width=\"15\" height=\"19\" align=\"absmiddle\" border=\"0\" />", array("width" => "550""height" => "350"));
?>
        </td>
        <td class="coltd_szone2">อำเภอ</td>
        <td>
        <input type="text" name="apNameMother" id="apNameMother" value="<?php echo setValue('apNameMother',$row_mother);?>" class="input2" readonly />
        <input type="hidden" name="sdtApIdMother" id="sdtApIdMother" value="<?php echo setValue('sdtApIdMother',$row_mother);?>" readonly />
        </td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">จังหวัด</td>
        <td>
        <input type="text" name="prvNameMother" id="prvNameMother" value="<?php echo setValue('prvNameMother',$row_mother);?>" class="input2" readonly />
        <input type="hidden" name="sdtPrvIdMother" id="sdtPrvIdMother" value="<?php echo setValue('sdtPrvIdMother',$row_mother);?>" readonly />
        </td>
        <td class="coltd_szone2">รหัสไปรษณีย์</td>
        <td><input type="text" name="sdtMotherPostCode" id="sdtMotherPostCode" value="<?php echo set_value('sdtMotherPostCode',setValue('sdtMotherPostCode',$row_mother));?>" size="6" maxlength="5" class="required-int" />
        <span class="error"><?php echo form_error('sdtMotherPostCode');?></span></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">โทรศัพท์บ้าน</td>
        <td><input type="text" name="sdtMotherPhoneNo" id="sdtMotherPhoneNo" value="<?php echo set_value('sdtMotherPhoneNo',setValue('sdtMotherPhoneNo',$row_mother));?>" size="20" /><!-- size="11" maxlength="10" class="required-int" -->
        <span class="error"><?php echo form_error('sdtMotherPhoneNo');?></span></td>
        <td class="coltd_szone2">อาชีพ</td>
        <td><input type="text" name="sdtMotherOccupation" id="sdtMotherOccupation" value="<?php echo set_value('sdtMotherOccupation',setValue('sdtMotherOccupation',$row_mother));?>" /></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td colspan="4" class="coltd_szone2"><span class="h error">ข้อมูลผู้ที่สามารถติดต่อได้</span>
        <input type="checkbox" name="contactChk" id="contactChk" value="1" onClick="copyAddr(this)" /> ใช้ที่อยู่ผู้ที่สามารติดต่อได้ตามที่อยู่ภูมิลำเนาเดิมนักศึกษา</td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ชื่อผู้ที่สามารถติดต่อได้</td>
        <td colspan="3">
        <input type="text" name="sdtContactName" id="sdtContactName" value="<?php echo set_value('sdtContactName',setValue('sdtContactName',$row_contact));?>" size="30" maxlength="70" /></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ที่อยู่ผู้ที่สามารถติตต่อได้</td>
        <td colspan="3">
        <input type="text" name="sdtContactAddr" id="sdtContactAddr" value="<?php echo set_value('sdtContactAddr',setValue('sdtContactAddr',$row_contact));?>" size="50" maxlength="70" /></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ตำบล</td>
        <td>
        <input type="text" name="dtNameContact" id="dtNameContact" value="<?php echo setValue('dtNameContact',$row_contact);?>" class="input2" readonly />
        <input type="hidden" name="sdtDtIdContact" id="sdtDtIdContact" value="<?php echo setValue('sdtDtIdContact',$row_contact);?>" readonly />
<?php
        
echo anchor_popup($this->config->item("rg_folder")."popup/dtContact_popup""<img src=\"".base_url().$this->config->item('rg_search')."\" width=\"15\" height=\"19\" align=\"absmiddle\" border=\"0\" />", array("width" => "550""height" => "350"));
?>
        </td>
        <td class="coltd_szone2">อำเภอ</td>
        <td>
        <input type="text" name="apNameContact" id="apNameContact" value="<?php echo setValue('apNameContact',$row_contact);?>" class="input2" readonly />
        <input type="hidden" name="sdtApIdContact" id="sdtApIdContact" value="<?php echo setValue('sdtApIdContact',$row_contact);?>" readonly />
        </td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">จังหวัด</td>
        <td>
        <input type="text" name="prvNameContact" id="prvNameContact" value="<?php echo setValue('prvNameContact',$row_contact);?>" class="input2" readonly />
        <input type="hidden" name="sdtPrvIdContact" id="sdtPrvIdContact" value="<?php echo setValue('sdtPrvIdContact',$row_contact);?>" readonly />
        </td>
        <td class="coltd_szone2">รหัสไปรษณีย์</td>
        <td><input type="text" name="sdtContactPostCode" id="sdtContactPostCode" value="<?php echo set_value('sdtContactPostCode',setValue('sdtContactPostCode',$row_contact));?>" size="6" maxlength="5" class="required-int" />
        <span class="error"><?php echo form_error('sdtContactPostCode');?></span></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">โทรศัพท์บ้าน</td>
        <td colspan="3"><input type="text" name="sdtContactPhoneNo" id="sdtContactPhoneNo" value="<?php echo set_value('sdtContactPhoneNo',setValue('sdtContactPhoneNo',$row_contact));?>" size="20" /><!-- size="11" maxlength="10" class="required-int" -->
        <span class="error"><?php echo form_error('sdtContactPhoneNo');?></span></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td colspan="4" class="coltd_szone2"><span class="h error">ข้อมูลที่อยู่นักศึกษาหลังจากจบการศึกษาแล้ว</span>
        <input type="checkbox" name="graduateChk" id="graduateChk" value="1" onClick="copyAddr(this)" /> ใช้ที่อยู่นักศึกษาหลังจากจบการศึกษาแล้วตามที่อยู่ภูมิลำเนาเดิมนักศึกษา</td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ที่อยู่นักศึกษา <br />(หลังจากจบการศึกษาแล้ว)</td>
        <td colspan="3">
        <input type="text" name="sdtGraduateAddr" id="sdtGraduateAddr" value="<?php echo set_value('sdtGraduateAddr',setValue('sdtGraduateAddr',$row_grad));?>" size="50" maxlength="70" /></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ตำบล</td>
        <td>
        <input type="text" name="dtNameGrad" id="dtNameGrad" value="<?php echo setValue('dtNameGrad',$row_grad);?>" class="input2" readonly />
        <input type="hidden" name="sdtDtIdGraduate" id="sdtDtIdGraduate" value="<?php echo setValue('sdtDtIdGraduate',$row_grad);?>" readonly />
<?php
        
echo anchor_popup($this->config->item("rg_folder")."popup/dtGraduate_popup""<img src=\"".base_url().$this->config->item('rg_search')."\" width=\"15\" height=\"19\" align=\"absmiddle\" border=\"0\" />", array("width" => "550""height" => "350"));
?>
        </td>
        <td class="coltd_szone2">อำเภอ</td>
        <td>
        <input type="text" name="apNameGrad" id="apNameGrad" value="<?php echo setValue('apNameGrad',$row_grad);?>" class="input2" readonly />
        <input type="hidden" name="sdtApIdGraduate" id="sdtApIdGraduate" value="<?php echo setValue('sdtApIdGraduate',$row_grad);?>" readonly />
        </td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">จังหวัด</td>
        <td>
        <input type="text" name="prvNameGrad" id="prvNameGrad" value="<?php echo setValue('prvNameGrad',$row_grad);?>" class="input2" readonly />
        <input type="hidden" name="sdtPrvIdGraduate" id="sdtPrvIdGraduate" value="<?php echo setValue('sdtPrvIdGraduate',$row_grad);?>" readonly />
        </td>
        <td class="coltd_szone2">รหัสไปรษณีย์</td>
        <td><input type="text" name="sdtGraduatePostCode" id="sdtGraduatePostCode" value="<?php echo set_value('sdtGraduatePostCode',setValue('sdtGraduatePostCode',$row_grad));?>" size="6" maxlength="5" class="required-int" />
        <span class="error"><?php echo form_error('sdtGraduatePostCode');?></span></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">โทรศัพท์บ้าน</td>
        <td colspan="3"><input type="text" name="sdtGraduatePhoneNo" id="sdtGraduatePhoneNo" value="<?php echo set_value('sdtGraduatePhoneNo',setValue('sdtGraduatePhoneNo',$row_grad));?>" size="20" /><!-- size="11" maxlength="10" class="required-int" -->
        <span class="error"><?php echo form_error('sdtGraduatePhoneNo');?></span></td>
    </tr>
    <tr>
        <td class="coltd_szone2"  style="background-color:red;color:white;font-size:18px;">ประเภทความพิการ</td>
        <?php 
            $queryDeFrom 
$mua->query('SELECT * FROM  `ref_deform`');
            
//echo json_encode($queryDeFrom->result());
        
?>
        <td colspan="4">
                <select name="UocSTD_DEFORM_ID">
                    <?php 
                        
foreach($queryDeFrom->result() as $res){
                     
?>
                       <option value="<?= $res->DEFORM_ID ?><?php echo $UocSTD[0]->DEFORM_ID == $res->DEFORM_ID 'selected':'';  ?>><?= $res->DEFORM_NAME ?></option>
                    <?php
                        

                    
?>
                </select>
        </td>
    </tr>
    <tr>
        <td class="coltd_szone2">บัตรประจำตัวคนพิการ</td>
        <td><input type="text" name="UocSTD_DEFORMCARD_ID" value="<?= $UocSTD[0]->DEFORMCARD_ID;?>"  maxlength="13"></td>
        <td class="coltd_szone2">วันที่ออกบัตรคนพิการ</td>
        <td><input type="date" name="UocSTD_DEFORMCARD_STARTDATE" value="<?= $UocSTD[0]->DEFORMCARD_STARTDATE?>"></td>
        <td class="coltd_szone2">วันที่หมดอายุบัตรคนพิการ</td>
        <td><input type="date" name="UocSTD_DEFORMCARD_ENDDATE" value="<?= $UocSTD[0]->DEFORMCARD_ENDDATE?>"></td>
    </tr>
    <tr>
        <td class="coltd_szone2"  style="background-color:red;color:white;font-size:18px;">ความสามารถพิเศษ</td>
        <?php 
            $queryTalent
$mua->query('SELECT * FROM  `ref_talent`');
            
//echo json_encode($queryDeFrom->result());
        
?>
        <td colspan="4">
                <select name="UocSTD_TALENT">
                    <?php 
                        
foreach($queryTalent->result() as $res){
                     
?>
                       <option  value="<?= $res->TALENT_ID ?><?php echo $UocSTD[0]->TALENT == $res->TALENT_ID 'selected':'';  ?>><?= $res->QN_TALENT_NAME ?></option>
                    <?php
                        

                    
?>
                </select>
        </td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td colspan="4" align="center">
            <br><br>
        <input type="submit" name="add" id="add" value="บันทึก" <?php echo (isset($prs) && $prs=='Y') ? 'disabled' '';?> />
        <input type="reset" name="clear" id="clear" value="เคลียร์ข้อมูล" <?php echo (isset($prs) && $prs=='Y') ? 'disabled' '';?> />
        <input type="button" name="cancel" id="cancel" value="ยกเลิก" onClick="location.href='<?php echo site_url($this->config->item('rg_folder')."studentinfo/std_showInfo");?>'" <?php echo (isset($prs) && $prs=='Y') ? 'disabled' '';?> />
        <input type="hidden" name="stdId" id="stdId" value="<?php echo $stdId;?>" />
        <input type="hidden" name="stdCode" id="stdCode" value="<?php echo setValue('stdCode',$row_sdt);?>" />
        <input type="hidden" name="tab" id="tab" value="<?php echo $tab;?>" />
        </td>
    </tr>
    <tr>
        <td colspan="4"><br /></td>
    </tr>
    <tr>
        <td colspan="4"><span class="error"><b>หมายเหตุ : </b>&nbsp;&nbsp;* หมายถึง ต้องกรอกข้อมูลให้สมบูรณ์</span></td>
    </tr>
</table>
<?php 
echo form_close();
} else {
    
    
// ส่วนของอาจารย์
?>
<table class="szone">
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td colspan="4" class="coltd_szone2"><span class="h error">ข้อมูลประวัติส่วนตัว</span></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ชื่อ-นามสกุล (อังกฤษ)</td>
        <td colspan="3"><?php echo strtoupper(setValue('prefixNameEng',$row_sdt)).' '.setValue('stdNameE',$row_sdt).' '.setValue('stdSurnameE',$row_sdt);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ชื่อเก่านักศึกษา (ไทย)</td>
        <td colspan="3"><?php echo setValue('sdtOldName',$row_sdt);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">วุฒิการศึกษาก่อนรับเข้า</td>
        <td colspan="3"><?php echo setValue('edgName',$row_sdt);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">อีเมล์</td>
        <td colspan="3"><?php echo setValue('sdtEmail',$row_sdt);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">เพศ</td>
        <td><?php echo (setValue('sdtSex',$row_sdt)=='F') ? "หญิง" "ชาย";?></td>
        <td class="coltd_szone2">หมู่เลือด <br />(ตัวอัษรภาษอังกฤษพิมพ์ใหญ่)</td>
        <td><?php echo setValue('sdtBloodGroup',$row_sdt);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">สัญชาติ</td>
        <td><?php echo setValue('nationName',$row_sdt);?></td>
        <td class="coltd_szone2">ศาสนา</td>
        <td><?php echo setValue('religionName',$row_sdt);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">วันเกิด</td>
        <td colspan="3"><?php echo abbreDate2(setValue('sdtBirthDate',$row_sdt));?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">จังหวัดที่เกิด</td>
        <td><?php echo setValue('provinceName',$row_sdt);?></td>
        <td class="coltd_szone2">ประเทศที่เกิด</td>
        <td><?php echo setValue('countryName',$row_sdt);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">สถานะการสมรส</td>
        <td><?php echo setValue('msName',$row_sdt);?></td>
        <td class="coltd_szone2">น้ำหนัก</td>
        <td><?php echo setValue('sdtWeight',$row_sdt);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">สถานะการเกณฑ์ทหาร</td>
        <td><?php echo (setValue('sdtRtId',$row_sdt)=='0' || setValue('sdtRtId',$row_sdt)==NULL) ? '-' setValue('sdtRtId',$row_sdt);?></td>
        <td class="coltd_szone2">ส่วนสูง</td>
        <td><?php echo setValue('sdtHeight',$row_sdt);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ผลการสอบวิชาชีพ</td>
        <td>
<?php
            
if(setValue('sdtOccExamResult',$row_sdt)=='P')
                
$occ "ผ่าน";
            else if(
setValue('sdtOccExamResult',$row_sdt)=='F')
                
$occ "ไม่ผ่าน";
            else
                
$occ "ไม่ปรากฏ";

            echo 
$occ;
?>
        </td>
        <td class="coltd_szone2">ผลการสอบ Exit-Exam</td>
        <td>
<?php 
        
echo setValue('stdExitExam',$row_sdt).' : ';
        if(
setValue('stdExitExam',$row_sdt)=='N')
            echo 
"ไม่ผ่าน";
        else if(
setValue('stdExitExam',$row_sdt)=='Y' || setValue('stdExitExam',$row_sdt)=='P')
            echo 
"ผ่าน";
?>
        </td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td colspan="4" class="coltd_szone2"><span class="h error">ที่อยู่นักศึกษาตามภูมิลำเนาเดิม</span></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ที่อยู่นักศึกษา (ตามภูมิลำเนา)</td>
        <td colspan="3"><?php echo setValue('sdtHomeAddr',$row_home);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ตำบล</td>
        <td><?php echo setValue('dtNameHome',$row_home);?></td>
        <td class="coltd_szone2">อำเภอ</td>
        <td><?php echo setValue('apNameHome',$row_home);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">จังหวัด</td>
        <td><?php echo setValue('prvNameHome',$row_home);?></td>
        <td class="coltd_szone2">รหัสไปรษณีย์</td>
        <td><?php echo setValue('sdtHomePostCode',$row_home);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">โทรศัพท์บ้าน</td>
        <td colspan="3"><?php echo setValue('sdtHomePhoneNo',$row_home);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td colspan="4" class="coltd_szone2"><span class="h error">ที่อยู่ปัจจุบันนักศึกษา</span></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ที่อยู่นักศึกษา (ปัจจุบัน)</td>
        <td colspan="3"><?php echo setValue('sdtCurrentAddr',$row_current);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ตำบล</td>
        <td><?php echo setValue('dtNameCurrent',$row_current);?></td>
        <td class="coltd_szone2">อำเภอ</td>
        <td><?php echo setValue('apNameCurrent',$row_current);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">จังหวัด</td>
        <td><?php echo setValue('prvNameCurrent',$row_current);?></td>
        <td class="coltd_szone2">รหัสไปรษณีย์</td>
        <td><?php echo setValue('sdtCurrentPostCode',$row_current);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">โทรศัพท์บ้าน</td>
        <td colspan="3"><?php echo setValue('sdtCurrentPhoneNo',$row_current);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td colspan="4" class="coltd_szone2"><span class="h error">ที่อยู่ที่ทำงาน (ในกรณีที่ทำงานอยู่)</span></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ชื่อบริษัท/ที่ทำงาน</td>
        <td colspan="3"><?php echo setValue('sdtWorkName',$row_work);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ที่อยู่ที่ทำงาน (ในกรณีที่ทำงานอยู่)</td>
        <td colspan="3"><?php echo setValue('sdtWorkAddr',$row_work);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ตำบล</td>
        <td><?php echo setValue('dtNameWork',$row_work);?></td>
        <td class="coltd_szone2">อำเภอ</td>
        <td><?php echo setValue('apNameWork',$row_work);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">จังหวัด</td>
        <td><?php echo setValue('prvNameWork',$row_work);?></td>
        <td class="coltd_szone2">รหัสไปรษณีย์</td>
        <td><?php echo setValue('sdtWorkPostCode',$row_work);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">โทรศัพท์ที่ทำงาน</td>
        <td><?php echo setValue('sdtWorkPhoneNo',$row_work);?></td>
        <td class="coltd_szone2">เงินเดือน</td>
        <td><?php echo setValue('sdtWorkSalary',$row_work);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">สถานะการทำงาน</td>
        <td>
<?php
        
foreach($rs_workstatus as $work => $vWork) {
            if(
setValue('sdtWorkStatus',$row_work)==$work)
                echo 
$vWork;
        }
?>
        </td>
        <td class="coltd_szone2">ตำแหน่งงาน</td>
        <td><?php echo setValue('sdtWorkPosition',$row_work);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td colspan="4" class="coltd_szone2"><span class="h error">ข้อมูลบิดา-มารดา</span></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ชื่อ-สกุลบิดา (ไทย)</td>
        <td><?php echo setValue('sdtFatherName',$row_father).' '.setValue('sdtFatherSurname',$row_father);?></td>
        <td class="coltd_szone2">สถานภาพบิดา</td>
        <td>
<?php
        
foreach($rs_status as $status => $vStatus) {
            if(
setValue('sdtFatherStatus',$row_father)==$status)
                echo 
$vStatus;
        }
?>
        </td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ที่อยู่บิดา</td>
        <td colspan="3"><?php echo setValue('sdtFatherAddr',$row_father);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ตำบล</td>
        <td><?php echo setValue('dtNameFather',$row_father);?></td>
        <td class="coltd_szone2">อำเภอ</td>
        <td><?php echo setValue('apNameFather',$row_father);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">จังหวัด</td>
        <td><?php echo setValue('prvNameFather',$row_father);?></td>
        <td class="coltd_szone2">รหัสไปรษณีย์</td>
        <td><?php echo setValue('sdtFatherPostCode',$row_father);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">โทรศัพท์บ้าน</td>
        <td><?php echo setValue('sdtFatherPhoneNo',$row_father);?></td>
        <td class="coltd_szone2">อาชีพ</td>
        <td><?php echo setValue('sdtFatherOccupation',$row_father);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ชื่อ-สกุลมารดา (ไทย)</td>
        <td><?php echo setValue('sdtMotherName',$row_mother).setValue('sdtMotherSurname',$row_mother);?></td>
        <td class="coltd_szone2">สถานภาพมารดา</td>
        <td>
<?php
        
foreach($rs_status as $status => $vStatus) {
            if(
setValue('sdtMotherStatus',$row_mother)==$status)
                echo 
$vStatus;
        }
?>
        </td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ที่อยู่มารดา</td>
        <td colspan="3"><?php echo setValue('sdtMotherAddr',$row_mother);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ตำบล</td>
        <td><?php echo setValue('dtNameMother',$row_mother);?></td>
        <td class="coltd_szone2">อำเภอ</td>
        <td><?php echo setValue('apNameMother',$row_mother);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">จังหวัด</td>
        <td><?php echo setValue('prvNameMother',$row_mother);?></td>
        <td class="coltd_szone2">รหัสไปรษณีย์</td>
        <td><?php echo setValue('sdtMotherPostCode',$row_mother);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">โทรศัพท์บ้าน</td>
        <td><?php echo setValue('sdtMotherPhoneNo',$row_mother);?></td>
        <td class="coltd_szone2">อาชีพ</td>
        <td><?php echo setValue('sdtMotherOccupation',$row_mother);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td colspan="4" class="coltd_szone2"><span class="h error">ข้อมูลผู้ที่สามารถติดต่อได้</span></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ชื่อผู้ที่สามารถติดต่อได้</td>
        <td colspan="3"><?php echo setValue('sdtContactName',$row_contact);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ที่อยู่ผู้ที่สามารถติตต่อได้</td>
        <td colspan="3"><?php echo setValue('sdtContactAddr',$row_contact);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ตำบล</td>
        <td><?php echo setValue('dtNameContact',$row_contact);?></td>
        <td class="coltd_szone2">อำเภอ</td>
        <td><?php echo setValue('apNameContact',$row_contact);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">จังหวัด</td>
        <td><?php echo setValue('prvNameContact',$row_contact);?></td>
        <td class="coltd_szone2">รหัสไปรษณีย์</td>
        <td><?php echo setValue('sdtContactPostCode',$row_contact);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">โทรศัพท์บ้าน</td>
        <td colspan="3"><?php echo setValue('sdtContactPhoneNo',$row_contact);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td colspan="4" class="coltd_szone2"><span class="h error">ข้อมูลที่อยู่นักศึกษาหลังจากจบการศึกษาแล้ว</span></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ที่อยู่นักศึกษา <br />(หลังจากจบการศึกษาแล้ว)</td>
        <td colspan="3"><?php echo setValue('sdtGraduateAddr',$row_grad);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">ตำบล</td>
        <td><?php echo setValue('dtNameGrad',$row_grad);?></td>
        <td class="coltd_szone2">อำเภอ</td>
        <td><?php echo setValue('apNameGrad',$row_grad);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">จังหวัด</td>
        <td><?php echo setValue('prvNameGrad',$row_grad);?></td>
        <td class="coltd_szone2">รหัสไปรษณีย์</td>
        <td><?php echo setValue('sdtGraduatePostCode',$row_grad);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td class="coltd_szone2">โทรศัพท์บ้าน</td>
        <td colspan="3"><?php echo setValue('sdtGraduatePhoneNo',$row_grad);?></td>
    </tr>
    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
        <td colspan="4" align="center">
        <input type="hidden" name="stdId" id="stdId" value="<?php echo $stdId;?>" />
        <input type="hidden" name="stdCode" id="stdCode" value="<?php echo setValue('stdCode',$row_sdt);?>" />
        <input type="hidden" name="tab" id="tab" value="<?php echo $tab;?>" /></td>
    </tr>
</table>
<?php
}
?>

:: Command execute ::

Enter:
 
Select:
 

:: Shadow's tricks :D ::

Useful Commands
 
Warning. Kernel may be alerted using higher levels
Kernel Info:

:: Preddy's tricks :D ::

Php Safe-Mode Bypass (Read Files)

File:

eg: /etc/passwd

Php Safe-Mode Bypass (List Directories):

Dir:

eg: /etc/

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0258 ]--