本文整理汇总了PHP中form::input_wrap方法的典型用法代码示例。如果您正苦于以下问题:PHP form::input_wrap方法的具体用法?PHP form::input_wrap怎么用?PHP form::input_wrap使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类form
的用法示例。
在下文中一共展示了form::input_wrap方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __
<ul>
<?php
echo form::dropdown_wrap('forum_group_id', $form, $values, '', __('Group'), $errors);
?>
<?php
echo form::input_wrap('name', $values, '', __('Name'), $errors);
?>
<?php
echo form::input_wrap('description', $values, '', __('Description'), $errors);
?>
<?php
echo form::input_wrap('sort', $values, '', __('Sort'), $errors);
?>
<?php
echo form::checkboxes_wrap('area_type', $form, $values, __('Area type'), $errors);
?>
<?php
echo form::dropdown_wrap('bind', $form, $values, '', __('Bind to'), $errors);
?>
</ul>
</fieldset>
<fieldset>
<?php
示例2: __
<fieldset>
<legend><?php
echo __('Detailed information');
?>
</legend>
<ul>
<?php
echo form::upload_wrap('logo', '', '', __('Logo'), $errors);
?>
<?php
echo $values['default_image_id'] ? '<li>' . html::img(new Image_Model($values['default_image_id']), 'thumb') . '</li>' : '';
?>
<?php
echo form::input_wrap(array('name' => 'description', 'maxlength' => 250), $values, '', __('Short description'), $errors);
?>
<?php
echo form::textarea_wrap(array('name' => 'info', 'rows' => 3, 'cols' => 25), $values, '', true, __('Long description'), $errors);
?>
<?php
echo form::textarea_wrap(array('name' => 'hours', 'rows' => 3, 'cols' => 25), $values, '', true, __('Opening hours'), $errors);
?>
<?php
echo form::upload_wrap('picture1', '', '', __('Pictures'), $errors);
?>
<?php
示例3: __
<legend><?php
echo __('Almost there!');
?>
</legend>
<ul>
<?php
echo form::input_wrap(array('name' => 'username', 'id' => 'signup_username'), $values, 'title="' . __('JohnDoe') . '" maxlength="' . (int) Kohana::config('visitor.username.length_max') . '"', __('Username'), $errors, __('Choose a unique username with at least <var>:length</var> characters. No special characters, thank you.', array(':length' => Kohana::config('visitor.username.length_min'))));
?>
<?php
echo form::password_wrap(array('name' => 'password', 'id' => 'signup_password'), $values, 'title="' . __('j0hnd03ru13z!') . '"', __('Password'), $errors, __('Try to use letters, numbers and special characters for a stronger password, with at least <var>:length</var> characters.', array(':length' => Kohana::config('visitor.password.length_min'))));
?>
<?php
echo form::input_wrap(array('name' => 'email', 'id' => 'signup_email'), $invitation->email, 'title="' . __('john.doe@domain.tld') . '" disabled="disabled"', __('Email'), $errors);
?>
</ul>
</fieldset>
<fieldset class="prefix-1">
<?php
echo form::submit(false, __('Sign up!'));
?>
<?php
echo html::anchor(empty($_SESSION['history']) ? '/' : $_SESSION['history'], __('Cancel'));
?>
<p class="tip">
<?php
示例4: __
*/
?>
<?php
echo form::open();
?>
<fieldset>
<ul>
<?php
echo form::input_wrap('name', $values, 'maxlength="32"', __('Name'), $errors);
?>
<?php
echo form::input_wrap('description', $values, '', __('Description'), $errors);
?>
</ul>
</fieldset>
<fieldset>
<?php
echo form::submit(false, __('Save'));
?>
<?php
echo html::anchor($_SESSION['history'], __('Cancel'));
?>
</fieldset>
<?php
示例5: __
* @license http://www.opensource.org/licenses/mit-license.php MIT license
*/
?>
<?php
echo form::open();
?>
<fieldset>
<ul>
<?php
if ($topics === false) {
?>
<?php
echo form::input_wrap(array('name' => 'name', 'maxlength' => 100), $topic, '', __('Topic'), $errors);
?>
<?php
} else {
?>
<?php
echo form::dropdown_wrap('bind_id', $topics, $topic, '', __('Topic'), $errors);
?>
<?php
}
?>
<?php
echo form::textarea_wrap(array('name' => 'post', 'id' => 'post', 'rows' => 20, 'cols' => 25), $topic, '', true, __('Post'), $errors);
?>
示例6: __
?>
<?php
echo html::box_step(2);
?>
<fieldset class="prefix-1">
<legend><?php
echo __('Got my invitation!');
?>
</legend>
<p><?php
echo __('You received your invitation and are ready to sign up? Excellent! ');
?>
</p>
<ul>
<?php
echo form::input_wrap('code', $values, 'title="' . __('M0573XC3LL3N751R') . '" maxlength="32"', __('Enter your invitation code'), $errors);
?>
<li class="tip"><?php
echo __('Your invitation code is included in the mail you received, 16 characters.');
?>
</li>
<li><?php
echo form::submit('invitation_check', __('Final step!'));
?>
</li>
</ul>
</fieldset>
<?php
echo form::close();
示例7: __
</ul>
</fieldset>
<fieldset>
<legend><?php
echo __('Tickets');
?>
</legend>
<ul>
<?php
echo form::input_wrap('price', $values, 'maxlength="5"', __('At the door'), $errors);
?>
<?php
echo form::input_wrap('price2', $values, 'maxlength="5"', __('Presale'), $errors);
?>
</ul>
</fieldset>
<fieldset>
<legend><?php
echo __('Who?');
?>
</legend>
<ul>
<?php
echo form::textarea_wrap('dj', $values, 'rows="5" cols="25"', true, __('DJ'), $errors);
?>
示例8: __
</li>
</ul>
</fieldset>
<?php
echo form::close();
?>
</section>
<section id="invitation" class="grid-2 prefix-5">
<?php
echo form::open('sign/up');
?>
<fieldset>
<ul>
<?php
echo form::input_wrap('code', null, 'title="' . __('Invitation code') . '" maxlength="32"', __('Got invited?'));
?>
<li><?php
echo form::submit('invitation_check', __('Sign up'));
?>
</li>
</ul>
</fieldset>
<?php
echo form::close();
?>
</section>
</div>
</section>
示例9: __
echo form::open();
?>
<fieldset class="horizontal">
<ul>
<?php
if ($private) {
?>
<?php
echo form::checkbox_wrap('private', '1', $values, "onchange=\"\$('input[name=comment]').toggleClass('private', this.checked)\"", '<abbr class="private" title="' . __('Private comment') . '">' . __('Priv') . '</abbr>');
?>
<?php
}
?>
<?php
echo form::input_wrap(array('name' => 'comment', 'id' => 'comment', 'maxlength' => 300), '', '', '', $errors);
?>
<li><?php
echo form::submit(false, __('Comment'));
?>
</li>
</ul>
<?php
echo form::csrf();
?>
</fieldset>
<?php
echo form::close();
?>
示例10: __
<section class="mod venue-category-edit">
<div>
<?php
echo form::open();
?>
<fieldset>
<ul>
<?php
echo form::input_wrap(array('name' => 'name'), $values, '', __('Name'), $errors);
?>
<?php
echo form::input_wrap(array('name' => 'description'), $values, '', __('Description'), $errors);
?>
<?php
echo form::dropdown_wrap('tag_group_id', $form, $values, '', __('Tag group'), $errors);
?>
</ul>
</fieldset>
<fieldset>
<?php
echo form::csrf();
?>
<?php
echo empty($values['id']) ? '' : form::hidden('id', $values['id']);
示例11: __
<?php
}
?>
</ul>
<?php
if ($can_shout) {
?>
<?php
echo form::open('/shout');
?>
<fieldset class="horizontal">
<ul>
<?php
echo form::input_wrap(array('name' => 'shout', 'maxlength' => 300, 'title' => __('Shout')), '', '', '', $errors);
?>
<li><?php
echo form::submit(false, __('Shout'));
?>
</li>
</ul>
<?php
echo form::csrf();
?>
</fieldset>
<?php
echo form::close();
?>
<?php
示例12: __
<legend><?php
echo __('Location');
?>
</legend>
<ul>
<?php
echo form::input_wrap('address_street', $values, 'maxlength="50"', __('Address'), $errors);
?>
<?php
echo form::input_wrap('address_city', $values, 'maxlength="50"', __('City'), $errors);
?>
<?php
echo form::input_wrap('address_zip', $values, 'maxlength="5"', __('Zip code'), $errors);
?>
</ul>
</fieldset>
<fieldset>
<?php
echo form::hidden('city_id', $values['city_id']);
?>
<?php
echo form::submit(false, __('Save'));
?>
<?php
echo html::anchor(empty($_SESSION['history']) ? '/' : $_SESSION['history'], __('Cancel'));
?>
示例13: __
* @copyright (c) 2010 Antti Qvickström
* @license http://www.opensource.org/licenses/mit-license.php MIT license
*/
?>
<section class="mod entry-edit">
<div>
<?php
echo form::open();
?>
<fieldset>
<ul>
<?php
echo form::input_wrap(array('name' => 'name', 'tabindex' => 1, 'maxlength' => 100, 'title' => __('Title')), $values, '', '', $errors);
?>
<?php
echo form::textarea_wrap(array('name' => 'entry', 'id' => 'entry', 'tabindex' => 2, 'rows' => 20, 'cols' => 25), $values, '', true, '', $errors);
?>
</ul>
</fieldset>
<fieldset>
<?php
echo form::csrf();
?>
<?php
echo empty($values['id']) ? '' : form::hidden('id', $values['id']);