本文整理汇总了PHP中VmHtml::radioList方法的典型用法代码示例。如果您正苦于以下问题:PHP VmHtml::radioList方法的具体用法?PHP VmHtml::radioList怎么用?PHP VmHtml::radioList使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类VmHtml
的用法示例。
在下文中一共展示了VmHtml::radioList方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
class="hasTip"
title="<?php
echo vmText::_('COM_VIRTUEMART_PRODUCT_FORM_CALCULATE_PRICE_FINAL_TIP');
?>
">
<?php
echo vmText::_('COM_VIRTUEMART_PRODUCT_FORM_CALCULATE_PRICE_FINAL');
?>
</span>
</strong>
<br />
<?php
// echo VmHtml::checkbox('override',$this->product->override);
$options = array(0 => vmText::_('COM_VIRTUEMART_DISABLED'), 1 => vmText::_('COM_VIRTUEMART_OVERWRITE_FINAL'), -1 => vmText::_('COM_VIRTUEMART_OVERWRITE_PRICE_TAX'));
echo VmHtml::radioList('mprices[override][' . $this->priceCounter . ']', $this->product->allPrices[$this->product->selectedPrice]['override'], $options, '', ' ');
?>
</td>
<td style="background: #d5d5d5;padding:0;width:1px;"></td>
<td>
<div style="font-weight: bold;">
<?php
echo vmText::_('COM_VIRTUEMART_PRODUCT_PRICE_QUANTITY_RANGE');
?>
</div>
<input type="text"
size="12"
style="text-align:right;" name="mprices[price_quantity_start][]"
value="<?php
echo $this->product->allPrices[$this->product->selectedPrice]['price_quantity_start'];
?>
示例2: array
$i = 0;
?>
<table class="adminform">
<tbody>
<tr class="row<?php
echo $i;
?>
">
<td width="21%" valign="top">
<?php
$mail_options = array('customer' => vmText::_('COM_VIRTUEMART_PRODUCT_SHOPPERS'), 'notify' => vmText::_('COM_VIRTUEMART_PRODUCT_WAITING_LIST_USERLIST'));
$mail_default = 'notify';
if (VmConfig::get('stockhandle', 0) != 'disableadd' or empty($this->waitinglist)) {
echo '<input type="hidden" name="customer_email_type" value="customer" id="customer_email_type0">';
} else {
echo VmHtml::radioList('customer_email_type', $mail_default, $mail_options);
}
?>
<div id="notify_particulars" style="padding-left:20px;">
<div><input type="checkbox" name="notification_template" id="notification_template" value="1" CHECKED>
<label for="notification_template">
<span class="hasTip" title="<?php
echo vmText::_('COM_VIRTUEMART_PRODUCT_USE_NOTIFY_TEMPLATE_TIP');
?>
">
<?php
echo vmText::_('COM_VIRTUEMART_PRODUCT_USE_NOTIFY_TEMPLATE');
?>
</span>
</label>
示例3: fetchElement
function fetchElement($name, $value, &$node, $control_name)
{
//Load languages
$language = JFactory::getLanguage();
$language->load('plg_k2_k2mart', JPATH_ADMINISTRATOR);
$language->load('com_virtuemart', JPATH_ADMINISTRATOR);
//Get params
$params = JComponentHelper::getParams('com_k2mart');
$mainframe = JFactory::getApplication();
$db = JFactory::getDBO();
//Add scripts and styles
$document = JFactory::getDocument();
$document->addStyleSheet(JURI::root(true) . '/plugins/k2/k2mart/tmpl/admin/css/admin.style.css');
$document->addStyleSheet(JURI::root(true) . '/administrator/components/com_k2mart/css/chosen.css');
$document->addScript(JURI::root(true) . '/plugins/k2/k2mart/includes/js/admin.k2mart.js');
$document->addScript(JURI::root(true) . '/administrator/components/com_k2mart/js/chosen.jquery.min.js');
$document->addScript(JURI::root(true) . '/components/com_virtuemart/assets/js/fancybox/jquery.fancybox-1.3.4.js');
$document->addScript(JURI::root(true) . '/administrator/components/com_virtuemart/assets/js/vm2admin.js');
$document->addScript(JURI::root(true) . '/administrator/components/com_virtuemart/assets/js/jquery.coookie.js');
//Get K2 Item
$itemID = JRequest::getInt('cid');
$productID = 0;
if ($itemID) {
$query = "SELECT referenceID FROM #__k2mart WHERE baseID = {$itemID}";
$db->setQuery($query);
$productID = $db->loadResult();
}
//Include Virtuemart classes
require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_virtuemart' . DS . 'helpers' . DS . 'config.php';
$config = VmConfig::loadConfig();
require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_virtuemart' . DS . 'helpers' . DS . 'shopfunctions.php';
require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_virtuemart' . DS . 'helpers' . DS . 'html.php';
JModel::addIncludePath(JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_virtuemart' . DS . 'models');
//Get product
$model = JModel::getInstance('Product', 'VirtuemartModel');
$product = $model->getProductSingle($productID, false);
//Get product children
$product->children = method_exists($model, 'getProductChilds') ? $model->getProductChilds($productID) : $model->getProductChildIds($productID);
//Get product parent
JModel::addIncludePath(JPATH_SITE . DS . 'components' . DS . 'com_k2' . DS . 'models');
$K2Model = JModel::getInstance('Itemlist', 'K2Model');
$tree = $K2Model->getCategoryTree($params->get('catalogRoot', 0));
$query = "SELECT id AS value, title AS text FROM #__k2_items WHERE catid IN(" . implode(',', $tree) . ")";
$db->setQuery($query);
$items = $db->loadObjectList();
$option = new JObject();
$option->value = 0;
$option->text = JText::_('K2MART_NONE');
array_unshift($items, $option);
$parent = 0;
if ($product->product_parent_id) {
$query = "SELECT baseID FROM #__k2mart WHERE referenceID = {$product->product_parent_id}";
$db->setQuery($query);
$parent = $db->loadResult();
}
$lists['product_parent_id'] = JHTML::_('select.genericlist', $items, 'product_parent_id', 'class="inputbox"', 'value', 'text', $parent);
//Get category tree
if (isset($product->categories)) {
$lists['categories'] = ShopFunctions::categoryListTree($product->categories);
} else {
$lists['categories'] = ShopFunctions::categoryListTree();
}
//Get vendors
if (Vmconfig::get('multix', 'none') !== 'none') {
$lists['vendors'] = Shopfunctions::renderVendorList($product->virtuemart_vendor_id);
}
//Get images
$model->addImages($product);
if (is_array($product->images) && isset($product->images[0])) {
$product->image = $product->images[0];
} else {
$product->image = new JObject();
$product->image->virtuemart_media_id = 0;
$product->image->file_title = '';
$product->image->file_description = '';
$product->image->file_meta = '';
$product->image->file_url = '';
$product->image->file_url_thumb = '';
$product->image->file_title = '';
}
//Get manufacturers
$model = JModel::getInstance('Manufacturer', 'VirtuemartModel');
$manufacturers = $model->getManufacturerDropdown($product->virtuemart_manufacturer_id);
if (count($manufacturers) > 0) {
$lists['manufacturers'] = JHTML::_('select.genericlist', $manufacturers, 'virtuemart_manufacturer_id', 'class="inputbox"', 'value', 'text', $product->virtuemart_manufacturer_id);
}
//Get shopper groups
if (isset($product->shoppergroups)) {
$lists['shopperGroups'] = ShopFunctions::renderShopperGroupList($product->shoppergroups, true);
}
//Get product price
require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_virtuemart' . DS . 'helpers' . DS . 'calculationh.php';
$calculator = calculationHelper::getInstance();
$product->prices = $calculator->getProductPrices($product);
// Get product price override options
$options = array(0 => 'Disabled', 1 => 'Overwrite final', -1 => 'Overwrite price to tax');
$lists['price_override_options'] = VmHtml::radioList('override', $product->override, $options);
// Get tax rules
$dbTax = '';
foreach ($calculator->rules['DBTax'] as $rule) {
//.........这里部分代码省略.........
示例4: array
class="hasTip"
title="<?php
echo JText::_('COM_VIRTUEMART_PRODUCT_FORM_CALCULATE_PRICE_FINAL_TIP');
?>
">
<?php
echo JText::_('COM_VIRTUEMART_PRODUCT_FORM_CALCULATE_PRICE_FINAL');
?>
</span>
</strong>
<br />
<?php
// echo VmHtml::checkbox('override',$this->product->override);
$options = array(0 => JText::_('COM_VIRTUEMART_OVERWRITE_OFF'), 1 => JText::_('COM_VIRTUEMART_OVERWRITE_FINAL'), -1 => JText::_('COM_VIRTUEMART_OVERWRITE_PRICE_TAX'));
echo VmHtml::radioList('mprices[override][' . $this->priceCounter . ']', $this->tempProduct->override, $options, '', ' ');
?>
</td>
<td style="background: #d5d5d5;padding:0;width:1px;"></td>
<td>
<div style="font-weight: bold;">
<?php
echo JText::_('COM_VIRTUEMART_PRODUCT_PRICE_QUANTITY_RANGE');
?>
</div>
<input type="text"
size="12"
style="text-align:right;" name="mprices[price_quantity_start][]"
value="<?php
echo $this->tempProduct->price_quantity_start;
?>
示例5: array
</span>
</div>
</td>
<td>
<input type="text" size="12" style="text-align:right;" name="product_override_price" value="<?php
echo $this->product->product_override_price;
?>
"/>
<?php
echo $this->vendor_currency;
?>
</td>
<td><?php
// echo VmHtml::checkbox('override',$this->product->override);
$options = array(0 => 'Disabled', 1 => 'Overwrite final', -1 => 'Overwrite price to tax');
echo VmHtml::radioList('override', $this->product->override, $options);
?>
</td>
</tr>
</table>
</fieldset> <!-- Product rules overrides -->
<fieldset>
<legend>
<?php
echo JText::_('COM_VIRTUEMART_PRODUCT_FORM_RULES_OVERRIDES');
?>
</legend>
<table class="adminform">
<tr class="row0">
<td width="17%"><div style="text-align: right; font-weight: bold;">
<?php