403Webshell
Server IP : 27.254.152.13  /  Your IP : 216.73.217.38
Web Server : Apache/2
System : Linux ns1-252017.dragonhispeed.com 5.2.0 #1 SMP Fri Mar 29 22:50:14 MSK 2024 x86_64
User : coloflew ( 1072)
PHP Version : 5.6.40
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/coloflew/domains/fulltion.com/private_html/administrator/modules/manu_employee/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/coloflew/domains/fulltion.com/private_html/administrator/modules/manu_employee//employee.php
<?php 
if(@$_GET['act']=="add"){
	@$Ck = @$db->getOne("admin","*"," EmpIdentification='".@$_POST['EmpIdentification']."' or EmpCode='".@$_POST['EmpCode']."'");
	if(@$Ck){
	@$msg = "มีข้อมูลบุคคนนี้อยู่ในระบบ";	
	@$error = true;
	}else{
	@$arrData = array();
		
	@$arrData['user']				= @$_POST['user'];
	@$arrData['pwd']					= @$_POST['pwd'];
	@$arrData['EmpCode']				= @$_POST['EmpCode'];
	@$arrData['EmpTitle']				= @$_POST['EmpTitle'];
	@$arrData['EmpName']				= @$_POST['EmpName'];
	@$arrData['EmpSurName']			= @$_POST['EmpSurName'];
	@$arrData['EmpAddress']			= @$_POST['EmpAddress'];
	@$arrData['EmpProvince']			= @$_POST['EmpProvince'];
	@$arrData['EmpDistrict']			= @$_POST['EmpDistrict'];
	@$arrData['EmpTambon']			= @$_POST['EmpTambon'];
	@$arrData['EmpPostCode']			= @$_POST['EmpPostCode'];
	@$arrData['EmpIdentification']	= @$_POST['EmpIdentification'];
	@$arrData['EmpDriverLicense']	= @$_POST['EmpDriverLicense'];
	@$arrData['EmpBirthday']			= @$objMaster->getdateformat(@$_POST['EmpBirthday']);
	@$arrData['EmpEducation']		= @$_POST['EmpEducation'];
	@$arrData['EmpEmail']			= @$_POST['EmpEmail'];
	@$arrData['EmpPhon']				= @$_POST['EmpPhon'];
	@$arrData['DeliveryPointID']		= @$_POST['DeliveryPointID'];
	@$arrData['DepartmentID']		= @$_POST['DepartmentID'];
	@$arrData['PositionID']			= @$_POST['PositionID'];
	@$arrData['BusTypeID']			= @$_POST['BusTypeID'];
	@$arrData['FatherName']	= @$_POST['FatherName'];
	@$arrData['FatherAddress']	= @$_POST['FatherAddress'];
	@$arrData['MatherName']			= @$_POST['MatherName'];
	@$arrData['MatherAddress']	= @$_POST['MatherAddress'];
	@$arrData['EmpStatus']			= @$_POST['EmpStatus'];
	@$arrData['Permistion']			= @$_POST['Permistion'];
	@$arrData['CommissionID']			= @$_POST['CommissionID'];
	@$arrData['CreateDate']			= @$objMaster->getdateformat(date("d M Y",time()));
			
	foreach($arrData as $k => $v ){
		@$arrData[@$k] = str_replace("'", "\'", @$v); 
	}
	//echo "<pre>"; print_r(@$arrData);
	//exit;
	@$db->insertData("admin",@$arrData);
	
	//exit;
	@$msg = "Save Data complete.";
	}
	@$res = true;
}elseif(@$_GET['act']=="editdata"){
	@$arrData = array();
	@$arrData['user']				= @$_POST['user'];
	@$arrData['pwd']					= @$_POST['pwd'];
	@$arrData['EmpCode']				= @$_POST['EmpCode'];
	@$arrData['EmpTitle']				= @$_POST['EmpTitle'];
	@$arrData['EmpName']				= @$_POST['EmpName'];
	@$arrData['EmpSurName']			= @$_POST['EmpSurName'];
	@$arrData['EmpAddress']			= @$_POST['EmpAddress'];
	@$arrData['EmpProvince']			= @$_POST['EmpProvince'];
	@$arrData['EmpDistrict']			= @$_POST['EmpDistrict'];
	@$arrData['EmpTambon']			= @$_POST['EmpTambon'];
	@$arrData['EmpPostCode']			= @$_POST['EmpPostCode'];
	@$arrData['EmpIdentification']	= @$_POST['EmpIdentification'];
	@$arrData['EmpDriverLicense']	= @$_POST['EmpDriverLicense'];
	@$arrData['EmpBirthday']			= @$objMaster->getdateformat(@$_POST['EmpBirthday']);
	@$arrData['EmpEducation']		= @$_POST['EmpEducation'];
	@$arrData['EmpEmail']			= @$_POST['EmpEmail'];
	@$arrData['EmpPhon']				= @$_POST['EmpPhon'];
	@$arrData['DeliveryPointID']		= @$_POST['DeliveryPointID'];
	@$arrData['DepartmentID']		= @$_POST['DepartmentID'];
	@$arrData['PositionID']			= @$_POST['PositionID'];
	@$arrData['BusTypeID']			= @$_POST['BusTypeID'];
	@$arrData['FatherName']	= @$_POST['FatherName'];
	@$arrData['FatherAddress']	= @$_POST['FatherAddress'];
	@$arrData['MatherName']			= @$_POST['MatherName'];
	@$arrData['MatherAddress']	= @$_POST['MatherAddress'];
	@$arrData['EmpStatus']			= @$_POST['EmpStatus'];
	@$arrData['Permistion']			= @$_POST['Permistion'];
	@$arrData['CommissionID']			= @$_POST['CommissionID'];
	
	foreach($arrData as $k => $v ){
		@$arrData[@$k] = str_replace("'", "\'", @$v); 
	}

	@$db->updateData("admin",@$arrData," EmpID='".@$_POST['EmpID']."'");
	
	@$msg = "Edit Data complete.";
	@$res = true;
}elseif(@$_GET['act']=="edit"){
	@$arrRes = @$db->getOne("admin","*"," EmpID='".@$_GET['EmpID']."'");
	
}elseif(@$_GET['act']=="deletedata"){
	
	@$db->deleteData("admin"," EmpID='".@$_GET['EmpID']."'");
	
	@$msg = "Delete Data complete.";
	@$res = true;
}elseif(@$_GET['act']=="deleteAll"){
	//echo "<pre>"; print_r(@$_POST);
	if(count(@$_POST['pagedel']) > 0){
		foreach($_POST['pagedel'] as $key => $val){
			@$db->deleteData("admin"," EmpID='".@$val."'");
		}
	}
	@$msg = "Delete Data complete.";
	@$res = true;
}
@$where_f = "";

