Viewing file: v_editStudentMB11.php (83.42 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<style type="text/css"> #tabmargin { margin: 2px 2px 2px 2px; } .tabnav a, .tabnav a:link, .tabnav a:visited { display: block; height: 22px; font-family: MS Sans Serif; font-size: 14px; line-height: 22px; background-color: #ABCDEF; color: #000000; margin-right: 4px; padding: 2px 3px 0 3px; text-decoration: none; } .tabnav a.tabselected, .tabnav a.tabselected:link, .tabnav a.tabselected:visited { background-color: #FFFFFF; color: #333333; cursor: text; margin-right: 14px; } .contentblock { padding: 2px; background-color: #FFFFFF; color: #ABCDEF; font-family: MS Sans Serif; } .contentblock p { font-size: 22px; } #tab1, #tab2, #tab3, #tab4, #tab5, #tab6 { display: none; } </style> <script language="JavaScript1.2"> function checkFormat(txtStart, txtEnd) { if(document.myform.sacAcY.value!="" && document.myform.sacAcY.value<document.myform.stdAdY.value) { alert("ไม่ใช่ข้อมูลการทำกิจกรรมขณะศึกษาในวิทยาลัยนี้ !!"); document.myform.sacAcY.focus(); return false; } if(document.myform.sacAcY.value!="" && document.myform.sacAcY.value.length!=4) { alert("ปีการศึกษาข้อมูลการทำกิจกรรมไม่ถูกต้อง !!"); document.myform.sacAcY.focus(); return false; } if(document.myform.sacSyId.value != "") { if(document.myform.sacName.value == "") { alert("กรุณากรอกชื่อกิจกรรม/โครงการ !!"); document.myform.sacName.focus(); return false; } if(document.myform.sacPosition.value == "") { alert("กรุณากรอกการเข้าร่วมในกิจกรรม !!"); document.myform.sacPosition.focus(); return false; } } if(document.myform.sabAcY.value!="" && document.myform.sabAcY.value<document.myform.stdAdY.value) { alert("ไม่ใช่ข้อมูลการลา/ขาดขณะศึกษาในวิทยาลัยนี้ !!"); document.myform.sabAcY.focus(); return false; } if(document.myform.sabAcY.value!="" && document.myform.sabAcY.value.length!=4) { alert("ปีการศึกษาข้อมูลการลา/ขาดไม่ถูกต้อง !!"); document.myform.sabAcY.focus(); return false; } if(document.myform.sabSyId.value != "") { if(document.myform.sabCause.value == "") { alert("กรุณาเลือกประเภทการลา/ขาด !!"); document.myform.sabCause.focus(); return false; } } if(document.myform.sbeAcY.value!="" && document.myform.sbeAcY.value<document.myform.stdAdY.value) { alert("ไม่ใช่ข้อมูลความประพฤติขณะศึกษาในวิทยาลัยนี้ !!"); document.myform.sbeAcY.focus(); return false; } if(document.myform.sbeAcY.value!="" && document.myform.sbeAcY.value.length!=4) { alert("ปีการศึกษาข้อมูลความประพฤติไม่ถูกต้อง !!"); document.myform.sbeAcY.focus(); return false; } if(document.myform.sbeDescription.value != "") { if(document.myform.dcpName.value == "") { alert("กรุณาเลือกระดับคะแนน !!"); document.myform.dcpName.focus(); return false; } } if(document.myform.srwRewardName.value != "") { if(document.myform.srwDescription.value == "") { alert("กรุณากรอกรายละเอียด !!"); document.myform.srwDescription.focus(); return false; } } if (txtStart && txtEnd) { var oblen = txtStart.length; for (var i = 0; i < oblen; i++) { if (!isvaliddate(txtStart[i], txtEnd[i])) { return false; } } } return true; }
function isvaliddate (txtStart, txtEnd) { var retval = true; var ArrayStartDay = txtStart.split("/"); var ArrayStopDay = txtEnd.split("/"); var StartDay = ArrayStartDay[2] + ArrayStartDay[1] + ArrayStartDay[0]; var StopDay = ArrayStopDay[2] + ArrayStopDay[1] + ArrayStopDay[0]; if (StartDay > StopDay) { alert("วันที่ไม่ถูกต้อง"); retval = false; } return retval; }
function copyAddr() { if(document.getElementById("currentChk").value==1) { if(document.myform.currentChk.checked==true) { document.getElementById("sdtCurrentAddr").value = document.getElementById("sdtHomeAddr").value; document.getElementById("dtNameCurrent").value = document.getElementById("dtNameHome").value; document.getElementById("sdtDtIdCurrent").value = document.getElementById("sdtDtIdHome").value; document.getElementById("apNameCurrent").value = document.getElementById("apNameHome").value; document.getElementById("sdtApIdCurrent").value = document.getElementById("sdtApIdHome").value; document.getElementById("prvNameCurrent").value = document.getElementById("prvNameHome").value; document.getElementById("sdtPrvIdCurrent").value = document.getElementById("sdtPrvIdHome").value; document.getElementById("sdtCurrentPostCode").value = document.getElementById("sdtHomePostCode").value; document.getElementById("sdtCurrentPhoneNo").value = document.getElementById("sdtHomePhoneNo").value; } 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(document.getElementById("workChk").value==1) { if(document.myform.workChk.checked==true) { document.getElementById("sdtWorkAddr").value = document.getElementById("sdtHomeAddr").value; document.getElementById("dtNameWork").value = document.getElementById("dtNameHome").value; document.getElementById("sdtDtIdWork").value = document.getElementById("sdtDtIdHome").value; document.getElementById("apNameWork").value = document.getElementById("apNameHome").value; document.getElementById("sdtApIdWork").value = document.getElementById("sdtApIdHome").value; document.getElementById("prvNameWork").value = document.getElementById("prvNameHome").value; document.getElementById("sdtPrvIdWork").value = document.getElementById("sdtPrvIdHome").value; document.getElementById("sdtWorkPostCode").value = document.getElementById("sdtHomePostCode").value; document.getElementById("sdtWorkPhoneNo").value = document.getElementById("sdtHomePhoneNo").value; } 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(document.getElementById("fatherChk").value==1) { if(document.myform.fatherChk.checked==true) { document.getElementById("sdtFatherAddr").value = document.getElementById("sdtHomeAddr").value; document.getElementById("dtNameFather").value = document.getElementById("dtNameHome").value; document.getElementById("sdtDtIdFather").value = document.getElementById("sdtDtIdHome").value; document.getElementById("apNameFather").value = document.getElementById("apNameHome").value; document.getElementById("sdtApIdFather").value = document.getElementById("sdtApIdHome").value; document.getElementById("prvNameFather").value = document.getElementById("prvNameHome").value; document.getElementById("sdtPrvIdFather").value = document.getElementById("sdtPrvIdHome").value; document.getElementById("sdtFatherPostCode").value = document.getElementById("sdtHomePostCode").value; document.getElementById("sdtFatherPhoneNo").value = document.getElementById("sdtHomePhoneNo").value; } 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(document.getElementById("motherChk").value==1) { if(document.myform.motherChk.checked==true) { document.getElementById("sdtMotherAddr").value = document.getElementById("sdtHomeAddr").value; document.getElementById("dtNameMother").value = document.getElementById("dtNameHome").value; document.getElementById("sdtDtIdMother").value = document.getElementById("sdtDtIdHome").value; document.getElementById("apNameMother").value = document.getElementById("apNameHome").value; document.getElementById("sdtApIdMother").value = document.getElementById("sdtApIdHome").value; document.getElementById("prvNameMother").value = document.getElementById("prvNameHome").value; document.getElementById("sdtPrvIdMother").value = document.getElementById("sdtPrvIdHome").value; document.getElementById("sdtMotherPostCode").value = document.getElementById("sdtHomePostCode").value; document.getElementById("sdtMotherPhoneNo").value = document.getElementById("sdtHomePhoneNo").value; } 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(document.getElementById("contactChk").value==1) { if(document.myform.contactChk.checked==true) { document.getElementById("sdtContactAddr").value = document.getElementById("sdtHomeAddr").value; document.getElementById("dtNameContact").value = document.getElementById("dtNameHome").value; document.getElementById("sdtDtIdContact").value = document.getElementById("sdtDtIdHome").value; document.getElementById("apNameContact").value = document.getElementById("apNameHome").value; document.getElementById("sdtApIdContact").value = document.getElementById("sdtApIdHome").value; document.getElementById("prvNameContact").value = document.getElementById("prvNameHome").value; document.getElementById("sdtPrvIdContact").value = document.getElementById("sdtPrvIdHome").value; document.getElementById("sdtContactPostCode").value = document.getElementById("sdtHomePostCode").value; document.getElementById("sdtContactPhoneNo").value = document.getElementById("sdtHomePhoneNo").value; } 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(document.getElementById("graduateChk").value==1) { if(document.myform.graduateChk.checked==true) { document.getElementById("sdtGraduateAddr").value = document.getElementById("sdtHomeAddr").value; document.getElementById("dtNameGraduate").value = document.getElementById("dtNameHome").value; document.getElementById("sdtDtIdGraduate").value = document.getElementById("sdtDtIdHome").value; document.getElementById("apNameGraduate").value = document.getElementById("apNameHome").value; document.getElementById("sdtApIdGraduate").value = document.getElementById("sdtApIdHome").value; document.getElementById("prvNameGraduate").value = document.getElementById("prvNameHome").value; document.getElementById("sdtPrvIdGraduate").value = document.getElementById("sdtPrvIdHome").value; document.getElementById("sdtGraduatePostCode").value = document.getElementById("sdtHomePostCode").value; document.getElementById("sdtGraduatePhoneNo").value = document.getElementById("sdtHomePhoneNo").value; } else { document.getElementById("sdtGraduateAddr").value = ''; document.getElementById("dtNameGraduate").value = ''; document.getElementById("sdtDtIdGraduate").value = ''; document.getElementById("apNameGraduate").value = ''; document.getElementById("sdtApIdGraduate").value = ''; document.getElementById("prvNameGraduate").value = ''; document.getElementById("sdtPrvIdGraduate").value = ''; document.getElementById("sdtGraduatePostCode").value = ''; document.getElementById("sdtGraduatePhoneNo").value = ''; } }
} </script> <script src='<?php //echo base_url()."calendar/calendarDateInput.js";?>' type='text/javascript'></script> <?php $stdMB = (isset($qu_std) && $qu_std!=NULL) ? $qu_std->row() : NULL; $std = (isset($std) && $std!=NULL) ? $std->row() : NULL; $qu_parent = (isset($qu_parent) && $qu_parent!=NULL) ? $qu_parent->row() : NULL; ?> <body onLoad="controlsubmenu('tab5','tabE'); return false;"> <table width="100%" border="0" cellspacing="1" cellpadding="1" align="center"> <tr> <td align="center"> <div id="tabmargin"> <?php echo form_open($this->config->item("rg_folder")."student/std_processBio", array("name" => "myform", "id" => "myform"));?> <div> <table class="tabnav" width="100%" border="0" cellspacing="1" cellpadding="1" align="center"> <tbody><tr> <td height="22" align="center"><font size="2"><a class="n" id="tabE" href="/" onClick="controlsubmenu('tab5','tabE');return false;"><b>แก้ไขข้อมูลแรกเข้า</b></a></font></td> <td align="center"><font size="2"><a class="n" id="tabA" href="/" onClick="controlsubmenu('tab1','tabA');return false;"><b>ข้อมูลส่วนตัว</b></a></font></td> <td align="center"><font size="2"><a class="n" id="tabB" href="/" onClick="controlsubmenu('tab2','tabB');return false;"><b>ข้อมูลการทำกิจกรรม</b></a></font></td> <td align="center"><font size="2"><a class="n" id="tabC" href="/" onClick="controlsubmenu('tab3','tabC');return false;"><b>ข้อมูลการลา/ขาด</b></a></font></td> <td align="center"><font size="2"><a class="n" id="tabD" href="/" onClick="controlsubmenu('tab4','tabD');return false;"><b>ข้อมูลความประพฤติ</b></a></font></td> <td align="center"><font size="2"><a class="n" id="tabF" href="/" onClick="controlsubmenu('tab6','tabF');return false;"><b>ข้อมูลการรับรางวัล</b></a></font></td> </tr></tbody> </table> <input type="text" name="stdId" id="stdId" value="<?php echo setValue('stdId',$stdMB);?>"> <div style="display: block;" class="contentblock" id="tab5"> <table width="100%" border="0" cellspacing="1" cellpadding="1" align="center"> <tr> <td colspan="5"> </td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td width="94" height="22"><font size="2"><b>รหัสนักศึกษา</b></font></td> <td width="164"><font size="2">: <?php echo setValue('stdCode',$stdMB);?></font> <input type="text" name="stdCode" id="stdCode" value="<?php echo setValue('stdCode',$stdMB);?>" /></td> <td width="165"><font size="2"><b>รหัสบัตรประจำตัวประชาชน</b></font></td> <td width="165"><font size="2">: <?php echo setValue('sdtCitizenId',$stdMB);?></font></td> <td width="100" rowspan="7" valign="top"> <?php if(setValue('sdtPicturePath',$stdMB)=='') { ?> <img src="<?php echo base_url().$this->config->item("rg_photo");?>" align="absmiddle" border="1" width="100" height="115"> <?php } else { //not complete echo "<img src=\"".base_url().$this->config->item("rg_photo")."\" width=\"100\" height=\"115\" align=\"absmiddle\" border=\"1\" />"; } ?> </td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td height="22"><font size="2"><b>ชื่อ-นามสกุล</b></font></td> <td><font size="2">: <?php echo setValue('pfName',$stdMB).setValue('stdName',$stdMB).' '.setValue('stdSurname',$stdMB);?></font></td> <td><font size="2"><b>ระดับการศึกษา</b></font></td> <td><font size="2">: <?php echo setValue('elvName',$stdMB);?></font> <input type="text" name="elvId" id="elvId" value="<?php echo setValue('elvId',$stdMB);?>" /></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td height="22"><font size="2"><b>หลักสูตร</b></font></td> <td><font size="2">: <?php echo setValue('curName',$stdMB);?></font> <input type="text" name="stdCurId" id="stdCurId" value="<?php echo setValue('curId',$stdMB);?>" /></td> <td><font size="2"><b>ชั้นปีที่</b></font></td> <td><font size="2">: <?php echo setValue('syCode',$stdMB);?></font> <input type="text" name="stdSyId" id="stdSyId" value="<?php echo setValue('syId',$stdMB);?>" /></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td height="22"><font size="2"><b>สถานะนักศึกษา</b></font></td> <td><font size="2">: <?php echo setValue('sstName',$stdMB);?></font> <input type="text" name="stdSstId" id="stdSstId" value="<?php echo setValue('sstId',$stdMB);?>" /></td> <td><font size="2"><b>ภาค/ปีการศึกษาที่เข้า</b></font></td> <td><font size="2">: <?php echo setValue('tmCode',$stdMB).'/'.setValue('stdAdY',$stdMB).' (รุ่นที่ '.setValue('genNo',$stdMB).')';?></font> <input type="text" name="stdTmIdAdmit" id="stdTmIdAdmit" value="<?php echo setValue('stdTmIdAdmit',$stdMB);?>" /> <input type="text" name="stdGenId" id="stdGenId" value="<?php echo setValue('stdGenId',$stdMB);?>" /> <input type="text" name="stdGenStatus" id="stdGenStatus" value="<?php echo setValue('stdGenStatus',$stdMB);?>" /></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td height="22"><font size="2"><b>GPA</b></font></td> <td><font size="2">: <?php echo number_format(setValue('stdGPA',$stdMB),2);?></font></td> <td><font size="2"><b>เจ้าของทุน</b></font></td> <td><font size="2">: <?php echo setValue('soName',$stdMB);?></font> <input type="text" name="soId" id="soId" value="<?php echo setValue('soId',$stdMB);?>" /></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td height="22"><font size="2"><b>ทุนจังหวัด</b></font></td> <td><font size="2">: <?php echo setValue('prvNameSo',$stdMB);?></font> <input type="text" name="soPrvId" id="soPrvId" value="<?php echo setValue('soPrvId',$stdMB);?>" /></td> <td><font size="2"><b>ประเภททุน</b></font></td> <td><font size="2">:<input type="text" name="etName" id="etName" value="<?php echo setValue('etName',$stdMB);?>" class="input2" readonly size="20" /></font> <input type="text" name="stdEtId" id="stdEtId" value="<?php echo setValue('stdEtId',$stdMB);?>" /> <input type="text" name="stdEt2Id" id="stdEt2Id" value="<?php echo setValue('stdEt2Id',$stdMB);?>" /></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td height="22"><font size="2"><b>คะแนนความประพฤติ</b></font></td> <td colspan="3"><font size="2">: <?php echo setValue('stdTotalPoint',$stdMB);?></font></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td height="22"><font size="2"><b>อาจารย์ประจำชั้น</b></font> <td>:<?php echo isset($rs_ctc) ? $rs_ctc->row()->prsName : '';?></td> <td><font size="2"><b>อาจารย์ที่ปรึกษา</b></font> <td colspan="2">:<?php echo isset($rs_adv) ? $rs_adv->row()->prsName : '';?></td> </tr> </table><br> <table width="100%" border="0" cellspacing="1" cellpadding="1" align="center"> <tr bgcolor="<?php echo $this->config->item("rg_table_color");?>"> <td colspan="6" height="22"><font class="h" color="<?php echo $font_color_table;?>"><b> ข้อมูลประวัติส่วนตัว</b></font></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td height="22"><font size="2"><b>รหัสประจำตัวนักศึกษา</b></font></td> <td><font size="2"><?php echo setValue('stdCode',$stdMB);?></font></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td height="22"><font size="2"><b>เลขที่บัตรประจำตัวประชาชน</b></font></td> <td><font size="2"><?php echo setValue('sdtCitizenId',$stdMB);?></font></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td height="22"><font size="2"><b>ระดับการศึกษา</b></font></td> <td><font size="2"><?php echo setValue('elvName',$stdMB);?></font> </td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>หลักสูตร</b></font></td> <td><font size="2"><?php echo setValue('curName',$stdMB);?></font></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td height="22"><font size="2"><b>ชื่อ-สกุลไทย</b></font></td> <td> <?php echo form_dropdown('stdPfId', $rs_pf, setValue('stdPfId', $std)); ?> <input type="text" name="stdName" id="stdName" value="<?php echo setValue('stdName',$std);?>" size="15" /> <input type="text" name="stdSurname" id="stdSurname" value="<?php echo setValue('stdSurname',$std);?>" size="15" /> <font size="2" color="<?php echo $font_color_err;?>">*</font> <br /><?php echo form_error('stdPfId');?> <?php echo form_error('stdName');?> <?php echo form_error('stdSurname');?></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>ชื่อ-สกุลผู้ปกครอง</b></font></td> <td> <?php echo form_dropdown('sdtPfIdParent', $rs_pf, setValue('sdtPfIdParent', $std)); ?> <input type="text" name="sdtParentName" id="sdtParentName" value="<?php echo setValue('sdtParentName',$std);?>" size="15" /> <input type="text" name="sdtParentSurname" id="sdtParentSurname" value="<?php echo setValue('sdtParentSurname',$std);?>" size="15" /></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td height="22"><font size="2"><b>ความสัมพันธ์กับนักศึกษา</b></font></td> <td><input type="text" name="sdtParentRelationship" id="sdtParentRelationship" value="<?php echo setValue('sdtParentRelationship',$std);?>" /></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>ที่อยู่ผู้ปกครองที่สามารถติดต่อได้</b></font></td> <td><input type="text" name="sdtParentAddr" id="sdtParentAddr" value="<?php echo setValue('sdtParentAddr',$std);?>" size="30" /></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>ตำบล</b></font></td> <td><input type="text" name="dtName" id="dtName" value="<?php echo setValue('dtName',$qu_parent);?>" size="20" class="input2" readonly /> <?php echo anchor_popup($this->config->item("rg_folder")."popup/dtParent_popup", "<img src=\"".base_url().$this->config->item("rg_search")."\" width=\"15\" height=\"19\" align=\"abmiddle\" border=\"0\" />", array("width" => "600", "height" => "350")); ?> <input type="text" name="sdtDtIdParent" id="sdtDtIdParent" value="<?php echo setValue('sdtDtIdParent',$qu_parent);?>" /></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>อำเภอ</b></font></td> <td><input type="text" name="apName" id="apName" value="<?php echo setValue('apName',$qu_parent);?>" size="20" class="input2" readonly /> <input type="text" name="sdtApIdParent" id="sdtApIdParent" value="<?php echo setValue('sdtApIdParent',$qu_parent);?>" /></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>จังหวัด</b></font></td> <td><input type="text" name="prvNameParent" id="prvNameParent" value="<?php echo setValue('prvNameParent',$qu_parent);?>" size="20" class="input2" readonly /> <input type="text" name="sdtPrvIdParent" id="sdtPrvIdParent" value="<?php echo setValue('sdtPrvIdParent',$qu_parent);?>" /></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>รหัสไปรษณีย์</b></font></td> <td><input type="text" name="sdtParentPostCode" id="sdtParentPostCode" value="<?php echo setValue('sdtParentPostCode',$std);?>" size="5" maxlength="5" class="required-int" /> <br /><span class="error" style="display:inline;" /></span><?php echo form_error('sdtParentPostCode');?></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>เบอร์โทรศัพท์บ้าน</b></font></td> <td><input type="text" name="sdtParentPhoneNo" id="sdtParentPhoneNo" value="<?php echo setValue('sdtParentPhoneNo',$std);?>" size="10" maxlength="10" class="required-int" /> <br /><span class="error" style="display:inline;" /></span><?php echo form_error('sdtParentPhoneNo');?></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>เบอร์โทรศัพท์มือถือ</b></font></td> <td><input type="text" name="sdtParentMobileNo" id="sdtParentMobileNo" value="<?php echo setValue('sdtParentMobileNo',$std);?>" size="10" maxlength="10" class="required-int" /> <br /><span class="error" style="display:inline;" /></span><?php echo form_error('sdtParentMobileNo');?></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>อาชีพผู้ปกครอง</b></font></td> <td><input type="text" name="sdtParentOccupation" id="sdtParentOccupation" value="<?php echo setValue('sdtParentOccupation',$std);?>" size="20" /></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>รายได้ผู้ปกครอง</b></font></td> <td><input type="text" name="sdtParentIncome" id="sdtParentIncome" value="<?php echo setValue('sdtParentIncome',$std);?>" size="5" maxlength="6" class="required-int" /><font size="2"> บาท</font> <br /><span class="error" style="display:inline;" /></span><?php echo form_error('sdtParentIncome');?></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>อีเมล์ผู้ปกครอง</b></font></td> <td><input type="text" name="sdtParentEmail" id="sdtParentEmail" value="<?php echo setValue('sdtParentEmail',$std);?>" size="20" /></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>ปีการศึกษาที่เข้า</b></font></td> <td><?php echo setValue('stdAdY',$stdMB);?></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>ภาคการศึกษาที่เข้า</b></font></td> <td><?php echo setValue('tmCode',$stdMB);?></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>วันที่รับเข้า</b></font></td> <td><font size="2"> <?php echo fullDate(splitDateDb2(setValue('stdAdmitDate',$stdMB),"/"));?></font></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>วันที่สิ้นสุดการเป็นนักศึกษา</b></font></td> <td><font size="2"><?php echo splitDateDb2(setValue('stdGraduateDate',$stdMB));?></font></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>ชั้นปีนักศึกษา</b></font></td> <td><font size="2"><?php echo setValue('syCode',$stdMB);?></font></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>สถานะของนักศึกษา</b></font></td> <td><font size="2"><?php echo setValue('sstName',$stdMB);?></font></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>สถานะทางการเงิน</b></font></td> <td><font size="2"><?php echo setValue('fsName',$stdMB);?></font></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>เจ้าของทุน</b></font></td> <td><input type="text" name="soName" id="soName" value="<?php echo setValue('soName',$stdMB);?>" size="30" class="input2" readonly /> <?php echo anchor_popup($this->config->item("rg_folder")."popup/so_popup", "<img src=\"".base_url().$this->config->item("rg_search")."\" width=\"15\" height=\"19\" align=\"abmiddle\" border=\"0\" />", array("width" => "400", "height" => "400")); ?> <font size="2" color="<?php echo $font_color_err;?>">*</font> <br /><?php echo form_error('stdSoId');?></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>จังหวัดเจ้าของทุน</b></font></td> <td><input type="text" name="prvNameSo" id="prvNameSo" value="<?php echo setValue('prvNameSo',$stdMB);?>" size="20" class="input2" readonly /> <input type="text" name="stdSoId" id="stdSoId" value="<?php echo setValue('stdSoId',$stdMB);?>" /></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>ประเภททุน</b></font></td> <td> <?php echo form_dropdown('stdEtId', $rs_et, setValue('stdEtId', $std)); ?> <font size="2" color="<?php echo $font_color_err;?>">*</font> <br /><?php echo form_error('stdEtId');?></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>สถานะ/ตำแหน่งก่อนเข้าเรียน</b></font></td> <td> <?php echo form_dropdown('stdPaId', $rs_pa, setValue('stdPaId', $std)); ?> </td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>สิทธิการเบิกค่าเล่าเรียน</b></font></td> <td><input type="radio" name="sdtCanRefund" id="sdtCanRefund" value="Y" <?php echo ((setValue('sdtCanRefund',$std)!='N') ? "checked" : '');?> />มี <input type="radio" name="sdtCanRefund" id="sdtCanRefund" value="N" <?php echo ((setValue('sdtCanRefund',$std)=='N') ? "checked" : '');?> />ไม่มี</font></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>สิทธิการรักษาพยาบาล</b></font></td> <td> <?php echo form_dropdown('sdtHpId', $rs_hp, setValue('sdtHpId', $std)); ?> </td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>รูปแบบเกรด</b></font></td> <td> <?php echo form_dropdown('stdGtpId', $rs_gtp, setValue('stdGtpId', $std)); ?> <font size="2" color="<?php echo $font_color_err;?>">*</font> <br /><?php echo form_error('stdGtpId');?></td> </tr> </table> </div><br> <div class="contentblock" id="tab1"> <!-- End tab1--> <table width="100%" border="0" cellspacing="1" cellpadding="1" align="center"> <tr> <td colspan="6" height="22"><font class="h" color="<?php echo $font_color_table;?>"><b> ข้อมูลประวัติส่วนตัว</b></font></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>ชื่อ-นามสกุล (อังกฤษ)</b></font></td> <td colspan="5"><input type="text" name="pfNameE" id="pfNameE" value="<?php echo setValue('pfNameE',$std);?>" size="4" class="input2" readonly /> <input type="text" name="stdNameE" id="stdNameE" value="<?php echo setValue('stdNameE',$std);?>" size="15"> <input type="text" name="stdSurnameE" id="stdSurnameE" value="<?php echo setValue('stdSurnameE',$std);?>" size="20"> <font size="2" color="<?php echo $font_color_err;?>">*</font> <br /><?php echo form_error('stdNameE');?> <?php echo form_error('stdSurnameE');?></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>ชื่อเก่านักศึกษา</b></font></td> <td colspan="5"><input type="text" name="sdtOldName" id="stdOldName" value="<?php echo setValue('sdtOldName',$std);?>" size="30" /></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>วุฒิการศึกษาก่อนรับเข้า</b></font></td> <td colspan="5"> <?php echo form_dropdown('sdtEdgIdPre', $rs_edg, setValue('sdtEdgIdPre', $std)); ?> </td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>อีเมล์</b></font></td> <td colspan="5"><input type="text" name="sdtEmail" id="sdtEmail" value="<?php echo setValue('sdtEmail',$std);?>" size="30" /> <font size="2" color="<?php echo $font_color_err;?>">*</font> <br /><?php echo form_error('sdtEmail');?></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>รูปภาพนักศึกษา</b></font></td> <td colspan="5"><input type="file" name="uploadfile" value="<?php //echo $rowSdt->sdtPicturePath;?>"> <input type="text" name="picturePathOld" value="<?php ////echo $oSb->picturePath;?>"> <font size="2" color="<?php echo $font_color_err;?>">* (ขนาดรูปภาพควรมีขนาด 100x115 pixels)</font></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>เพศ</b></font></td> <td><input type="radio" name="sdtSex" id="sdtSex" value="M" <?php echo ((setValue('sdtSex',$std)!='F') ? "checked" : '');?> />ชาย <input type="radio" name="sdtSex" id="sdtSex" value="F" <?php echo ((setValue('sdtSex',$std)=='F') ? "checked" : '');?> />หญิง</font></td> <td><font size="2"><b>หมู่เลือด</b></font></td> <td><input type="text" name="sdtBloodGroup" id="sdtBloodGropu" size="6" maxlength="6" value="<?php echo setValue('sdtBloodGroup',$std);?>" /></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>สัญชาติ</b></font></td> <td> <?php echo form_dropdown('sdtNtId', $rs_nt, setValue('sdtNtId', $std)); ?> </td> <td><font size="2"><b>ศาสนา</b></font></td> <td> <?php echo form_dropdown('sdtRlgId', $rs_rlg, setValue('sdtRlgId', $std)); ?> </td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>วันเกิด</b></font></td> <td><script>DateInput('sdtBirthDate',true,'DD/MM/YYYY','<?php echo isset($stdMB) ? splitDateDb2(setValue("sdtBirthDate",$stdMB),"/") : splitDateDb2(getNowDate(),"/");?>')</script> </td> <td><font size="2"><b>จังหวัดที่เกิด</b></font></td> <td> <?php echo form_dropdown('sdtPrvIdBirth', $rs_prv, setValue('sdtPrvIdBirth',$qu_prvBirth)); ?> </td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>สถานะการสมรส</b></font></td> <td> <?php echo form_dropdown('sdtMsId', $rs_ms, setValue('sdtMsId', $std)); ?> </td> <td><font size="2"><b>น้ำหนัก</b></font></td> <td><input type="text" name="sdtWeight" id="sdtWeight" value="<?php echo setValue('sdtWeight',$std);?>" size="3" maxlength="5" class="required-int" /> <font size="2">กิโลกรัม</font> <br /><span class="error" style="display:inline:"></span></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>สถานะการเกณฑ์ทหาร</b></font></td> <td> <?php if(isset($stdMB) && $stdMB->sdtSex=='F') echo form_dropdown('sdtRtId',$rs_rt,setValue('sdtRtId',$std),'disabled'); else echo form_dropdown('sdtRtId',$rs_rt,setValue('sdtRtId',$std)); ?> </td> <td><font size="2"><b>ส่วนสูง</b></font></td> <td><input type="text" name="sdtHeight" id="sdtHeight" value="<?php echo setValue('sdtHeight',$std);?>" class="required-int" size="3" maxlength="6"> <font size="2">เซนติเมตร</font> <br /><span class="error" style="display:inline:"></span></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>ผลการสอบวิชาชีพ</b></font></td> <td><select name="sdtOccExamResult" id="sdtOccExamResult" <?php if(isset($stdMB) && ($stdMB->stdSstId != 4)) { echo 'disabled'; }?>> <option value="">---เลือกผลการสอบวิชาชีพ---</option> <option value="P" <?php echo ($stdMB->sdtOccExamResult=='P') ? "selected=\"selected\"" : $this->validation->set_select('$stdMB->sdtOccExamResult', 'P');?>>P : ผ่าน</option> <option value="P" <?php echo ($stdMB->sdtOccExamResult=='N') ? "selected=\"selected\"" : $this->validation->set_select('$stdMB->sdtOccExamResult', 'N');?>>N : ไม่ผ่าน</option> </select></td> <td><font size="2"><b>ผลการสอบ Exit-Exam</b></font></td> <td><font size="2"> <?php if(isset($stdMB)) { echo $stdMB->stdExitExam." : "; if($stdMB->stdExitExam=='N') echo "ไม่ผ่าน"; else if($stdMB->stdExitExam=='Y' || $stdMB->stdExitExam=='P') echo "ผ่าน"; else echo "-"; } ?> </font></td> </tr> <tr bgcolor="<?php echo $this->config->item("rg_table_color");?>"> <td colspan="6" height="22"><font class="h" color="<?php echo $font_color_table;?>" size="3"><b> ที่อยู่นักศึกษาตามภูมิลำเนาเดิม</b></font></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>ที่อยู่นักศึกษา (ตามภูมิลำเนา)</b></font></td> <td colspan="4"><textarea name="sdtHomeAddr" id="sdtHomeAddr"value="<?php echo isset($stdMB) ? nl2br(htmlspecialchars(setValue("sdtHomeAddr",$stdMB))) : '';?>" cols="30" rows="3"></textarea></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td height="22"><font size="2"><b>ตำบล</b></font></td> <td><input type="text" name="dtNameHome" id="dtNameHome" size="20" value="<?php echo isset($qu_home) ? setValue('dtName',$qu_home) : '';?>" class="input2" readonly /> <?php echo anchor_popup($this->config->item("rg_folder")."popup/dtHome_popup", "<img src=\"".base_url().$this->config->item("rg_search")."\" widt\"15\" height=\"19\" align=\"abmiddle\" border=\"0\" />", array("width" => "600", "height" => "350")); ?> <input type="text" name="sdtDtIdHome" id="sdtDtIdHome" value="<?php echo isset($qu_home) ? setValue('sdtDtIdHome',$qu_home) : '';?>" /></td> <td><font size="2"><b>อำเภอ</b></font></td> <td><input type="text" name="apNameHome" id="apNameHome" size="20" value="<?php echo isset($qu_home) ? setValue('apName',$qu_home) : '';?>" class="input2" readonly /> <input type="text" name="sdtApIdHome" id="sdtApIdHome" value="<?php echo isset($qu_home) ? setValue('sdtApIdHome',$qu_home) : '';?>" ></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>จังหวัด</b></font></td> <td><input type="text" name="prvNameHome" id="prvNameHome" size="20" value="<?php echo isset($qu_home) ? setValue('prvNameHome',$qu_home) : ''?>" class="input2" readonly /> <input type="text" name="sdtPrvIdHome" id="sdtPrvIdHome" value="<?php echo isset($qu_home) ? setValue('sdtPrvIdHome',$qu_home) : '';?>"></td> <td><font size="2"><b>รหัสไปรษณีย์</b></font></td> <td><input type="text" name="sdtHomePostCode" id="sdtHomePostCode" value="<?php echo isset($stdMB) ? setValue('sdtHomePostCode',$stdMB) : '';?>" onKeyDown="document.myform.sdtHomePostCode.onkeydown=check_number" size="5" maxlength="5"></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><b><font size="2"><b>โทรศัพท์บ้าน</font></b></td> <td colspan="4"><input type="text" name="sdtHomePhoneNo" id="sdtHomePhoneNo" value="<?php echo isset($stdMB) ? setValue('sdtHomePhoneNo',$stdMB) : '';?>" onKeyDown="document.myform.sdtHomePhoneNo.onkeydown=check_number" size="10" maxlength="10"></td> </tr> <tr bgcolor="<?php echo $this->config->item("rg_table_color");?>"> <td colspan="6" height="22"><font color="<?php echo $font_color_table;?>" size="3" class="h"><b> ที่อยู่ปัจจุบันนักศึกษา</b></font> <font color="<?php echo $font_color_table;?>" size="2">** <input type="checkbox" name="currentChk" id="currentChk" value="1" onClick="copyAddr()" />ใช้ที่อยู่ปัจจุบันนักศึกษาตามที่อยู่ภูมิลำเนาเดิมนักศึกษา</font></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>ที่อยู่นักศึกษา (ปัจจุบัน)</b></font></td> <td colspan="4"><textarea name="sdtCurrentAddr" id="sdtCurrentAddr" cols="30" rows="3" value="<?php echo isset($stdMB) ? nl2br(htmlspecialchars(setValue('sdtCurrentAddr',$stdMB))) : '';?>"></textarea></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td height="22"><font size="2"><b>ตำบล</b></font></td> <td><input type="text" name="dtNameCurrent" id="dtNameCurrent" size="20" value="<?php echo isset($qu_current) ? setValue('dtName',$qu_current) : '';?>" class="input2" readonly /> <?php echo anchor_popup($this->config->item("rg_folder")."popup/dtCur_popup", "<img src=\"".base_url().$this->config->item("rg_search")."\" widt\"15\" height=\"19\" align=\"abmiddle\" border=\"0\" />", array("width" => "600", "height" => "350")); ?> <input type="text" name="sdtDtIdCurrent" id="sdtDtIdCurrent" value="<?php echo isset($qu_current) ? setValue('sdtDtIdCurrent',$qu_current) : '';?>"></td> <td><font size="2"><b>อำเภอ</b></font></td> <td><input type="text" name="apNameCurrent" id="apNameCurrent" size="20" value="<?php echo isset($qu_current) ? setValue('apName',$qu_current) : '';?>" class="input2" readonly /> <input type="text" name="sdtApIdCurrent" id="sdtApIdCurrent" value="<?php echo isset($qu_current) ? setValue('sdtApIdCurrent',$qu_current) : '';?>"></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>จังหวัด</b></font></td> <td><input type="text" name="prvNameCurrent" id="prvNameCurrent" size="20" value="<?php echo isset($qu_current) ? setValue('prvNameCurrent',$qu_current) : '';?>" class="input2" readonly /> <input type="text" name="sdtPrvIdCurrent" id="sdtPrvIdCurrent" value="<?php echo isset($qu_current) ? setValue('sdtPrvIdCurrent',$qu_current) : '';?>"></td> <td><font size="2"><b>รหัสไปรษณีย์</b></font></td> <td><input type="text" name="sdtCurrentPostCode" id="sdtCurrentPostCode" value="<?php echo isset($stdMB) ? setValue('sdtCurrentPostCode',$stdMB) : '';?>" onKeyDown="document.myform.sdtCurrentPostCode.onkeydown=check_number" size="5" maxlength="5"></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><b><font size="2">โทรศัพท์บ้าน</font></b></td> <td colspan="4"><input type="text" name="sdtCurrentPhoneNo" id="sdtCurrentPhoneNo" value="<?php echo isset($stdMB) ? setValue('sdtCurrentPhoneNo',$stdMB) : '';?>" onKeyDown="document.myform.sdtCurrentPhoneNo.onkeydown=check_number" size="10" maxlength="10"></td> </tr> <tr bgcolor="<?php echo $this->config->item("rg_table_color");?>"> <td colspan="6" height="22"><font color="<?php echo $font_color_table;?>" size="3" class="h"><b> ที่อยู่ที่ทำงาน (ในกรณีที่ทำงานอยู่)</b></font> <font color="<?php echo $font_color_table;?>" size="2">** <input type="checkbox" name="workChk" id="workChk" value="1" onClick="copyAddr()" />ใช้ที่อยู่ที่ทำงานตามที่อยู่ภูมิลำเนาเดิมนักศึกษา</font></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><b><font size="2">ชื่อบริษัท/ที่ทำงาน</font></b></td> <td colspan="3"><input type="text" name="sdtWorkName" id="sdtWorkName" size="20" value="<?php echo isset($stdMB) ? setValue('sdtWorkName',$stdMB) : '';?>"></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>ที่อยู่ที่ทำงาน (ในกรณีที่ทำงานอยู่)</b></font></td> <td colspan="4"><textarea name="sdtWorkAddr" id="sdtWorkAddr" cols="30" rows="3" value="<?php echo isset($stdMB) ? nl2br(htmlspecialchars(setValue('sdtWorkAddr',$stdMB))) : '';?>"></textarea></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td height="22"><font size="2"><b>ตำบล</b></font></td> <td><input type="text" name="dtNameWork" id="dtNameWork" size="20" value="<?php echo isset($qu_work) ? setValue('dtName',$qu_work) : '';?>" class="input2" readonly /> <?php echo anchor_popup($this->config->item("rg_folder")."popup/dtWork_popup", "<img src=\"".base_url().$this->config->item("rg_search")."\" widt\"15\" height=\"19\" align=\"abmiddle\" border=\"0\" />", array("width" => "600", "height" => "350")); ?> <input type="text" name="sdtDtIdWork" id="sdtDtIdWork" value="<?php echo isset($qu_work) ? setValue('sdtDtIdWork',$qu_work) : '';?>"></td> <td><font size="2"><b>อำเภอ</b></font></td> <td><input type="text" name="apNameWork" id="apNameWork" size="20" value="<?php echo isset($qu_work) ? setValue('apNameWork',$qu_work) : '';?>" class="input2" readonly /> <input type="text" name="sdtApIdWork" id="sdtApIdWork" value="<?php echo isset($qu_work) ? setValue('sdtApIdWork',$qu_work) : '';?>"></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>จังหวัด</b></font></td> <td><input type="text" name="prvNameWork" id="prvNameWork" size="20" value="<?php echo isset($qu_work) ? setValue('prvNameWork',$qu_work) : '';?>" class="input2" readonly /> <input type="text" name="sdtPrvIdWork" id="sdtPrvIdWork" value="<?php echo isset($qu_work) ? setValue('sdtPrvIdWork',$qu_work) : '';?>"></td> <td><font size="2"><b>รหัสไปรษณีย์</b></font></td> <td><input type="text" name="sdtWorkPostCode" id="sdtWorkPostCode" value="<?php echo isset($stdMB) ? setValue('sdtWorkPostCode',$stdMB) : '';?>" onKeyDown="document.myform.sdtWorkPostCode.onkeydown=check_number" size="5" maxlength="5"></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>โทรศัพท์ที่ทำงาน</b></font></td> <td colspan="3"><input type="text" name="sdtWorkPhoneNo" id="sdtWorkPhoneNo" value="<?php echo isset($stdMB) ? setValue('sdtWorkPhoneNo',$stdMB) : '';?>" onKeyDown="document.myform.sdtWorkPhoneNo.onkeydown=check_number" size="10" maxlength="10"></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>สถานะการทำงาน</b></font></td> <td><select name="sdtWorkStatus" id="sdtWorkStatus"> <option value="">---เลือกสถานะการทำงาน---</option> <?php if(isset($stdMB)) { ?> <option value="1" <?php echo ($stdMB->sdtWorkStatus=='1') ? "selected=\"selected\"" : $this->validation->set_select('$stdMB->sdtWorkStatus', '1');?>>กำลังทำงานอยู่</option> <option value="2" <?php echo ($stdMB->sdtWorkStatus=='2') ? "selected=\"selected\"" : $this->validation->set_select('$stdMB->sdtWorkStatus', '2');?>>ลาศึกษาต่อ</option> <option value="3" <?php echo ($stdMB->sdtWorkStatus=='3') ? "selected=\"selected\"" : $this->validation->set_select('$stdMB->sdtWorkStatus', '3');?>>ลาออก</option> <?php } ?> </select></td> <td><font size="2"><b>ตำแหน่งงาน</b></font></td> <td><input type="text" name="sdtWorkPosition" id="sdtWorkPosition" size="20" value="<?php echo isset($stdMB) ? setValue('sdtWorkPosition',$stdMB) : '';?>"></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>เงินเดือน</b></font></td> <td colspan="3"><input type="text" name="sdtWorkSalary" id="sdtWorkSalary" size="8" onKeyDown="document.myform.sdtWorkSalary.onkeydown=check_number" value="<?php echo isset($stdMB) ? setValue('sdtWorkSalary',$stdMB) : '';?>"></td> </tr> <tr bgcolor="<?php echo $this->config->item("rg_table_color");?>"> <td colspan="6" height="22"><font color="<?php echo $font_color_table;?>" size="3" class="h"><b> ข้อมูลบิดา-มารดา</b></font> <font color="<?php echo $font_color_table;?>" size="2">** <input type="checkbox" name="fatherChk" id="fatherChk" value="1" onClick="copyAddr()" />ใช้ที่อยู่บิดาตามที่อยู่ภูมิลำเนาเดิมนักศึกษา <input type="checkbox" name="motherChk" id="motherChk" value="1" onClick="copyAddr()" />ใช้ที่อยู่มารดาตามที่อยู่ภูมิลำเนาเดิมนักศึกษา</font></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><b><font size="2">ชื่อ-นามสกุลบิดา</font></b></td> <td colspan="4"><input type="text" name="sdtFatherName" id="sdtFatherName" size="20" value="<?php echo isset($stdMB) ? setValue('sdtFatherName',$stdMB) : '';?>"> <input type="text" name="sdtFatherSurname" id="sdtFatherSurname" size="20" value="<?php echo isset($stdMB) ? setValue('sdtFatherSurname',$stdMB) : '';?>"></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>ที่อยู่บิดา</b></font></td> <td colspan="4"><textarea name="sdtFatherAddr" id="sdtFatherAddr" cols="30" rows="3" value="<?php echo isset($stdMB) ? nl2br(htmlspecialchars(setValue('sdtFatherAddr',$stdMB))) : '';?>"></textarea></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td height="22"><font size="2"><b>ตำบล</b></font></td> <td><input type="text" name="dtNameFather" id="dtNameFather" size="20" value="<?php echo isset($qu_father) ? setValue('dtName',$qu_father) : '';?>" class="input2" readonly /> <?php echo anchor_popup($this->config->item("rg_folder")."popup/dtFather_popup", "<img src=\"".base_url().$this->config->item("rg_search")."\" widt\"15\" height=\"19\" align=\"abmiddle\" border=\"0\" />", array("width" => "600", "height" => "350")); ?> <input type="text" name="sdtDtIdFather" id="sdtDtIdFather" value="<?php echo isset($qu_father) ? setValue('sdtDtIdFather',$qu_father) : '';?>"></td> <td><font size="2"><b>อำเภอ</b></font></td> <td><input type="text" name="apNameFather" id="apNameFather" size="20" value="<?php echo isset($qu_father) ? setValue('apName',$qu_father) : '';?>" class="input2" readonly /> <input type="text" name="sdtApIdFather" id="sdtApIdFather" value="<?php echo isset($qu_father) ? setValue('sdtApIdFather',$qu_father) : '';?>" /></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>จังหวัด</b></font></td> <td><input type="text" name="prvNameFather" id="prvNameFather" size="20" value="<?php echo isset($qu_father) ? setValue('prvNameFather',$qu_father) : '';?>" class="input2" readonly /> <input type="text" name="sdtPrvIdFather" id="sdtPrvIdFather" value="<?php echo isset($qu_father) ? setValue('sdtPrvIdFather',$qu_father) : '';?>" /></td> <td><font size="2"><b>รหัสไปรษณีย์</b></font></td> <td><input type="text" name="sdtFatherPostCode" id="sdtFatherPostCode" value="<?php echo isset($stdMB) ? setValue('sdtFatherPostCode',$stdMB) : '';?>" onKeyDown="document.myform.sdtFatherPostCode.onkeydown=check_number" size="5" maxlength="5" /></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><b><font size="2">โทรศัพท์บ้าน</font></b></td> <td><input type="text" name="sdtFatherPhoneNo" id="sdtFatherPhoneNo" value="<?php echo isset($stdMB) ? setValue('sdtFatherPhoneNo',$stdMB) : '';?>" onKeyDown="document.myform.sdtFatherPhoneNo.onkeydown=check_number" size="10" maxlength="10"></td> <td><b><font size="2">อาชีพ</font></b></td> <td><input type="text" name="sdtFatherOccupation" id="sdtFatherOccupation" size="20" value="<?php echo isset($stdMB) ? setValue('sdtFatherOccupation',$stdMB) : '';?>"></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>สถานภาพบิดา</b></font></td> <td colspan="4"><select name="sdtFatherStatus" id="sdtFatherStatus"> <?php if(isset($stdMB)) { ?> <option value="">---เลือกสถานะการทำงาน---</option> <option value="1" <?php echo ($stdMB->sdtFatherStatus=='1') ? "selected=\"selected\"" : $this->validation->set_select('$stdMB->sdtFatherStatus', '1');?>>ยังมีชีวิตอยู่</option> <option value="2" <?php echo ($stdMB->sdtFatherStatus=='2') ? "selected=\"selected\"" : $this->validation->set_select('$stdMB->sdtFatherStatus', '2');?>>หย่าร้าง</option> <option value="3" <?php echo ($stdMB->sdtFatherStatus=='3') ? "selected=\"selected\"" : $this->validation->set_select('$stdMB->sdtFatherStatus', '3');?>>ตาย</option> <?php } ?> </select></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><b><font size="2">ชื่อ-นามสกุลมารดา</font></b></td> <td colspan="4"><input type="text" name="sdtMotherName" id="sdtMotherName" size="20" value="<?php echo isset($stdMB) ? setValue('sdtMotherName',$stdMB) : '';?>"> <input type="text" name="sdtMotherSurname" id="sdtMotherSurname" size="20" value="<?php echo isset($stdMB) ? setValue('sdtMotherSurname',$stdMB) : '';?>"></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>ที่อยู่มารดา</b></font></td> <td colspan="4"><textarea name="sdtMotherAddr" id="sdtMotherAddr" cols="30" rows="3" value="<?php echo isset($stdMB) ? nl2br(htmlspecialchars(setValue('sdtMotherAddr',$stdMB))) : '';?>"></textarea></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td height="22"><font size="2"><b>ตำบล</b></font></td> <td><input type="text" name="dtNameMother" id="dtNameMother" size="20" value="<?php echo isset($qu_mother) ? setValue('dtName',$qu_mother) : '';?>" class="input2" readonly /> <?php echo anchor_popup($this->config->item("rg_folder")."popup/dtMother_popup", "<img src=\"".base_url().$this->config->item("rg_search")."\" widt\"15\" height=\"19\" align=\"abmiddle\" border=\"0\" />", array("width" => "600", "height" => "350")); ?> <input type="text" name="sdtDtIdMother" id="sdtDtIdMother" value="<?php echo isset($qu_mother) ? setValue('sdtDtIdMother',$qu_mother) : '';?>"></td> <td><font size="2"><b>อำเภอ</b></font></td> <td><input type="text" name="apNameMother" id="apNameMother" size="20" value="<?php echo isset($qu_mother) ? setValue('apName',$qu_mother) : '';?>" class="input2" readonly /> <input type="text" name="sdtApIdMother" id="sdtApIdMother" value="<?php echo isset($qu_mother) ? setValue('sdtApIdMother',$qu_mother) : '';?>"></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>จังหวัด</b></font></td> <td><input type="text" name="prvNameMother" id="prvNameMother" size="20" value="<?php echo isset($qu_mother) ? setValue('prvNameMother',$qu_mother) : '';?>" class="input2" readonly /> <input type="text" name="sdtPrvIdMother" id="sdtPrvIdMother" value="<?php echo isset($qu_mother) ? setValue('sdtPrvIdMother',$qu_mother) : '';?>"></td> <td><font size="2"><b>รหัสไปรษณีย์</b></font></td> <td><input type="text" name="sdtMotherPostCode" id="sdtMotherPostCode" value="<?php echo isset($stdMB) ? setValue('sdtMotherPostCode',$stdMB) : '';?>" onKeyDown="document.myform.sdtMotherPostCode.onkeydown=check_number" size="5" maxlength="5" /></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><b><font size="2">โทรศัพท์บ้าน</font></b></td> <td><input type="text" name="sdtMotherPhoneNo" id="sdtMotherPhoneNo" value="<?php echo isset($stdMB) ? setValue('sdtMotherPhoneNo',$stdMB) : '';?>" onKeyDown="document.myform.sdtMotherPhoneNo.onkeydown=check_number" size="10" maxlength="10" /></td> <td><b><font size="2">อาชีพ</font></b></td> <td><input type="text" name="sdtMotherOccupation" id="sdtMotherOccupation" size="20" value="<?php echo isset($stdMB) ? setValue('sdtMotherPhoneNo',$stdMB) : '';?>"></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>สถานภาพมารดา</b></font></td> <td colspan="4"><select name="sdtMotherStatus" id="sdtMotherStatus"> <?php if(isset($stdMB)) { ?> <option value="">---เลือกสถานะการทำงาน---</option> <option value="1" <?php echo ($stdMB->sdtFatherStatus=='1') ? "selected=\"selected\"" : $this->validation->set_select('$stdMB->sdtFatherStatus', '1');?>>ยังมีชีวิตอยู่</option> <option value="2" <?php echo ($stdMB->sdtFatherStatus=='2') ? "selected=\"selected\"" : $this->validation->set_select('$stdMB->sdtFatherStatus', '2');?>>หย่าร้าง</option> <option value="3" <?php echo ($stdMB->sdtFatherStatus=='3') ? "selected=\"selected\"" : $this->validation->set_select('$stdMB->sdtFatherStatus', '3');?>>ตาย</option> <?php } ?> </select></td> </tr> <tr bgcolor="<?php echo $this->config->item("rg_table_color");?>"> <td colspan="6" height="22"><font color="<?php echo $font_color_table;?>" size="3" class="h"><b> ข้อมูลผู้ที่สามารถติดต่อได้</b></font> <font color="<?php echo $font_color_table;?>" size="2">** <input type="checkbox" name="contactChk" id="contactChk" value="1" onClick="copyAddr()" />ใช้ที่อยู่ผู้ที่สามารถติดต่อได้ตามที่อยู่ภูมิลำเนาเดิมนักศึกษา</font></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><b><font size="2">ชื่อผู้ที่สามารถติดต่อได้</font></b></td> <td colspan="3"><input type="text" name="sdtContactName" id="sdtContactName" size="20" value="<?php echo isset($stdMB) ? setValue('sdtContactName',$stdMB) : '';?>"></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>ที่อยู่ผู้ที่สามารถติตต่อได้</b></font></td> <td colspan="4"><textarea name="sdtContactAddr" id="sdtContactAddr" cols="30" rows="3" value="<?php isset($stdMB) ? nl2br(htmlspecialchars(setValue('sdtContactName',$stdMB))) : '';?>" /></textarea></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td height="22"><font size="2"><b>ตำบล</b></font></td> <td><input type="text" name="dtNameContact" id="dtNameContact" size="20" value="<?php echo isset($qu_contact) ? setValue('dtName',$qu_contact) : '';?>" class="input2" readonly /> <?php echo anchor_popup($this->config->item("rg_folder")."popup/dtContact_popup", "<img src=\"".base_url().$this->config->item("rg_search")."\" widt\"15\" height=\"19\" align=\"abmiddle\" border=\"0\" />", array("width" => "600", "height" => "350")); ?> <input type="text" name="sdtDtIdContact" id="sdtDtIdContact" value="<?php echo isset($qu_contact) ? setValue('sdtDtIdContact',$qu_contact) : '';?>"></td> <td><font size="2"><b>อำเภอ</b></font></td> <td><input type="text" name="apNameContact" id="apNameContact" size="20" value="<?php echo isset($qu_contact) ? setValue('apName',$qu_contact) : '';?>" class="input2" readonly /> <input type="text" name="sdtApIdContact" id="sdtApIdContact" value="<?php echo isset($qu_contact) ? setValue('sdtApIdContact',$qu_contact) : '';?>"></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>จังหวัด</b></font></td> <td><input type="text" name="prvNameContact" id="prvNameContact" size="20" value="<?php echo isset($qu_contact) ? setValue('prvName',$qu_contact) : '';?>" class="input2" readonly /> <input type="text" name="sdtPrvIdContact" id="sdtPrvIdContact" value="<?php echo isset($qu_contact) ? setValue('sdtPrvIdContact',$qu_contact) : '';?>"></td> <td><font size="2"><b>รหัสไปรษณีย์</b></font></td> <td><input type="text" name="sdtContactPostCode" id="sdtContactPostCode" value="<?php echo isset($stdMB) ? setValue('sdtContactPostCode',$stdMB) : '';?>" onKeyDown="document.myform.sdtContactPostCode.onkeydown=check_number" size="5" maxlength="5" /></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><b><font size="2">โทรศัพท์บ้าน</font></b></td> <td colspan="3"><input type="text" name="sdtContactPhoneNo" id="sdtContactPhoneNo" value="<?php echo isset($stdMB) ? setValue('sdtContactPhoneNo',$stdMB) : '';?>" onKeyDown="document.myform.sdtContactPhoneNo.onkeydown=check_number" size="10" maxlength="10" /></td> </tr> <tr bgcolor="<?php echo $this->config->item("rg_table_color");?>"> <td colspan="6" height="22"><font color="<?php echo $font_color_table;?>" size="3" class="h"><b> ข้อมูลที่อยู่นักศึกษาหลังจากเรียนจบแล้ว</b></font> <font color="<?php echo $font_color_table;?>" size="2">** <input type="checkbox" name="graduateChk" id="graduateChk" value="1" onClick="copyAddr()" />ใช้ที่อยู่นักศึกษาหลังจากจบการศึกษาแล้วตามที่อยู่ภูมิลำเนาเดิมนักศึกษา</font></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>ที่อยู่นักศึกษา (หลังจากเรียนจบแล้ว)</b></font></td> <td colspan="4"><textarea name="sdtGraduateAddr" id="sdtGraduateAddr" cols="30" rows="3" value="<?php echo isset($stdMB) ? nl2br(htmlspecialchars(setValue('sdtGraduateAddr',$stdMB))) : '';?>"></textarea></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td height="22"><font size="2"><b>ตำบล</b></font></td> <td><input type="text" name="dtNameGraduate" id="dtNameGraduate" size="20" value="<?php echo isset($qu_graduate) ? setValue('dtName',$qu_graduate) : '';?>" class="input2" readonly /> <?php echo anchor_popup($this->config->item("rg_folder")."popup/dtGraduate_popup", "<img src=\"".base_url().$this->config->item("rg_search")."\" widt\"15\" height=\"19\" align=\"abmiddle\" border=\"0\" />", array("width" => "600", "height" => "350")); ?> <input type="text" name="sdtDtIdGraduate" id="sdtDtIdGraduate" value="<?php echo isset($qu_graduate) ? setValue('sdtDtIdGraduate',$qu_graduate) : '';?>"></td> <td><font size="2"><b>อำเภอ</b></font></td> <td><input type="text" name="apNameGraduate" id="apNameGraduate" size="20" value="<?php echo isset($qu_graduate) ? setValue('apName',$qu_graduate) : '';?>" class="input2" readonly /> <input type="text" name="sdtApIdGraduate" id="sdtApIdGraduate" value="<?php echo isset($qu_graduate) ? setValue('sdtApIdGraduate',$qu_graduate) : '';?>"></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><font size="2"><b>จังหวัด</b></font></td> <td><input type="text" name="prvNameGraduate" id="prvNameGraduate" size="20" value="<?php echo isset($qu_graduate) ? setValue('prvName',$qu_graduate) : '';?>" class="input2" readonly /> <input type="text" name="sdtPrvIdGraduate" id="sdtPrvIdGraduate" value="<?php echo isset($qu_graduate) ? setValue('sdtPrvIdGraduate',$qu_graduate) : '';?>"></td> <td><font size="2"><b>รหัสไปรษณีย์</b></font></td> <td><input type="text" name="sdtGraduatePostCode" id="sdtGraduatePostCode" value="<?php echo isset($stdMB) ? setValue('sdtGraduatePostCode',$stdMB) : '';?>" onKeyDown="document.myform.sdtGraduatePostCode.onkeydown=check_number" size="5" maxlength="5" /></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><b><font size="2">โทรศัพท์บ้าน</font></b></td> <td colspan="4"><input type="text" name="sdtGraduatePhoneNo" id="sdtGraduatePhoneNo" value="<?php echo isset($stdMB) ? setValue('sdtGraduatePhoneNo',$stdMB) : '';?>" onKeyDown="document.myform.sdtGraduatePhoneNo.onkeydown=check_number" size="10" maxlength="10" /></td> </tr> </table></div> <div class="contentblock" id="tab2">
<!-- End tab2-->
<table width="100%" border="0" border="0" cellspacing="1" cellpadding="1" align="center"> <tr> <td colspan="6"> </td> </tr> <tr bgcolor="<?php echo $this->config->item("rg_table_color");?>"> <td width="20%" height="22" align="center"><font color="<?php echo $font_color_table;?>" size="2"><b>ปีการศึกษา/<br>ภาคเรียน/ชั้นปี</b></font></td> <td width="29%" align="center"><font color="<?php echo $font_color_table;?>" size="2"><b>ชื่อกิจกรรม/โครงการ</b></font></td> <td width="13%" align="center"><font color="<?php echo $font_color_table;?>" size="2"><b>วันที่เข้าร่วม</b></font></td> <td width="13%" align="center"><font color="<?php echo $font_color_table;?>" size="2"><b>วันที่สิ้นสุด</b></font></td> <td width="20%" align="center"><font color="<?php echo $font_color_table;?>" size="2"><b>การเข้าร่วม<br>ในกิจกรรม</b></font></td> <td width="5%" align="center"><font color="<?php echo $font_color_table;?>" size="2"><b>ลบ</b></font></td> </tr> <?php $sac_i = 0; if(isset($rs_sac) && $rs_sac->num_rows()) { foreach($rs_sac->result() as $rowSac) { if(($sac_i%2) == 0) echo "<tr bgcolor=\"".$this->config->item("rg_mouseout")."\" onmouseover=\"bgColor='".$this->config->item("rg_mouseover")."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">"; else echo "<tr bgcolor=\"".$tr_color_even."\" onmouseover=\"bgColor='".$this->config->item("rg_mouseover")."'\" onmouseout=\"bgColor='".$tr_color_even."'\">"; ?> <td height="22" align="center"><font size="2"><?php echo $rowSac->sacAcY.'/'.$rowSac->tmCode.'/'.$rowSac->syCode;?></font></td> <td><font size="2"><?php echo $rowSac->sacName;?></font></td> <td align="center"><font size="2"><?php echo fullDate(splitDateDb2($rowSac->sacFrDate,'/'));?></font></td> <td align="center"><font size="2"><?php echo fullDate(splitDateDb2($rowSac->sacToDate));?></font></td> <td><font size="2"><?php echo $rowSac->sacPosition;?></font></td> <td align="center"> <?php //$lnk = anchor($this->config->item("rg_folder")."student/std_delete_sac/$row->sacSeq/$row->sacStdId/$rowStd->stdId", "<img src=\"".base_url().$this->config->item("rg_delete")."\" width=\"16\" height=\"19\" align=\"absmiddle\" border=\"0\" onClick=\"return confirmDelete()\" />"); //echo $lnk; ?> </td> </tr> <?php $sac_i++; } } else { ?> <tr> <td colspan="6" align="center" height="22"><font color="<?php echo $font_color_err;?>" size="2">** ไม่ปรากฎรายการข้อมูลการทำกิจกรรมในฐานข้อมูล **</font></td> </tr> <?php } ?> <tr bgcolor="<?php echo $tr_color_even;?>"> <td><input type="text" name="sacAcY" id="sacAcY" value="<?php echo set_value('sacAcY',$acY);?>" size="3" maxlength="4" onKeyDown="document.myform.sacAcY.onkeydown=check_number" />/ <?php echo form_dropdown('sacTmId',$rs_tm,setValue('sacTmId',$rs_tm)); echo "/".form_dropdown('sacSyId', $rs_sy, setValue('sacSyId', $rs_sy)); ?> <font color="<?php echo $font_color_err;?>" size="2">*</font></td> <td><input type="text" name="sacName" id="sacName" size="15" value="<?php echo set_value('sacName');?>"> <font color="<?php echo $font_color_err;?>" size="2">*</font></td> <td align="center"> <!-- <script>DateInput('sacFrDate', true, 'DD/MM/YYYY', '<?php echo set_value("sacFrDate",getNowDateFw2());?>');</script> --></td> <td align="center"><!-- <script>DateInput('sacToDate', true, 'DD/MM/YYYY','<?php echo set_value("sacToDate",getNowDateFw2());?>');</script> --></td> <td><input type="text" name="sacPosition" id="sacPosition" size="10" value="<?php echo set_value('sacPosition');;?>"> <font color="<?php echo $font_color_err;?>" size="2">*</font></td> <td align="center">-</td> </tr> <tr> <td colspan="6" align="right"><font size="2">รวม <?php echo $sac_i;?> รายการ</font></td> </tr> </table></div>
<!-- End tab3-->
<div class="contentblock" id="tab3"> <table width="100%" border="0" border="0" cellspacing="1" cellpadding="1" align="center"> <tr> <td colspan="6"> </td> </tr> <tr bgcolor="<?php echo $this->config->item("rg_table_color");?>"> <td width="10%" height="22" align="center"><font color="<?php echo $font_color_table;?>" size="2"><b>ลำดับที่</b></font></td> <td width="15%" align="center"><font color="<?php echo $font_color_table;?>" size="2"><b>วันที่เริ่ม</b></font></td> <td width="15%" align="center"><font color="<?php echo $font_color_table;?>" size="2"><b>วันที่สิ้นสุด</b></font></td> <td width="25%" align="center"><font color="<?php echo $font_color_table;?>" size="2"><b>ปีการศึกษา/ชั้นปี</b></font></td> <td width="30%" align="center"><font color="<?php echo $font_color_table;?>" size="2"><b>ประเภทการลา/ขาด</b></font></td> <td width="5%" align="center"><font color="<?php echo $font_color_table;?>" size="2"><b>ลบ</b></font></td> </tr> <?php $sab_i = 0; if(isset($rs_sab) && $rs_sab->num_rows()) { foreach($rs_sac->result() as $rowSab) { if(($sab_i%2) == 0) echo "<tr bgcolor=\"".$this->config->item("rg_mouseout")."\" onmouseover=\"bgColor='".$this->config->item("rg_mouseover")."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">"; else echo "<tr bgcolor=\"".$tr_color_even."\" onmouseover=\"bgColor='".$this->config->item("rg_mouseover")."'\" onmouseout=\"bgColor='".$tr_color_even."'\">"; ?> <td height="22" align="center"><font size="2"><?php echo $sab_i+1;?></font></td> <td align="center"><font size="2"><?php echo $rowSab->sabFrDate;//echo abbreDate2($row->sabFrDate);?></font></td> <td align="center"><font size="2"><?php echo $rowSab->sabToDate;//echo abbreDate2($row->sabToDate);?></font></td> <td align="center"><font size="2"><?php echo $rowSab->sabAcY.'/'.$rowSab->syCode;//echo $row->sabAcY.'/'.$row->sabSyId;?></font></td> <td><font size="2"> <?php if($rowSab->sabCause == 1) echo 'ลาป่วย'; else if($rowSab->sabCause == 2) echo 'ลากิจ'; else if($rowSab->sabCause == 3) echo 'ขาดเรียน'; ?> </font></td> <td align="center"> <?php //$lnk = anchor($this->config->item("rg_folder")."student/std_delete_sab/$row->sabSeq/$row->sabStdId/$rowStd->stdId", "<img src=\"".base_url().$this->config->item("rg_delete")."\" width=\"16\" height=\"19\" align=\"absmiddle\" border=\"0\" onClick=\"return confirmDelete()\" />"); //echo $lnk; ?> </td> </tr> <?php $sab_i++; } } else { ?> <tr> <td colspan="6" align="center" height="22"><font color="<?php echo $font_color_err;?>" size="2">** ไม่ปรากฎรายการข้อมูลการลา/ขาดในฐานข้อมูล **</font></td> </tr> <?php } ?> <tr bgcolor="<?php echo $tr_color_even;?>"> <td align="center"><font size="2"><?php echo $sab_i+1;?></font></td> <td align="center"><script>DateInput('sabFrDate', true, 'DD/MM/YYYY','<?php echo getNowDateFw2(),"/";?>');</script></td> <td align="center"><script>DateInput('sabToDate', true, 'DD/MM/YYYY','<?php //echo getNowDateFw2();?>');</script></td> <td align="center"><input type="text" name="sabAcY" id="sabAcY" value="<?php echo set_value('sabAcY',$acY);?>" size="4" maxlength="4" onKeyDown="document.myform.sabAcY.onkeydown=check_number">/ <?php echo form_dropdown('sabSyId', $rs_sy, setValue('sabSyId', $rs_sy)); ?> <font color="<?php echo $font_color_err;?>">*</td> <td><select name="sabCause" id="sabCause"> <option value="">-เลือกประเภทการลา/ขาด-</option> <option value="1" <?php //echo ($sabCause == '1') ? "selected=\"selected\"" : $this->validation->set_select('sabCause', '1');?>>ลาป่วย</option> <option value="2" <?php //echo ($sabCause == '2') ? "selected=\"selected\"" : $this->validation->set_select('sabCause', '2');?>>ลากิจ</option> <option value="3" <?php //echo ($sabCause == '3') ? "selected=\"selected\"" : $this->validation->set_select('sabCause', '3');?>>ขาดเรียน</option> </select> <font color="<?php echo $font_color_err;?>" size="2">*</font></td> <td align="center">-</td> </tr> <tr> <td colspan="6" align="right"><font size="2">รวม <?php echo $sab_i;?> รายการ</font></td> </tr> </table></div> <div class="contentblock" id="tab4">
<!-- End tab4-->
<table width="100%" border="0" border="0" cellspacing="1" cellpadding="1" align="center"> <tr> <td colspan="6"> </td> </tr> <tr bgcolor="<?php echo $this->config->item("rg_table_color");?>"> <td height="22" align="center"><font color="<?php echo $font_color_table;?>" size="2"><b>วันที่เกิดเหตุการณ์</b></font></td> <td align="center"><font color="<?php echo $font_color_table;?>" size="2"><b>ปี/ภาคการศึกษา</b></font></td> <td align="center"><font color="<?php echo $font_color_table;?>" size="2"><b>รายละเอียด</b></font></td> <td align="center"><font color="<?php echo $font_color_table;?>" size="2"><b>ระดับคะแนน</b></font></td> <td align="center"><font color="<?php echo $font_color_table;?>" size="2"><b>คะแนน<br>ที่ตัด</b></font></td> <td align="center"><font color="<?php echo $font_color_table;?>" size="2"><b>วันที่อนุมัติ</b></font></td> <td align="center"><font color="<?php echo $font_color_table;?>" size="2"><b>ลบ</b></font></td> </tr> <?php $sbe_i = 0; if(isset($rs_sbe) && $rs_sbe->num_rows()) { foreach($rs_sac->result() as $rowSbe) { if(($sbe_i%2) == 0) echo "<tr bgcolor=\"".$this->config->item("rg_mouseout")."\" onmouseover=\"bgColor='".$this->config->item("rg_mouseover")."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">"; else echo "<tr bgcolor=\"".$tr_color_even."\" onmouseover=\"bgColor='".$this->config->item("rg_mouseover")."'\" onmouseout=\"bgColor='".$tr_color_even."'\">"; ?> <td height="22" align="center"><font size="2"><?php //echo abbreDate2($row->sbeRecordDate);?></font></td> <td align="center"><font size="2"><?php //echo $row->sbeAcY.'/'.$row->sbeTmId;?></font></td> <td><font size="2"><?php //echo $row->sbeDescription;?></font></td> <td><font size="2"><?php //echo setValue('dcpLevelNo', $rowDcp).' : '.setValue('dcpName', $rowDcp);?></font></td> <td align="right"><font size="2"><?php //echo $row->sbeCutPoint;?></font></td> <td align="center"><font size="2"><?php //echo abbreDate2($row->sbeApproveDate);?></font></td> <td align="center"> <?php //$lnk = anchor($this->config->item("rg_folder")."student/std_delete_sbe/$row->sbeSeq/$row->sbeStdId/$rowStd->stdId", "<img src=\"".base_url().$this->config->item("rg_delete")."\" width=\"16\" height=\"19\" align=\"absmiddle\" border=\"0\" onClick=\"return confirmDelete()\" />"); //echo $lnk; ?> </td> </tr> <?php $sbe_i++; } } else { ?> <tr> <td colspan="7" align="center" height="22"><font color="<?php echo $font_color_err;?>" size="2">** ไม่ปรากฎรายการข้อมูลความประพฤติในฐานข้อมูล **</font></td> </tr> <?php } ?> <tr bgcolor="<?php echo $tr_color_even;?>"> <td align="center"><script>DateInput('sbeRecordDate', true, 'DD/MM/YYYY','<?php echo set_value("sbeRecordDate",getNowDateFw2());?>');</script></td> <td align="center"><input type="text" name="sbeAcY" id="sbeAcY" value="<?php echo set_value('sbeAcY',$acY);?>" size="3" maxlength="4" onKeyDown="document.myform.sbeAcY.onkeydown=check_number" />/ <?php echo form_dropdown('sbeTmId',$rs_tm,setValue('sbeTmId',$rs_tm));
?> <font color="<?php echo $font_color_err;?>" size="2">*</font></td> <td><input type="text" name="sbeDescription" id="sbeDescription" size="6" value="<?php echo set_value('sbeDescription');?>" /> <font color="<?php echo $font_color_err;?>" size="2">*</font></td> <td><input type="text" name="dcpName" id="dcpName" class="input1" size="6" readonly /> <?php echo anchor_popup($this->config->item("rg_folder")."popup/dcp_popup", "<img src=\"".base_url().$this->config->item("rg_search")."\" widt\"15\" height=\"19\" align=\"abmiddle\" border=\"0\" />", array("width" => "500", "height" => "300")); ?> <font color="<?php echo $font_color_err;?>" size="2">*</font> <input type="text" name="sbeDcpId" id="sbeDcpId"></td> <td><input type="text" name="sbeCutPoint" id="sbeCutPoint" value="<?php echo set_value('sbeCurPoint');?>" size="1" class="input2" readonly /></td> <td align="center"><script>DateInput('sbeApproveDate', true, 'DD/MM/YYYY','<?php echo set_value("sbeApproveDate",getNowDateFw2());?>');</script></td> <td align="center">-</td> </tr> <tr> <td colspan="7" align="right"><font size="2">รวม <?php echo $sbe_i;?> รายการ</font></td> </tr> </table></div>
<!-- End tab5-->
<div class="contentblock" id="tab6"> <table width="100%" border="0" border="0" cellspacing="1" cellpadding="1" align="center"> <tr> <td colspan="6"> </td> </tr> <tr bgcolor="<?php echo $this->config->item("rg_table_color");?>"> <td height="22" align="center"><font color="<?php echo $font_color_table;?>" size="2"><b>ที่</b></font></td> <td align="center"><font color="<?php echo $font_color_table;?>" size="2"><b>วันที่รับรางวัล</b></font></td> <td align="center"><font color="<?php echo $font_color_table;?>" size="2"><b>รางวัล</b></font></td> <td align="center"><font color="<?php echo $font_color_table;?>" size="2"><b>รายละเอียด</b></font></td> <td align="center"><font color="<?php echo $font_color_table;?>" size="2"><b>ลบ</b></font></td> </tr> <?php $srw_i = 0; if(isset($rs_srw) && $rs_srw->num_rows()) { foreach($rs_srw->result() as $rowSrw) { if(($srw_i%2) == 0) echo "<tr bgcolor=\"".$this->config->item("rg_mouseout")."\" onmouseover=\"bgColor='".$this->config->item("rg_mouseover")."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">"; else echo "<tr bgcolor=\"".$tr_color_even."\" onmouseover=\"bgColor='".$this->config->item("rg_mouseover")."'\" onmouseout=\"bgColor='".$tr_color_even."'\">"; ?> <td height="22" align="center"><font size="2"><?php echo $srw_i+1;?></font></td> <td align="center"><font size="2"><?php //echo abbreDate2($row->srwReceiveDate);?></font></td> <td><font size="2"><?php //echo $row->srwRewardName;?></font></td> <td><font size="2"><?php //echo $row->srwDescription;?></font></td> <td align="center"> <?php //$lnk = anchor($this->config->item("rg_folder")."student/std_delete_srw/$row->srwSeq/$row->srwStdId/$rowStd->stdId", "<img src=\"".base_url().$this->config->item("rg_delete")."\" width=\"16\" height=\"19\" align=\"absmiddle\" border=\"0\" onClick=\"return confirmDelete()\" />"); //echo $lnk; ?> </td> </tr> <?php $srw_i++; } } else { ?> <tr> <td colspan="5" align="center" height="22"><font color="<?php echo $font_color_err;?>" size="2">** ไม่ปรากฎรายการข้อมูลการรับรางวัลในฐานข้อมูล **</font></td> </tr> <?php } ?> <tr bgcolor="<?php echo $tr_color_even;?>"> <td align="center"><font size="2"><?php echo $srw_i+1;?></font></td> <td align="center"><script>DateInput('srwReceiveDate', true, 'DD/MM/YYYY','<?php echo set_value("srwReceiveDate",getNowDateFw2());?>');</script></td> <td><input type="text" name="srwRewardName" id="srwRewardName" size="30" value="<?php echo set_value('srwRewardDate');?>"> <font color="<?php echo $font_color_err;?>" size="2">*</font></td> <td><input type="text" name="srwDescription" id="srwDescription" size="30" value="<?php echo set_value('srwDescription');?>"> <font color="<?php echo $font_color_err;?>" size="2">*</font></td> <td align="center">-</td> </tr> <tr> <td colspan="5" align="right"><font size="2">รวม <?php echo $srw_i;?> รายการ</font></td> </tr> </table></div><br>
<!-- End tab6-->
<!--<input type="submit" name="edit" value="บันทึก" onClick="if(checkFormat(new Array(this.form.birthDate.value, this.form.dateFromAct.value, this.form.dateFromAbs.value, this.form.recordDate.value, this.form.receiveDate.value), new Array('<?php ////echo getNowDateFw2();?>', this.form.dateToAct.value, this.form.dateToAbs.value, this.form.approveDate.value, '<?php ////echo getNowDateFw2();?>'))) return confirmSubmit('คุณต้องการแก้ไขข้อมูลประวัตินักศึกษาในปัจจุบันหรือไม่ ?'); else return false;">--> <input type="submit" name="edit" value="บันทึก" onClick="if(checkFormat(new Array(this.form.sdtBirthDate.value, this.form.sacFrDate.value, this.form.sabFrDate.value, this.form.sbeRecordDate.value, this.form.srwReceiveDate.value), new Array('<?php echo getNowDateFw2();?>', this.form.sacToDate.value, this.form.sabToDate.value, this.form.sbeApproveDate.value, '<?php echo getNowDateFw2();?>'))) return confirmSubmit('คุณต้องการแก้ไขข้อมูลประวัตินักศึกษาในปัจจุบันหรือไม่ ?'); else return false;"> <input type="reset" name="clear" value="เคลียร์ข้อมูล"> <input type="button" name="cancel" value="ยกเลิก" onClick="<?php echo site_url().$this->config->item('rg_folder').'student/std_searchStd';?> "> </div><?php echo form_close();?></div> <br></td> </tr> </table> </body>
|