protected function generateForm($data = null)
 {
     if (is_null($data)) {
         return $this->formFactory->createBuilder('form')->add('name', 'text', ['attr' => ['class' => 'form-control'], 'label' => 'Nombre'])->add('description', 'text', ['attr' => ['class' => 'form-control'], 'label' => 'Descripción'])->add('cost', 'text', ['attr' => ['class' => 'form-control'], 'label' => 'Costo'])->getForm();
     } else {
         return $this->formFactory->createBuilder('form')->add('name', 'text', ['attr' => ['class' => 'form-control'], 'data' => $data[0]['name'], 'label' => 'Nombre'])->add('description', 'text', ['attr' => ['class' => 'form-control'], 'data' => $data[0]['description'], 'label' => 'Descripción'])->add('cost', 'text', ['attr' => ['class' => 'form-control'], 'data' => $data[0]['cost'], 'label' => 'Costo'])->getForm();
     }
 }
 protected function generateForm($data = null)
 {
     if (is_null($data)) {
         return $this->formFactory->createBuilder('form')->add('name', 'text', ['attr' => ['class' => 'form-control'], 'label' => 'Nombre'])->add('address', 'text', ['attr' => ['class' => 'form-control'], 'label' => 'Dirección'])->add('num_rooms', 'text', ['attr' => ['class' => 'form-control'], 'label' => 'Número de habitaciones'])->add('mobile', 'text', ['attr' => ['class' => 'form-control'], 'label' => 'Celular'])->add('phone', 'text', ['attr' => ['class' => 'form-control'], 'label' => 'Telefono'])->getForm();
     } else {
         return $this->formFactory->createBuilder('form')->add('name', 'text', ['attr' => ['class' => 'form-control'], 'data' => $data[0]['name'], 'label' => 'Nombre'])->add('address', 'text', ['attr' => ['class' => 'form-control'], 'data' => $data[0]['address'], 'label' => 'Dirección'])->add('num_rooms', 'text', ['attr' => ['class' => 'form-control'], 'data' => $data[0]['num_rooms'], 'label' => 'Número de habitaciones'])->add('mobile', 'text', ['attr' => ['class' => 'form-control'], 'data' => $data[0]['mobile'], 'label' => 'Celular'])->add('phone', 'text', ['attr' => ['class' => 'form-control'], 'data' => $data[0]['phone'], 'label' => 'Telefono'])->getForm();
     }
 }
*
*/
global $VM_LANG;
if (vmget($_SESSION, 'vm_updatepackage') == null) {
    $vmLogger->err($VM_LANG->_('VM_UPDATE_NOTDOWNLOADED'));
    return;
}
require_once CLASSPATH . 'update.class.php';
$packageContents = vmUpdate::getPatchContents(vmget($_SESSION, 'vm_updatepackage'));
if ($packageContents === false) {
    $vmLogger->flush();
    // An Error should be logged before
    return;
}
vmCommonHTML::loadMooTools();
$formObj = new formFactory($VM_LANG->_('VM_UPDATE_PREVIEW_LBL'));
$formObj->startForm();
$vm_mainframe->addStyleDeclaration(".writable { color:green;}\n.unwritable { color:red;font-weight:bold; }");
vmUpdate::stepBar(2);
?>
<a name="warning"></a>
<div class="shop_warning">
	<span style="font-style: italic;"><?php 
echo $VM_LANG->_('VM_UPDATE_WARNING_TITLE');
?>
</span><br />
	<?php 
