本文整理匯總了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;
?>