本文整理汇总了PHP中input::postCount方法的典型用法代码示例。如果您正苦于以下问题:PHP input::postCount方法的具体用法?PHP input::postCount怎么用?PHP input::postCount使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类input
的用法示例。
在下文中一共展示了input::postCount方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __
<div class="row <?php
echo text_helper::alternate('odd', 'even');
?>
" id="input_row_user_login_password">
<label for="input_edit_user_login_password">
<?php
echo __('password', 'users');
?>
</label>
<div class="field">
<?php
view::load('system/elements/field/edit', array('prefix' => 'user_login', 'field' => array('keyword' => 'password', 'type' => 'password', 'maxlength' => 128, 'class' => 'input-xlarge'), 'value' => input::demo(0, '', false) && !input::postCount() ? array('password' => 'demo') : ''));
?>
</div>
</div>
<?php
if (uri::segment(4) == 'license' && !input::demo(0, '', false)) {
?>
<div class="row <?php
echo text_helper::alternate('odd', 'even');
?>
" id="input_row_user_login_license">
示例2: array
echo form_helper::select($name, array(1 => __('yes', 'system'), 0 => __('no', 'system')), form_helper::setSelect($name, isset($value[$name]) ? $value[$name] : ''), array('class' => 'select ' . (isset($field['class']) && $field['class'] ? $field['class'] : ''), 'style' => isset($field['style']) && $field['style'] ? $field['style'] : '', 'id' => $id));
?>
<?php
break;
?>
<?php
case 'location':
?>
<?php
echo form_helper::select($name . '[country]', array('' => __('select', 'system')) + geo_helper::getCountries(), form_helper::setSelect($name . '[country]', isset($value[$name]) ? $value[$name] : ''), array('class' => 'select geo ' . (isset($field['class']) && $field['class'] ? $field['class'] : ''), 'style' => isset($field['style']) && $field['style'] ? $field['style'] : '', 'id' => $id . '_country', 'onchange' => "geo('',this.id,this.value)"));
?>
<?php
if (!input::postCount()) {
?>
<?php
if (isset($value[$name]) && $value[$name]) {
?>
<?php
echo form_helper::select($name . '[state]', array('' => __('select', 'system')) + geo_helper::getStates($value[$name]), form_helper::setSelect($name . '[state]', isset($value[$name . '_state']) ? $value[$name . '_state'] : ''), array('class' => 'select geo ' . (isset($field['class']) && $field['class'] ? $field['class'] : ''), 'style' => isset($field['style']) && $field['style'] ? $field['style'] : '', 'id' => $id . '_country_state', 'onchange' => "geo('',this.id,null,this.value)"));
?>
<?php
if (isset($value[$name . '_state']) && $value[$name . '_state']) {
?>
<?php