📄 shopper_address_form.ihtml
字号:
<h2><?php echo $shopper_form_address_info_lbl ?></H2>
<?php if ($user_info_id) {
$q = "SELECT * from auth_user_md5, user_info ";
$q .= "where auth_user_md5.user_id=user_info.user_id ";
$q .= "AND user_info.user_info_id='$user_info_id' ";
$db->query($q);
$db->next_record();
}
?>
<form method="post" action="<?php $sess->purl(SECUREURL) ?>" name="">
<table width="100%" border="0" cellspacing="0" cellpadding="2" >
<tr>
<td colspan="2" nowrap align="right" >
<div align="left"><b><?php echo $shopper_form_shipto_lbl ?></b></div>
</td>
</tr>
<tr>
<td width="21%" nowrap align="right" ><?php echo $shopper_form_address_label ?>:</td>
<td width="79%" >
<input type="text" name="address_type_name" value="<?php $db->sp("address_type_name") ?>" size="18">
</td>
</tr>
<tr>
<td width="21%" nowrap align="right" ><?php echo $shopper_form_first_name ?>:</td>
<td width="79%" >
<input type="text" name="first_name" size="18" value="<?php $db->sp("first_name") ?>">
</td>
</tr>
<tr>
<td width="21%" nowrap align="right" ><?php echo $shopper_form_last_name ?>:</td>
<td width="79%" >
<input type="text" name="last_name" size="18" value="<?php $db->sp("last_name") ?>">
</td>
</tr>
<tr>
<td width="21%" nowrap align="right" ><?php echo $shopper_form_middle_name ?>:</td>
<td width="79%" >
<input type="text" name="middle_name" size="16" value="<?php $db->sp("middle_name") ?>">
</td>
</tr>
<tr>
<td width="21%" nowrap align="right" ><?php echo $shopper_form_title ?>:</td>
<td width="79%" > <?php list_user_title($db->sf("title")); ?></td>
</tr>
<tr>
<td width="21%" nowrap align="right" ><?php echo $shopper_form_company_name ?>:</td>
<td width="79%" >
<input type="text" name="company" size="24" value="<?php $db->sp("company") ?>">
</td>
</tr>
<tr>
<td width="21%" nowrap align="right" ><?php echo $shopper_form_address_1 ?>: </td>
<td width="79%" >
<input type="text" name="address_1" size="24" value="<?php $db->sp("address_1") ?>">
</td>
</tr>
<tr>
<td width="21%" nowrap align="right" ><?php echo $shopper_form_address_2 ?>:
</td>
<td width="79%" >
<input type="text" name="address_2" size="24" value="<?php $db->sp("address_2") ?>">
</td>
</tr>
<tr>
<td width="21%" nowrap align="right" ><?php echo $shopper_form_city ?>:</td>
<td width="79%" >
<input type="text" name="city" size="18" value="<?php $db->sp("city") ?>">
</td>
</tr>
<tr>
<td width="21%" nowrap align="right" ><?php echo $shopper_form_state ?>:</td>
<td width="79%" >
<input type="text" name="state" size="3" value="<?php $db->sp("state") ?>">
</td>
</tr>
<tr>
<td width="21%" nowrap align="right" ><?php echo $shopper_form_zip ?>:</td>
<td width="79%" >
<input type="text" name="zip" size="10" value="<?php $db->sp("zip") ?>">
</td>
</tr>
<tr>
<td width="21%" nowrap align="right" ><?php echo $shopper_form_country ?>:</td>
<td width="79%" >
<?php $ps_html->list_country("country",$db->sf("country")) ?>
</td>
</tr>
<tr>
<td width="21%" nowrap align="right" > <?php echo $shopper_form_phone ?>:</td>
<td width="79%" >
<input type="text" name="phone_1" size="12" value="<?php $db->sp("phone_1") ?>">
</td>
</tr>
<tr>
<td width="21%" nowrap align="right" ><?php echo $shopper_form_fax ?>:</td>
<td width="79%" >
<input type="text" name="fax" size="12" value="<?php $db->sp("fax") ?>">
</td>
</tr>
<tr>
<td width="21%" nowrap align="right" > </td>
<td width="79%" > </td>
</tr>
<tr>
<td width="21%" >
<input type="hidden" name="address_type" value="ST">
</td>
<td width="79%" >
<input type="hidden" name="user_info_id" value="<?php echo $user_info_id ?>">
<input type="hidden" name="func" value="<?php if ($user_info_id) echo "userAddressUpdate"; else echo "userAddressAdd"; ?>">
<input type="hidden" name="page" value="admin/shopper_form">
<input type="hidden" name="cache" value="0">
<input type="hidden" name="user_id" value="<?php $db->sp("user_id"); ?>">
<?php
$sess->hidden_session();
?> </td>
</tr>
</table>
<?php if ($user_info_id) { ?>
<table width="75%" border="0" cellspacing="0" cellpadding="0" ALIGN="CENTER">
<tr align="center">
<td width="33%">
<input type="image" border="0" src="/phpshop/ps_image/save.gif" width="50" height="16" name="image">
</td>
<td width="34%"><a href="<?php $sess->purl(SECUREURL . "?page=admin/shopper_form&func=userAddressDelete&user_info_id=" . $db->f('user_info_id') . "&user_id=" . $db->f("user_id")); ?>" onClick="return confirm('Are you sure you want to delete this record?')"><img src="/ps_image/delete.gif" width="50" height="16" border="0"></a>
</td>
<td width="33%"><a href="<?php $sess->purl(SECUREURL . "?page=admin/shopper_form&user_id=" . $db->f("user_id")); ?>"><img src="/phpshop/ps_image/cancel.gif" width="50" height="16" border="0"></a></td>
</tr>
</table>
<?php }
else { ?>
<table width="75%" border="0" cellspacing="0" cellpadding="0" ALIGN="CENTER">
<tr align="center">
<td width="33%">
<input type="image" border="0" src="/phpshop/ps_image/save.gif" width="50" height="16" name="image2">
</td>
<td width="34%"><a href="<?php $sess->purl(SECUREURL . "?page=admin/shopper_address_form&user_info_id"); ?>"><img src="/phpshop/ps_image/clear.gif" width="50" height="16" border="0"></a>
</td>
<td width="33%"><a href="<?php $sess->purl(SECUREURL . "?page=admin/shopper_form&user_id=" . $vars["user_id"]); ?>"user_id?><img src="/phpshop/ps_image/cancel.gif" width="50" height="16" border="0"></a></td>
</tr>
</table>
<?php } ?>
</form>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -