• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP VmHtml类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中VmHtml的典型用法代码示例。如果您正苦于以下问题:PHP VmHtml类的具体用法?PHP VmHtml怎么用?PHP VmHtml使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了VmHtml类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: getInput

 protected function getInput()
 {
     VmConfig::loadConfig();
     VmConfig::loadJLang('com_virtuemart');
     if (!is_array($this->value)) {
         $this->value = array($this->value);
     }
     $categorylist = ShopFunctions::categoryListTree($this->value);
     $name = $this->name;
     if ($this->multiple) {
         $name = $this->name;
         $this->multiple = ' multiple="multiple" ';
     }
     $id = VmHtml::ensureUniqueId('vmcategories');
     $html = '<select id="' . $id . '" class="inputbox"   name="' . $name . '" ' . $this->multiple . ' >';
     if (!$this->multiple) {
         $html .= '<option value="0">' . vmText::_('COM_VIRTUEMART_CATEGORY_FORM_TOP_LEVEL') . '</option>';
     }
     $html .= $categorylist;
     $html .= "</select>";
     return $html;
 }
开发者ID:virtuemart-fr,项目名称:virtuemart-fr,代码行数:22,代码来源:vmcategories.php


示例2: list_option

    public static function list_option($name, $options, $list_selected = array(), $attrib = "onchange='submit();'", $key = 'value', $text = 'text', $zero = true, $tranlsate = true)
    {
        $doc = JFactory::getDocument();
        $doc->addScript(JUri::root() . '/media/system/js/jQuery-Plugin-For-Bootstrap-Button-Group-Toggles/select-toggleizer.js');
        ob_start();
        ?>
        <script type="text/javascript">
            jQuery(document).ready(function ($) {
                $('select[name="<?php 
        echo $name;
        ?>
"]').toggleize({});
            });
        </script>
        <?php 
        $js_content = ob_get_clean();
        $js_content = TSMUtility::remove_string_javascript($js_content);
        $doc->addScriptDeclaration($js_content);
        $attrib .= ' disable_chosen="true" ';
        $html = VmHtml::genericlist($options, $name, $attrib, $key, $text, $list_selected, false, $tranlsate);
        return $html;
    }
开发者ID:cuongnd,项目名称:etravelservice,代码行数:22,代码来源:html.php


示例3: renderMetaEdit

    public static function renderMetaEdit($obj)
    {
        $options = array('' => vmText::_('JGLOBAL_INDEX_FOLLOW'), 'noindex, follow' => vmText::_('JGLOBAL_NOINDEX_FOLLOW'), 'index, nofollow' => vmText::_('JGLOBAL_INDEX_NOFOLLOW'), 'noindex, nofollow' => vmText::_('JGLOBAL_NOINDEX_NOFOLLOW'), 'noodp, noydir' => vmText::_('COM_VIRTUEMART_NOODP_NOYDIR'), 'noodp, noydir, nofollow' => vmText::_('COM_VIRTUEMART_NOODP_NOYDIR_NOFOLLOW'));
        $html = '<table>
					' . VmHTML::row('input', 'COM_VIRTUEMART_CUSTOM_PAGE_TITLE', 'customtitle', $obj->customtitle) . '
					' . VmHTML::row('textarea', 'COM_VIRTUEMART_METAKEY', 'metakey', $obj->metakey, 'class="inputbox"', 80) . '
					' . VmHTML::row('textarea', 'COM_VIRTUEMART_METADESC', 'metadesc', $obj->metadesc, 'class="inputbox"', 80) . '
					' . VmHtml::row('selectList', 'COM_VIRTUEMART_METAROBOTS', 'metarobot', $obj->metarobot, $options) . '
					' . VmHTML::row('input', 'COM_VIRTUEMART_METAAUTHOR', 'metaauthor', $obj->metaauthor) . '
				</table>';
        return $html;
    }
开发者ID:lenard112,项目名称:cms,代码行数:12,代码来源:shopfunctions.php


示例4:

    vmJsApi::popup('#full-tos', '#terms-of-service');
    if (!class_exists('VirtueMartCart')) {
        require VMPATH_SITE . DS . 'helpers' . DS . 'cart.php';
    }
    $cart = VirtuemartCart::getCart();
    $cart->prepareVendor();
    if (empty($tos) and !VmConfig::get('agree_to_tos_onorder', true)) {
        if (is_array($cart->BT) and !empty($cart->BT['tos'])) {
            $tos = $cart->BT['tos'];
        }
    }
}
if (!class_exists('VmHtml')) {
    require VMPATH_ADMIN . DS . 'helpers' . DS . 'html.php';
}
echo VmHtml::checkbox($_prefix . $field['name'], $tos, 1, 0, 'class="terms-of-service required"', 'tos');
if (VmConfig::get('oncheckout_show_legal_info', 1) and $app->isSite()) {
    ?>
<div class="terms-of-service">
	<label for="tos">
		<a href="<?php 
    echo JRoute::_('index.php?option=com_virtuemart&view=vendor&layout=tos&virtuemart_vendor_id=1', FALSE);
    ?>
" class="terms-of-service" id="terms-of-service" rel="facebox"
		   target="_blank">
			<span class="vmicon vm2-termsofservice-icon"></span>
			<?php 
    echo vmText::_('COM_VIRTUEMART_CART_TOS_READ_AND_ACCEPTED');
    ?>
		</a>
	</label>
开发者ID:cybershocik,项目名称:Darek,代码行数:31,代码来源:tos.php


示例5: jDate

    static function jDate($date = '', $name = "date", $id = NULL, $resetBt = TRUE, $yearRange = '')
    {
        if ($yearRange) {
            $yearRange = 'yearRange: "' . $yearRange . '",';
        }
        $test = (int) str_replace(array('-', ' ', ':'), '', $date);
        if (empty($test)) {
            $date = 0;
        }
        if (empty($id)) {
            $id = str_replace(array('[]', '[', ']'), '.', $name);
            $id = str_replace('..', '.', $id);
        }
        static $jDate;
        if (!class_exists('VmHtml')) {
            require VMPATH_ADMIN . DS . 'helpers' . DS . 'html.php';
        }
        $id = VmHtml::ensureUniqueId($id);
        $dateFormat = vmText::_('COM_VIRTUEMART_DATE_FORMAT_INPUT_J16');
        //="m/d/y"
        $search = array('m', 'd', 'Y');
        $replace = array('mm', 'dd', 'yy');
        $jsDateFormat = str_replace($search, $replace, $dateFormat);
        if ($date) {
            $formatedDate = JHtml::_('date', $date, $dateFormat);
        } else {
            $formatedDate = vmText::_('COM_VIRTUEMART_NEVER');
        }
        $display = '<input class="datepicker-db" id="' . $id . '" type="hidden" name="' . $name . '" value="' . $date . '" />';
        $display .= '<input id="' . $id . '_text" class="datepicker" type="text" value="' . $formatedDate . '" />';
        if ($resetBt) {
            $display .= '<span class="vmicon vmicon-16-logout icon-nofloat js-date-reset"></span>';
        }
        // If exist exit
        if ($jDate) {
            return $display;
        }
        self::addJScript('datepicker', '
			jQuery(document).ready( function($) {
			jQuery(document).on( "focus",".datepicker", function() {
				jQuery( this ).datepicker({
					changeMonth: true,
					changeYear: true,
					' . $yearRange . '
					dateFormat:"' . $jsDateFormat . '",
					altField: $(this).prev(),
					altFormat: "yy-mm-dd"
				});
			});
			jQuery(document).on( "click",".js-date-reset", function() {
				jQuery(this).prev("input").val("' . vmText::_('COM_VIRTUEMART_NEVER') . '").prev("input").val("0");
			});
		});
		');
        vmJsApi::css('ui/jquery.ui.all');
        $lg = JFactory::getLanguage();
        $lang = $lg->getTag();
        $vlePath = vmJsApi::setPath('i18n/jquery.ui.datepicker-' . $lang, FALSE, '', $minified = NULL, 'js', true);
        if (!file_exists($vlePath) or is_dir($vlePath)) {
            $lang = 'en-GB';
        }
        vmJsApi::addJScript('i18n/jquery.ui.datepicker-' . $lang);
        $jDate = TRUE;
        return $display;
    }
开发者ID:virtuemart-fr,项目名称:virtuemart-fr,代码行数:65,代码来源:vmjsapi.php


示例6: 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'];
?>
开发者ID:lenard112,项目名称:cms,代码行数:31,代码来源:product_edit_price.php


示例7:

?>
                        </div>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span12">
                        <h3 class="build-your-room"><?php 
echo JText::_('Build your room');
?>
</h3>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span12">
                        <?php 
echo VmHtml::build_room(array(), "build_room", "", $privategrouptrip, $passenger_config);
?>

                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span12">
                        <div class="pull-right">
                            <button type="submit" class="btn btn-primary btn-large control-next "><span title="" class="icon-next "></span><?php 
echo JText::_('Next');
?>
</button>
                        </div>
                    </div>
                </div>
开发者ID:cuongnd,项目名称:etravelservice,代码行数:30,代码来源:default.php


示例8:

?>



		<?php 
// Continue and Checkout Button
?>
		<div class="checkout-button-top">

			<?php 
// Terms Of Service Checkbox
JLoader::register('VmModel', JPATH_VM_ADMINISTRATOR . '/helpers/vmmodel.php');
$userFieldsModel = VmModel::getModel('userfields');
if ($userFieldsModel->getIfRequired('agreed')) {
    JLoader::register('VmHtml', JPATH_VM_ADMINISTRATOR . '/helpers/html.php');
    echo VmHtml::checkbox('tosAccepted', $this->cart->tosAccepted, 1, 0, 'class="terms-of-service"');
    if (VmConfig::get('oncheckout_show_legal_info', 1)) {
        ?>
					<div class="terms-of-service">

						<label for="tosAccepted">
							<a href="<?php 
        JRoute::_('index.php?option=com_virtuemart&view=vendor&layout=tos&virtuemart_vendor_id=1', FALSE);
        ?>
" class="terms-of-service" id="terms-of-service" rel="facebox"
							 target="_blank">
								<span class="vmicon vm2-termsofservice-icon"></span>
								<?php 
        echo JText::_('COM_VIRTUEMART_CART_TOS_READ_AND_ACCEPTED');
        ?>
							</a>
开发者ID:denis1001,项目名称:Virtuemart-2-Joomla-3-Bootstrap,代码行数:31,代码来源:default.php


示例9:

?>
<span class="price">$US 780</span></div>
                                <div class="span4"><?php 
echo JText::_('Balance');
?>
<span class="price">$US 780</span></div>
                            </div>
                        </div>

                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span12">

                        <?php 
echo VmHtml::build_payment_cardit_card('payment', $total_price, 300);
?>

                    </div>
                </div>


                <div class="row-fluid">
                    <div class="span12">
                        <div class="pull-right">
                            <button type="submit" class="btn btn-primary btn-large control-pay-now "><span title="" class="icon-next "></span><?php 
echo JText::_('Pay now');
?>
</button>
                        </div>
                    </div>
开发者ID:cuongnd,项目名称:etravelservice,代码行数:31,代码来源:default.php


示例10: foreach

foreach ($this->userFieldsCart["fields"] as $field) {
    if ($field['name'] == 'tos') {
        $tosenabled = true;
    }
}
if ($tosenabled) {
    ?>
                <section title=".squaredTwo">
					    <div class="squaredTwo">
						  <?php 
    if ($params->get('check_terms')) {
        $checked = 1;
    } else {
        $checked = 0;
    }
    echo VmHtml::checkbox('tos', $checked, 1, 0, 'class="terms-of-service" id="squaredTwo"');
    ?>
					      <label for="squaredTwo"></label>
					    </div>
				 </section>

			<a class="opg-link opg-text-small" style="cursor:pointer;" data-opg-modal="{target:'#full-tos'}"><?php 
    echo JText::_('COM_VIRTUEMART_CART_TOS_READ_AND_ACCEPTED');
    ?>
</a>
		<?php 
}
$showextraterms = $params->get('show_extraterms', 0);
if ($showextraterms) {
    ?>
		  <div id="privcacy_div" class="opg-width-1-1 opg-margin-small">
开发者ID:studio42,项目名称:vmonepage,代码行数:31,代码来源:default_shopper.php


示例11: getLimitBox

 function getLimitBox($sequence = 0)
 {
     $app = JFactory::getApplication();
     // Initialize variables
     $limits = array();
     $selected = $this->limit;
     // Build the select list
     if ($app->isAdmin()) {
         if (empty($sequence)) {
             $sequence = VmConfig::get('pagseq', 0);
         }
         if (!empty($sequence)) {
             $sequenceArray = explode(',', $sequence);
             if (count($sequenceArray > 1)) {
                 foreach ($sequenceArray as $items) {
                     $limits[$items] = JHtml::_('select.option', $items);
                 }
             }
         }
         if (empty($limits)) {
             $limits[15] = JHtml::_('select.option', 15);
             $limits[30] = JHtml::_('select.option', 30);
             $limits[50] = JHtml::_('select.option', 50);
             $limits[100] = JHtml::_('select.option', 100);
             $limits[200] = JHtml::_('select.option', 200);
             $limits[400] = JHtml::_('select.option', 400);
         }
         if (!array_key_exists($this->limit, $limits)) {
             $limits[$this->limit] = JHtml::_('select.option', $this->limit);
             ksort($limits);
         }
         $namespace = 'Joomla.';
         $id = VmHtml::ensureUniqueId('limit');
         $html = JHtml::_('select.genericlist', $limits, 'limit', 'class="inputbox" size="1" onchange="' . $namespace . 'submitform();"', 'value', 'text', $selected, $id);
     } else {
         $getArray = vRequest::getGet();
         $link = '';
         unset($getArray['limit']);
         foreach ($getArray as $key => $value) {
             if (is_array($value)) {
                 foreach ($value as $k => $v) {
                     $link .= '&' . urlencode($key) . '[' . urlencode($k) . ']' . '=' . urlencode($v);
                 }
             } else {
                 $link .= '&' . urlencode($key) . '=' . urlencode($value);
             }
         }
         $link = 'index.php?' . ltrim($link, '&');
         if (empty($sequence)) {
             $sequence = VmConfig::get('pagseq_' . $this->_perRow);
         }
         if (!empty($sequence)) {
             $sequenceArray = explode(',', $sequence);
             if (count($sequenceArray > 1)) {
                 foreach ($sequenceArray as $items) {
                     $limits[$items] = JHtml::_('select.option', JRoute::_($link . '&limit=' . $items, false), $items);
                 }
             }
         }
         if (empty($limits) or !is_array($limits)) {
             if ($this->_perRow === 1) {
                 $this->_perRow = 5;
             }
             $limits[$this->_perRow * 5] = JHtml::_('select.option', JRoute::_($link . '&limit=' . $this->_perRow * 5, false), $this->_perRow * 5);
             $limits[$this->_perRow * 10] = JHtml::_('select.option', JRoute::_($link . '&limit=' . $this->_perRow * 10, false), $this->_perRow * 10);
             $limits[$this->_perRow * 20] = JHtml::_('select.option', JRoute::_($link . '&limit=' . $this->_perRow * 20, false), $this->_perRow * 20);
             $limits[$this->_perRow * 50] = JHtml::_('select.option', JRoute::_($link . '&limit=' . $this->_perRow * 50, false), $this->_perRow * 50);
         }
         if (!array_key_exists($this->limit, $limits)) {
             $limits[$this->limit] = JHtml::_('select.option', JRoute::_($link . '&limit=' . $this->limit, false), $this->limit);
             ksort($limits);
         }
         $selected = JRoute::_($link . '&limit=' . $selected, false);
         $js = 'onchange="window.top.location.href=this.options[this.selectedIndex].value"';
         $id = VmHtml::ensureUniqueId('limit');
         $html = JHtml::_('select.genericlist', $limits, '', 'class="inputbox" size="1" ' . $js, 'value', 'text', $selected, $id);
     }
     return $html;
 }
开发者ID:virtuemart-fr,项目名称:virtuemart-fr,代码行数:79,代码来源:vmpagination.php


示例12:

        require VMPATH_SITE . DS . 'helpers' . DS . 'cart.php';
    }
    $cart = VirtuemartCart::getCart();
    $cart->prepareVendor();
    if (is_array($cart->BT) and !empty($cart->BT['tos'])) {
        $tos = $cart->BT['tos'];
    } else {
        $tos = 0;
    }
} else {
    $tos = $field['value'];
}
if (!class_exists('VmHtml')) {
    require VMPATH_ADMIN . DS . 'helpers' . DS . 'html.php';
}
echo VmHtml::checkbox($_prefix . $field['name'], $tos, 1, 0, 'class="terms-of-service" id="tos"');
if (VmConfig::get('oncheckout_show_legal_info', 1) and $app->isSite()) {
    ?>
<div class="terms-of-service-wrapper">

	<label for="tos">
		<a href="<?php 
    echo JRoute::_('index.php?option=com_virtuemart&view=vendor&layout=tos&virtuemart_vendor_id=1', FALSE);
    ?>
" class="terms-of-service" id="terms-of-service" rel="facebox"
		   target="_blank">
			<span class="icon-list"></span>
			<?php 
    echo vmText::_('COM_VIRTUEMART_CART_TOS_READ_AND_ACCEPTED');
    ?>
		</a>
开发者ID:quyip8818,项目名称:joomla,代码行数:31,代码来源:tos.php


示例13:

                        </div>
                    </div>

                    <div class="joint_group_note joint_group_note_2">
                        <div class="row-fluid">
                            <div class="span12">
                                <?php 
echo $this->lipsum->words(50);
?>
                            </div>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span12">
                            <?php 
echo VmHtml::build_excursion_addon(array(), "build_excursion_addon", "", $privategrouptrip, $passenger_config, $this->list_excursion_addon);
?>

                        </div>
                    </div>


                    <div class="row-fluid">
                        <div class="span12">
                            <div class="pull-right">
                                <button type="submit" class="btn btn-primary btn-large control-skip "><span title=""
                                                                                                            class="icon-next "></span><?php 
echo JText::_('Skip');
?>
                                </button>
                                <button type="submit" class="btn btn-primary btn-large control-next "><span title=""
开发者ID:cuongnd,项目名称:etravelservice,代码行数:31,代码来源:default.php


示例14:



                <div class="row-fluid">
                    <div class="span12">
                        <h3 class="pull-right build-your-room"><?php 
echo JText::_('Service total');
?>
</h3>
                    </div>
                </div>

                <div class="row-fluid">
                    <div class="span12">

                        <?php 
echo VmHtml::build_passenger_summary_confirm(array(), "passenger_summary", "", $privategrouptrip, $passenger_config, $this->product);
?>

                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span12">
                        <div class="payment-overview">
                            <h4><?php 
echo JText::_('Tour fee summary');
?>
</h4>
                            <div class="row-fluid">
                                <div class="span4"><?php 
echo JText::_('Total fee');
?>
开发者ID:cuongnd,项目名称:etravelservice,代码行数:29,代码来源:default.php


示例15:

                    $checkValue = $customfield->override;
                }
                $titel = vmText::sprintf('COM_VIRTUEMART_CUSTOM_OVERRIDE', $checkValue);
                if ($customfield->disabler != 0) {
                    $titel = vmText::sprintf('COM_VIRTUEMART_CUSTOM_DISABLED', $checkValue);
                }
                if ($customfield->override != 0) {
                    $titel = vmText::sprintf('COM_VIRTUEMART_CUSTOM_OVERRIDE', $checkValue);
                }
            } else {
                if ($customfield->virtuemart_product_id == $this->product->product_parent_id) {
                    $titel = vmText::_('COM_VIRTUEMART_CUSTOM_INHERITED') . '<br/>';
                }
            }
            if (!empty($titel)) {
                $text = '<span style="white-space: nowrap;" > d:' . VmHtml::checkbox('field[' . $i . '][disabler]', $customfield->disabler, $checkValue) . ' o:' . VmHtml::checkbox('field[' . $i . '][override]</span>', $customfield->override, $checkValue);
            }
            $tables['fields'] .= '<tr class="removable">
							<td><span >' . $titel . $text . '<br />' . vmText::_($customfield->custom_title) . '</span></td>
							<td>' . $customfield->display . '</td>
							<td>
								<span class="vmicon vmicon-16-' . $cartIcone . '"></span>' . vmText::_($this->fieldTypes[$customfield->field_type]) . VirtueMartModelCustomfields::setEditCustomHidden($customfield, $i) . '</td>
							<td><span class="vmicon vmicon-16-move"></span>
								<span class="vmicon vmicon-16-remove"></span>' . '</td>
						 </tr>';
        }
        $i++;
    }
}
$emptyTable = '
				<tr>
