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


PHP FORM::textarea方法代码示例

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


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

示例1: ckeditor

 public static function ckeditor($name, array $options = array())
 {
     self::$_form_id++;
     $errors = self::get_errors($name);
     $form_element = FORM::textarea($name, Arr::get(self::$_values, $name), array('id' => 'text'));
     return View::factory('ckeditor')->set('name', $name)->set('values', self::$_values)->set('errors', $errors)->set('form_element', $form_element)->set('options', $options)->set('form_id', self::$_form_id)->render();
 }
开发者ID:Alexander711,项目名称:naav1,代码行数:7,代码来源:tbform.php

示例2: __

					<div class="col-sm-4 col-xs-11">
						<?php 
echo FORM::label('title', __('Title'), array('class' => 'control-label', 'for' => 'title'));
?>
						<?php 
echo FORM::input('title', $ad->title, array('placeholder' => __('Title'), 'class' => 'form-control', 'id' => 'title', 'required'));
?>
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-11">
						<?php 
echo FORM::label('description', __('Description'), array('class' => 'control-label', 'for' => 'description', 'spellcheck' => TRUE));
?>
						<?php 
echo FORM::textarea('description', $ad->description, array('class' => 'col-md-9 col-sm-9 col-xs-12', 'name' => 'description', 'id' => 'description', 'rows' => 8, 'required'));
?>
					</div>
				</div>
				<?php 
if (core::config('advertisement.phone') != FALSE) {
    ?>
				<div class="form-group">
					<div class="col-sm-4 col-xs-11">
						<?php 
    echo FORM::label('phone', __('Phone'), array('class' => 'control-label', 'for' => 'phone'));
    ?>
						<?php 
    echo FORM::input('phone', $ad->phone, array('class' => 'form-control', 'id' => 'phone', 'placeholder' => __('Phone')));
    ?>
					</div>
开发者ID:Wildboard,项目名称:WbWebApp,代码行数:31,代码来源:edit_ad.php

示例3: __

    echo $id_location;
    ?>
" class="form-control invisible" style="height: 0; padding:0; width:1px; border:0;" required></input>
					</div>
				</div>
			<?php 
}
?>
	
			<div class="form-group">
				<div class="col-md-9">
					<?php 
echo FORM::label('description', __('Description'), array('for' => 'description', 'spellcheck' => TRUE));
?>
					<?php 
echo FORM::textarea('description', Request::current()->post('description'), array('class' => 'form-control' . (Core::config("advertisement.description_bbcode") ? NULL : ' disable-bbcode'), 'name' => 'description', 'id' => 'description', 'rows' => 10, 'required'));
?>
				</div>
			</div>
      <?php 
if (core::config("advertisement.num_images") > 0) {
    ?>
			<div class="form-group images" 
				data-max-image-size="<?php 
    echo core::config('image.max_image_size');
    ?>
" 
				data-image-width="<?php 
    echo core::config('image.width');
    ?>
" 
开发者ID:akram,项目名称:openclassifieds2-jetski,代码行数:31,代码来源:new.php

示例4: __

							</div>
						</div>
					<?php 
}
?>
			
					<?php 
if ($form_show['description'] != FALSE) {
    ?>
						<div class="form-group">
							<div class="col-md-9">
								<?php 
    echo FORM::label('description', __('Description'), array('for' => 'description', 'spellcheck' => TRUE));
    ?>
								<?php 
    echo FORM::textarea('description', Request::current()->post('description'), array('class' => 'form-control' . (Core::config("advertisement.description_bbcode") ? NULL : ' disable-bbcode'), 'name' => 'description', 'id' => 'description', 'rows' => 10, 'required', 'data-bannedwords' => core::config('advertisement.banned_words') != '' ? json_encode(explode(',', core::config('advertisement.banned_words'))) : '', 'data-error' => __('This field must not contain banned words ({0})')));
    ?>
							</div>
						</div>
					<?php 
}
?>

		     <?php 
