当前位置: 首页>>代码示例>>PHP>>正文


PHP VmHTML::booleanlist方法代码示例

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


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

示例1:

?>
" />
			</td>
		</tr>
		<tr>
			<td width="110" class="key">
				<label for="published">
					<?php 
echo JText::_('COM_VIRTUEMART_PUBLISHED');
?>
				</label>
			</td>
			<td><fieldset class="radio">

				<?php 
echo VmHTML::booleanlist('published', $this->state->published);
?>

			</fieldset></td>
		</tr>
		<tr>
		<td width="110" class="key">
				<label for="virtuemart_worldzone_id">
					<?php 
echo JText::_('COM_VIRTUEMART_WORLDZONE');
?>
				</label>
			</td>
			<td>
				<?php 
echo JHTML::_('Select.genericlist', $this->worldZones, 'virtuemart_worldzone_id', '', 'virtuemart_worldzone_id', 'zone_name', $this->state->virtuemart_worldzone_id);
开发者ID:denis1001,项目名称:Virtuemart-2-Joomla-3-Bootstrap,代码行数:31,代码来源:edit.php

示例2:

	</td>
	</tr>
-->
  <?php 
}
?>
	<tr>
		<!-- published status -->
		<td>
			<?php 
echo JText::_('COM_VIRTUEMART_PUBLISHED');
?>
		</td>
		<td><fieldset class="radio">
			<?php 
echo VmHTML::booleanlist('published', $this->rating->published);
?>
		</fieldset></td>
	</tr>
</table>
</fieldset>
</div>
<!-- Hidden Fields -->
	<?php 
echo $this->addStandardHiddenToForm();
?>
<input type="hidden" name="virtuemart_rating_review_id" value="<?php 
echo $this->rating->virtuemart_rating_review_id;
?>
" />
<input type="hidden" name="virtuemart_product_id" value="<?php 
开发者ID:denis1001,项目名称:Virtuemart-2-Joomla-3-Bootstrap,代码行数:31,代码来源:edit_review.php

示例3: display

 function display($tpl = null)
 {
     // Load the helper(s)
     $this->loadHelper('html');
     if (!class_exists('Permissions')) {
         require JPATH_VM_ADMINISTRATOR . '/helpers' . DS . 'permissions.php';
     }
     $perm = Permissions::getInstance();
     $this->assignRef('perm', $perm);
     $model = VmModel::getModel();
     $currentUser = JFactory::getUser();
     $task = JRequest::getWord('task', 'edit');
     if ($task == 'editshop') {
         if (Vmconfig::get('multix', 'none') !== 'none') {
             //Maybe we must check here if the user is vendor and if he has an own id and else map to mainvendor.
             $userId = 0;
         } else {
             if (!class_exists('VirtueMartModelVendor')) {
                 require JPATH_VM_ADMINISTRATOR . '/models' . DS . 'vendor.php';
             }
             $userId = VirtueMartModelVendor::getUserIdByVendorId(1);
         }
         $this->SetViewTitle('STORE');
     } else {
         if ($task == 'add') {
             $userId = 0;
         } else {
             $userId = JRequest::getVar('virtuemart_user_id', 0);
             if (is_array($userId)) {
                 $userId = $userId[0];
             }
             $this->SetViewTitle('USER');
         }
     }
     $userId = $model->setId($userId);
     $layoutName = JRequest::getWord('layout', 'default');
     $layoutName = $this->getLayout();
     if ($layoutName == 'edit' || $layoutName == 'edit_shipto') {
         $editor = JFactory::getEditor();
         // Get the required helpers
         $this->loadHelper('shoppergroup');
         $this->loadHelper('image');
         $userDetails = $model->getUser();
         if ($task == 'editshop' && $userDetails->user_is_vendor) {
             // 				$model->setCurrent();
             if (!empty($userDetails->vendor->vendor_store_name)) {
                 $this->SetViewTitle('STORE', $userDetails->vendor->vendor_store_name);
             } else {
                 $this->SetViewTitle('STORE', JText::_('COM_VIRTUEMART_NEW_VENDOR'));
             }
             $vendorid = $userDetails->virtuemart_vendor_id;
         } else {
             $vendorid = 0;
             $this->SetViewTitle('USER', $userDetails->JUser->get('name'));
         }
         $_new = $userDetails->JUser->get('id') < 1;
         $this->addStandardEditViewCommands($userDetails->user_is_vendor, false);
         // User details
         $_contactDetails = $model->getContactDetails();
         $_groupList = $model->getGroupList();
         // this list is not used, note : Juser->get('gid') is obselete
         $userGroups = JAccess::getGroupsByUser($userDetails->JUser->get('id'));
         $defaultGroup = '2';
         if (!is_array($_groupList)) {
             $this->lists['gid'] = '<input type="hidden" name="gid" value="' . $defaultGroup . '" /><strong>' . JText::_('JDEFAULT') . '</strong>';
         } else {
             $this->lists['gid'] = JHTML::_('select.genericlist', $_groupList, 'gid', 'size="10"', 'value', 'text', $userGroups);
         }
         $this->lists['canBlock'] = $currentUser->authorise('com_users', 'block user') && $userDetails->JUser->get('id') != $currentUser->get('id');
         // Can't block myself
         $this->lists['canSetMailopt'] = $currentUser->authorise('workflow', 'email_events');
         $this->lists['block'] = VmHTML::booleanlist('block', $userDetails->JUser->get('block'));
         $this->lists['sendEmail'] = VmHTML::booleanlist('sendEmail', $userDetails->JUser->get('sendEmail'));
         $this->lists['params'] = $userDetails->JUser->getParameters(true);
         // Shopper info
         $this->lists['shoppergroups'] = ShopFunctions::renderShopperGroupList($userDetails->shopper_groups, true);
         $this->lists['vendors'] = ShopFunctions::renderVendorList($userDetails->virtuemart_vendor_id);
         $model->setId($userDetails->JUser->get('id'));
         $this->lists['custnumber'] = $model->getCustomerNumberById();
         // Shipment address(es)
         $this->lists['shipTo'] = ShopFunctions::generateStAddressList($this, $model, 'addST');
         $new = false;
         if (JRequest::getInt('new', '0') === 1) {
             $new = true;
         }
         $virtuemart_userinfo_id_BT = $model->getBTuserinfo_id($userId);
         $userFieldsArray = $model->getUserInfoInUserFields($layoutName, 'BT', $virtuemart_userinfo_id_BT, false);
         $userFieldsBT = $userFieldsArray[$virtuemart_userinfo_id_BT];
         //$this->lists['perms'] = JHTML::_('select.genericlist', Permissions::getUserGroups(), 'perms', '', 'group_name', 'group_name', $userDetails->perms);
         // Load the required scripts
         if (count($userFieldsBT['scripts']) > 0) {
             foreach ($userFieldsBT['scripts'] as $_script => $_path) {
                 // TODO some test j3 path has to be in first param
                 JHTML::script($_path . '/' . $_script);
             }
         }
         // Load the required stylesheets
         if (count($userFieldsBT['links']) > 0) {
             foreach ($userFieldsBT['links'] as $_link => $_path) {
                 // TODO some test j3
//.........这里部分代码省略.........
开发者ID:denis1001,项目名称:Virtuemart-2-Joomla-3-Bootstrap,代码行数:101,代码来源:view.html.php


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