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


PHP CitruscartSelect::booleans方法代码示例

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


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

示例1: array

" />
                <button class="btn btn-primary" onclick="this.form.submit();"><?php 
echo JText::_('COM_CITRUSCART_SEARCH');
?>
</button>
                <button class="btn btn-danger" onclick="citruscartFormReset(this.form);"><?php 
echo JText::_('COM_CITRUSCART_RESET');
?>
</button>
            </td>
            <td>
                <?php 
$attribs = array('class' => 'inputbox', 'size' => '1', 'onchange' => 'document.adminForm.submit();');
?>
                <?php 
echo CitruscartSelect::booleans($state->filter_associated, 'filter_associated', $attribs, $idtag = null, false, '', 'COM_CITRUSCART_ASSOCIATED_ZONES_ONLY', 'COM_CITRUSCART_ALL_ZONES');
?>
            </td>
            <td nowrap="nowrap">
                <?php 
echo CitruscartSelect::country($state->filter_countryid, 'filter_countryid', $attribs, 'country_id', true);
?>
            </td>
        </tr>
    </table>

	<table class="table table-striped table-bordered">
		<thead>
            <tr>
                <th style="width: 5px;">
                	<?php 
开发者ID:joomlacorner,项目名称:citruscart,代码行数:31,代码来源:selectzones.php

示例2:

                </th>
                <th>
                    <input type="text" id="filter_code3" name="filter_code3" value="<?php 
echo $state->filter_code3;
?>
" size="15" placeholder="<?php 
echo JText::_('COM_CITRUSCART_ISO_CODE_3');
?>
"/>
                </th>
                <th>

                </th>
                <th>
                    <?php 
echo CitruscartSelect::booleans($state->filter_enabled, 'filter_enabled', $attribs, 'enabled', true);
?>
                </th>
            </tr>
            <tr>
                <th colspan="20" style="font-weight: normal;">
                    <div style="float: right; padding: 5px;"><?php 
echo $this->pagination->getResultsCounter();
?>
</div>
                    <div style="float: left;"><?php 
echo $this->pagination->getListFooter();
?>
</div>
                </th>
            </tr>
开发者ID:joomlacorner,项目名称:citruscart,代码行数:31,代码来源:default.php

示例3:

                    <input id="filter_value" name="filter_value" type="text" value="<?php 
echo $state->filter_value;
?>
" class="input-small" placeholder="<?php 
echo JText::_('COM_CITRUSCART_VALUE');
?>
"/>
                </th>
                <th>
                    <?php 
echo CitruscartSelect::booleans($state->filter_type, 'filter_type', $attribs, 'filter_type', true, 'COM_CITRUSCART_SELECT_TYPE', 'COM_CITRUSCART_PERCENTAGE', 'COM_CITRUSCART_FLAT_RATE');
?>
                </th>
                <th>
    	            <?php 
echo CitruscartSelect::booleans($state->filter_enabled, 'filter_enabled', $attribs, 'enabled', true, 'COM_CITRUSCART_ENABLED_STATE');
?>
                </th>
                <th>
                </th>
                <th>
                </th>
            </tr>
			<tr>
				<th colspan="20" style="font-weight: normal;">
					<div style="float: right; padding: 5px;"><?php 
echo $this->pagination->getResultsCounter();
?>
</div>
					<div style="float: left;"><?php 
echo $this->pagination->getListFooter();
开发者ID:joomlacorner,项目名称:citruscart,代码行数:31,代码来源:default.php

示例4:

    ?>
        	     <input id="completed_tasks" name="completed_tasks" type="checkbox" checked="checked" disabled="disabled" />
        	     <?php 
}
?>
        	</td>
    	</tr>
    	<tr>
    	    <td style="width: 100px; text-align: right;" class="key">
    	        <?php 
echo JText::_('COM_CITRUSCART_SEND_EMAIL_TO_CUSTOMER');
?>
    	    </td>
    	    <td>
    	        <?php 
echo CitruscartSelect::booleans('0', 'new_orderstate_notify', '', '', '', '', 'Yes', 'No');
?>
    	    </td>
    	</tr>
    	<tr>
    	    <td style="width: 100px; text-align: right;" class="key">
    	        <?php 