echo $VM_LANG->_('VM_UPDATE_WARNING_TEXT');
?>
</div>
<div class="shop_info">
* @version $Id: product.product_discount_form.php 1961 2009-10-12 20:18:00Z Aravot $
* @package VirtueMart
* @subpackage html
* @copyright Copyright (C) 2004-2007 soeren - All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
*
* http://virtuemart.net
*/
mm_showMyFileName(__FILE__);
//First create the object and let it print a form heading
$formObj = new formFactory($VM_LANG->_('PHPSHOP_PRODUCT_DISCOUNT_ADDEDIT'));
//Then Start the form
$formObj->startForm();
$discount_id = vmGet($_REQUEST, 'discount_id', null);
$option = empty($option) ? vmGet($_REQUEST, 'option', 'com_virtuemart') : $option;
if (!empty($discount_id)) {
    $q = "SELECT * FROM #__{vm}_product_discount WHERE discount_id='{$discount_id}'";
    $db->query($q);
    $db->next_record();
}
echo vmCommonHTML::scriptTag($mosConfig_live_site . '/includes/js/calendar/calendar.js');
if (class_exists('JConfig')) {
    // in Joomla 1.5, the name of calendar lang file is changed...
    echo vmCommonHTML::scriptTag($mosConfig_live_site . '/includes/js/calendar/lang/calendar-en-GB.js');
} else {
    echo vmCommonHTML::scriptTag($mosConfig_live_site . '/includes/js/calendar/lang/calendar-en.js');
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
*
* http://virtuemart.net
*/
mm_showMyFileName(__FILE__);
$currency_id = vmGet($_REQUEST, 'currency_id');
$option = empty($option) ? vmGet($_REQUEST, 'option', 'com_virtuemart') : $option;
if ($currency_id) {
    $q = "SELECT * from #__{vm}_currency WHERE currency_id='{$currency_id}'";
    $db->query($q);
    $db->next_record();
}
//First create the object and let it print a form heading
$formObj = new formFactory($VM_LANG->_('PHPSHOP_CURRENCY_LIST_ADD'));
//Then Start the form
$formObj->startForm();
?>
 
<table class="adminform">
    <tr> 
      <td colspan="2">&nbsp;</td>
    </tr>
    <tr> 
      <td width="24%" align="right"><?php 
echo $VM_LANG->_('PHPSHOP_CURRENCY_LIST_NAME');
?>
:</td>
      <td width="76%"> 
        <input type="text" class="inputbox" name="currency_name" value="<?php 
* @version $Id: vendor.vendor_category_form.php 1961 2009-10-12 20:18:00Z Aravot $
* @package VirtueMart
* @subpackage html
* @copyright Copyright (C) 2004-2007 soeren - All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
*
* http://virtuemart.net
*/
mm_showMyFileName(__FILE__);
//First create the object and let it print a form heading
$formObj = new formFactory($VM_LANG->_('PHPSHOP_VENDOR_CAT_FORM_LBL'));
//Then Start the form
$formObj->startForm();
$option = empty($option) ? vmGet($_REQUEST, 'option', 'com_virtuemart') : $option;
$vendor_category_id = vmGet($_REQUEST, 'vendor_category_id');
if (!empty($vendor_category_id)) {
    $q = "SELECT * FROM #__{vm}_vendor_category ";
    $q .= "WHERE vendor_category_id='{$vendor_category_id}'";
    $db->query($q);
    $db->next_record();
}
?>
 
<table class="adminform">
	<tr> 
                  <td width="38%" nowrap align="right"><strong><?php 
*/
global $VM_LANG;
if (vmget($_SESSION, 'vm_updatepackage') !== null) {
    include PAGEPATH . 'admin.update_preview.php';
    return;
}
vmCommonHTML::loadMooTools();
require_once CLASSPATH . 'update.class.php';
if (!empty($_SESSION['vmLatestVersion']) && version_compare($VMVERSION->RELEASE, $_SESSION['vmLatestVersion']) === -1) {
    $checkbutton_style = 'display:none;';
    $downloadbutton_style = '';
} else {
    $checkbutton_style = '';
    $downloadbutton_style = 'display:none;';
}
$formObj = new formFactory($VM_LANG->_('VM_UPDATE_CHECK_LBL'));
$formObj->startForm('adminForm', 'enctype="multipart/form-data"');
vmUpdate::stepBar(1);
$tabs = new vmTabPanel(0, 0, 'versionCheck');
$tabs->startPane('versionCheckPane');
$tabs->startTab($VM_LANG->_('VM_UPDATE_CHECK_LBL'), 'update_check');
?>
<table class="adminlist">
  <tr>
    <th class="title"><?php 
echo $VM_LANG->_('VM_UPDATE_CHECK_VERSION_INSTALLED');
?>
</th>
    <th class="title"><?php 
echo $VM_LANG->_('VM_UPDATE_CHECK_LATEST_VERSION');
?>
Example #8
0
*
* http://virtuemart.net
*/
mm_showMyFileName(__FILE__);
require_once CLASSPATH . 'ps_zone.php';
$ps_zone = new ps_zone();
$country_id = vmGet($_REQUEST, 'country_id');
$option = empty($option) ? vmGet($_REQUEST, 'option', 'com_virtuemart') : $option;
if (!empty($country_id)) {
    $q = "SELECT * from #__{vm}_country WHERE country_id='{$country_id}'";
    $db->query($q);
    $db->next_record();
}
$funcname = !empty($country_id) ? "countryUpdate" : "countryAdd";
// Create the Form Control Object
$formObj = new formFactory($VM_LANG->_('PHPSHOP_COUNTRY_LIST_ADD'));
// Start the the Form
$formObj->startForm();
// Add necessary hidden fields
$formObj->hiddenField('country_id', $country_id);
?>
<table class="adminform">
	<tr> 
		<td colspan="2">&nbsp;</td>
	</tr>
	<tr> 
		<td width="24%" align="right"><?php 
echo $VM_LANG->_('PHPSHOP_COUNTRY_LIST_NAME');
?>
:</td>
		<td width="76%"> 
Example #9
0
* @version $Id: shipping.rate_form.php 1961 2009-10-12 20:18:00Z Aravot $
* @package VirtueMart
* @subpackage html
* @copyright Copyright (C) 2004-2007 soeren - All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
*
* http://virtuemart.net
*/
mm_showMyFileName(__FILE__);
//First create the object and let it print a form heading
$formObj = new formFactory($VM_LANG->_('PHPSHOP_RATE_FORM_LBL'));
//Then Start the form
$formObj->startForm();
$shipping_rate_id = vmGet($_REQUEST, 'shipping_rate_id');
$option = empty($option) ? vmGet($_REQUEST, 'option', 'com_virtuemart') : $option;
if (!isset($ps_shipping)) {
    $ps_shipping = new ps_shipping();
}
if (!empty($shipping_rate_id)) {
    $q = 'SELECT * FROM #__{vm}_shipping_rate WHERE shipping_rate_id=' . (int) $shipping_rate_id;
    $db->query($q);
    $db->next_record();
}
?>
<br />
Example #10
0
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
*
* http://virtuemart.net
*/
global $ps_vendor_category, $ps_vendor;
mm_showMyFileName(__FILE__);
?>
<div class="shop_warning">This feature is still in an early ALPHA stadium. Don't use it if you're not sure how to debug it.
VirtueMart currently doesn't support managing multiple vendors</div>
<?php 
//First create the object and let it print a form heading
$formObj = new formFactory($VM_LANG->_('PHPSHOP_VENDOR_FORM_LBL'));
//Then Start the form
$formObj->startForm('adminForm', 'enctype="multipart/form-data"');
$option = empty($option) ? vmGet($_REQUEST, 'option', 'com_virtuemart') : $option;
$vendor_id = vmGet($_REQUEST, 'vendor_id');
if (!empty($vendor_id)) {
    $q = "SELECT * FROM #__{vm}_vendor WHERE vendor_id='{$vendor_id}'";
    $db->query($q);
    $db->next_record();
} elseif (!isset($vars["error"])) {
    $default["vendor_currency"] = $_SESSION['vendor_currency'];
}
/* Build up the Tabs */
$tabs = new vmTabPanel(0, 1, "vendorform");
$tabs->startPane("content-pane");
$tabs->startTab($VM_LANG->_('PHPSHOP_STORE_MOD'), "info-page");
if (!empty($payment_method_id)) {
    $q = "SELECT * FROM #__{vm}_payment_method WHERE vendor_id='{$ps_vendor_id}' AND ";
    $q .= "payment_method_id='{$payment_method_id}'";
    $db->query($q);
    $db->next_record();
}
if ($db->f("payment_class")) {
    if (include_once CLASSPATH . "payment/" . $db->f("payment_class") . ".php") {
        eval("\$_PAYMENT = new " . $db->f("payment_class") . "();");
    }
} else {
    include CLASSPATH . "payment/ps_payment.php";
    $_PAYMENT = new ps_payment();
}
//First create the object and let it print a form heading
$formObj = new formFactory($VM_LANG->_('PHPSHOP_PAYMENT_METHOD_FORM_LBL'));
//Then Start the form
$formObj->startForm();
?>
<br />
<?php 
$tabs = new vmTabPanel(0, 1, "paymentform");
$tabs->startPane("content-pane");
$tabs->startTab($VM_LANG->_('PHPSHOP_PAYMENT_METHOD_FORM_LBL'), "global-page");
?>
<table class="adminform">
    <tr class="row0">
      <td class="labelcell"><?php 
echo $VM_LANG->_('PHPSHOP_ISSHIP_LIST_PUBLISH_LBL');
?>
?:</td>
*
* http://virtuemart.net
*/
mm_showMyFileName(__FILE__);
include_class("vendor");
global $ps_vendor, $ps_vendor_id;
$VM_LANG->load('admin');
$option = empty($option) ? vmGet($_REQUEST, 'option', 'com_virtuemart') : $option;
$currency_style_positive = array('00Symb', '00 Symb', 'Symb00', 'Symb 00');
$currency_style_negative = array('(Symb00)', '-Symb00', 'Symb-00', 'Symb00-', '(00Symb)', '-00Symb', '00-Symb', '00Symb-', '-00 Symb', '-Symb 00', '00 Symb-', 'Symb 00-', 'Symb -00', '00- Symb', '(Symb 00)', '(00 Symb)');
$q = "SELECT * FROM #__{vm}_vendor WHERE vendor_id='{$ps_vendor_id}'";
$db->query($q);
$db->next_record();
$title = '<img src="' . VM_THEMEURL . 'images/administration/dashboard/store.png" align="absmiddle" border="0" alt="Store" />' . '&nbsp;&nbsp;&nbsp;' . $VM_LANG->_('PHPSHOP_STORE_FORM_LBL');
//First create the object and let it print a form heading
$formObj = new formFactory($title);
//Then Start the form
$formObj->startForm('adminForm', 'enctype="multipart/form-data"');
?>
<br /><br />
  <table class="adminform">
    <tr> 
 		<td width="50%" valign="top"><br />
		  <fieldset>
		  <legend><?php 
echo $VM_LANG->_('PHPSHOP_STORE_MOD');
?>
</legend>
	 		<table class="adminform">
			    <tr> 
			      <td class="labelcell"><?php 
Example #13
0
    ?>
	<a href="<?php 
    echo $mosConfig_live_site . "/index.php?option=com_virtuemart&page=shop.product_details&flypage={$flypage}&product_id={$product_id}";
    ?>
" target="_blank">
		  <?php 
    echo $VM_LANG->_('PHPSHOP_PRODUCT_FORM_SHOW_FLYPAGE');
    ?>
	</a>
	<?php 
} elseif (!empty($product_parent_id)) {
    $parent_product_name = $ps_product->get_field($product_parent_id, 'product_name');
    $title .= ' :: <a href="' . $sess->url($_SERVER['PHP_SELF'] . '?page=product.product_form&product_id=' . $product_parent_id) . '">' . $parent_product_name . '</a>';
}
//First create the object and let it print a form heading
$formObj = new formFactory($title);
//Then Start the form
$formObj->startForm('adminForm', 'enctype="multipart/form-data"');
$tabs = new vmTabPanel(0, 1, "productform");
$tabs->startPane("content-pane");
$tabs->startTab($info_label, "info-page");
?>
<table class="adminform">
	<tr> 
   		<td valign="top">
			<table width="100%" border="0">
      			<tr> 
       				<td align="left" colspan="2"><?php 