if (core::config("advertisement.num_images") > 0) {
    ?>
					<div class="form-group images" 
						data-max-image-size="<?php 
    echo core::config('image.max_image_size');
    ?>
" 
开发者ID:demoic,项目名称:openclassifieds2,代码行数:31,代码来源:new.php

示例5: __

                            <div class="col-sm-12">
                                <?php 
echo FORM::label('seoname', __('Seoname'), array('class' => 'control-label', 'for' => 'seoname'));
?>
                                <?php 
echo FORM::input('seoname', core::request('seoname'), array('placeholder' => __('Seoname'), 'class' => 'form-control', 'id' => 'seoname'));
?>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-12">
                                <?php 
echo FORM::label('description', __('Description'), array('class' => 'control-label', 'for' => 'description'));
?>
                                <?php 
echo FORM::textarea('description', __('Description'), array('class' => 'form-control', 'id' => 'description', 'data-editor' => 'html'));
?>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-12">
                                <?php 
echo FORM::label('latitude', __('Latitude'), array('class' => 'control-label', 'for' => 'latitude'));
?>
                                <?php 
echo FORM::input('latitude', core::request('latitude'), array('placeholder' => __('Longitude'), 'class' => 'form-control', 'id' => 'latitude'));
?>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-12">
开发者ID:Chinese1904,项目名称:openclassifieds2,代码行数:31,代码来源:create.php

示例6: __

$discount = Arr::get($values, 'discount_id', 0);
$coupon_form_style = 'display: none';
if ($discount != 0) {
    $coupon_form_style = 'display: block';
}
?>
        <li class="coupon_text" style="<?php 
echo $coupon_form_style;
?>
">
            <label class="lab"><?php 
echo __('f_coupon_text');
?>
</label>
            <?php 
echo FORM::textarea('coupon_text', Arr::get($values, 'coupon_text'), array('class' => 's_tarea', 'style' => 'width: 400px; height: 100px;'));
?>
        </li>

        <li>
            <label class="lab">&nbsp;</label>
            <?php 
echo FORM::submit('submit', __('f_complete'), array('class' => 's_button'));
?>
 <?php 
echo FORM::submit('skip', __('f_skip'), array('class' => 's_skip'));
?>
        </li>
    </ul>
</div>
<?php 
开发者ID:Alexander711,项目名称:naav1,代码行数:31,代码来源:third.php

示例7: array

    ?>
                        Сохранить статусы прочитан/непрочитан для уже отправленных
                    </label>
                    <p class="help-block">Если убрать галочку уведомление будет иметь статус непрочитан у всех<br />Всем будут по новой отправленна рассылка на почту</p>
                </div>
            </div>
        <?php 
}
?>

</fieldset>
<fieldset>
    <legend>Текст уведомления</legend>
    <div class="clearfix">
        <?php 
echo FORM::textarea('text', Arr::get($values, 'text'), array('id' => 'text'));
?>
        <?php 
if (Arr::get($errors, 'text', NULL)) {
    ?>
            <p class="help-block"><?php 
    echo $errors['text'];
    ?>
</p>
        <?php 
}
?>
    </div>

</fieldset>
<?php 
开发者ID:Alexander711,项目名称:naav1,代码行数:31,代码来源:form_service.php

示例8: __

?>
                            <div class="col-md-8">
                                <div class="input-group">
                                    <input  type="text" size="16" id="featured" name="featured"  value="" class="form-control" data-date="" data-date-format="yyyy-mm-dd">
                                    <div class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></div>
                                </div>
                            </div>
                        </div>
    
                        <div class="form-group">
                            <?php 
echo FORM::label('email_purchase_notes', __('Purchase notes, sent via email'), array('class' => 'col-md-12 ', 'for' => 'email_purchase_notes', 'spellcheck' => TRUE));
?>
                            <div class="col-md-12">
                                <?php 
echo FORM::textarea('email_purchase_notes', Request::current()->post('email_purchase_notes'), array('class' => 'form-control', 'name' => 'email_purchase_notes', 'id' => 'email_purchase_notes', 'rows' => 10));
?>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- PRODUCT FILES -->
            <div class="clearfix"></div>
            <div class="col-md-12">
                <div class="panel panel-primary product-panel">
                    <div class="panel-heading">
                        <h3 class="panel-title"><span class="glyphicon glyphicon-file"></span> <?php 
echo __('Upload files');
?>
</h3>
开发者ID:Ryanker,项目名称:open-eshop,代码行数:31,代码来源:create.php

示例9: __

    echo FORM::radio('status', $id, $checked) . '<span class="' . $value['css'] . '">' . __($value['i18n']) . '</span>';
    ?>
                </label>
            <?php 
}
?>
        </div>
    </div>
    <div class="control-group <?php 
echo $text_error_css;
?>
">
        <label class="control-label">Текст</label>
        <div class="controls">
             <?php 
echo FORM::textarea('text', Arr::get($values, 'text'), array('id' => 'text', array('style' => 'width: 300px;')));
?>
            <span class="help-block"><?php 
