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


PHP TiendaSelect::booleans方法代码示例

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


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

示例1:

	                	<div class="rangeline">
	                		<span class="label"><?php 
echo JText::_('COM_TIENDA_TO');
?>
:</span> <input type="text" id="filter_quantity_to" name="filter_quantity_to" value="<?php 
echo @$state->filter_quantity_to;
?>
" size="5" class="input input-tiny" />
	                	</div>
                	</div>
                </th>
                <th>
                </th>
                <th>
    	            <?php 
echo TiendaSelect::booleans(@$state->filter_enabled, 'filter_enabled', $attribs, 'enabled', true, 'COM_TIENDA_ENABLED_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:annggeel,项目名称:tienda,代码行数:31,代码来源:default.php

示例2: 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":
             Tienda::load('TiendaSelect', 'library.select');
             return TiendaSelect::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:annggeel,项目名称:tienda,代码行数:35,代码来源:eav.php

示例3:

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

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

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

示例4:

                    </div>
                </th>
                <th>
                    <input id="filter_transaction" name="filter_transactionid" value="<?php 
echo @$state->filter_transactionid;
?>
" size="10"/>
                </th>
                <th>
                    <?php 
echo TiendaSelect::booleans(@$state->filter_enabled, 'filter_enabled', $attribs, 'enabled', true, 'COM_TIENDA_ENABLED_STATE');
?>
                </th>
                <th>
                    <?php 
echo TiendaSelect::booleans(@$state->filter_lifetime, 'filter_lifetime', $attribs, 'lifetime', true, 'COM_TIENDA_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:annggeel,项目名称:tienda,代码行数:31,代码来源:default.php

示例5:

?>
" size="25"/>
                </th>
                <th>
                    <input type="text" id="filter_code" name="filter_code" value="<?php 
echo @$state->filter_code;
?>
" size="15"/>
                </th>
                <th>
                </th>
                <th>
                </th>
                <th>
                    <?php 
echo TiendaSelect::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:annggeel,项目名称:tienda,代码行数:31,代码来源:default.php

示例6: array

" />
                <button class="btn btn-primary" onclick="this.form.submit();"><?php 
echo JText::_('COM_TIENDA_SEARCH');
?>
</button>
                <button class="btn btn-danger" onclick="tiendaFormReset(this.form);"><?php 
echo JText::_('COM_TIENDA_RESET');
?>
</button>
            </td>
            <td>
                <?php 
$attribs = array('class' => 'inputbox', 'size' => '1', 'onchange' => 'document.adminForm.submit();');
?>
                <?php 
echo TiendaSelect::booleans(@$state->filter_associated, 'filter_associated', $attribs, $idtag = null, false, '', 'COM_TIENDA_ASSOCIATED_ZONES_ONLY', 'COM_TIENDA_ALL_ZONES');
?>
            </td>
            <td nowrap="nowrap">
                <?php 
echo TiendaSelect::country(@$state->filter_countryid, 'filter_countryid', $attribs, 'country_id', true);
?>
            </td>
        </tr>
    </table>

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

示例7: array

					<div id="parent_option_select_<?php 
    echo $item->productattributeoption_id;
    ?>
">
					
					<?php 
    if ($item->parent_productattributeoption_id) {
        echo TiendaSelect::productattributeoptions($attribute_id, $item->parent_productattributeoption_id, 'parent[' . $item->productattributeoption_id . ']');
    }
    ?>
					
					</div>
				</td>
        <td style="text-align: center;">
	      	<?php 
    echo TiendaSelect::booleans($item->is_blank, 'blank[' . $item->productattributeoption_id . ']', array('class' => 'inputbox', 'size' => '1'), null, false, 'Select State', 'Yes', 'No');
    ?>
				</td>
				<td style="text-align: center;">
					<input type="text" name="ordering[<?php 
    echo $item->productattributeoption_id;
    ?>
]" value="<?php 
    echo $item->ordering;
    ?>
" size="10" class="input-tiny" />
				</td>
				<td style="text-align: center;">
					[<?php 
    echo TiendaUrl::popup("index.php?option=com_tienda&controller=products&task=setattributeoptionvalues&id=" . $item->productattributeoption_id . "&tmpl=component", JText::_('COM_TIENDA_SET_VALUES'));
    ?>
开发者ID:annggeel,项目名称:tienda,代码行数:31,代码来源:default.php

示例8:

    ?>
        	     <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_TIENDA_SEND_EMAIL_TO_CUSTOMER');
?>
    	    </td>
    	    <td>
    	        <?php 
echo TiendaSelect::booleans('0', 'new_orderstate_notify', '', '', '', '', 'Yes', 'No');
?>
    	    </td>
    	</tr>
    	<tr>
    	    <td style="width: 100px; text-align: right;" class="key">
    	        <?php 
echo JText::_('COM_TIENDA_COMMENTS');
?>
    	    </td>
    	    <td>
		<div id="update_order">
			<textarea name="new_orderstate_comments" rows="5" style="width: 100%;"></textarea>
		</div>
	    </td>
    	</tr>
开发者ID:annggeel,项目名称:tienda,代码行数:31,代码来源:view.php

示例9: array

: </span> 
            <?php 
$catattribut = array('class' => 'inputbox', 'size' => '1', 'multiple' => 'yes', 'size' => 5);
?>
            <?php 
echo TiendaSelect::category(@$state->filter_multicategory, 'filter_multicategory[]', $catattribut, 'filter_multicategory', true);
?>
        </div>
        
        <div class="row filtershipping" >
            <span class="label"><?php 
echo JText::_('COM_TIENDA_REQUIRES_SHIPPING');
?>
: </span> 
            <?php 
echo TiendaSelect::booleans(@$state->filter_ships, 'filter_ships', '', 'ships', true, "Doesn't Matter", 'Yes', 'No');
?>
        </div>
        
        <div class="row filtersku" >   
            <span class="label"><?php 
echo JText::_('COM_TIENDA_SKU');
?>
: </span>         	                
            <input id="filter_sku" name="filter_sku" value="<?php 
echo @$state->filter_sku;
?>
" size="15" class="text_area" />
        </div>
        
        <div class="row price">
开发者ID:annggeel,项目名称:tienda,代码行数:31,代码来源:default.php

示例10:

?>
:</span>
                            <?php 
echo TiendaSelect::datetype(@$state->filter_datetype, 'filter_datetype', '', 'datetype');
?>
                        </div>
                    </div>
                </th>
                <th>
                    <?php 
echo TiendaSelect::booleans(@$state->filter_enabled, 'filter_enabled', $attribs, 'filter_enabled', true);
?>
                </th>
                <th>
                    <?php 
echo TiendaSelect::booleans(@$state->filter_withdraw, 'filter_withdraw', $attribs, '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:annggeel,项目名称:tienda,代码行数:31,代码来源:default.php


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