echo "<h2 >{$info_label}</h2>";
?>
</td>
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
*
* http://virtuemart.net
*/
mm_showMyFileName(__FILE__);
require_once CLASSPATH . 'ps_order_status.php';
$ps_order_status = new ps_order_status();
$order_status_id = vmrequest::getInt('order_status_id', 0);
$option = empty($option) ? vmGet($_REQUEST, 'option', 'com_virtuemart') : $option;
//First create the object and let it print a form heading
$formObj = new formFactory($VM_LANG->_('PHPSHOP_ORDER_STATUS_FORM_LBL'));
//Then Start the form
$formObj->startForm();
$readonly = '';
if (!empty($order_status_id)) {
    $q = "SELECT * FROM #__{vm}_order_status WHERE order_status_id='{$order_status_id}'";
    $db->query($q);
    $db->next_record();
    if (in_array($db->f('order_status_code'), $ps_order_status->_protected_status_codes)) {
        $readonly = 'readonly="readonly"';
    }
}
?>
<br />
<table class="adminform">
Example #15
0
    $db->next_record();
    if ($db->f("coupon_type") == "gift") {
        $selected[0] = "selected=\"selected\"";
        $selected[1] = "";
    } else {
        $selected[1] = "selected=\"selected\"";
        $selected[0] = "";
    }
    $title = $VM_LANG->_('PHPSHOP_COUPON_EDIT_HEADER');
} else {
    $selected[0] = "selected=\"selected\"";
    $selected[1] = "";
    $title = $VM_LANG->_('PHPSHOP_COUPON_NEW_HEADER');
}
//First create the object and let it print a form heading
$formObj = new formFactory($title);
//Then Start the form
$formObj->startForm();
?>

  <table class="adminform">
    <tr> 
      <td colspan="2">&nbsp;</td>
    </tr>
    <tr> 
      <td width="24%"><div align="right"><?php 
echo $VM_LANG->_('PHPSHOP_COUPON_COUPON_HEADER');
?>
:</div></td>
      <td width="76%"> 
        <input type="text" class="inputbox" name="coupon_code" value="<?php 
* @subpackage html
* @copyright Copyright (C) 2004-2007 soeren - All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
*
* http://virtuemart.net
*/
global $ps_product_type;
$product_type_id = vmGet($_REQUEST, 'product_type_id', 0);
$option = empty($option) ? vmGet($_REQUEST, 'option', 'com_virtuemart') : $option;
//First create the object and let it print a form heading
$formObj = new formFactory($VM_LANG->_('PHPSHOP_PRODUCT_TYPE_FORM_LBL'));
//Then Start the form
$formObj->startForm();
if ($product_type_id) {
    $q = "SELECT * from #__{vm}_product_type WHERE product_type_id='{$product_type_id}'";
    $db->query($q);
    $db->next_record();
} elseif (empty($vars["error"])) {
    $default["product_type_publish"] = "Y";
}
?>
 
<table class="adminform">
	<tr> 
      <td class="labelcell"><?php 
echo $VM_LANG->_('PHPSHOP_PRODUCT_TYPE_FORM_PUBLISH');
Example #17
0
            }
        }
    } else {
        vmCommonHTML::setSelectedArray($selected_type, 0, 'selected', array(3, 5));
    }
} else {
    if ($hasProductImages) {
        vmCommonHTML::setSelectedArray($selected_type, 4, 'selected', array(0, 1, 2));
    }
    $isProductDownload = false;
    $default["file_title"] = $db->f('product_name');
    $default["file_published"] = "1";
    unset($db->record);
}
//First create the object and let it print a form heading
$formObj = new formFactory($title);
//Then Start the form
$formObj->startForm('adminForm', 'enctype="multipart/form-data"');
?>
<br />
  <table class="adminform">
  <?php 
if ($file_id) {
    ?>
    <tr> 
      <td class="labelcell"><?php 
    echo $VM_LANG->_('PHPSHOP_FILES_FORM_CURRENT_FILE');
    ?>
:</td>
      <td><?php 
    echo $file_id == 'product_images' ? $db->f("file_name") . '<br />' . $db->f("file_name2") : $db->f("file_name");
    exit;
}
if (!file_exists($themepath . '/theme.config.php')) {
    if (!fopen($themepath . '/theme.config.php', 'w')) {
        echo vmCommonHTML::getErrorField($VM_LANG->_('VM_ADMIN_THEME_CFG_NOT_EXISTS'));
        return;
    }
}
$current_config = file_get_contents($themepath . '/theme.config.php');
$parameter_xml_file = $themepath . '/theme.xml';
// get params definitions
$params = new vmParameters($current_config, $parameter_xml_file, 'theme');
$title = '&nbsp;&nbsp;<img src="' . VM_THEMEURL . 'images/administration/header/icon-48-config.png" align="middle" border="0" alt="' . $VM_LANG->_('VM_ADMIN_CFG_THEME_SETTINGS') . '" />&nbsp;';
$title .= $VM_LANG->_('VM_ADMIN_CFG_THEME_SETTINGS');
//First create the object and let it print a form heading
$formObj = new formFactory($title);
//Then Start the form
$formObj->startForm();
$ps_html->writableIndicator($themepath . '/theme.config.php', 'text-align:left;width:78%;');
vmCommonHTML::loadExtjs();
?>

	<fieldset style="width: 80%">
		<legend><?php 
echo $VM_LANG->_('VM_ADMIN_CFG_THEME_PARAMETERS');
?>
</legend>
		<table class="adminform">
		<tr>
			<td>
			<?php 
$userid = vmGet($_REQUEST, 'userid');
$nextpage = vmGet($_REQUEST, 'nextpage', 'product.review_list');
$review_id = intval(vmGet($_REQUEST, 'review_id'));
$funcname = $review_id ? "reviewUpdate" : "addReview";
if ($ps_function->userCanExecuteFunc($funcname)) {
    if (empty($userid)) {
        $userid = $my->id;
    }
    $q = "SELECT review_id, product_id, userid, comment, user_rating FROM #__{vm}_product_reviews WHERE review_id=" . $review_id;
    $db->query($q);
    $uid = $db->f('userid') ? $db->f("userid") : $my->id;
    if (empty($product_id)) {
        $product_id = $db->f('product_id');
    }
    // Create the Form Control Object
    $formObj = new formFactory($VM_LANG->_('PHPSHOP_REVIEW_EDIT'));
    // Start the the Form
    $formObj->startForm();
    // Add necessary hidden fields
    $formObj->hiddenField('review_id', $review_id);
    $formObj->hiddenField('product_id', $product_id);
    $formObj->hiddenField('userid', $uid);
    $formObj->hiddenField('pshop_mode', 'admin');
    $rating_table = "<table cellpadding=\"5\" summary=\"" . $VM_LANG->_('PHPSHOP_REVIEW_RATE') . "\">\r\n              <tr>\r\n                <th id=\"five_stars\">\r\n                \t<label for=\"user_rating5\"><img alt=\"5 stars\" src=\"" . VM_THEMEURL . "images/stars/5.gif\" border=\"0\" /></label>\r\n                </th>\r\n                <th id=\"four_stars\">\r\n                \t<label for=\"user_rating4\"><img alt=\"4 stars\" src=\"" . VM_THEMEURL . "images/stars/4.gif\" border=\"0\" /></label>\r\n                </th>\r\n                <th id=\"three_stars\">\r\n                \t<label for=\"user_rating3\"><img alt=\"3 stars\" src=\"" . VM_THEMEURL . "images/stars/3.gif\" border=\"0\" /></label>\r\n                </th>\r\n                <th id=\"two_stars\">\r\n                \t<label for=\"user_rating2\"><img alt=\"2 stars\" src=\"" . VM_THEMEURL . "images/stars/2.gif\" border=\"0\" /></label>\r\n                </th>\r\n                <th id=\"one_star\">\r\n                \t<label for=\"user_rating1\"><img alt=\"1 star\" src=\"" . VM_THEMEURL . "images/stars/1.gif\" border=\"0\" /></label>\r\n                </th>\r\n                <th id=\"null_stars\">\r\n                \t<label for=\"user_rating0\"><img alt=\"0 stars\" src=\"" . VM_THEMEURL . "images/stars/0.gif\" border=\"0\" /></label>\r\n                </th>\r\n              </tr>\r\n              <tr>\r\n                <td headers=\"five_stars\" style=\"text-align:center;\">\r\n                  <input type=\"radio\" id=\"user_rating5\" name=\"user_rating\" value=\"5\" />\r\n                </td>\r\n                <td headers=\"four_stars\" style=\"text-align:center;\">\r\n                \t<input type=\"radio\" id=\"user_rating4\" name=\"user_rating\" value=\"4\" />\r\n                </td>\r\n                <td headers=\"three_stars\" style=\"text-align:center;\">\r\n                \t<input type=\"radio\" id=\"user_rating3\" name=\"user_rating\" value=\"3\" />\r\n                </td>\r\n                <td headers=\"two_stars\" style=\"text-align:center;\">\r\n                \t<input type=\"radio\" id=\"user_rating2\" name=\"user_rating\" value=\"2\" />\r\n                </td>\r\n                <td headers=\"one_star\" style=\"text-align:center;\">\r\n                \t<input type=\"radio\" id=\"user_rating1\" name=\"user_rating\" value=\"1\" />\r\n                </td>\r\n                <td headers=\"null_stars\" style=\"text-align:center;\">\r\n                \t<input type=\"radio\" id=\"user_rating0\" name=\"user_rating\" value=\"0\" />\r\n                </td>\r\n              </tr>\r\n            </table>";
    ?>
<table class="adminform">
	<tr> 
		<td ><?php 
    echo $VM_LANG->_('PHPSHOP_REVIEW_RATE');
    ?>
</td>
        $product_id[] = $temp;
    }
    $product_parent_id = vmGet($_REQUEST, 'product_parent_id', 0);
    if (!empty($product_parent_id)) {
        $title .= " " . $VM_LANG->_('PHPSHOP_PRODUCT_FORM_ITEM_LBL') . ": ";
    } else {
        $title .= " " . $VM_LANG->_('PHPSHOP_PRODUCT') . ": ";
    }
    $url = $_SERVER['PHP_SELF'] . "?page={$modulename}.product_form&product_id={$product_id}&product_parent_id={$product_parent_id}";
    $title .= "<a href=\"" . $sess->url($url) . "\">" . $ps_product->get_field($product_id[0], "product_name") . "</a>";
} else {
    $product_id = $temp;
    $title .= $VM_LANG->_('VM_PRODUCT_PRODUCT_TYPE_ADD_MULTIPLE_PRODUCTS');
}
//First create the object and let it print a form heading
$formObj = new formFactory($title);
//Then Start the form
$formObj->startForm();
?>
<br /><br />

