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


PHP VmHTML::radioList方法代码示例

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


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

示例1: _form_radio

 /**
  * @param string The name of the form element
  * @param string The value of the element
  * @param object The xml element for the parameter
  * @param string The control name
  * @return string The html for the element
  */
 function _form_radio($name, $value, &$node, $control_name)
 {
     $options = array();
     foreach ($node->_children as $option) {
         $val = $option->attributes('value');
         $text = trim($option->data());
         $options[$val] = JText::_($text);
     }
     return VmHTML::radioList($control_name . '[' . $name . ']', $value, $options);
 }
开发者ID:juanmcortez,项目名称:Lectorum,代码行数:17,代码来源:parameterparser.php

示例2: array

" />
			<div>
			<?php 
    // 			}
    // 			@ini_set( 'max_execution_time', $memory_limit );
}
?>
	<div class="row-fluid">
		<h4 class="span4"><?php 
echo JText::_('COM_VIRTUEMART_UPDATE_MIGRATION_STRING');
?>
</h4>
		<div class="span8">
		<?php 
$options = array('migrateGeneralFromVmOne' => JText::_('COM_VIRTUEMART_UPDATE_GENERAL'), 'migrateUsersFromVmOne' => JText::_('COM_VIRTUEMART_UPDATE_USERS'), 'migrateProductsFromVmOne' => JText::_('COM_VIRTUEMART_UPDATE_PRODUCTS'), 'migrateOrdersFromVmOne' => JText::_('COM_VIRTUEMART_UPDATE_ORDERS'), 'migrateAllInOne' => JText::_('COM_VIRTUEMART_UPDATE_ALL'));
echo VmHTML::radioList('task', $session->get('migration_task', 'migrateAllInOne', 'vm'), $options);
?>
		</div>
	</div>
	<div class="row-fluid">
		<div class="span4">
		<div class="control-group">
			<label class="control-label" ><?php 
echo JText::_('COM_VIRTUEMART_MIGRATION_REWRITE_ORDER_NUMBER');
?>
</label>
			<?php 
echo VmHTML::checkbox('reWriteOrderNumber', $session->get('reWriteOrderNumber', 1, 'vm'));
?>
		</div>
		</div>
开发者ID:denis1001,项目名称:Virtuemart-2-Joomla-3-Bootstrap,代码行数:31,代码来源:default_migrator.php

示例3: array

	    <tr>
		    <td class="key">
		<span class="hasTip" title="<?php echo JText::_('COM_VIRTUEMART_ADMIN_CFG_DANGEROUS_TOOLS_EXPLAIN'); ?>">
		<label for="dangeroustools"><?php echo JText::_('COM_VIRTUEMART_ADMIN_CFG_DANGEROUS_TOOLS') ?>
		</span>
		    </td>
		    <td>
			    <?php echo VmHTML::checkbox('dangeroustools', $this->config->get('dangeroustools')); ?>
		    </td>
	    </tr>
	<tr>
	<td class="key">
		<span class="hasTip" title="<?php echo JText::_('COM_VIRTUEMART_ADMIN_CFG_ENABLE_MULTIX_EXPLAIN'); ?>">
		<?php echo JText::_('COM_VIRTUEMART_ADMIN_CFG_ENABLE_MULTIX') ?>
		</span>
		</td>
		<td>
		<?php
			$options = array(
				'none'	=>	JText::_('COM_VIRTUEMART_ADMIN_CFG_ENABLE_MULTIX_NONE'),
				'admin'	=>	JText::_('COM_VIRTUEMART_ADMIN_CFG_ENABLE_MULTIX_ADMIN')
// 				'all'	=> JText::_('COM_VIRTUEMART_ADMIN_CFG_ENABLE_DEBUG_ALL')
			);
			echo VmHTML::radioList('multix', $this->config->get('multix','none'),$options);
		?>
	</td>
	</tr>

    </table>
</fieldset>
开发者ID:rubengarcia0510,项目名称:tienda,代码行数:30,代码来源:default_shop.php

示例4: array

echo VmHTML::checkbox('lstockmail', VmConfig::get('lstockmail'));
?>
			<span class="hasTip" title="<?php 
echo vmText::_('COM_VIRTUEMART_CFG_LOWSTOCK_NOTIFY_TIP');
?>
">
				<label for="reviews_autopublish">
					<?php 
echo vmText::_('COM_VIRTUEMART_CFG_LOWSTOCK_NOTIFY');
?>
				</label>
			</span>
		</div>
		<?php 