echo JText::_('COM_CITRUSCART_COMMENTS');
?>
    	    </td>
    	    <td>
		<div id="update_order">
			<textarea name="new_orderstate_comments" rows="5" style="width: 100%;"></textarea>
		</div>
	    </td>
    	</tr>
开发者ID:joomlacorner,项目名称:citruscart,代码行数:31,代码来源:view.php

示例5:

                    </div>
                </th>
                <th>
                    <input id="filter_transaction" name="filter_transactionid" value="<?php 
echo $state->filter_transactionid;
?>
" class="input-small"/>
                </th>
                <th>
                    <?php 
echo CitruscartSelect::booleans($state->filter_enabled, 'filter_enabled', $attribs, 'enabled', true, 'COM_CITRUSCART_ENABLED_STATE');
?>
                </th>
                <th>
                    <?php 
echo CitruscartSelect::booleans($state->filter_lifetime, 'filter_lifetime', $attribs, 'lifetime', true, 'COM_CITRUSCART_LIFETIME_STATE');
?>
                </th>
            </tr>
			<tr>
				<th colspan="20" style="font-weight: normal;">
					<div style="float: right; padding: 5px;"><?php 
echo $this->pagination->getResultsCounter();
?>
</div>
					<div style="float: left;"><?php 
echo $this->pagination->getListFooter();
?>
</div>
				</th>
			</tr>
开发者ID:joomlacorner,项目名称:citruscart,代码行数:31,代码来源:default.php

示例6: editForm

 /**
  * Show the correct edit field based on the eav type
  * @param EavAttribute $eav
  * @param unknown_type $value
  */
 public static function editForm($eav, $value = null)
 {
     // Type of the field
     switch ($eav->eavattribute_type) {
         case "bool":
             Citruscart::load('CitruscartSelect', 'library.select');
             return CitruscartSelect::booleans($value, $eav->eavattribute_alias, $attribs = array('class' => 'inputbox cf_' . $eav->eavattribute_alias, 'size' => '1'), $idtag = null, $allowAny = false, $title = 'Select State', $yes = 'Yes', $no = 'No');
             break;
         case "datetime":
             $format = !empty($eav->eavattribute_format_strftime) ? $eav->eavattribute_format_strftime : '%Y-%m-%d %H:%M:%S';
             return JHTML::calendar($value, $eav->eavattribute_alias, "eavattribute_alias", $format, array('size' => 24, 'class' => 'input-medium'));
             break;
         case "text":
             $editor = JFactory::getEditor();
             return $editor->display($eav->eavattribute_alias, $value, '300', '200', '50', '20');
             break;
         case "hidden":
             return '<input type="hidden" name="' . $eav->eavattribute_alias . '" id="' . $eav->eavattribute_alias . '" value="' . $value . '"/>';
             break;
         case "decimal":
         case "int":
             return '<input type="text" name="' . $eav->eavattribute_alias . '" id="' . $eav->eavattribute_alias . '" value="' . $value . '" class="input-mini cf_' . $eav->eavattribute_alias . '"/>';
             break;
         case "varchar":
         default:
             return '<input type="text" name="' . $eav->eavattribute_alias . '" id="' . $eav->eavattribute_alias . '" value="' . $value . '" class="input-medium cf_' . $eav->eavattribute_alias . '"/>';
             break;
     }
     return '';
 }
开发者ID:joomlacorner,项目名称:citruscart,代码行数:35,代码来源:eav.php

示例7: isset

	            size="25" maxlength="250"
	            value="<?php 
echo isset($row->fax) ? $row->fax : "";
?>
" />
	        </td>
	    </tr>
        <tr>
            <th style="width: 100px; text-align: right;" class="key">
                <?php 
echo JText::_('COM_CITRUSCART_EMAIL_FORMAT');
?>
            </th>
            <td>
                <?php 
echo CitruscartSelect::booleans(isset($row->html_emails) ? $row->html_emails : "", 'html_emails', '', '', '', '', JText::_('COM_CITRUSCART_HTML'), JText::_('COM_CITRUSCART_PLAIN_TEXT'));
?>
            </td>
        </tr>
	    </tbody>
	</table>

    <input type="button" onclick="citruscartSubmitForm('save');" value="<?php 
