本文整理汇总了PHP中Options::displayAllOptions方法的典型用法代码示例。如果您正苦于以下问题:PHP Options::displayAllOptions方法的具体用法?PHP Options::displayAllOptions怎么用?PHP Options::displayAllOptions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Options
的用法示例。
在下文中一共展示了Options::displayAllOptions方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: stripslashes
echo stripslashes($products->fldProductsPosition);
?>
">
</li>
</ul>
</fieldset>
<fieldset style="width:1065px;">
<legend>Options Panel</legend>
<ul>
<? foreach($category_options as $cat):
// $category_options is declared above
$category_id = $cat->fldOptionsCategoryID;
$options = Options::displayAllOptions($category_id);
?>
<b><?php
echo $cat->fldOptionsCategoryName;
?>
</b><br />
<select multiple style="width:700px" id="options<?php
echo $cat->fldOptionsCategoryID;
?>
" name="options<?php
echo $cat->fldOptionsCategoryID;
?>
[]">
<? foreach($options as $option):
$option_id = $option->fldOptionsID;
if( ProductsOption::isOptionSettingExists($product_id, $category_id, $option_id) ):
示例2:
<label for="position">Position</label>
<input type="text" id="position" name="position">
</li>
</ul>
</fieldset>
<fieldset style="width:1065px;">
<legend>Options Panel</legend>
<ul>
<?
$optionsCat = OptionsCategory::displayAllOptionsCategory();
foreach($optionsCat as $optionsCats) {
$option = Options::displayAllOptions($optionsCats->fldOptionsCategoryID);
?>
<li>
<label for="title"><strong><?php
echo $optionsCats->fldOptionsCategoryName;
?>
</strong> : </label>
<?
foreach($option as $options) {
?>
<input type="checkbox" name="options[]" value="<?php
echo $optionsCats->fldOptionsCategoryID . ';' . $options->fldOptionsID;
?>
" style="width:10px; display:inline;"> <?php
echo $options->fldOptionsName;
?>