开发者ID:lenard112,项目名称:cms,代码行数:31,代码来源:product_edit_custom.php


示例16: foreach

		<span><span class="vmicon vm2-shipto-icon"></span>
			<?php 
echo vmText::_('COM_VIRTUEMART_USER_FORM_SHIPTO_LBL');
?>
</span>
		<?php 
// Output Bill To Address
?>
		<div class="output-shipto">
			<?php 
if (!class_exists('VmHtml')) {
    require VMPATH_ADMIN . DS . 'helpers' . DS . 'html.php';
}
if ($this->cart->user->virtuemart_user_id == 0) {
    echo vmText::_('COM_VIRTUEMART_USER_FORM_ST_SAME_AS_BT');
    echo VmHtml::checkbox('STsameAsBT', $this->cart->STsameAsBT, 1, 0, 'id="STsameAsBTjs"') . '<br />';
} else {
    if (!empty($this->cart->lists['shipTo'])) {
        echo $this->cart->lists['shipTo'];
    }
}
if (empty($this->cart->STsameAsBT) and !empty($this->cart->ST) and !empty($this->cart->STaddress['fields'])) {
    ?>
				<div id="output-shipto-display">
					<?php 
    foreach ($this->cart->STaddress['fields'] as $item) {
        if (!empty($item['value'])) {
            ?>
							<!-- <span class="titles"><?php 
            echo $item['title'];
            ?>
开发者ID:cybershocik,项目名称:Darek,代码行数:31,代码来源:default_address.php


示例17: 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>
开发者ID:sam-akopyan,项目名称:hamradio,代码行数:31,代码来源:product_edit_customer.php


示例18:



				
					

			    <?php 
    if (!class_exists('VmHtml')) {
        require JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'html.php';
    }
    if (VmConfig::get('oncheckout_show_legal_info', 1)) {
        ?>

                <section title=".squaredTwo">
					    <div class="squaredTwo">
						  <?php 
        echo VmHtml::checkbox('tos', $this->cart->tos, 1, 0, 'class="terms-of-service" id="squaredTwo"');
        ?>
					      <label for="squaredTwo"></label>
					    </div>
				 </section>

			<a class="opg-link opg-text-small" style="cursor:pointer;" data-opg-modal="{target:'#full-tos'}"><?php 
        echo JText::_('COM_VIRTUEMART_CART_TOS_READ_AND_ACCEPTED');
        ?>
</a>
		    <div id="full-tos" class="opg-modal">
			  <div class="opg-modal-dialog opg-text-left">
			        <a class="opg-modal-close opg-close"></a>
					<strong><?php 
        echo JText::_('COM_VIRTUEMART_CART_TOS');
        ?>
开发者ID:bram96,项目名称:vmonepage,代码行数:26,代码来源:default.php


示例19: displayProductCustomfieldFE

 /**
  * @author Max Milbers
  * @param $product
  * @param $customfield
  */
 public function displayProductCustomfieldFE(&$product, &$customfields)
 {
     if (!class_exists('calculationHelper')) {
         require VMPATH_ADMIN . DS . 'helpers' . DS . 'calculationh.php';
     }
     $calculator = calculationHelper::getInstance();
     $selectList = array();
     $dynChilds = 1;
     //= array();
     $session = JFactory::getSession();
     $virtuemart_category_id = $session->get('vmlastvisitedcategoryid', 0, 'vm');
     foreach ($customfields as $k => &$customfield) {
         if (!isset($customfield->display)) {
             $customfield->display = '';
         }
         $calculator->_product = $product;
         if (!class_exists('vmCustomPlugin')) {
             require VMPATH_PLUGINLIBS . DS . 'vmcustomplugin.php';
         }
         if ($customfield->field_type == "E") {
             JPluginHelper::importPlugin('vmcustom');
             $dispatcher = JDispatcher::getInstance();
             $ret = $dispatcher->trigger('plgVmOnDisplayProductFEVM3', array(&$product, &$customfield));
             continue;
         }
         $fieldname = 'field[' . $product->virtuemart_product_id . '][' . $customfield->virtuemart_customfield_id . '][customfield_value]';
         $customProductDataName = 'customProductData[' . $product->virtuemart_product_id . '][' . $customfield->virtuemart_custom_id . ']';
         //This is a kind of fallback, setting default of custom if there is no value of the productcustom
         $customfield->customfield_value = empty($customfield->customfield_value) ? $customfield->custom_value : $customfield->customfield_value;
         $type = $customfield->field_type;
         $idTag = (int) $product->virtuemart_product_id . '-' . $customfield->virtuemart_customfield_id;
         $idTag = $idTag . 'customProductData';
         $idTag = VmHtml::ensureUniqueId($idTag);
         if (!class_exists('CurrencyDisplay')) {
             require VMPATH_ADMIN . DS . 'helpers' . DS . 'currencydisplay.php';
         }
         $currency = CurrencyDisplay::getInstance();
         switch ($type) {
             case 'C':
                 $html = '';
                 $dropdowns = array();
                 if (isset($customfield->options->{$product->virtuemart_product_id})) {
                     $productSelection = $customfield->options->{$product->virtuemart_product_id};
                 } else {
                     $productSelection = false;
                 }
                 $ignore = array();
                 foreach ($customfield->options as $product_id => $variants) {
                     foreach ($variants as $k => $variant) {
                         //if(in_array($variant,$ignore)){ vmdebug('Product to ignore, continue',$product_id,$k,$variant);continue;}
                         if (!isset($dropdowns[$k]) or !is_array($dropdowns[$k])) {
                             $dropdowns[$k] = array();
                         }
                         if (!in_array($variant, $dropdowns[$k])) {
                             if ($k == 0 or !$productSelection) {
                                 $dropdowns[$k][] = $variant;
                             } else {
                                 if ($k > 0 and $productSelection[$k - 1] == $variants[$k - 1]) {
                                     $break = false;
                                     for ($h = 1; $h <= $k; $h++) {
                                         if ($productSelection[$h - 1] != $variants[$h - 1]) {
                                             //$ignore[] = $variant;
                                             $break = true;
                                         }
                                     }
                                     if (!$break) {
                                         $dropdowns[$k][] = $variant;
                                     }
                                 } else {
                                     //	break;
                                 }
                             }
                         }
                     }
                 }
                 $tags = array();
                 foreach ($customfield->selectoptions as $k => $soption) {
                     $options = array();
                     $selected = false;
                     foreach ($dropdowns[$k] as $i => $elem) {
                         $elem = trim((string) $elem);
                         $text = $elem;
                         if ($soption->clabel != '' and in_array($soption->voption, self::$dimensions)) {
                             $rd = $soption->clabel;
                             if (is_numeric($rd) and is_numeric($elem)) {
                                 $text = number_format(round((double) $elem, (int) $rd), $rd);
                             }
                             //vmdebug('($dropdowns[$k] in DIMENSION value = '.$elem.' r='.$rd.' '.$text);
                         } else {
                             if ($soption->voption === 'clabels' and $soption->clabel != '') {
                                 $text = vmText::_($elem);
                             }
                         }
                         if ($elem == '0') {
                             $text = vmText::_('COM_VIRTUEMART_LIST_EMPTY_OPTION');
//.........这里部分代码省略.........
开发者ID:proyectoseb,项目名称:Matrix,代码行数:101,代码来源:customfields.php


示例20: 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 
开发者ID:srbsnkr,项目名称:sellingonlinemadesimple,代码行数:31,代码来源:product_edit_information.php



注:本文中的VmHtml类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP VmModel类代码示例发布时间:2022-05-23
下一篇:
PHP VmHTML类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap