| 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_setupinvoice/ |
Upload File : |
<?php
if(@$_GET['act']=="add"){
$arrData = array();
$arrCustomerSend = array();
$arrCustomerReceive = array();
$getcheckname = $db->getOne("customer","count(*) as count "," CustomerName='".$_POST['SendName']."'");
$getcheck = $getcheckname['count'];
$getname = $db->getOne("customer","*"," CustomerName='".$_POST['SendName']."'");
$getidsend = $getname['CustomerID'];
if($getcheck == 0)
{
$arrCustomerSend['CustomerName'] = $_POST['SendName'];
$arrCustomerSend['CustomerAddress'] = $_POST['SendAddress'];
$arrCustomerSend['CustomerProvince'] = $_POST['SendProvince'];
$arrCustomerSend['CustomerDistrict'] = $_POST['SendDistrict'];
$arrCustomerSend['CustomerPostCode'] = $_POST['SendPostCode'];
$arrCustomerSend['CustomerPhon'] = $_POST['SendPhon'];
$arrCustomerSend['CustomerLastUse'] = $objMaster->getdateformat(date("d M Y",time()));
foreach($arrCustomerSend as $k => $v ){
$arrCustomerSend[$k] = str_replace("'", "\'", $v);
}
//echo "<pre>"; print_r($arrDataContact); exit();
$db->insertData("customer",$arrCustomerSend);
$getidsendnew = $db->getOne("customer","*","","order by CustomerID desc","limit 1");
$getidsend = $getidsendnew['CustomerID'];
}
else
{
//$arrCustomerSend['CustomerName'] = $_POST['SendName'];
$arrCustomerSend['CustomerAddress'] = $_POST['SendAddress'];
$arrCustomerSend['CustomerProvince'] = $_POST['SendProvince'];
$arrCustomerSend['CustomerDistrict'] = $_POST['SendDistrict'];
$arrCustomerSend['CustomerPostCode'] = $_POST['SendPostCode'];
$arrCustomerSend['CustomerPhon'] = $_POST['SendPhon'];
$arrCustomerSend['CustomerLastUse'] = $objMaster->getdateformat(date("d M Y",time()));
foreach($arrCustomerSend as $k => $v ){
$arrCustomerSend[$k] = str_replace("'", "\'", $v);
}
//echo "<pre>"; print_r($arrDataContact); exit();
$db->updateData("customer",$arrCustomerSend," CustomerID='".$getidsend."'");
}
$getcheckname = $db->getOne("customer","count(*) as count"," CustomerName='".$_POST['ReceiveName']."'");
$getcheck = $getcheckname['count'];
$getname = $db->getOne("customer","*"," CustomerName='".$_POST['ReceiveName']."'");
$getidreceive = $getname['CustomerID'];
if($getcheck == 0)
{
$arrCustomerReceive['CustomerName'] = $_POST['ReceiveName'];
$arrCustomerReceive['CustomerAddress'] = $_POST['ReceiveAddress'];
$arrCustomerReceive['CustomerProvince'] = $_POST['ReceiveProvince'];
$arrCustomerReceive['CustomerDistrict'] = $_POST['ReceiveDistrict'];
$arrCustomerReceive['CustomerPostCode'] = $_POST['ReceivePostCode'];
$arrCustomerReceive['CustomerPhon'] = $_POST['ReceivePhon'];
$arrCustomerReceive['CustomerLastUse'] = $objMaster->getdateformat(date("d M Y",time()));
foreach($arrCustomerReceive as $k => $v ){
$arrCustomerReceive[$k] = str_replace("'", "\'", $v);
}
//echo "<pre>"; print_r($arrDataContact); exit();
$db->insertData("customer",$arrCustomerReceive);
$getidreceivenew = $db->getOne("customer","*","","order by CustomerID desc","limit 1");
$getidreceive = $getidreceivenew['CustomerID'];
}
else
{
//$arrCustomerSend['CustomerName'] = $_POST['ReceiveName'];
$arrCustomerReceive['CustomerAddress'] = $_POST['ReceiveAddress'];
$arrCustomerReceive['CustomerProvince'] = $_POST['ReceiveProvince'];
$arrCustomerReceive['CustomerDistrict'] = $_POST['ReceiveDistrict'];
$arrCustomerReceive['CustomerPostCode'] = $_POST['ReceivePostCode'];
$arrCustomerReceive['CustomerPhon'] = $_POST['ReceivePhon'];
$arrCustomerReceive['CustomerLastUse'] = $objMaster->getdateformat(date("d M Y",time()));
foreach($arrCustomerReceive as $k => $v ){
$arrCustomerReceive[$k] = str_replace("'", "\'", $v);
}
//echo "<pre>"; print_r($arrDataContact); exit();
$db->updateData("customer",$arrCustomerReceive," CustomerID='".$getidreceive."'");
}
$arrData['InvoiceCode'] = $_POST['InvoiceCode'];
$arrData['InvoiceStartPoint'] = $_POST['InvoiceStartPoint'];
$arrData['InvoiceEndPoint'] = $_POST['InvoiceEndPoint'];
$arrData['InvoiceDate'] = $objMaster->getdateformat($_POST['InvoiceDate']);
$arrData['InvoiceSendID'] = $getidsend;
$arrData['InvoiceReceiveID'] = $getidreceive;
$arrData['InvoiceSumary'] = 0;
$arrData['InvoiceDiscountSum'] = 0;
$arrData['InvoiceStatus'] = "Process";
$arrData['InvoiceEmpID'] = $_SESSION['member']['userid'];
foreach($arrData as $k => $v ){
$arrData[$k] = str_replace("'", "\'", $v);
}
//echo "<pre>"; print_r($arrData);
//exit;
$db->insertData("invoice",$arrData);
//exit;
$msg = "Save Data complete.";
$res = true;
}elseif(@$_GET['act']=="editdata"){
$arrData = array();
$arrCustomerSend = array();
$arrCustomerReceive = array();
$getcheckname = $db->getOne("customer","count(*) as count"," CustomerName='".$_POST['SendName']."'");
$getcheck = $getcheckname['count'];
$getname = $db->getOne("customer","*"," CustomerName='".$_POST['SendName']."'");
$getidsend = $getname['CustomerID'];
if($getcheck == 0)
{
$arrCustomerSend['CustomerName'] = $_POST['SendName'];
$arrCustomerSend['CustomerAddress'] = $_POST['SendAddress'];
$arrCustomerSend['CustomerProvince'] = $_POST['SendProvince'];
$arrCustomerSend['CustomerDistrict'] = $_POST['SendDistrict'];
$arrCustomerSend['CustomerPostCode'] = $_POST['SendPostCode'];
$arrCustomerSend['CustomerPhon'] = $_POST['SendPhon'];
$arrCustomerSend['CustomerLastUse'] = $objMaster->getdateformat(date("d M Y",time()));
foreach($arrCustomerSend as $k => $v ){
$arrCustomerSend[$k] = str_replace("'", "\'", $v);
}
//echo "<pre>"; print_r($arrDataContact); exit();
$db->insertData("customer",$arrCustomerSend);
$getidsendnew = $db->getOne("customer","*","","order by CustomerID desc","limit 1");
$getidsend = $getidsendnew['CustomerID'];
}
else
{
//$arrCustomerSend['CustomerName'] = $_POST['SendName'];
$arrCustomerSend['CustomerAddress'] = $_POST['SendAddress'];
$arrCustomerSend['CustomerProvince'] = $_POST['SendProvince'];
$arrCustomerSend['CustomerDistrict'] = $_POST['SendDistrict'];
$arrCustomerSend['CustomerPostCode'] = $_POST['SendPostCode'];
$arrCustomerSend['CustomerPhon'] = $_POST['SendPhon'];
$arrCustomerSend['CustomerLastUse'] = $objMaster->getdateformat(date("d M Y",time()));
foreach($arrCustomerSend as $k => $v ){
$arrCustomerSend[$k] = str_replace("'", "\'", $v);
}
//echo "<pre>"; print_r($arrDataContact); exit();
$db->updateData("customer",$arrCustomerSend," CustomerID='".$getidsend."'");
}
$getcheckname = $db->getOne("customer","count(*) as count"," CustomerName='".$_POST['ReceiveName']."'");
$getcheck = $getcheckname['count'];
$getname = $db->getOne("customer","*"," CustomerName='".$_POST['ReceiveName']."'");
$getidreceive = $getname['CustomerID'];
if($getcheck == 0)
{
$arrCustomerReceive['CustomerName'] = $_POST['ReceiveName'];
$arrCustomerReceive['CustomerAddress'] = $_POST['ReceiveAddress'];
$arrCustomerReceive['CustomerProvince'] = $_POST['ReceiveProvince'];
$arrCustomerReceive['CustomerDistrict'] = $_POST['ReceiveDistrict'];
$arrCustomerReceive['CustomerPostCode'] = $_POST['ReceivePostCode'];
$arrCustomerReceive['CustomerPhon'] = $_POST['ReceivePhon'];
$arrCustomerReceive['CustomerLastUse'] = $objMaster->getdateformat(date("d M Y",time()));
foreach($arrCustomerReceive as $k => $v ){
$arrCustomerReceive[$k] = str_replace("'", "\'", $v);
}
//echo "<pre>"; print_r($arrDataContact); exit();
$db->insertData("customer",$arrCustomerReceive);
$getidreceivenew = $db->getOne("customer","*","","order by CustomerID desc","limit 1");
$getidreceive = $getidreceivenew['CustomerID'];
}
else
{
//$arrCustomerSend['CustomerName'] = $_POST['ReceiveName'];
$arrCustomerReceive['CustomerAddress'] = $_POST['ReceiveAddress'];
$arrCustomerReceive['CustomerProvince'] = $_POST['ReceiveProvince'];
$arrCustomerReceive['CustomerDistrict'] = $_POST['ReceiveDistrict'];
$arrCustomerReceive['CustomerPostCode'] = $_POST['ReceivePostCode'];
$arrCustomerReceive['CustomerPhon'] = $_POST['ReceivePhon'];
$arrCustomerReceive['CustomerLastUse'] = $objMaster->getdateformat(date("d M Y",time()));
foreach($arrCustomerReceive as $k => $v ){
$arrCustomerReceive[$k] = str_replace("'", "\'", $v);
}
//echo "<pre>"; print_r($arrDataContact); exit();
$db->updateData("customer",$arrCustomerReceive," CustomerID='".$getidreceive."'");
}
$arrData['InvoiceCode'] = $_POST['InvoiceCode'];
$arrData['InvoiceStartPoint'] = $_POST['InvoiceStartPoint'];
$arrData['InvoiceEndPoint'] = $_POST['InvoiceEndPoint'];
$arrData['InvoiceDate'] = $objMaster->getdateformat($_POST['InvoiceDate']);
$arrData['InvoiceSendID'] = $getidsend;
$arrData['InvoiceReceiveID'] = $getidreceive;
$arrData['InvoiceSumary'] = 0;
$arrData['InvoiceDiscountSum'] = 0;
$arrData['InvoiceEmpID'] = $_SESSION['member']['userid'];
foreach($arrData as $k => $v ){
$arrData[$k] = str_replace("'", "\'", $v);
}
$db->updateData("invoice",$arrData," InvoiceID='".$_POST['InvoiceID']."'");
$msg = "Edit Data complete.";
$res = true;
}elseif(@$_GET['act']=="edit"){
$arrRes = $db->getOne("invoice","*"," InvoiceID='".$_GET['InvoiceID']."'");
$sendRes = $db->getOne("customer","*"," CustomerID='".$arrRes['InvoiceSendID']."'");
$receiveRes = $db->getOne("customer","*"," CustomerID='".$arrRes['InvoiceReceiveID']."'");
}elseif(@$_GET['act']=="deletedata"){
$db->deleteData("invoice"," InvoiceID='".$_GET['InvoiceID']."'");
$db->deleteData("invoicedetail"," InvoiceID='".$_GET['InvoiceID']."'");
$db->deleteData("invoiceroute"," InvoiceID='".$_GET['InvoiceID']."'");
$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("invoice"," InvoiceID='".$val."'");
$db->deleteData("invoicedetail"," InvoiceID='".$val."'");
$db->deleteData("invoiceroute"," InvoiceID='".$val."'");
}
}
$msg = "Delete Data complete.";
$res = true;
}
$where_f = "";
$where_point = "lang_code='".$lang_code."' and DeliveryPointStatus='1'";
$where_province = "lang_code='".$lang_code."' and status='1'";
$where_district = "lang_code='".$lang_code."' and status='1'";
if(@$_POST['keyword']){
@$_POST['keyword'] = str_replace("'", "\'", @$_POST['keyword']);
if($where_f){
$where_f .= " and ( InvoiceCode like '%".@$_POST['keyword']."%' or InvoiceDate like '%".@$_POST['keyword']."%')";
}else{
$where_f = " ( InvoiceCode like '%".@$_POST['keyword']."%' or InvoiceDate like '%".@$_POST['keyword']."%')";
}
}
$page = @$_GET['page'] ? @$_GET['page'] : 1;
$arrpageP = $db->getAll("invoice", "*",$where_f,"" );
$arrPage = $objMaster->viewPages($page, $arrpageP, "15");
$getPage = $db->getAll("invoice","*",$where_f,"",$arrPage["offset"]);
$getPoint = $db->getAll( "deliverypoint", "*",$where_point,"" );
$getProvince = $db->getAll( "province", "*",$where_province,"" );
$getDistrict = $db->getAll( "district", "*",$where_district,"" );
//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['invoice_title']; ?></h3>
<ul class="content-box-tabs">
<li><a href="#list" <?php echo ($_GET['act']=="" ? 'class="default-tab"' : '');?>><?php echo $lang_set['list_invoice']; ?></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_invoice']; ?></a></li>
</ul>
<div class="clear"></div>
</div>
<!-- End Content Box Header-->
<!-- Start Content Box Content-->
<div class="content-box-content">
<?php if($res){?>
<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_setupinvoice">
<?php }?>
<!-- Start Tab Content id="list"-->
<div class="tab-content <?php echo ($_GET['act']=="" ? 'default-tab' : '');?>" id="list">
<form action="index.php?name=manu_setupinvoice" method="post" name="form_search">
<?php echo $lang_set['input_search'];?> :
<input type="text" class="text" value="" name="keyword" />
<input type="image" src="resources/images/icons/icon_search.gif" onclick="document.forms['form_search'].submit();" />
</form>
<form action="index.php?name=manu_setupinvoice&act=deleteAll" method="post">
<table cellpadding="0" cellspacing="0" width="100%">
<thead>
<tr>
<th width="20"><input type="checkbox" class="check_all" /></th>
<th width="50" align="left"><?php echo $lang_set['invoice_code']; ?></th>
<th width="75" align="left"><?php echo $lang_set['invoice_date']; ?></th>
<th width="75" align="left"><?php echo $lang_set['invoice_start']; ?></th>
<th width="75" align="left"><?php echo $lang_set['invoice_end']; ?></th>
<th width="75" align="left"><?php echo $lang_set['invoice_send']; ?></th>
<th width="50" align="left"><?php echo $lang_set['invoice_sum']; ?></th>
<th width="50" align="left"><?php echo $lang_set['invoice_status']; ?></th>
<th width="227"><?php echo $lang_set['action']; ?></th>
</tr>
</thead>
<?php
if($getPage){
foreach($getPage as $key => $val){
$getstart = $db->getOne( "deliverypoint", "*"," DeliveryPointID = '".$val['InvoiceStartPoint']."' and lang_code='".$lang_code."'","" );
$getend = $db->getOne( "deliverypoint", "*"," DeliveryPointID = '".$val['InvoiceEndPoint']."' and lang_code='".$lang_code."'","" );
$getsend = $db->getOne( "customer", "*"," CustomerID = '".$val['InvoiceSendID']."'","" );
?>
<tr>
<th><input type="checkbox" name="pagedel[]" value="<?php echo $val['InvoiceID'];?>"/></th>
<th><?php echo $val['InvoiceCode'];?></th>
<th><?php echo $objMaster->getdbdateformat($val['InvoiceDate']);?></th>
<th><?php echo $getstart['DeliveryPointName'];?></th>
<th><?php echo $getend['DeliveryPointName'];?></th>
<th><?php echo $getsend['CustomerName'];?></th>
<th>
<?php
/*echo $val['InvoiceSumary'];
echo " - ";
echo $val['InvoiceDiscountSum'];
echo " = ";*/
echo $val['InvoiceSumary'] - $val['InvoiceDiscountSum'];
?>
</th>
<th><?PHP echo $val['InvoiceStatus'];?></th>
<th>
<a href="index.php?name=manu_setupinvoice&file=route&InvoiceID=<?php echo $val['InvoiceID']?>" title="Point">Route</a> |
<a href="index.php?name=manu_setupinvoice&file=product&InvoiceID=<?php echo $val['InvoiceID']?>" title="Product">Product</a> |
<a href="index.php?name=manu_setupinvoice&file=barcode&InvoiceID=<?php echo $val['InvoiceID']?>" title="Product">Barcode</a> |
<a href="index.php?name=manu_setupinvoice&act=edit&InvoiceID=<?php echo $val['InvoiceID']?>#add" title="Edit"><img src="resources/images/icons/pencil.png" alt="Edit" /></a> |
<a href="index.php?name=manu_setupinvoice&act=deletedata&InvoiceID=<?php echo $val['InvoiceID']?>" title="Delete"><img src="resources/images/icons/cross.png" alt="Delete" /></a>
</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_setupinvoice&page=<?php echo $arrPage["startPage"];?>" title="First Page">« First</a><a href="index.php?name=manu_setupinvoice&page=<?php echo ($page-1);?>" title="Previous Page">« Previous</a>
<?php if( $arrPage["startPage"]!="" && $arrPage["endPage"] !="" ){?>
<?php
for($i = $arrPage["startPage"]; $i <= $arrPage["endPage"]; ++$i) {
echo'<a href="index.php?name=manu_setupinvoice&page='.$i.'" '.($page == $i ? 'class="number current"' : '').'>'.($i).'</a>';
}?>
<?php }?>
<a href="index.php?name=manu_setupinvoice&page=<?php echo ($page+1);?>" title="Next Page">Next »</a><a href="index.php?name=manu_setupinvoice&page=<?php echo $arrPage["endPage"];?>" title="Last Page">Last »</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_setupinvoice&act=<?php echo ($_GET['act']=="edit" ? "editdata" : "add");?>#add" method="post" enctype="multipart/form-data" ><!--onsubmit="return checkdelivery();"-->
<fieldset>
<input type="hidden" name="InvoiceID" value="<?php echo $_GET['InvoiceID'];?>">
<p>
<label><?php echo $lang_set['invoice_code']; ?>:</label>
<input type="text" class="text-input medium-input" name="InvoiceCode" id="InvoiceCode" value="<?php echo @$arrRes['InvoiceCode'];?>" />
<!--<span class="input-notification error png_bg" id="span_name"></span>--></p>
</p>
<p>
<label><?php echo $lang_set['invoice_start']; ?>:</label>
<select name="InvoiceStartPoint">
<?php
if($getPoint){foreach($getPoint as $key => $val5){
?>
<option value="<?php echo $val5['DeliveryPointID'];?>" <?php echo ($val5['DeliveryPointID']=='' || $val5['DeliveryPointID']==@$arrRes['InvoiceStartPoint'] ? "selected" : "")?>><?php echo $val5['DeliveryPointName'];?></option>
<?php }
}
?>
</select>
</p>
<p>
<label><?php echo $lang_set['invoice_end']; ?>:</label>
<select name="InvoiceEndPoint">
<?php
if($getPoint){foreach($getPoint as $key => $val6){
?>
<option value="<?php echo $val6['DeliveryPointID'];?>" <?php echo ($val6['DeliveryPointID']=='' || $val6['DeliveryPointID']==@$arrRes['InvoiceEndPoint'] ? "selected" : "")?>><?php echo $val6['DeliveryPointName'];?></option>
<?php }
}
?>
</select>
</p>
<p>
<label><?php echo $lang_set['invoice_date']; ?>:</label>
<input type="text" class="text date_picker" name="InvoiceDate" value="<?php echo @$arrRes['InvoiceDate'] == ''? date("d M Y",time()):@$arrRes['InvoiceDate'];?>"/>
</p>
<p>
<label><?php echo $lang_set['send_name']; ?>:</label>
<input type="text" class="text-input medium-input" name="SendName" id="SendName" value="<?php echo @$sendRes['CustomerName'];?>" />
<input type="button" name="checkname" value="<?php echo $lang_set['use']; ?>" onClick="AJAX_Get_Contact('Send');"/>
<!--<span class="input-notification error png_bg" id="span_value"></span>--></p>
<p>
<label><?php echo $lang_set['send_address']; ?>:</label>
<input type="text" class="text-input medium-input" name="SendAddress" id="SendAddress" value="<?php echo @$sendRes['CustomerAddress'];?>" />
<!--<span class="input-notification error png_bg" id="span_value"></span>--></p>
<p>
<label><?php echo $lang_set['send_province']; ?>:</label>
<select name="SendProvince" id="SendProvince" onchange="SelectProvince('<?PHP echo $lang_code;?>','Send')">
<?php
if($getProvince){foreach($getProvince as $key => $val){
?>
<option value="<?php echo $val['PROVINCE_NAME'];?>" <?php echo ($val['PROVINCE_NAME']=='' || $val['PROVINCE_NAME']==@$sendRes['CustomerProvince'] ? "selected" : "")?>><?php echo $val['PROVINCE_NAME'];?></option>
<?php }
}
?>
</select>
</p>
<p>
<label><?php echo $lang_set['send_district']; ?>:</label>
<select name="SendDistrict" id="SendDistrict" onchange="SelectDistrict('<?PHP echo $lang_code;?>','Send')">
<?php
if($getDistrict){foreach($getDistrict as $key => $val){
?>
<option value="<?php echo $val['AMPHUR_NAME'];?>" <?php echo ($val['AMPHUR_NAME']=='' || $val['AMPHUR_NAME']==@$sendRes['CustomerDistrict'] ? "selected" : "")?>><?php echo $val['AMPHUR_NAME'];?></option>
<?php }
}
?>
</select>
</p>
<p>
<label><?php echo $lang_set['send_post']; ?>:</label>
<input type="text" class="text-input medium-input" name="SendPostCode" id="SendPostCode" value="<?php echo @$sendRes['CustomerPostCode'];?>" />
<!--<span class="input-notification error png_bg" id="span_value"></span>--></p>
<p>
<label><?php echo $lang_set['send_phon']; ?>:</label>
<input type="text" class="text-input medium-input" name="SendPhon" id="SendPhon" value="<?php echo @$sendRes['CustomerPhon'];?>" />
<!--<span class="input-notification error png_bg" id="span_value"></span>--></p>
<p>
<label><?php echo $lang_set['receive_name']; ?>:</label>
<input type="text" class="text-input medium-input" name="ReceiveName" id="ReceiveName" value="<?php echo @$receiveRes['CustomerName'];?>" />
<input type="button" name="checkname" value="<?php echo $lang_set['use']; ?>" onClick="AJAX_Get_Contact('Receive');"/>
<!--<span class="input-notification error png_bg" id="span_value"></span>--></p>
<p>
<label><?php echo $lang_set['receive_address']; ?>:</label>
<input type="text" class="text-input medium-input" name="ReceiveAddress" id="ReceiveAddress" value="<?php echo @$receiveRes['CustomerAddress'];?>" />
<!--<span class="input-notification error png_bg" id="span_value"></span>--></p>
<p>
<label><?php echo $lang_set['receive_province']; ?>:</label>
<select name="ReceiveProvince" id="ReceiveProvince" onchange="SelectProvince('<?PHP echo $lang_code;?>','Receive')">
<?php
if($getProvince){foreach($getProvince as $key => $val){
?>
<option value="<?php echo $val['PROVINCE_NAME'];?>" <?php echo ($val['PROVINCE_NAME']=='' || $val['PROVINCE_NAME']==@$receiveRes['CustomerProvince'] ? "selected" : "")?>><?php echo $val['PROVINCE_NAME'];?></option>
<?php }
}
?>
</select>
</p>
<p>
<label><?php echo $lang_set['receive_district']; ?>:</label>
<select name="ReceiveDistrict" id="ReceiveDistrict" onchange="SelectDistrict('<?PHP echo $lang_code;?>','Receive')">
<?php
if($getDistrict){foreach($getDistrict as $key => $val){
?>
<option value="<?php echo $val['AMPHUR_NAME'];?>" <?php echo ($val['AMPHUR_NAME']=='' || $val['AMPHUR_NAME']==@$receiveRes['CustomerDistrict'] ? "selected" : "")?>><?php echo $val['AMPHUR_NAME'];?></option>
<?php }
}
?>
</select>
</p>
<p>
<label><?php echo $lang_set['receive_post']; ?>:</label>
<input type="text" class="text-input medium-input" name="ReceivePostCode" id="ReceivePostCode" value="<?php echo @$receiveRes['CustomerPostCode'];?>" />
<!--<span class="input-notification error png_bg" id="span_value"></span>--></p>
<p>
<label><?php echo $lang_set['receive_phon']; ?>:</label>
<input type="text" class="text-input medium-input" name="ReceivePhon" id="ReceivePhon" value="<?php echo @$receiveRes['CustomerPhon'];?>" />
<!--<span class="input-notification error png_bg" id="span_value"></span>--></p>
<p>
<input type="submit" class="button" value="<?php echo $lang_set['submit']; ?>" />
</p>
</fieldset>
</form>
</div>
<!-- End Tab Content id="add"-->
</div>