<table class="adminform">
    <tr> 
      <td valign="top" colspan="2"> 
        </td>
    </tr>
    <tr> 
      <td width="23%" height="20" valign="middle" > 
        <div align="right"><?php 
echo $VM_LANG->_('PHPSHOP_PRODUCT_PRODUCT_TYPE_FORM_PRODUCT_TYPE');
?>
* @version $Id: tax.tax_form.php 1961 2009-10-12 20:18:00Z Aravot $
* @package VirtueMart
* @subpackage html
* @copyright Copyright (C) 2004-2007 soeren - All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
*
* http://virtuemart.net
*/
mm_showMyFileName(__FILE__);
//First create the object and let it print a form heading
$formObj = new formFactory($VM_LANG->_('PHPSHOP_TAX_FORM_LBL'));
//Then Start the form
$formObj->startForm();
$tax_rate_id = vmGet($_REQUEST, 'tax_rate_id');
$option = empty($option) ? vmGet($_REQUEST, 'option', 'com_virtuemart') : $option;
if (!empty($tax_rate_id)) {
    $q = "SELECT * FROM #__{vm}_tax_rate WHERE tax_rate_id='{$tax_rate_id}'";
    $db->query($q);
    $db->next_record();
}
?>
<br />

<table class="adminform">
    <tr> 
      <td><b><?php 
* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
*
* http://virtuemart.net
*/
mm_showMyFileName(__FILE__);
require_once CLASSPATH . 'usergroup.class.php';
$usergroup = new vmUserGroup();
$group_id = (int) vmGet($_REQUEST, 'group_id', 0);
$option = empty($option) ? vmGet($_REQUEST, 'option', 'com_virtuemart') : $option;
if (!empty($group_id)) {
    $db = $usergroup->get_group($group_id);
} else {
}
$funcname = !empty($group_id) ? "usergroupUpdate" : "usergroupAdd";
// Create the Form Control Object
$formObj = new formFactory($VM_LANG->_('VM_USERGROUP_FORM_LBL'));
// Start the the Form
$formObj->startForm();
// Add necessary hidden fields
$formObj->hiddenField('group_id', $group_id);
?>
<table class="adminform">
	<tr> 
		<td colspan="2">&nbsp;</td>
	</tr>
	<tr> 
		<td width="24%" align="right"><?php 
echo $VM_LANG->_('VM_USERGROUP_NAME');
?>
:</td>
		<td width="76%"> 
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
*
* http://virtuemart.net
*/
mm_showMyFileName(__FILE__);
include_class("vendor");
global $ps_vendor;
$shopper_group_id = vmGet($_REQUEST, 'shopper_group_id', null);
$option = vmGet($_REQUEST, 'option', 'com_virtuemart');
//First create the object and let it print a form heading
$formObj = new formFactory($VM_LANG->_('PHPSHOP_SHOPPER_GROUP_FORM_LBL'));
//Then Start the form
$formObj->startForm();
if (!empty($shopper_group_id)) {
    $q = "SELECT * FROM #__{vm}_shopper_group ";
    $q .= "WHERE shopper_group_id='{$shopper_group_id}'";
    if (!$perm->check("admin")) {
        $q .= " AND vendor_id = '{$ps_vendor_id}'";
    }
    $db->query($q);
    $db->next_record();
}
?>
<table class="adminform">
    <tr>
      <td width="23%">