if(@$_POST['keyword']){@$search = @$_POST['keyword']; }
if(@$_GET['keyword']){@$search = @$_GET['keyword']; }
if(@$search){
	@$searchnew = str_replace("'", "\'", @$search); 
	if(@$where_f){
		@$where_f .= " and (user like '%".@$searchnew."%' or EmpCode like '%".@$searchnew."%' or EmpName like '%".@$searchnew."%')";
	}else{
		@$where_f = "  (user like '%".@$searchnew."%' or EmpCode like '%".@$searchnew."%' or EmpName like '%".@$searchnew."%')";
	}	
}

@$lang = @$db->getAll("language","*","","","");
@$page = @$_GET['page'] ? @$_GET['page'] : 1;
@$arrpageP = @$db->getAll("admin","*",@$where_f,"");
@$arrPage = @$objMaster->viewPages(@$page, @$arrpageP, "15");
@$getPage = @$db->getAll("admin","*",@$where_f,"",@$arrPage["offset"]);


@$where_permistion  = "lang_code='".@$lang_code."' and status='1'";
@$where_province = "lang_code='".@$lang_code."' and status='1'";
@$where_district = "lang_code='".@$lang_code."' and status='1'";
@$where_bustype = "lang_code='".@$lang_code."' and BusTypeStatus='1'";
@$where_point = "lang_code='".@$lang_code."' and DeliveryPointStatus='1'";
@$where_department = "lang_code='".@$lang_code."' and DepartmentStatus='1'";
@$where_position = "lang_code='".@$lang_code."' and PositionStatus='1'";
@$where_commistion = "lang_code='".@$lang_code."' and CommissionStatus='1'";
@$getpermistion = @$db->getAll( "admin_permistion", "*",@$where_permistion." and status = '1'","" );
@$getProvince = @$db->getAll( "province", "*",@$where_province," order by PROVINCE_CODE asc" );
@$getDistrict = @$db->getAll( "district", "*",@$where_district," order by PROVINCE_ID,AMPHUR_CODE asc" );
@$getbustype = @$db->getAll( "bustype", "*",@$where_bustype,"" );
@$getpoint = @$db->getAll( "deliverypoint", "*",@$where_point,"" );
@$getdepartment = @$db->getAll( "department", "*",@$where_department,"" );
@$getposition = @$db->getAll( "position", "*",@$where_position,"" );
@$getcommistion = @$db->getAll( "commission", "*",@$where_commistion,"" );
//echo "<pre>"; print_r(@$getPage);
?>
<!-- Start Content Box -->
<div class="content-box">
	<!-- Start Content Box Header-->
	<div class="content-box-header">
					
			<h3><?php echo @$lang_set['user_title']; ?></h3>
					
			<ul class="content-box-tabs">
				<li><a href="#list" <?php echo (@$_GET['act']=="" ? 'class="default-tab"' : '');?>><?php echo @$lang_set['list_user']; ?></a></li> <!-- href must be unique and match the id of target div -->
				<li><a href="#add" <?php echo (@$_GET['act']=="edit" ? 'class="default-tab"' : '');?>><?php echo @$lang_set['add_user']; ?></a></li>
			</ul>	
			<div class="clear"></div>	
	</div>		
    <!-- End Content Box Header-->
    
    <!-- Start Content Box Content-->
    <div class="content-box-content">
     	<?php if(@$res){?>
			<?php if(@$error){?>
          <div class="notification error png_bg">
             <a href="#" class="close"><img src="resources/images/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
                   <div>
                       <?php echo @$msg;?>
                   </div>
             </div>
          <meta http-equiv="refresh" content="1;URL=index.php?name=manu_employee&file=employee"> 
		  	<?php }else{?> 
			 <div class="notification success png_bg">
             <a href="#" class="close"><img src="resources/images/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
                   <div>
                       <?php echo @$msg;?>
                   </div>
             </div>
          <meta http-equiv="refresh" content="1;URL=index.php?name=manu_employee&file=employee"> 
			<?php }?> 
        <?php }?> 
   
   		<form action="index.php?name=manu_employee&file=employee" method="post" name="form_search">
            <?php echo @$lang_set['input_search'];?> :&nbsp;
            <input type="text" class="text" value="<?PHP echo @$search;?>" name="keyword" />&nbsp;
            <input type="submit" class="button" value="ค้นหา"/>
        </form>
        
   		<!-- Start Tab Content id="list"-->
        <div class="tab-content <?php echo (@$_GET['act']=="" ? 'default-tab' : '');?>" id="list">
        <form action="index.php?name=manu_employee&file=employee&EmpID=<?php echo @$_GET['RouteCode']?>&amp;act=deleteAll" method="post">
        <table cellpadding="0" cellspacing="0" width="100%">
            <thead>
                <tr>
                    <th><input type="checkbox" class="check_all" /></th>
                    <th><?php echo @$lang_set['user']; ?></th>
                    <th><?php echo @$lang_set['pwd']; ?></th>
                    <th><?php echo @$lang_set['emp_name']; ?></th>
                    <th><?php echo @$lang_set['emp_surname']; ?></th>
                    <th><?php echo @$lang_set['emp_deliverypoint']; ?></th>
                    <th><?php echo @$lang_set['emp_permistion']; ?></th>
                    <th><?php echo @$lang_set['emp_status']; ?></th>
					<th><?php echo @$lang_set['action']; ?></th>
                </tr>
            </thead>            
            <?php 
            if(@$getPage){
                foreach($getPage as $key => $val){
				@$getper = @$db->getOne("admin_permistion","*"," Permistion='".@$val['Permistion']."'");
				@$getdeliverypoint = @$db->getOne("deliverypoint","*"," DeliveryPointID='".@$val['DeliveryPointID']."'");
            ?>
            <tr>
                <th><input type="checkbox" name="pagedel[]" value="<?php echo @$val['EmpID'];?>"/></th>
                <th><?php echo @$val['user'];?></th>
                <th><?php echo @$val['pwd'];?></th>
                <th><?php echo @$val['EmpTitle']." ".@$val['EmpName'];?></th>
                <th><?php echo @$val['EmpSurName'];?></th>
                <th><?php echo @$getdeliverypoint['DeliveryPointName'];?></th>
                <th><?php echo @$getper['menu_group'];?></th>
                <th>
                				<select name="EmpStatus" onchange="AJAX_Update_status('admin','EmpStatus',this.options[this.selectedIndex].value,'<?php echo @$val['EmpID']?>','EmpID');">
                	<option value="1" <?php echo (@$val['EmpStatus']=="1" ? "selected" : "");?>><?php echo @$lang_set['show']; ?></option>
                    <option value="0" <?php echo (@$val['EmpStatus']=="0" ? "selected" : "");?>><?php echo @$lang_set['hide']; ?></option>
                </select></th><th>
                
                <a href="index.php?name=manu_employee&file=employee&act=edit&EmpID=<?php echo @$val['EmpID']?>#add" title="Edit"><img src="resources/images/icons/pencil.png" alt="Edit" /></a> |
                <?PHP if($_SESSION['member']['permistion'] == '4' and $_SESSION['member']['userid'] != @$val['EmpID']){?>
                <a href="index.php?name=manu_employee&file=employee&act=deletedata&EmpID=<?php echo @$val['EmpID']?>" title="Delete"><img src="resources/images/icons/cross.png" alt="Delete" /></a>
                <?PHP }?>
                </th>
            </tr>
                
            <?php
                }
            }else{
            ?>
            <tr>
                <th colspan="11" style="text-align:center"><?php echo @$lang_set['not_data']; ?></th>
            </tr>
            <?php 
            }
            ?>
            
            <tfoot>
                <tr>
                    <td colspan="11">
                        <div class="bulk-actions align-left">
                            <select name="actdel">
                                <option value="del"><?php echo @$lang_set['delete']; ?></option>
                            </select>
                        <input class="button" type="submit" value="<?php echo @$lang_set['selected']; ?>" />
                        </div>
                        <!-- Start .pagination -->	
                        <div class="pagination">
                            <a href="index.php?name=manu_employee&file=employee&EmpID=<?php echo @$_GET['EmpID']?>&page=<?php echo @$arrPage["startPage"];?>&keyword=<?PHP echo @$search;?>" title="First Page">&laquo; First</a><a href="index.php?name=manu_employee&file=employee&EmpID=<?php echo @$_GET['EmpID']?>&page=<?php echo (@$page-1);?>&keyword=<?PHP echo @$search;?>" title="Previous Page">&laquo; Previous</a>
                             <?php if( @$arrPage["startPage"]!="" && @$arrPage["endPage"] !="" ){?>       
                                        <?php 
                                        for($i = @$arrPage["startPage"]; $i <= @$arrPage["endPage"]; ++$i) {
                                            echo'<a href="index.php?name=manu_employee&file=employee&EmpID='.@$_GET["EmpID"].'&keyword='.@$search.'&page='.@$i.'" '.(@$page == @$i ? 'class="number current"' : '').'>'.(@$i).'</a>';
                                        }?>
                             <?php }?>
                            <a href="index.php?name=manu_employee&file=employee&EmpID=<?php echo @$_GET['EmpID']?>&page=<?php echo (@$page+1);?>&keyword=<?PHP echo @$search;?>" title="Next Page">Next &raquo;</a><a href="index.php?name=manu_employee&file=employee&EmpID=<?php echo @$_GET['EmpID']?>&page=<?php echo @$arrPage["endPage"];?>&keyword=<?PHP echo @$search;?>" title="Last Page">Last &raquo;</a>
                        </div> 
                        <!-- End .pagination -->
                        <div class="clear"></div>
                    </td>
                </tr>
            </tfoot>
        </table>	
        </form>
        </div>		
        <!-- End Tab Content id="list"-->
        <!-- Start Tab Content id="add"-->
    	<div class="tab-content <?php echo (@$_GET['act']=="edit" ? 'default-tab' : '');?>" id="add">
     		<form action="index.php?name=manu_employee&file=employee&EmpID=<?php echo @$_GET['EmpID']?>&act=<?php echo (@$_GET['act']=="edit" ? "editdata" : "add");?>#add" method="post" enctype="multipart/form-data" onsubmit="return checkpageemployee();"><!--onsubmit="return checkdelivery();"-->
            	<fieldset>
                      <input type="hidden" name="EmpID" value="<?php echo  @$_GET['EmpID'];?>">
                    <p>
                    <h3><?php echo @$lang_set['user_system']; ?></h3>
                    <table><tr><td width="75px">
                      <label><?php echo @$lang_set['user']; ?>:</label></td><td width="120px">
                      <input type="text" class="text-input large-input" name="user" id="user" value="<?php echo @$arrRes['user'];?>" />
                    <!--<span class="input-notification error png_bg" id="span_name"></span>--></td><td width="75px">
                     <label><?php echo @$lang_set['pwd']; ?>:</label></td><td width="120px">
                      <input type="text" class="text-input large-input" name="pwd" id="pwd" value="<?php echo @$arrRes['pwd'];?>" />
                    <!--<span class="input-notification error png_bg" id="span_value"></span>--></td><td width="150px">
                                          <label><?php echo @$lang_set['permistion']; ?>:</label></td><td>
                      <select name="Permistion" class="widthselect">
						<?php 
                        if(@$getpermistion){foreach($getpermistion as $key => $val){
                        ?>
                        <option value="<?php echo @$val['Permistion'];?>" <?php echo (@$val['Permistion']=='' || @$val['Permistion']==@$arrRes['Permistion'] ? "selected" : "")?>><?php echo @$val['menu_group'];?></option>
                        <?php }
                        }
                        ?>						
                      </select>
                    </td><td width="50px">
                                          <label><?php echo @$lang_set['commission']; ?>:</label></td><td>
                      <select name="CommissionID" class="widthselect">
						<?php 
                        if(@$getcommistion){foreach($getcommistion as $key => $val){
                        ?>
                        <option value="<?php echo @$val['CommissionID'];?>" <?php echo (@$val['CommissionID']=='' || @$val['CommissionID']==@$arrRes['CommissionID'] ? "selected" : "")?>><?php echo @$val['CommissionName'];?></option>
                        <?php }
                        }
                        ?>						
                      </select>
                    </td><tr></table>
                      <table><tr><td width="150px">
                     <label><?php echo @$lang_set['emp_bustype']; ?>:</label></td><td>
                      <select name="BusTypeID" class="widthselect" id="BusTypeID">
                      	<option value="0" selected="selected"><?php echo @$lang_set['not_data']; ?></option>
						<?php 
                        if(@$getbustype){foreach($getbustype as $key => $val){
                        ?>
                        <option value="<?php echo @$val['BusTypeID'];?>" <?php echo (@$val['BusTypeID']=='' || @$val['BusTypeID']==@$arrRes['BusTypeID'] ? "selected" : "")?>><?php echo @$val['BusTypeName'];?></option>
                        <?php }
                        }
                        ?>						
                      </select>
                    </td><td width="75px">
                    <label><?php echo @$lang_set['emp_deliverypoint']; ?>:</label></td><td>
                      <select name="DeliveryPointID" class="widthselect">
						<?php 
                        if(@$getpoint){foreach($getpoint as $key => $val){
                        ?>
                        <option value="<?php echo @$val['DeliveryPointID'];?>" <?php echo (@$val['DeliveryPointID']=='' || @$val['DeliveryPointID']==@$arrRes['DeliveryPointID'] ? "selected" : "")?>><?php echo @$val['DeliveryPointName'];?></option>
                        <?php }
                        }
                        ?>						
                      </select>
                      </td><td width="75px">
                    <label><?php echo @$lang_set['emp_department']; ?>:</label></td><td>
                      <select name="DepartmentID" id="DepartmentID" onchange="SelectDepartment('<?PHP echo @$lang_code;?>')" class="widthselect">
						<?php 
                        if(@$getdepartment){foreach($getdepartment as $key => $val){
                        ?>
                        <option value="<?php echo @$val['DepartmentID'];?>" <?php echo (@$val['DepartmentID']=='' || @$val['DepartmentID']==@$arrRes['DepartmentID'] ? "selected" : "")?>><?php echo @$val['DepartmentName'];?></option>
                        <?php }
                        }
                        ?>						
                      </select>
                      </td><td width="75px">
                    <label><?php echo @$lang_set['emp_position']; ?>:</label></td><td>
                    
                      <select name="PositionID" id="PositionID" onchange="SelectPosition('<?PHP echo @$lang_code;?>')" class="widthselect">
						<?php 
                        if(@$getposition){foreach($getposition as $key => $val){
                        ?>
                        <option value="<?php echo @$val['PositionID'];?>" <?php echo (@$val['PositionID']=='' || @$val['PositionID']==@$arrRes['PositionID'] ? "selected" : "")?>><?php echo @$val['PositionName'];?></option>
                        <?php }
                        }
                        ?>						
                      </select>
                    </td><tr></table>
                    <p></p>
                    <h3><?php echo @$lang_set['user_detail']; ?></h3>
                    <table><tr><td width="75px">
                      <label><?php echo @$lang_set['emp_title']; ?>:</label></td><td>
                      <input type="text" class="text-input large-input" name="EmpTitle" id="EmpTitle" value="<?php echo @$arrRes['EmpTitle'];?>" />
                      <td width="100px">
                      <label><?php echo @$lang_set['emp_name']; ?>:</label></td><td>
                      <input type="text" class="text-input large-input" name="EmpName" id="EmpName" value="<?php echo @$arrRes['EmpName'];?>" /></td><td width="50px">
                      <label><?php echo @$lang_set['emp_surname']; ?>:</label></td><td>
                      <input type="text" class="text-input large-input" name="EmpSurName" id="EmpSurName" value="<?php echo @$arrRes['EmpSurName'];?>" /></td><td width="50px">
                      <label><?php echo @$lang_set['emp_email']; ?>:</label></td><td>
                      <input type="text" class="text-input large-input" name="EmpEmail" id="EmpEmail" value="<?php echo @$arrRes['EmpEmail'];?>" />