$options = array('none' => vmText::_('COM_VIRTUEMART_ADMIN_CFG_POOS_NONE'), 'disableit' => vmText::_('COM_VIRTUEMART_ADMIN_CFG_POOS_DISABLE_IT'), 'disableit_children' => vmText::_('COM_VIRTUEMART_ADMIN_CFG_POOS_DISABLE_IT_CHILDREN'), 'disableadd' => vmText::_('COM_VIRTUEMART_ADMIN_CFG_POOS_DISABLE_ADD'), 'risetime' => vmText::_('COM_VIRTUEMART_ADMIN_CFG_POOS_RISE_AVATIME'));
echo VmHTML::radioList('stockhandle', VmConfig::get('stockhandle', 'none'), $options);
?>
		<div style="font-weight:bold;">
					<span class="hasTip" title="<?php 
echo vmText::_('COM_VIRTUEMART_AVAILABILITY_EXPLAIN');
?>
">
						<?php 
echo vmText::_('COM_VIRTUEMART_AVAILABILITY');
?>
					</span>
		</div>
		<input type="text" class="inputbox" id="product_availability" name="rised_availability" value="<?php 
echo VmConfig::get('rised_availability');
?>
"/>
开发者ID:lenard112,项目名称:cms,代码行数:31,代码来源:default_shopfront.php

示例5: array

$options = array('none' => JText::_('COM_VIRTUEMART_ADMIN_CFG_ENABLE_DEBUG_NONE'), 'admin' => JText::_('COM_VIRTUEMART_ADMIN_CFG_ENABLE_DEBUG_ADMIN'), 'all' => JText::_('COM_VIRTUEMART_ADMIN_CFG_ENABLE_DEBUG_ALL'));
echo VmHTML::radioList('debug_enable', VmConfig::get('debug_enable', 'none'), $options);
?>
			</td>
		</tr>
		<?php 
echo VmHTML::row('checkbox', 'COM_VIRTUEMART_ADMIN_CFG_DANGEROUS_TOOLS', 'dangeroustools', VmConfig::get('dangeroustools', 0));
echo VmHTML::row('input', 'COM_VIRTUEMART_REV_PROXY_VAR', 'revproxvar', VmConfig::get('revproxvar', ''));
?>

		<tr>
			<td class="key">
					<span class="hasTip" title="<?php 
echo JText::_('COM_VIRTUEMART_ADMIN_CFG_ENABLE_MULTIX_EXPLAIN');
?>
">
						<?php 
echo JText::_('COM_VIRTUEMART_ADMIN_CFG_ENABLE_MULTIX');
?>
					</span>
			</td>
			<td>
				<?php 
$options = array('none' => JText::_('COM_VIRTUEMART_ADMIN_CFG_ENABLE_MULTIX_NONE'), 'admin' => JText::_('COM_VIRTUEMART_ADMIN_CFG_ENABLE_MULTIX_ADMIN'));
echo VmHTML::radioList('multix', VmConfig::get('multix', 'none'), $options);
?>
			</td>
		</tr>
	</table>
</fieldset>
开发者ID:spiridonov-oa,项目名称:SheinCandles,代码行数:30,代码来源:default_shop.php

示例6: array

?>
		</td>
		<td valign="top"><fieldset class="radio">
		<!-- Rating stars -->
		<?php 
$rating_options = array();
for ($i = 0; $i <= $this->max_rating; $i++) {
    // Rating Stars output
    $ratingwidth = $i * 24;
    $stars = '<span title="' . JText::_("COM_VIRTUEMART_RATING_TITLE") . ' ' . $i . '/' . $this->max_rating . '" class="ratingbox" style="display:inline-block;">
				<span class="stars-orange" style="width:' . $ratingwidth . 'px">
				</span>
			</span>';
    $rating_options[$i] = $stars;
}
echo VmHTML::radioList('vote', $this->rating->vote, $rating_options, '', 'radio');
?>
		</fieldset></td>
	</tr>
		<!-- Review comment -->
	<tr>
		<td width="24%" align="left" valign="top">
			<?php 
echo JTEXT::_('COM_VIRTUEMART_REVIEW');
?>
        	</td>
		<td width="76%" align="left">
			<textarea class="input-block-level" onblur="refresh_counter();" onfocus="refresh_counter();" onkeypress="refresh_counter();" rows="20" cols="60" name="comment"><?php 
echo $this->rating->comment;
?>
</textarea>
开发者ID:denis1001,项目名称:Virtuemart-2-Joomla-3-Bootstrap,代码行数:31,代码来源:edit_review.php

示例7: array

							title="<?php 
echo JText::_('COM_VIRTUEMART_ADMIN_CFG_RATING_EXPLAIN');
?>
">
								<label><?php 
echo JText::_('COM_VIRTUEMART_ADMIN_CFG_RATING');
?>
							</label> </span>
						</td>
						<td>

				<fieldset class="checkboxes">

						<?php 