* @copyright Copyright (C) 2004-2007 soeren - All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
*
* http://virtuemart.net
*/
mm_showMyFileName(__FILE__);
global $ps_product_category, $ps_product;
$category_id = vmGet($_REQUEST, 'category_id', 0);
$option = empty($option) ? vmGet($_REQUEST, 'option', 'com_virtuemart') : $option;
//First create the object and let it print a form heading
$formObj = new formFactory($VM_LANG->_('PHPSHOP_CATEGORY_FORM_LBL'));
//Then Start the form
$formObj->startForm('adminForm', 'enctype="multipart/form-data"');
if ($category_id) {
    $q = "SELECT * FROM #__{vm}_category,#__{vm}_category_xref ";
    $q .= "WHERE #__{vm}_category.category_id='{$category_id}' ";
    $q .= "AND #__{vm}_category_xref.category_child_id=#__{vm}_category.category_id";
    $db->query($q);
    $db->next_record();
} elseif (empty($vars["error"])) {
    $default["category_publish"] = "Y";
    $default["category_flypage"] = FLYPAGE;
    $default["category_browsepage"] = CATEGORY_TEMPLATE;
    $default["products_per_row"] = PRODUCTS_PER_ROW;
}
$tabs = new vmTabPanel(0, 1, "categoryform");
Example #25
0
if (vmIsJoomla('1.5')) {
    require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_users' . DS . 'users.class.php';
    $user =& JUser::getInstance($user_id);
    $params = $user->getParameters(true);
} elseif (file_exists($mosConfig_absolute_path . '/administrator/components/com_users/users.class.php')) {
    require_once $mosConfig_absolute_path . '/administrator/components/com_users/users.class.php';
    $file = $mainframe->getPath('com_xml', 'com_users');
    $params = new mosUserParameters($row->params, $file, 'component');
}
// Set the last visit date
$lvisit = $row->lastvisitDate;
if ($lvisit == "0000-00-00 00:00:00") {
    $lvisit = '***' . $VM_LANG->_('VM_USER_FORM_LASTVISIT_NEVER');
}
//First create the object and let it print a form heading
$formObj = new formFactory(vmCommonHTML::imageTag(VM_THEMEURL . 'images/administration/header/icon-48-user.png', 'User Icon', 'absmiddle') . '&nbsp;&nbsp;&nbsp;' . $VM_LANG->_('PHPSHOP_USER_FORM_LBL'));
//Then Start the form
$formObj->startForm();
$tabs = new vmTabPanel(0, 1, "userform");
$tabs->startPane("userform-pane");
$tabs->startTab($VM_LANG->_('VM_USER_FORM_TAB_GENERALINFO'), "userform-page");
?>
<script language="javascript" type="text/javascript">
function gotocontact( id ) {
	var form = document.adminForm;
	form.target = "_parent";
	form.contact_id.value = id;
	form.option.value = 'com_users';
	submitform( 'contact' );
}
</script>
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
*
* http://virtuemart.net
*/
mm_showMyFileName(__FILE__);
$creditcard_id = vmGet($_REQUEST, 'creditcard_id', "");
$option = empty($option) ? vmGet($_REQUEST, 'option', 'com_virtuemart') : $option;
if (!empty($creditcard_id)) {
    $q = "SELECT * FROM #__{vm}_creditcard WHERE creditcard_id='{$creditcard_id}'";
    $db->query($q);
    $db->next_record();
}
//First create the object and let it print a form heading
$formObj = new formFactory($VM_LANG->_('PHPSHOP_CREDITCARD_FORM_LBL'));
//Then Start the form
$formObj->startForm();
?>
 
<table class="adminform">
    <tr> 
      <td colspan="2">&nbsp;</td>
    </tr>
    <tr> 
      <td width="24%" align="right"><?php 
echo $VM_LANG->_('PHPSHOP_CREDITCARD_NAME');
?>
:</td>
      <td width="76%"> 
        <input type="text" class="inputbox" name="creditcard_name" value="<?php 
        $title .= $VM_LANG->_('PHPSHOP_ATTRIBUTE_FORM_NEW_FOR_PRODUCT') . " ";
    } else {
        $title .= $VM_LANG->_('PHPSHOP_ATTRIBUTE_FORM_NEW_FOR_ITEM') . " ";
    }
}
$url = $_SERVER['PHP_SELF'] . "?page={$modulename}.product_form&product_id={$product_id}&product_parent_id={$product_parent_id}";
$title .= '<a href="' . $sess->url($url) . '">' . $ps_product->get_field($product_id, 'product_name') . '</a>';
if ($attribute_name) {
    $db = new ps_DB();
    $q = "SELECT * FROM #__{vm}_product_attribute_sku WHERE product_id='{$product_id}' ";
    $q .= "AND attribute_name = '{$attribute_name}' ";
    $db->query($q);
    $db->next_record();
}
//First create the object and let it print a form heading
$formObj = new formFactory($title);
//Then Start the form
$formObj->startForm();
?>
 