echo JText::_('COM_CITRUSCART_SUBMIT');
?>
" />

    <input type="hidden" name="id" value="<?php 
echo $row->user_id;
?>
" />
开发者ID:joomlacorner,项目名称:citruscart,代码行数:31,代码来源:form.php

示例8: array

: </label>
            <?php 
$catattribut = array('class' => 'inputbox', 'size' => '1', 'multiple' => 'yes', 'size' => 5);
?>
            <?php 
echo CitruscartSelect::category($state->filter_multicategory, 'filter_multicategory[]', $catattribut, 'filter_multicategory', true);
?>
        </div>

        <div class="row filtershipping" >
            <label  class="control-label"><?php 
echo JText::_('COM_CITRUSCART_REQUIRES_SHIPPING');
?>
: </label>
            <?php 
echo CitruscartSelect::booleans($state->filter_ships, 'filter_ships', '', 'ships', true, "Doesn't Matter", 'Yes', 'No');
?>
        </div>

        <div class="row filtersku" >
            <label class="control-label"><?php 
echo JText::_('COM_CITRUSCART_SKU');
?>
: </label>
            <input id="filter_sku" name="filter_sku" value="<?php 
echo $state->filter_sku;
?>
" size="15" class="text_area" />
        </div>

        <div class="row price">
开发者ID:joomlacorner,项目名称:citruscart,代码行数:31,代码来源:default.php

示例9: array

?>
:</span>
                            <?php 
echo CitruscartSelect::datetype($state->filter_datetype, 'filter_datetype', array('class' => 'input-small'), 'datetype');
?>
                        </div>
                    </div>
                </th>
                <th>
                    <?php 
echo CitruscartSelect::booleans($state->filter_enabled, 'filter_enabled', array('class' => 'input-small'), 'filter_enabled', true);
?>
                </th>
                <th>
                    <?php 
echo CitruscartSelect::booleans($state->filter_withdraw, 'filter_withdraw', array('class' => 'input-small'), 'filter_withdraw', true);
?>
                </th>
            </tr>
			<tr>
				<th colspan="20" style="font-weight: normal;">
					<div style="float: right; padding: 5px;"><?php 
echo $this->pagination->getResultsCounter();
?>
</div>
					<div style="float: left;"><?php 
echo $this->pagination->getListFooter();
?>
</div>
				</th>
			</tr>
开发者ID:joomlacorner,项目名称:citruscart,代码行数:31,代码来源:default.php

示例10: array

    echo CitruscartSelect::productattributes($attribute_id, $row->product_id, $item->productattributeoption_id, array('class' => 'input-mini'), null, $allowAny = true, $title = 'COM_CITRUSCART_NO_PARENT');
    ?>
					<div id="parent_option_select_<?php 
    echo $item->productattributeoption_id;
    ?>
">
					<?php 
    if ($item->parent_productattributeoption_id) {
        echo CitruscartSelect::productattributeoptions($attribute_id, $item->parent_productattributeoption_id, 'parent[' . $item->productattributeoption_id . ']', array('class' => 'input-mini'));
    }
    ?>
					</div>
				</td>
        <td>
	      	<?php 
    echo CitruscartSelect::booleans($item->is_blank, 'blank[' . $item->productattributeoption_id . ']', array('class' => 'input-mini'), null, false, 'Select State', 'Yes', 'No');
    ?>
				</td>
				<td>
					<input type="text" class="span1" name="ordering[<?php 
    echo $item->productattributeoption_id;
    ?>
]" value="<?php 
    echo $item->ordering;
    ?>
" class="input-mini" />
				</td>
				<td>
					[<?php 
    echo CitruscartUrl::popup("index.php?option=com_citruscart&controller=products&task=setattributeoptionvalues&id=" . $item->productattributeoption_id . "&tmpl=component", JText::_('COM_CITRUSCART_SET_VALUES'));
    ?>
开发者ID:joomlacorner,项目名称:citruscart,代码行数:31,代码来源:default.php


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