Location: PHPKode > projects > Simple PHP Shopping cart - asaancart > asaancart v-0.9/templates/edit_customer_form.tpl
{if $msg_customer==""}{else}<div style="clear:both; padding:10px;"></div>
<span id="msg_small">{$msg_customer}</span>
<div style="clear:both; padding:10px;"></div>{/if}
<form method="post" name="edit_customer_form" enctype="multipart/form-data">
{section name=selected_customer loop=$selected_customer}
<div id="demo" class="yui-navset">


    <ul class="yui-nav" style="font-size:11px;">
        <li class="selected"><a href="#tab1"><em>General Info</em></a></li>
        <li><a href="#tab2"><em>Postal Address</em></a></li>
        <li><a href="#tab3"><em>Billing Address</em></a></li>
        <li><a href="#tab4"><em>Shipping Address</em></a></li>
    </ul>            
    <div class="yui-content" style="background-color:#F3F3F3">
      <div><table width="100%" border="0" cellpadding="0" cellspacing="0" id="irForm">

  <tr>
    <td width="160">Customer Name</td>
    <td ><input id="customer_name" name="customer_name" type="text" value="{$selected_customer[selected_customer].customer_name}" class="irInput" /><input type="hidden" name="customer_id" id="customer_id" value="{$selected_customer[selected_customer].customer_id}" /></td>
  </tr>
  <tr>
    <td>Business/Company Name</td>
    <td><input id="business_name" name="business_name" type="text" value="{$selected_customer[selected_customer].business_name}"  class="irInput"/></td>
  </tr>
  
  <tr>
    <td>Email Address</td>
    <td><input id="email_address" name="email_address" type="text"  value="{$selected_customer[selected_customer].email_address}" class="irInput"/></td>
  </tr>
  <tr>
    <td>Mobile</td>
    <td><input id="customer_mobile" name="customer_mobile" type="text"  value="{$selected_customer[selected_customer].customer_mobile}" class="irInput" /></td>
  <tr>
    <td>Phone</td>
    <td><input id="customer_phone" name="customer_phone" type="text"  value="{$selected_customer[selected_customer].customer_phone}"  class="irInput"/></td>
    
  </tr>
  
  <tr>
    <td>Add this customer in mailing list</td>
    <td><input id="mailing_list" name="mailing_list" type="checkbox" value="yes"  class="irInput" {if $selected_customer[selected_customer].mailing_list=="yes"} checked="checked"{/if}/></td>
  </tr>
  </table>
  </div>
  <div>
<table width="100%" border="0" cellpadding="0" cellspacing="0" id="irForm">
  <tr>
    <td width="160">Country</td>
    <td><input id="customer_country" name="customer_country" type="text" value="Australia" readonly="readonly"  class="irInput"/><!-- {$selected_customer[selected_customer].customer_country} --></td>
  </tr>
  <tr>
    <td>State</td>
    <td><input id="customer_state" name="customer_state" type="text"  value="{$selected_customer[selected_customer].customer_state}"  class="irInput"/></td>
  </tr>
  <tr>
    <td>City</td>
    <td><input id="customer_city" name="customer_city" type="text"  value="{$selected_customer[selected_customer].customer_city}"  class="irInput"/></td>
  </tr>
  <tr>
    <td>Suburb</td>
    <td><input id="customer_suburb" name="customer_suburb" type="text"  value="{$selected_customer[selected_customer].customer_suburb}"  class="irInput"/></td>
  </tr>
  <tr>
    <td>postcode</td>
    <td><input name="customer_postcode" type="text" id="customer_postcode" size="10"  value="{$selected_customer[selected_customer].customer_postcode}"  class="irInput"/></td>
  </tr>
  <tr>
    <td>Address</td>
    <td><textarea name="customer_address" cols="30" rows="3" id="customer_address"  class="irTextarea" />{$selected_customer[selected_customer].customer_address}</textarea></td>
  </tr>
  </table>
  </div>
  <div>
  <table width="100%" border="0" cellpadding="0" cellspacing="0" id="irForm">
  <tr>
  <td colspan="2"><br />
[&rarr;] <a href="javascript:copyPaddress();" class="links">Same as postal address</a><br />
<br />
</td>
  </tr>
  <tr>
    <td width="160">Country</td>
    <td><input id="b_customer_country" name="b_customer_country" type="text" value="Australia" readonly="readonly"  class="irInput"/></td>
  </tr>
  <tr>
    <td>State</td>
    <td><input id="b_customer_state" name="b_customer_state" type="text"  value="{$selected_customer[selected_customer].b_customer_state}" class="irInput"/></td>
  </tr>
  <tr>
    <td>City</td>
    <td><input id="b_customer_city" name="b_customer_city" type="text"  value="{$selected_customer[selected_customer].b_customer_city}" class="irInput"/></td>
  </tr>
  <tr>
    <td>Suburb</td>
    <td><input id="b_customer_suburb" name="b_customer_suburb" type="text"  value="{$selected_customer[selected_customer].b_customer_suburb}" class="irInput"/></td>
  </tr>
  <tr>
    <td>postcode</td>
    <td><input name="b_customer_postcode" type="text" id="b_customer_postcode" size="10"  value="{$selected_customer[selected_customer].b_customer_postcode}" class="irInput"/></td>
  </tr>
  <tr>
    <td>Address</td>
    <td><textarea name="b_customer_address" cols="30" rows="3" id="b_customer_address"  class="irTextarea"/>{$selected_customer[selected_customer].b_customer_address}</textarea></td>
  </tr>
  
  </table>
  </div>
  <div>
  <table width="100%" border="0" cellpadding="0" cellspacing="0" id="irForm">
  <tr>
  <td colspan="2"><br />
[&rarr;] <a href="javascript:copyBaddress();">Same as billing address</a><br /><br />

</td>
  </tr>
  <tr>
    <td width="160">Country</td>
    <td><input id="s_customer_country" name="s_customer_country" type="text" value="Australia" readonly="readonly"  class="irInput"/></td>
  </tr>
  <tr>
    <td>State</td>
    <td><input id="s_customer_state" name="s_customer_state" type="text"  value="{$selected_customer[selected_customer].s_customer_state}" class="irInput"/></td>
  </tr>
  <tr>
    <td>City</td>
    <td><input id="s_customer_city" name="s_customer_city" type="text"  value="{$selected_customer[selected_customer].s_customer_city}" class="irInput"/></td>
  </tr>
  <tr>
    <td>Suburb</td>
    <td><input id="s_customer_suburb" name="s_customer_suburb" type="text"  value="{$selected_customer[selected_customer].s_customer_suburb}" class="irInput"/></td>
  </tr>
  <tr>
    <td>postcode</td>
    <td><input name="s_customer_postcode" type="text" id="s_customer_postcode" size="10"  value="{$selected_customer[selected_customer].s_customer_postcode}" class="irInput"/></td>
  </tr>
  <tr>
    <td>Address</td>
    <td><textarea name="s_customer_address" cols="30" rows="3" id="s_customer_address" class="irTextarea" />{$selected_customer[selected_customer].s_customer_address}</textarea></td>
  </tr>
</table>
</div>

</div>
</div>
</div>
<br />
{literal}
<script>
(function() {
    var tabView = new YAHOO.widget.TabView('demo');

    YAHOO.log("The Form has finished loading; as you interact with it, you'll see log messages appearing here.", "info", "form");

})();


</script>
{/literal}
{/section}
<input name="btn_edit" id="btn_edit" type="submit" value="Save" class="irBtnSave" />

</form>
Return current item: Simple PHP Shopping cart - asaancart