echo Arr::get($errors, 'text');
?>
</span>
        </div>
    </div>
    <div class="form-actions">
        <?php 
echo FORM::button(NULL, 'Отправить', array('class' => 'btn btn-large btn-success', 'type' => 'submit'));
?>
        <?php 
echo FORM::button(NULL, 'Очистить', array('class' => 'btn btn-large', 'type' => 'reset'));
?>
    </div>
开发者ID:Alexander711,项目名称:naav1,代码行数:31,代码来源:form.php

示例10: __

        <?php 
echo FORM::label('locale', __('Locale'), array('class' => 'control-label col-md-2', 'for' => 'locale'));
?>
        <div class="col-sm-4">
            <?php 
echo FORM::select('locale', $locale, core::config('i18n.locale'), array('placeholder' => __('locale'), 'class' => 'form-control', 'id' => 'locale', 'required'));
?>
        </div>
    </div>
    <div class="form-group">
        <?php 
echo FORM::label('description', __('Description'), array('class' => 'control-label col-md-2', 'for' => 'description'));
?>
        <div class="col-sm-8">
            <?php 
echo FORM::textarea('description', '', array('placeholder' => __('description'), 'class' => 'form-control', 'id' => 'description'));
?>
        </div>
    </div>
    
    <?php 
if ($_REQUEST['type'] == 'email') {
    ?>
    <div class="form-group">
        <?php 
    echo FORM::label('from_email', __('From email'), array('class' => 'control-label col-md-2', 'for' => 'from_email'));
    ?>
        <div class="col-sm-4">
            <?php 
    echo FORM::input('from_email', '', array('placeholder' => __('from_email'), 'class' => 'form-control', 'id' => 'from_email'));
    ?>
开发者ID:Wildboard,项目名称:WbWebApp,代码行数:31,代码来源:create.php

示例11: array

    <?php 
}
?>

    <?php 
echo FORM::open(NULL, array('class' => 'well'));
?>
    <h3>Добавление дополнения</h3>
    <div class="control-group <?php 
echo $text_error_css;
?>
">
        <label>Текст</label>
        <div class="controls">
            <?php 
echo FORM::textarea('text', Arr::get($values, 'text'), array('class' => 'span8', 'rows' => 4));
?>
        </div>
        <span class="help-block"><?php 
echo Arr::get($errors, 'text');
?>
</span>
    </div>

    <?php 
echo FORM::submit(NULL, 'Отправить', array('class' => 'btn btn-success'));
?>

    <?php 
echo FORM::close();
?>
开发者ID:Alexander711,项目名称:naav1,代码行数:31,代码来源:view.php

示例12: __

                                <span class="help-block">
                                    <?php 
echo __("To include your custom HTML code (validation metadata, reference to JS/CSS files, etc.) in the HEAD element of the rendered page.");
?>
                                </span>
                            </div>

                            <div class="form-group">
                                <?php 
echo FORM::label($forms['html_footer']['id'], __('HTML in footer'), array('class' => 'control-label', 'for' => $forms['html_footer']['id']));
?>
                                <a target="_blank" href="https://docs.yclas.com/html-in-footer/">
                                    <i class="fa fa-question-circle"></i>
                                </a>
                                <?php 
echo FORM::textarea($forms['html_footer']['key'], $forms['html_footer']['value'], array('placeholder' => '', 'rows' => 3, 'cols' => 50, 'class' => 'form-control', 'id' => $forms['html_footer']['id']));
?>
 
                                <span class="help-block">
                                    <?php 
echo __("To include your custom HTML code (reference to JS or CSS files, etc.) in the footer of the rendered page.");
?>
                                </span>
                            </div>
                            <hr>
                            <p>
                                <?php 
echo FORM::button('submit', __('Save'), array('type' => 'submit', 'class' => 'btn btn-primary', 'action' => Route::url('oc-panel', array('controller' => 'settings', 'action' => 'general'))));
?>
                            </p>
                        </div>
开发者ID:johnulist,项目名称:openclassifieds2,代码行数:31,代码来源:general.php

示例13:

        <label class="control-label">Название</label>
        <div class="controls">
            <?php 
echo FORM::input('name', Arr::get($values, 'name'));
?>
            <p class="help-block" style="color: red;"><?php 
echo Arr::get($errors, 'name');
?>
</p>
        </div>
    </div>
	<div class="control-group">
        <label class="control-label">Значение</label>
        <div class="controls">
            <?php 
echo FORM::textarea('value', Arr::get($values, 'value'));
?>
            <p class="help-block" style="color: red;"><?php 
