<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$title}</title>
<link rel="stylesheet" type="text/css" href="css/yui-fonts-min.css" />
<link rel="stylesheet" type="text/css" href="css/yui-tabview.css" />
<link href="css/global.css" rel="stylesheet" type="text/css" />
<link href="../menu/css/dropdown/dropdown.css" media="all" rel="stylesheet" type="text/css" />
<link href="../menu/css/dropdown/themes/default/default.advanced.css" media="all" rel="stylesheet" type="text/css" />
<!--[if lt IE 7]>
<script type="text/javascript" src="../menu/js/jquery/jquery.js"></script>
<script type="text/javascript" src="../menu/js/jquery/jquery.dropdown.js"></script>
<![endif]-->
<!-- Initialize Dojo -->
{literal}
<script type="text/javascript" src="http://yui.yahooapis.com/2.6.0/build/yahoo-dom-event/yahoo-dom-event.js"></script>
<script type="text/javascript" src="http://yui.yahooapis.com/2.6.0/build/element/element-beta-min.js"></script>
<script type="text/javascript" src="http://yui.yahooapis.com/2.6.0/build/tabview/tabview-min.js"></script>
<script src='../dojo/dojo/dojo.js' type='text/javascript'></script>
<script type='text/javascript'>
//<!--
// The following function submits the data from the 'post-form' form
// to a PHP script located at
// 'http://www.dojoforum.com/demo-0.9/xhr/parse_form.php'
// The PHP script simply outputs a string in the format of
// 'Hello $name!', which is then put in the <div> w/ the id
// of 'response'.
//
// NOTE: As with xhrGet, you can also use handleAs to accept
// JSON objects in your load() function.
//dojo.require("dojo.style");
function editCustomer() {
//document.getElementById("attribute_set_id").value = set_id;
//alert(set_id);
dojo.xhrPost ({
// The page that parses the POST request
url: 'edit_customer.php?btn_edit=Save',
// Name of the Form we want to submit
form: 'edit_customer_form',
// Loads this function if everything went ok
load: function (data) {
// Put the data into the appropriate <div>
//document.getElementById('loader2').style.display="";
//dojo.byId('update_list_attribute_value_box').innerHTML = data;
//document.getElementById('loader2').style.display="none";
},
// Call this function if an error happened
error: function (error) {
console.error ('Error: ', error);
}
});
}
//-->
function copyPaddress(){
document.getElementById("b_customer_country").value = document.getElementById("customer_country").value;
document.getElementById("b_customer_city").value = document.getElementById("customer_city").value;
document.getElementById("b_customer_suburb").value = document.getElementById("customer_suburb").value;
document.getElementById("b_customer_state").value = document.getElementById("customer_state").value;
document.getElementById("b_customer_postcode").value = document.getElementById("customer_postcode").value;
document.getElementById("b_customer_address").value = document.getElementById("customer_address").value;
}
function copyBaddress(){
document.getElementById("s_customer_country").value = document.getElementById("b_customer_country").value;
document.getElementById("s_customer_city").value = document.getElementById("b_customer_city").value;
document.getElementById("s_customer_suburb").value = document.getElementById("b_customer_suburb").value;
document.getElementById("s_customer_state").value = document.getElementById("b_customer_state").value;
document.getElementById("s_customer_postcode").value = document.getElementById("b_customer_postcode").value;
document.getElementById("s_customer_address").value = document.getElementById("b_customer_address").value;
}
</script>
{/literal}
</head>
<body>
<div id="page_container">
<div id="admin_header">{include file='admin_header.tpl'}</div>
<div id="admin_nav">{include file='admin_navigation.tpl'}</div>
<div id="contents">
<!-- Manage category controls -->
<div id="manage_cat_box">
{include file='mini_customer_nav.tpl'}
<h3>Edit Customer</h3>
<div style="width:680">
<div class=" yui-skin-sam">{include file='edit_customer_form.tpl'}</div>
</div>
</div>
</div>
<!-- end manage categories -->
<!-- <div id="section_info_box">
<h4>Why to select image</h4>
</div>-->
<div style="clear:both;"></div>
</div>
<div id="admin_footer">{include file='admin_footer.tpl'}</div>
</div>
</body>
</html>