| [ Indice ] |
Riferimento incrociato di Joomla! 1.5.14 - VM 1.1.4Servizio fornito da VMItalia |
[Vedi sommario] [Stampa] [Vedi testo]
1 <?php 2 if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' ); 3 /** 4 * 5 * @version $Id: shopper.shopper_address_form.php 1095 2007-12-19 20:19:16Z soeren_nb $ 6 * @package VirtueMart 7 * @subpackage html 8 * @copyright Copyright (C) 2004-2007 soeren - All rights reserved. 9 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php 10 * VirtueMart is free software. This version may have been modified pursuant 11 * to the GNU General Public License, and as distributed it includes or 12 * is derivative of works licensed under the GNU General Public License or 13 * other free or open source software licenses. 14 * See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details. 15 * 16 * http://virtuemart.net 17 */ 18 mm_showMyFileName( __FILE__ ); 19 20 $user_info_id = vmGet ( $_REQUEST, 'user_info_id', 0 ); 21 ?> 22 23 <h2><?php echo $VM_LANG->_('PHPSHOP_SHOPPER_FORM_ADDRESS_INFO_LBL') ?></H2> 24 <?php if (!empty($user_info_id)) { 25 $q = "SELECT * from #__users, #__{vm}_user_info "; 26 $q .= "WHERE (#__{vm}_user_info.user_info_id='$user_info_id' OR"; 27 $q .= " #__users.user_info_id='$user_info_id')"; 28 $db->query($q); 29 $db->next_record(); 30 } 31 ?> 32 <form method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>" name="adminForm"> 33 <table width="100%" border="0" cellspacing="0" cellpadding="2" > 34 <tr> 35 <td colspan="2" nowrap align="right" > 36 <div align="left"><b><?php echo $VM_LANG->_('PHPSHOP_SHOPPER_FORM_SHIPTO_LBL') ?></b></div> 37 </td> 38 </tr> 39 <tr> 40 <td width="21%" nowrap align="right" ><?php echo $VM_LANG->_('PHPSHOP_SHOPPER_FORM_ADDRESS_LABEL') ?>:</td> 41 <td width="79%" > 42 <input type="text" class="inputbox" name="address_type_name" value="<?php $db->sp("address_type_name") ?>" size="18" /> 43 </td> 44 </tr> 45 <tr> 46 <td width="21%" nowrap align="right" ><?php echo $VM_LANG->_('PHPSHOP_SHOPPER_FORM_FIRST_NAME') ?>:</td> 47 <td width="79%" > 48 <input type="text" class="inputbox" name="first_name" size="18" value="<?php $db->sp("first_name") ?>" /> 49 </td> 50 </tr> 51 <tr> 52 <td width="21%" nowrap align="right" ><?php echo $VM_LANG->_('PHPSHOP_SHOPPER_FORM_LAST_NAME') ?>:</td> 53 <td width="79%" > 54 <input type="text" class="inputbox" name="last_name" size="18" value="<?php $db->sp("last_name") ?>" /> 55 </td> 56 </tr> 57 <tr> 58 <td width="21%" nowrap align="right" ><?php echo $VM_LANG->_('PHPSHOP_SHOPPER_FORM_MIDDLE_NAME') ?>:</td> 59 <td width="79%" > 60 <input type="text" class="inputbox" name="middle_name" size="16" value="<?php $db->sp("middle_name") ?>" /> 61 </td> 62 </tr> 63 <tr> 64 <td width="21%" nowrap align="right" ><?php echo $VM_LANG->_('PHPSHOP_SHOPPER_FORM_TITLE') ?>:</td> 65 <td width="79%" > <?php $ps_html->list_user_title($db->sf("title")); ?></td> 66 </tr> 67 <tr> 68 <td width="21%" nowrap align="right" ><?php echo $VM_LANG->_('PHPSHOP_SHOPPER_FORM_COMPANY_NAME') ?>:</td> 69 <td width="79%" > 70 <input type="text" class="inputbox" name="company" size="24" value="<?php $db->sp("company") ?>" /> 71 </td> 72 </tr> 73 <tr> 74 <td width="21%" nowrap align="right" ><?php echo $VM_LANG->_('PHPSHOP_SHOPPER_FORM_ADDRESS_1') ?>: </td> 75 <td width="79%" > 76 <input type="text" class="inputbox" name="address_1" size="24" value="<?php $db->sp("address_1") ?>" /> 77 </td> 78 </tr> 79 <tr> 80 <td width="21%" nowrap align="right" ><?php echo $VM_LANG->_('PHPSHOP_SHOPPER_FORM_ADDRESS_2') ?>: 81 </td> 82 <td width="79%" > 83 <input type="text" class="inputbox" name="address_2" size="24" value="<?php $db->sp("address_2") ?>" /> 84 </td> 85 </tr> 86 <tr> 87 <td width="21%" nowrap align="right" ><?php echo $VM_LANG->_('PHPSHOP_SHOPPER_FORM_CITY') ?>:</td> 88 <td width="79%" > 89 <input type="text" class="inputbox" name="city" size="18" value="<?php $db->sp("city") ?>" /> 90 </td> 91 </tr> 92 <?php if (CAN_SELECT_STATES == '1') { ?> 93 <tr> 94 <td width="21%" nowrap align="right" ><?php echo $VM_LANG->_('PHPSHOP_SHOPPER_FORM_STATE') ?>:</td> 95 <td width="79%" > 96 <?php $ps_html->list_states("state", $db->sp("state")) ?> 97 </td> 98 </tr> 99 <?php } ?> 100 <tr> 101 <td width="21%" nowrap align="right" ><?php echo $VM_LANG->_('PHPSHOP_SHOPPER_FORM_ZIP') ?>:</td> 102 <td width="79%" > 103 <input type="text" class="inputbox" name="zip" size="10" value="<?php $db->sp("zip") ?>" /> 104 </td> 105 </tr> 106 <tr> 107 <td width="21%" nowrap align="right" ><?php echo $VM_LANG->_('PHPSHOP_SHOPPER_FORM_COUNTRY') ?>:</td> 108 <td width="79%" > 109 <?php $ps_html->list_country("country",$db->sf("country")) ?> 110 </td> 111 </tr> 112 <tr> 113 <td width="21%" nowrap align="right" > <?php echo $VM_LANG->_('PHPSHOP_SHOPPER_FORM_PHONE') ?>:</td> 114 <td width="79%" > 115 <input type="text" class="inputbox" name="phone_1" size="12" value="<?php $db->sp("phone_1") ?>" /> 116 </td> 117 </tr> 118 <tr> 119 <td width="21%" nowrap align="right" ><?php echo $VM_LANG->_('PHPSHOP_SHOPPER_FORM_FAX') ?>:</td> 120 <td width="79%" > 121 <input type="text" class="inputbox" name="fax" size="12" value="<?php $db->sp("fax") ?>" /> 122 </td> 123 </tr> 124 <tr> 125 <td width="21%" nowrap align="right" > </td> 126 <td width="79%" > </td> 127 </tr> 128 <tr> 129 <td width="21%" > 130 <input type="hidden" name="address_type" value="ST" /> 131 </td> 132 <td width="79%" > 133 <input type="hidden" name="user_info_id" value="<?php echo $user_info_id ?>" /> 134 <input type="hidden" name="func" value="<?php echo (!empty($user_info_id)) ? "userAddressUpdate" : "userAddressAdd"; ?>" /> 135 <input type="hidden" name="page" value="admin.shopper_form" /> 136 <input type="hidden" name="cache" value="0" /> 137 <input type="hidden" name="task" value="" /> 138 <input type="hidden" name="user_id" value="<?php $db->sp("user_id"); ?>" /> 139 <input type="hidden" name="option" value="com_virtuemart" /> 140 </td> 141 </tr> 142 </table> 143 </form> 144
titolo
Descrizione
Corpo
titolo
Descrizione
Corpo
titolo
Descrizione
Corpo
titolo
Corpo
| Generato il: Mon Oct 19 20:29:27 2009 | Generato con PHPXref 0.7 |