<table class="adminform">
	<tr> 
		<td width="23%" height="20" valign="top"> 
			<div align="right"><?php 
echo $VM_LANG->_('PHPSHOP_ATTRIBUTE_FORM_NAME');
?>
:</div>
		</td>
		<td width="77%" height="20"> 
			<input type="text" class="inputbox" name="attribute_name" value="<?php 
$db->sp("attribute_name");
* other free or open source software licenses.
* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
*
* http://virtuemart.net
*/
mm_showMyFileName(__FILE__);
global $ps_manufacturer_category;
$manufacturer_id = vmGet($_REQUEST, 'manufacturer_id', 0);
$option = empty($option) ? vmGet($_REQUEST, 'option', 'com_virtuemart') : $option;
if (!empty($manufacturer_id)) {
    $q = "SELECT * FROM #__{vm}_manufacturer WHERE manufacturer_id='{$manufacturer_id}'";
    $db->query($q);
    $db->next_record();
}
//First create the object and let it print a form heading
$formObj = new formFactory($VM_LANG->_('PHPSHOP_MANUFACTURER_FORM_LBL'));
//Then Start the form
$formObj->startForm();
?>
<br />
  <table class="adminform">
    <tr> 
      <td><strong><?php 
echo $VM_LANG->_('PHPSHOP_MANUFACTURER_FORM_INFO_LBL');
?>
</strong></td>
      <td>&nbsp;</td>
    </tr>
    <tr> 
      <td align="right"><?php 
echo $VM_LANG->_('PHPSHOP_MANUFACTURER_LIST_MANUFACTURER_NAME');
* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
*
* http://virtuemart.net
*/
mm_showMyFileName(__FILE__);
vmCommonHTML::loadMooTools();
$function_id = vmGet($_REQUEST, 'function_id');
$module_id = vmGet($_REQUEST, 'module_id');
$option = empty($option) ? vmGet($_REQUEST, 'option', 'com_virtuemart') : $option;
if (!empty($function_id)) {
    $q = "SELECT * from #__{vm}_function where function_id='{$function_id}'";
    $db->query($q);
    $db->next_record();
}
//First create the object and let it print a form heading
$formObj = new formFactory($VM_LANG->_('PHPSHOP_FUNCTION_FORM_LBL'));
//Then Start the form
$formObj->startForm();
?>
 
  <table class="adminform">
    <tr> 
      <td colspan="2">&nbsp;</td>
    </tr>
    <tr> 
      <td width="24%" align="right"><?php 
echo $VM_LANG->_('PHPSHOP_FUNCTION_FORM_NAME');
?>
:</td>
      <td width="76%"> 
        <input type="text" class="inputbox" name="function_name" value="<?php 
    $VM_CHECKOUT_MODULES = array('CHECK_OUT_GET_SHIPPING_ADDR' => array('order' => 1, 'enabled' => 1), 'CHECK_OUT_GET_SHIPPING_METHOD' => array('order' => 2, 'enabled' => 1), 'CHECK_OUT_GET_PAYMENT_METHOD' => array('order' => 3, 'enabled' => 1), 'CHECK_OUT_GET_FINAL_CONFIRMATION' => array('order' => 4, 'enabled' => 1));
}
$option = empty($option) ? vmGet($_REQUEST, 'option', 'com_virtuemart') : $option;
// Compose the Access DropDown List, for the first time used for setting Price Acess
$fieldname = 'group_id';
if ($_VERSION->PRODUCT == 'Joomla!' && $_VERSION->RELEASE >= 1.5) {
    $fieldname = 'id';
}
$db->query('SELECT `' . $fieldname . '` FROM #__core_acl_aro_groups WHERE name=\'' . VM_PRICE_ACCESS_LEVEL . '\'');
$db->next_record();
$gtree = $acl->get_group_children_tree(null, 'USERS', false);
$access_group_list = vmCommonHTML::selectList($gtree, 'conf_VM_PRICE_ACCESS_LEVEL', 'size="4"', 'value', 'text', $db->f($fieldname), true);
$title = '&nbsp;&nbsp;<img src="' . VM_THEMEURL . 'images/administration/header/icon-48-config.png" align="middle" border="0" alt="' . $VM_LANG->_('PHPSHOP_CONFIG') . '" />&nbsp;';
$title .= $VM_LANG->_('PHPSHOP_CONFIG');
//First create the object and let it print a form heading
$formObj = new formFactory($title);
//Then Start the form
$formObj->startForm();
$ps_html->writableIndicator($mosConfig_absolute_path . '/administrator/components/com_virtuemart/virtuemart.cfg.php');
$tabs = new vmTabPanel(1, 1, "vmconfiguration");
$tabs->startPane("content-pane");
$tabs->startTab($VM_LANG->_('PHPSHOP_ADMIN_CFG_GLOBAL'), "global-page");
?>
<br />
<table class="adminlist"><tr><td>

<fieldset style="width:48%;float:left;">
	<legend><?php 
echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_GLOBAL');
?>
</legend>