$showReviewFor = array('none' => JText::_('COM_VIRTUEMART_ADMIN_CFG_RATING_MODE_NONE'), 'bought' => JText::_('COM_VIRTUEMART_ADMIN_CFG_RATING_MODE_BOUGHT_PRODUCT'), 'registered' => JText::_('COM_VIRTUEMART_ADMIN_CFG_RATING_MODE_REGISTERED'));
echo VmHTML::radioList('ratingMode', $this->config->get('ratingMode', 2), $showReviewFor);
?>
							</fieldset></td>
					</tr>

				</table>
			</fieldset>
		</td>

	</tr>
</table>
<script type="text/javascript">
	jQuery('#image').change( function() {
		var $newimage = jQuery(this).val();
		jQuery('#product_availability').val($newimage);
		jQuery('#imagelib').attr({ src:'<?php 
开发者ID:Gskflute,项目名称:joomla25,代码行数:31,代码来源:default_shopfront.php

示例8: getCCDropDown

 /**
  * @param $virtuemart_paymentmethod_id
  * @param $virtuemart_user_id
  * @param $selected_cc
  * @return mixed|null
  */
 function getCCDropDown($virtuemart_paymentmethod_id, $virtuemart_user_id, $selected_cc, $use_another_cc = true, $radio = false)
 {
     //$storeCCs = $this->getStoredCCsByPaymentMethod($virtuemart_user_id, $virtuemart_paymentmethod_id);
     $storeCCs = $this->getStoredCCs($virtuemart_user_id);
     if (empty($storeCCs)) {
         return null;
     }
     if (!class_exists('VmHTML')) {
         require VMPATH_ADMIN . DS . 'helpers' . DS . 'html.php';
     }
     $attrs = 'class="inputbox vm-chzn-select"';
     $idA = $id = 'saved_cc_selected';
     //$idA = $id = 'saved_cc_selected_';
     //$options[] = array('value' => '', 'text' => vmText::_('VMPAYMENT_REALEX_HPP_API_PLEASE_SELECT'));
     if ($use_another_cc) {
         $options[] = JHTML::_('select.option', -1, vmText::_('VMPAYMENT_REALEX_HPP_API_USE_ANOTHER_CC'));
         $radioOptions[-1] = vmText::_('VMPAYMENT_REALEX_HPP_API_USE_ANOTHER_CC');
     }
     foreach ($storeCCs as $storeCC) {
         $cc_type = vmText::_('VMPAYMENT_REALEX_HPP_API_CC_' . $storeCC->realex_hpp_api_saved_pmt_type);
         $name = $cc_type . ' ' . $storeCC->realex_hpp_api_saved_pmt_digits . ' ' . $this->renderExpDate($storeCC->realex_hpp_api_saved_pmt_expdate) . ' (' . $storeCC->realex_hpp_api_saved_pmt_name . ')';
         $options[] = JHTML::_('select.option', $storeCC->id, $name);
         $radioOptions[$storeCC->id] = $name;
     }
     if ($radio) {
         return VmHTML::radioList($idA, $selected_cc, $radioOptions, 'class="realexListCC"');
     } else {
         return JHTML::_('select.genericlist', $options, $idA, 'class="realexListCC inputbox vm-chzn-select" style="width: 350px;"', 'value', 'text', $selected_cc);
     }
 }
开发者ID:virtuemart-fr,项目名称:virtuemart-fr,代码行数:36,代码来源:helper.php

示例9: array

					<span class="hasTip" title="<?php 
echo JText::_('COM_VIRTUEMART_ADMIN_CFG_RATING_EXPLAIN');
?>
">
						<label>
							<?php 
echo JText::_('COM_VIRTUEMART_ADMIN_CFG_RATING');
?>
						</label>
					</span>
				</td>
				<td>
					<fieldset class="checkboxes">
						<?php 
$showReviewFor = array('none' => JText::_('COM_VIRTUEMART_ADMIN_CFG_RATING_MODE_NONE'), 'bought' => JText::_('COM_VIRTUEMART_ADMIN_CFG_RATING_MODE_BOUGHT_PRODUCT'), 'registered' => JText::_('COM_VIRTUEMART_ADMIN_CFG_RATING_MODE_REGISTERED'));
echo VmHTML::radioList('ratingMode', VmConfig::get('ratingMode', 'bought'), $showReviewFor);
?>
					</fieldset>
				</td>
			</tr>
			<tr>
				<td class="key">
            	<span class="hasTip" title="<?php 
echo JText::_('COM_VIRTUEMART_REVIEWS_OS_TIP');
?>
">
					<?php 
echo JText::_('COM_VIRTUEMART_REVIEWS_OS');
?>
				 </span>
				</td>
开发者ID:juanmcortez,项目名称:Lectorum,代码行数:31,代码来源:default_shopfront.php


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