</td>
                    <!--<span class="input-notification error png_bg" id="span_name"></span>--></td><tr></table>
					                    
                    <table><tr><td width="75px">
                      <label><?php echo @$lang_set['emp_address']; ?>:</label></td><td>
                      <input type="text" class="text-input large-input" name="EmpAddress" id="EmpAddress" value="<?php echo @$arrRes['EmpAddress'];?>" />
                    <!--<span class="input-notification error png_bg" id="span_name"></span>--></td>
                    <td width="100px">
                      <label><?php echo @$lang_set['emp_phon']; ?>:</label></td><td width="150px">
                      <input type="text" class="text-input large-input" name="EmpPhon" id="EmpPhon" value="<?php echo @$arrRes['EmpPhon'];?>" />
                    <!--<span class="input-notification error png_bg" id="span_name"></span>--></td><tr></table>

                    <table><tr><td width="75px">
                      <label><?php echo @$lang_set['emp_province']; ?>:</label></td><td width="100px">
                      <select  name="EmpProvince" id="EmpProvince" onchange="SelectProvince('<?PHP echo @$lang_code;?>','Emp','0')" class="widthselect">
						<?php 
                        if(@$getProvince){foreach($getProvince as $key => $val){
                        ?>
                        <option value="<?php echo @$val['PROVINCE_ID'];?>" <?php echo (@$val['PROVINCE_ID']=='' || @$val['PROVINCE_ID']==@$arrRes['EmpProvince'] ? "selected" : "")?>><?php echo @$val['PROVINCE_NAME'];?></option>
                        <?php }
                        }
                        ?>						
                      </select></td><td width="50px">
                     <label><?php echo @$lang_set['emp_district']; ?>:</label></td><td width="100px">
                      <select name="EmpDistrict" id="EmpDistrict" onchange="SelectDistrict('<?PHP echo @$lang_code;?>','Emp','0')" class="widthselect">
						<?php 
                        if(@$getDistrict){foreach($getDistrict as $key => $val){
                        ?>
                        <option value="<?php echo @$val['AMPHUR_ID'];?>" <?php echo (@$val['AMPHUR_ID']=='' || @$val['AMPHUR_ID']==@$arrRes['EmpDistrict'] ? "selected" : "")?>><?php echo @$val['AMPHUR_NAME'];?></option>
                        <?php }
                        }
                        ?>						
                      </select>
                    </td><td width="50px">
                     <label><?php echo @$lang_set['emp_tambun']; ?>:</label></td><td width="100px">
                      <input type="text" class="text-input large-input" name="EmpTambon" id="EmpTambon" value="<?php echo @$arrRes['EmpTambon'];?>" />
                    </td><td width="100px">
                     <label><?php echo @$lang_set['emp_postcode']; ?>:</label></td><td width="50px">
                      <input type="text" class="text-input large-input" name="EmpPostCode" id="EmpPostCode" value="<?php echo @$arrRes['EmpPostCode'];?>" maxlength="5"/>
                    </td><td width="50px">
                     <label><?php echo @$lang_set['emp_birthday']; ?>:</label></td><td width="100px">
                      <input type="text" class="text date_picker"  name="EmpBirthday" value="<?php echo @$arrRes['EmpBirthday'] == '' ? @$objMaster->getdbdateformat(date("Y-m-d")) :@$objMaster->getdbdateformat(@$arrRes['EmpBirthday']);?>"/>
                    </td><tr></table>

                    <table><tr><td width="100px">
                      <label><?php echo @$lang_set['emp_code']; ?>:</label></td><td>
                      <input type="text" class="text-input large-input" name="EmpCode" id="EmpCode" value="<?php echo @$arrRes['EmpCode'];?>" />
                    <!--<span class="input-notification error png_bg" id="span_name"></span>--></td><td width="135px">
                     <label><?php echo @$lang_set['emp_identification']; ?>:</label></td><td>
                      <input type="text" class="text-input large-input" name="EmpIdentification" id="EmpIdentification" value="<?php echo @$arrRes['EmpIdentification'];?>" maxlength="13"/>
                    <!--<span class="input-notification error png_bg" id="span_value"></span>-->
                    </td><td width="50px">
                      <label><?php echo @$lang_set['emp_driverlicense']; ?>:</label></td><td>
                      <input type="text" class="text-input large-input" name="EmpDriverLicense" id="EmpDriverLicense" value="<?php echo @$arrRes['EmpDriverLicense'];?>" />
                    <!--<span class="input-notification error png_bg" id="span_name"></span>--></td><tr></table>

                    
                    <table><tr><td width="75px">
                      <label><?php echo @$lang_set['emp_fathername']; ?>:</label></td><td width="100px">
                      <input type="text" class="text-input large-input" name="FatherName" id="FatherName" value="<?php echo @$arrRes['FatherName'];?>" />
                    <!--<span class="input-notification error png_bg" id="span_name"></span>--></td><td width="40px">
                     <label><?php echo @$lang_set['emp_fatheraddress']; ?>:</label></td><td>
                      <input type="text" class="text-input large-input" name="FatherAddress" id="FatherAddress" value="<?php echo @$arrRes['FatherAddress'];?>" />
                    <!--<span class="input-notification error png_bg" id="span_value"></span>-->
                    </td>

                    <td width="85px">
                      <label><?php echo @$lang_set['emp_mathername']; ?>:</label></td><td width="100px">
                      <input type="text" class="text-input large-input" name="MatherName" id="MatherName" value="<?php echo @$arrRes['MatherName'];?>" />
                    <!--<span class="input-notification error png_bg" id="span_name"></span>--></td><td width="40px">
                     <label><?php echo @$lang_set['emp_matheraddress']; ?>:</label></td><td>
                      <input type="text" class="text-input large-input" name="MatherAddress" id="MatherAddress" value="<?php echo @$arrRes['MatherAddress'];?>" />
                    <!--<span class="input-notification error png_bg" id="span_value"></span>-->
                    </td><tr></table>

                    <table><tr><td width="100px">
                      <label><?php echo @$lang_set['emp_education']; ?>:</label></td><td>
                      <input type="text" class="text-input Large-input" name="EmpEducation" id="EmpEducation" value="<?php echo @$arrRes['EmpEducation'];?>" />
                    <!--<span class="input-notification error png_bg" id="span_name"></span>--></td><tr></table>
                     <table><tr><td>
                     <input type="radio" name="EmpStatus" value="1" <?php echo (@$arrRes['EmpStatus']=="1" ? "checked" : "" ); ?> /> <?php echo @$lang_set['show']; ?>
                      <input type="radio" name="EmpStatus" value="0"  <?php echo ( !@$arrRes['EmpStatus'] || @$arrRes['EmpStatus']=="0" ? "checked" : "" ); ?>/><?php echo @$lang_set['hide']; ?>
                    </td><tr></table>
                    <p>
                        <input type="submit" class="button" value="<?php echo @$lang_set['submit']; ?>" />
                    </p>
        		</fieldset>
        	</form>				
        </div>
        <!-- End Tab Content id="add"-->
</div>

					

Youez - 2016 - github.com/yon3zu
LinuXploit