echo Arr::get($errors, 'value');
?>
</p>
        </div>

    </div>
	<div class="control-group">
        <label class="control-label">Цена</label>
        <div class="controls">
            <?php 
echo FORM::input('price', Arr::get($values, 'price'));
?>
            <p class="help-block" style="color: red;"><?php 
开发者ID:Alexander711,项目名称:naav1,代码行数:31,代码来源:form.php

示例14: __

            <?php 
echo NError::show_error('work', $errors);
?>
        </td>
    </tr>
    <!-- about -->
    <tr>
        <td style="vertical-align: top">
            <label class="label" for="about"><?php 
echo __('f_about_service');
?>
</label>
        </td>
        <td>
            <?php 
echo FORM::textarea('about', Arr::get($values, 'about'), array('class' => 's_tarea', 'id' => 'about'));
?>
        </td>
    </tr>
    <!-- work time -->
    <tr>
        <td>
            <label class="label" for="hour_start"><?php 
echo __('f_work_time');
?>
</label>
        </td>
        <td>
            с <?php 
echo FORM::input('hour_start', Arr::get($values, 'hour_start'), array('class' => 's_inp', 'style' => 'width: 20px;'));
?>
开发者ID:Alexander711,项目名称:naav1,代码行数:31,代码来源:add.php

示例15: cf_form_field

 /**
  * get field html code for a custom field
  * @param  string $name input name
  * @param  array  $options as defined
  * @param  mixed $value value of the field, optional.
  * @return string        HTML
  */
 public static function cf_form_field($name, $options, $value = NULL)
 {
     if ($value === NULL) {
         $value = isset($options['default']) ? $options['default'] : NULL;
     }
     // dependent classes on type
     $class = 'form-control ' . 'cf_' . $options['display'] . '_fields data-custom ';
     switch ($options['display']) {
         case 'checkbox':
             $class = 'cf_' . $options['display'] . '_fields data-custom';
             break;
         case 'radio':
             $class = 'cf_' . $options['display'] . 'fields data-custom';
             $required = (isset($options['required']) and $options['required'] == TRUE) ? 'required' : NULL;
             $data_categories = isset($options['categories']) ? json_encode($options['categories']) : NULL;
             $title = isset($options['tooltip']) ? $options['tooltip'] : NULL;
             break;
         default:
             $class .= " ";
             break;
     }
     $attributes = array('placeholder' => isset($options['placeholder']) ? $options['placeholder'] : (isset($options['label']) ? $options['label'] : $name), 'data-placeholder' => isset($options['data-placeholder']) ? $options['data-placeholder'] : (isset($options['label']) ? $options['label'] : $name), 'title' => isset($options['tooltip']) ? $options['tooltip'] : NULL, 'data-categories' => isset($options['categories']) ? json_encode($options['categories']) : NULL, 'class' => $class, 'id' => $name, (isset($options['required']) and $options['required'] == TRUE) ? 'required' : NULL);
     switch ($options['display']) {
         case 'select':
             $input = FORM::select($name, $options['options'], !is_array($value) ? $value : NULL, $attributes);
             break;
         case 'text':
             $input = FORM::input($name, $value, $attributes);
             break;
         case 'textarea':
             $input = FORM::textarea($name, $value, $attributes);
             break;
         case 'hidden':
             $input = FORM::hidden($name, $value, $attributes);
             break;
         case 'date':
             $attributes['data-date'] = "data-date";
             $attributes['data-date-format'] = "yyyy-mm-dd";
             $input = FORM::input($name, $value, $attributes);
             break;
         case 'checkbox':
             $checked = isset($value);
             // value can be 1 or 'on'
             $input = '<div class="checkbox"><label>' . FORM::checkbox($name, NULL, $checked, $attributes) . '</label></div>';
             break;
         case 'radio':
             $input = '';
             $index = 0;
             foreach ($options['options'] as $id => $radio_name) {
                 $checked = $value == $index ? TRUE : FALSE;
                 if ($id !== "") {
                     $input .= '<div class="radio"><label>' . Form::radio($name, $index, $checked, $attributes) . ' ' . $radio_name . '</label></div>';
                 }
                 $index++;
             }
             break;
         case 'email':
             $attributes['type'] = 'email';
             $input = FORM::input($name, $value, $attributes);
             break;
         case 'string':
         default:
             $input = FORM::input($name, $value, $attributes);
             break;
     }
     return $input;
 }
开发者ID:johnulist,项目名称:openclassifieds2,代码行数:74,代码来源:form.php


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