⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 user_form.ihtml

📁 phpShop是一个基于php的分布式电子商务模块
💻 IHTML
字号:
<?php if ($user_id) {   $q = "SELECT * from auth_user_md5,user_info ";   $q .= "where auth_user_md5.user_id=user_info.user_id ";   $q .= "AND auth_user_md5.user_id='$user_id' ";   $q .= "AND user_info.address_type='BT'";   $db->query($q);   $db->next_record();}?> <form method="post" action="<?php $sess->purl(SECUREURL) ?>" name="">  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="RecordsTable">    <tr>       <td nowrap="nowrap" colspan="2" class="RecordsTableHeader"><p class="HeaderText">&nbsp;<?php echo $user_form_lbl ?></p>      </td>    </tr>    <tr>       <td nowrap="nowrap" colspan="2" valign="top">         <table width="100%" border="0" cellspacing="0" cellpadding="2">          <tr>             <td width="27%" nowrap="nowrap" align="right"><?php echo $user_form_first_name ?>:</td>            <td width="73%">               <input type="text" name="first_name" size="18" value="<?php $db->sp("first_name") ?>" />            </td>          </tr>          <tr>             <td width="27%" nowrap="nowrap" align="right"><?php echo $user_form_last_name ?>:</td>            <td width="73%">               <input type="text" name="last_name" size="18" value="<?php $db->sp("last_name") ?>" />            </td>          </tr>          <tr>             <td width="27%" nowrap="nowrap" align="right" ><?php echo $user_form_middle_name ?>:</td>            <td width="73%" >               <input type="text" name="middle_name" size="16" value="<?php $db->sp("middle_name") ?>" />            </td>          </tr>          <tr>             <td width="27%" nowrap="nowrap" align="right" ><?php echo $user_form_title ?>:</td>            <td width="73%" > <?php list_user_title($db->sf("title")); ?></td>          </tr>          <tr>             <td width="27%" nowrap="nowrap" align="right" ><?php echo $user_form_username ?>:</td>            <td width="73%" >               <input type="text" name="username" size="16" value="<?php $db->sp("username") ?>" />            </td>          </tr>          <tr>             <td width="27%" nowrap="nowrap" align="right" ><?php echo $user_form_password_1 ?>:</td>            <td width="73%" >               <input type="password" name="password_1" size="12" />            </td>          </tr>          <tr>             <td width="27%" align="right" ><?php echo $user_form_password_2 ?>:</td>            <td width="73%" >               <input type="password" name="password_2" size="12" />            </td>          </tr>          <tr>             <td width="27%" nowrap="nowrap" align="right" ><?php echo $user_form_perms ?>:</td>            <td width="73%" > <?php$ps_user->list_perms("perms", $db->sf("perms"));?></td>          </tr>          <tr>             <td width="27%" nowrap="nowrap" align="right" >&nbsp; </td>            <td width="73%" >               <input type="hidden" name="user_id" value="<?php $db->sp("user_id"); ?>" />              <input type="hidden" name="cache" value="0" />              <input type="hidden" name="func" value="<?php if ($user_id) echo "userUpdate"; else echo "userAdd"; ?>" />              <input type="hidden" name="page" value="<?php echo $modulename?>/user_list" />              <?php$sess->hidden_session();?> </td>          </tr>          <tr>             <td colspan="2" class="RecordsTableAlternateHeader"><p class="HeaderText">&nbsp;<?php echo $user_form_billto_lbl ?></p></td>          </tr>          <tr>             <td width="27%" nowrap="nowrap" align="right" ><?php echo $user_form_company_name ?>:</td>            <td width="73%" >               <input type="text" name="company" size="24" value="<?php $db->sp("company") ?>" />            </td>          </tr>          <tr>             <td width="27%" nowrap="nowrap" align="right" ><?php echo $user_form_address_1 ?>:             </td>            <td width="73%" >               <input type="text" name="address_1" size="24" value="<?php $db->sp("address_1") ?>" />            </td>          </tr>          <tr>             <td width="27%" nowrap="nowrap" align="right" ><?php echo $user_form_address_2 ?>:             </td>            <td width="73%" >               <input type="text" name="address_2" size="24" value="<?php $db->sp("address_2") ?>" />            </td>          </tr>          <tr>             <td width="27%" nowrap="nowrap" align="right" ><?php echo $user_form_city ?>:</td>            <td width="73%" >               <input type="text" name="city" size="18" value="<?php $db->sp("city") ?>" />            </td>          </tr>          <tr>             <td width="27%" nowrap="nowrap" align="right" ><?php echo $user_form_state ?>:</td>            <td width="73%" >               <input type="text" name="state" size="3" value="<?php $db->sp("state") ?>" />            </td>          </tr>          <tr>             <td width="27%" nowrap="nowrap" align="right" ><?php echo $user_form_zip ?>:</td>            <td width="73%" >               <input type="text" name="zip" size="10" value="<?php $db->sp("zip") ?>" />            </td>          </tr>          <tr>             <td width="27%" nowrap="nowrap" align="right" ><?php echo $user_form_country ?>:</td>            <td width="73%" >               <?php $ps_html->list_country("country", $db->sf("country")) ?>            </td>          </tr>          <tr>             <td width="27%" nowrap="nowrap" align="right" > <?php echo $user_form_phone ?>:</td>            <td width="73%" >               <input type="text" name="phone_1" size="12" value="<?php $db->sp("phone_1") ?>" />            </td>          </tr>          <tr>             <td width="27%" nowrap="nowrap" align="right" ><?php echo $user_form_fax ?>:</td>            <td width="73%" >               <input type="text" name="fax" size="12" value="<?php $db->sp("fax") ?>" />            </td>          </tr>          <tr>             <td width="27%" nowrap="nowrap" align="right" ><?php echo $user_form_email ?>:</td>            <td width="73%" >               <input type="text" name="user_email" size="24" value="<?php $db->sp("user_email") ?>" />            </td>          </tr>          <tr>             <td width="27%" nowrap="nowrap">&nbsp; </td>            <td width="73%" nowrap="nowrap">&nbsp;</td>          </tr>          <tr>             <td colspan="2" nowrap="nowrap"><?php if ($user_id) { ?>               <table width="1000%" border="0" cellspacing="0" cellpadding="2">                <tr>                   <td class="RecordsTableAlternateHeader"><p class="HeaderText"><?php echo $user_form_shipto_lbl ?><a class="hLink" href="<?php $sess->purl(SECUREURL . "?page=$modulename/user_address_form&amp;user_id=$user_id") ?>"><br />                    </a><a class="hLink" href="<?php $sess->purl(SECUREURL . "?page=$modulename/user_address_form&amp;user_id=$user_id") ?>">(<?php echo $user_form_add_shipto_lbl ?>)                     </a></p>                  </td>                </tr>                <tr>                   <td> </td>                </tr>                <tr>                   <td ><?php$qt = "SELECT * from user_info where user_id='$user_id' ";$qt .= "AND address_type='ST'"; $dbt = new ps_DB;$dbt->query($qt);if (!$dbt->num_rows()) {  echo "No shipping addresses.";}else {  while ($dbt->next_record()) {    $url = SECUREURL . "?page=$modulename/user_address_form&user_id=$user_id&user_info_id=" . $dbt->f("user_info_id");    echo "&raquo; <a class=\"bLink\" href=" . $sess->url($url) . ">";    echo $dbt->f("address_type_name") . "</a><BR>";  }} ?></td>                </tr>              </table>              <?php } ?></td>          </tr>          <tr>             <td colspan="2" nowrap="nowrap">&nbsp;</td>          </tr>          <tr>             <td width="27%" nowrap="nowrap" >               <input type="hidden" name="address_type" value="BT" />              <input type="hidden" name="address_type_name" value="-default-" />            </td>            <td width="73%" nowrap="nowrap" >&nbsp;</td>          </tr>        </table>      </td>    </tr>    <tr>       <td nowrap="nowrap" colspan="2" align="center">&nbsp; </td>    </tr>    <tr>       <td nowrap="nowrap" colspan="2" align="center"> <?php if ($user_id) { ?>         <table width="50%" border="0" cellspacing="0" cellpadding="0">          <tr align="center">             <td width="100%" align="center">               <input type="submit" class="Button" border="0" value="Save" />               <input type="button" class="Button" value="Delete" onclick="return deleteRecord('<?php $sess->purl(SECUREURL . "?func=userDelete&page=store/user_list&user_id=" . $db->f('user_id')); ?>');" />             </td>          </tr>          <tr align="center">             <td width="100%" align="center"><br />            </td>          </tr>        </table>        <?php }else { ?>         <table width="50%" border="0" cellspacing="0" cellpadding="0">          <tr align="center">             <td width="100%" align="center"> 		<input type="submit" class="Button" border="0" value="Save" /> 		<input type="button" class="Button" value="Clear" onclick="document.location.href='<?php $sess->purl(SECUREURL . "?page=store/user_form&user_id") ?>';" />             </td>          </tr>          <tr align="center">             <td width="100%" align="center"><br />            </td>          </tr>        </table>        <?php } ?></td>    </tr>  </table></form>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -