Ejemplo n.º 1
0
        }
    }
    ?>
 
			</td> 
		</tr> 
	</table>
	</fieldset>
         <?php 
}
require_once CLASSPATH . 'ps_userfield.php';
// Get only those fields that are NOT system fields
$userFields = ps_userfield::getUserFields('account');
$skipFields = array('delimiter_userinfo', 'username', 'email', 'password', 'password2', 'agreed');
echo '<table class="adminform"><tr><td>';
ps_userfield::listUserFields($userFields, $skipFields, $db, false);
echo '</td></tr></table>';
$tabs->endTab();
require_once CLASSPATH . "pageNavigation.class.php";
require_once CLASSPATH . "htmlTools.class.php";
require_once CLASSPATH . 'ps_order_status.php';
$ps_order_status = new ps_order_status();
$q = "";
$list = "SELECT * FROM #__{vm}_orders ";
$count = "SELECT count(*) as num_rows FROM #__{vm}_orders ";
$q .= "WHERE  #__{vm}_orders.vendor_id='" . $_SESSION['ps_vendor_id'] . "' AND #__{vm}_orders.user_id=" . $user_id . " ";
$q .= "ORDER BY #__{vm}_orders.cdate DESC ";
$count .= $q;
$list .= $q;
$db->query($count);
$db->next_record();
Ejemplo n.º 2
0
 /**
  * Returns all Bank payment in a Radiolist
  *
  * @param int $payment_method_id
  * @param boolean $horiz
  */
 function list_bank($payment_method_id, $horiz)
 {
     $has_bank_methods = $this->list_payment_radio("B", $payment_method_id, $horiz);
     //A bit easier :-)
     if ($has_bank_methods) {
         require_once CLASSPATH . 'ps_user.php';
         $dbu =& ps_user::getUserInfo($_SESSION['auth']['user_id'], array('bank_account_holder', 'bank_iban', 'bank_account_nr', 'bank_sort_code', 'bank_name'));
         if (!$dbu->f('bank_account_holder') || !$dbu->f('bank_account_nr') || !$dbu->f('bank_sort_code')) {
             echo '<br />';
             require_once CLASSPATH . 'ps_userfield.php';
             ps_userfield::listUserFields(ps_userfield::getUserfields('bank'), array(), $dbu);
         }
     }
 }
Ejemplo n.º 3
0
<div style="width:90%;" class="adminform">
<fieldset>
	<legend><span class="sectiontableheader"><?php 
echo $VM_LANG->_('PHPSHOP_SHOPPER_FORM_SHIPTO_LBL');
?>
</span></legend>

	<!-- Registration form -->
	<form action="<?php 
echo $_SERVER['PHP_SELF'];
?>
" method="post" name="adminForm">
<?php 
// Display the shipping address
$fields = ps_userfield::getUserFields('shipping');
ps_userfield::listUserFields($fields, array(), $db, false);
?>

	<input type="hidden" name="option" value="com_virtuemart" />
<?php 
if (!empty($user_info_id)) {
    ?>
	<input type="hidden" name="func" value="userAddressUpdate" />
	<input type="hidden" name="user_info_id" value="<?php 
    echo $user_info_id;
    ?>
" />
<?php 
} else {
    ?>
	<input type="hidden" name="func" value="userAddressAdd" />
Ejemplo n.º 4
0
}
$fields = ps_userfield::getUserFields('registration', false, '', false);
// Read-only fields on registration don't make sense.
foreach ($fields as $field) {
    $field->readonly = 0;
}
$skip_fields = array();
if ($my->id > 0 || VM_REGISTRATION_TYPE != 'NORMAL_REGISTRATION' && VM_REGISTRATION_TYPE != 'OPTIONAL_REGISTRATION' && ($page == 'checkout.index' || $page == 'shop.registration')) {
    // A listing of fields that are NOT shown
    $skip_fields = array('username', 'password', 'password2');
    if ($my->id) {
        $skip_fields[] = 'email';
    }
}
// This is the part that prints out ALL registration fields!
ps_userfield::listUserFields($fields, $skip_fields);
echo '
<div align="center">';
if (!$mosConfig_useractivation && @VM_SHOW_REMEMBER_ME_BOX && VM_REGISTRATION_TYPE == 'NORMAL_REGISTRATION') {
    echo '<input type="checkbox" name="remember" value="yes" id="remember_login2" checked="checked" />
		<label for="remember_login2">' . $VM_LANG->_('REMEMBER_ME') . '</label><br /><br />';
} else {
    if (VM_REGISTRATION_TYPE == 'NO_REGISTRATION') {
        $rmbr = '';
    } else {
        $rmbr = 'yes';
    }
    echo '<input type="hidden" name="remember" value="' . $rmbr . '" />';
}
echo '
		<input type="submit" value="' . $VM_LANG->_('BUTTON_SEND_REG') . '" class="button" onclick="return( submitregistration());" />
?>
<fieldset>
        <legend><span class="sectiontableheader"><?php 
echo $VM_LANG->_('PHPSHOP_SHOPPER_FORM_SHIPTO_LBL');
?>
</span></legend>
        
<br />
<?php 
echo $VM_LANG->_('PHPSHOP_SHIPTO_TEXT');
?>
<br /><br /><br />

<div style="width:90%;">
<?php 
ps_userfield::listUserFields($fields, array(), $db);
?>

  <input type="hidden" name="option" value="com_virtuemart" />
  <input type="hidden" name="Itemid" value="<?php 
echo $Itemid;
?>
" />
  <input type="hidden" name="page" value="<?php 
echo $next_page;
?>
" />
  <input type="hidden" name="next_page" value="<?php 
echo $next_page;
?>
" />