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


PHP theme::textarea方法代码示例

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


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

示例1:

theme::start_form_section('Hour', 2);
theme::text('hour', $record->hour);
theme::end_form_section();
theme::start_form_section('Day Of Month', 2);
theme::text('day_of_month', $record->day_of_month);
theme::end_form_section();
theme::start_form_section('Month', 2);
theme::text('month', $record->month);
theme::end_form_section();
theme::start_form_section('Day Of Week', 2);
theme::text('day_of_week', $record->day_of_week);
theme::end_form_section();
theme::start_form_section('URL', true);
theme::text('url', $record->url);
theme::end_form_section('This is the equilate of calling a CodeIgniter controller from the command line. php index.php <b>controller/method/arg1/arg2</b>');
theme::start_form_section('Log');
theme::checkbox('add_log', 1, $record->add_log);
theme::end_form_section();
theme::start_form_section('Keep', 1);
theme::text('keep', $record->keep);
theme::end_form_section('How many previous log files to keep');
theme::start_form_section('Note');
theme::textarea('note', $record->note);
theme::end_form_section();
theme::view_event($controller_path, 'form.footer');
theme::hr(0, 12);
theme::footer_start();
theme::footer_required();
theme::footer_button('submit');
theme::footer_end();
theme::form_end();
开发者ID:ProjectOrangeBox,项目名称:scheduler,代码行数:31,代码来源:form.php

示例2:

theme::end_form_section('leaving both fields empty will make this template always available');
?>
	</div>

	<div class="tab-pane" id="plain-tab">
		<?php 
theme::start_form_section('Plain Body', $plain_required);
theme::textarea('plain', $record->plain, ['class' => 'span8 code-textarea', 'rows' => 25]);
theme::end_form_section('This will be auto generated from the html if not provided.');
?>
	</div>

	<div class="tab-pane" id="html-plain">
		<?php 
theme::start_form_section('HTML Body', $html_required);
theme::textarea('html', $record->html, ['class' => 'span8 code-textarea', 'rows' => 25]);
theme::end_form_section();
theme::start_form_section('&nbsp;');
theme::header_button('Preview HTML', ['icon' => 'eye', 'data-preview' => $controller_path . '/preview']);
if ($has_file_manager) {
    echo theme::spacer();
    theme::header_button('Manage Assets', ['icon' => 'file', 'onclick' => 'javascript:open_file_manager(\'emails\');"']);
}
theme::end_form_section();
?>
	</div>

	<div class="tab-pane" id="variables-plain">
		<table class="table table-striped table-bordered">
<?php 
foreach ($variables as $key => $name) {
开发者ID:ProjectOrangeBox,项目名称:email-templates,代码行数:31,代码来源:form.php

示例3:

<?php

theme::form_start($controller_path . '/' . $controller_action, $record->id);
theme::header_start(ucfirst($controller_action) . ' ' . $controller_title);
theme::header_button('back');
theme::header_end();
theme::hr(0, 12);
theme::start_form_section('Created');
theme::text('Created On', $record->created_on, ['readonly' => 'readonly']);
theme::end_form_section();
theme::start_form_section('Log');
theme::textarea('note', $record->output, ['readonly' => 'readonly']);
theme::end_form_section();
theme::view_event($controller_path, 'form.footer');
theme::form_end();
开发者ID:ProjectOrangeBox,项目名称:scheduler,代码行数:15,代码来源:log.php

示例4:

<?php

theme::form_start($controller_path . '/' . $controller_action, $record->id);
theme::header_start(ucfirst($controller_action) . ' ' . $controller_title);
theme::header_end();
theme::hr(0, 12);
theme::start_form_section('Created On');
theme::text('created_on', $record->created_on, ['readonly' => true]);
theme::end_form_section();
theme::start_form_section('Form Name');
theme::text('form_name', $record->form_name, ['readonly' => true]);
theme::end_form_section();
theme::start_form_section('URL');
theme::text('url', $record->url, ['readonly' => true]);
theme::end_form_section();
theme::start_form_section('User Agent');
theme::text('user_agent', $record->user_agent, ['readonly' => true]);
theme::end_form_section();
theme::start_form_section('Ip Address');
theme::text('ip_address', $record->ip_address, ['readonly' => true]);
theme::end_form_section();
theme::start_form_section('Capture');
theme::textarea('capture', $record->capture, ['readonly' => true]);
theme::end_form_section();
theme::view_event($controller_path, 'form.footer');
theme::hr(0, 12);
theme::footer_start();
theme::footer_button('back', ['href' => $controller_path]);
theme::footer_end();
theme::form_end();
开发者ID:ProjectOrangeBox,项目名称:capture,代码行数:30,代码来源:form.php

示例5:

theme::start_form_section('URL');
theme::static_text($record->url);
theme::end_form_section('The URL is dynamically generated when the record is saved.');
theme::start_form_section('Show in menu');
theme::checkbox('in_menu', 1, $record->in_menu);
theme::end_form_section();
theme::start_form_section('Is Visible');
theme::checkbox('is_visible', 1, $record->is_visible);
theme::end_form_section();
theme::start_form_section('Wildcard');
theme::checkbox('wildcard', 1, $record->wildcard);
theme::end_form_section();
theme::start_form_section('Show After', false, 3);
plugin_datetimepicker::date_time('start_on', $record->start_on);
theme::end_form_section();
theme::start_form_section('Hide After', false, 3);
plugin_datetimepicker::date_time('end_on', $record->end_on);
theme::end_form_section();
theme::start_form_section('Template', true);
theme::dropdown3('template_id', $record->template_id, $templates);
theme::end_form_section($save_text);
theme::start_form_section('Note');
theme::textarea('note', $record->note, ['rows' => 3]);
theme::end_form_section();
theme::view_event($controller_path, 'form.footer');
theme::hr(0, 12);
theme::footer_start();
theme::footer_required();
theme::footer_button('submit');
theme::footer_end();
theme::form_end();
开发者ID:ProjectOrangeBox,项目名称:cms-page,代码行数:31,代码来源:form.php

示例6: ci

<?php

theme::form_start($controller_path . '/' . $controller_action, $record->id);
theme::header_start(ucfirst($controller_action) . ' ' . $controller_title);
theme::header_button('cancel');
theme::header_end();
theme::hr(0, 12);
theme::start_form_section('Name', true, 5);
theme::text('name', $record->name);
theme::end_form_section();
theme::start_form_section('Age', true, 1);
theme::text('age', $record->age);
theme::end_form_section();
theme::start_form_section('Textarea');
theme::textarea('text', $record->text);
theme::end_form_section();
theme::portal_header_start('Title Goes here');
theme::portal_header_button('Add', 'magic', ['data-child_id' => 'child1', 'data-url' => $controller_path . '/new_child', 'class' => 'btn btn-default btn-xs add_child']);
theme::portal_header_end();
theme::portal_start(189, 0, ['id' => 'child1']);
foreach ($childern as $sf) {
    ci()->load->view('form/new_child', ['parent_id' => $record->id, 'record' => (object) $sf]);
}
theme::portal_end();
echo '<br>';
theme::footer_start();
theme::footer_required();
theme::footer_button('submit');
theme::footer_end();
theme::form_end();
开发者ID:ProjectOrangeBox,项目名称:orange-juicer,代码行数:30,代码来源:form.php


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