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


PHP theme::text方法代码示例

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


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

示例1:

<?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

示例2:

<?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

示例3:

<?php

theme::form_start($controller_path . '/' . $controller_action, $record->id);
theme::header_start(ucfirst($controller_action) . ' Person');
theme::header_button('cancel');
theme::header_end();
theme::hr(0, 12);
theme::start_form_section('Title', true, 5);
theme::text('title', $record->title);
theme::end_form_section();
theme::start_form_section('Position', false, 5);
theme::text('position', $record->position);
theme::end_form_section();
theme::start_form_section('Order', false, 5);
field_range::range('weight', $record->weight, ['before' => 'First', 'after' => 'Last']);
theme::end_form_section();
theme::start_form_section('Bio', true);
plugin_bootstrap_wysiwyg::input('bio', $record->bio, ['toolbar' => '/admin/content/people/toolbar/bio.php']);
theme::end_form_section();
theme::start_form_section('Picture', true, 3);
plugin_cropper::show('picture', $record->picture, 256, 256);
//plugin_attach_file::image('picture',$record->picture,150,1);
theme::end_form_section();
theme::hr(0, 12);
theme::footer_start();
theme::footer_required();
theme::footer_button('submit');
theme::footer_end();
theme::form_end();
开发者ID:ProjectOrangeBox,项目名称:cms-people,代码行数:29,代码来源:form.php

示例4:

<?php

theme::form_start($controller_path . '/' . $controller_action, $record->id);
theme::header_start(ucfirst($controller_action) . ' Trackback');
theme::header_button('cancel');
theme::header_end();
theme::hr(0, 12);
theme::start_form_section('Match', true, 5);
echo '<div class="input-group">';
echo '<div class="input-group-addon">/trackback/</div>';
theme::text('match', $record->match);
echo '</div>';
theme::end_form_section();
theme::start_form_section('Trackback to URL', true, 5);
theme::text('url', $record->url);
theme::end_form_section();
theme::start_form_section('Active');
theme::checkbox('active', 1, $record->active);
theme::end_form_section();
theme::hr(0, 12);
theme::footer_start();
theme::footer_required();
theme::footer_button('submit');
theme::footer_end();
theme::form_end();
开发者ID:ProjectOrangeBox,项目名称:trackback,代码行数:25,代码来源:form.php

示例5:

<?php

theme::form_start($controller_path . '/' . $controller_action);
theme::hidden('ord_status_id', $record->ord_status_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('ord_status_description', $record->ord_status_description);
theme::end_form_section();
theme::start_form_section('On Save', 2);
theme::checkbox('ord_status_save_default', 1, $record->ord_status_save_default);
theme::end_form_section();
theme::start_form_section('On Update', 2);
theme::checkbox('ord_status_resave_default', 1, $record->ord_status_resave_default);
theme::end_form_section();
theme::start_form_section('Canceled', 2);
theme::checkbox('ord_status_cancelled', 1, $record->ord_status_cancelled);
theme::end_form_section();
theme::hr(0, 12);
theme::footer_start();
theme::footer_required();
theme::footer_button('submit');
theme::footer_end();
theme::form_end();
开发者ID:ProjectOrangeBox,项目名称:flexi-cart,代码行数:26,代码来源:form.php

示例6: uniqid

<?php

$index = 'id' . uniqid();
theme::element('div', ['id' => $index, 'class' => 'magic-row']);
theme::element('div', ['style' => 'width:95%', 'class' => 'portal-cell']);
theme::hidden('t_orange_c[' . $index . '][id]', $record->id);
theme::hidden('t_orange_c[' . $index . '][parent_id]', $record->parent_id);
theme::start_form_section('Name');
theme::text('t_orange_c[' . $index . '][name]', $record->name);
theme::end_form_section();
theme::start_form_section('Age', 2);
theme::text('t_orange_c[' . $index . '][age]', $record->age);
theme::end_form_section();
theme::element('/div');
theme::element('div', ['style' => 'width:5%', 'class' => 'portal-cell portal-cell-action']);
//theme::table_action('edit',$this->controller_path.'/xedit/'.$record->id,['class'=>'js-o_dialog','data'=>['redirect'=>'true','heading'=>'Leave this record?','text'=>'If you edit this record you will leave the current record.']]);
o_dialog::confirm_a_delete($this->controller_path . '/delete_child/' . $parent_id . '/' . $record->id, ['div' => $index]);
theme::element('/div');
theme::element('/div');
开发者ID:ProjectOrangeBox,项目名称:orange-juicer,代码行数:19,代码来源:new_child.php

示例7:

<?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::hidden('sort', $record->sort);
theme::hidden('parent_id', $record->parent_id);
theme::start_form_section('Title', true, 6);
theme::text('title', $record->title, ['class' => 'js-human-input']);
theme::end_form_section();
theme::start_form_section('Segment', true, 5);
Plugin_locked_field::show('segment', $record->segment, ['has_access' => 'page::change internal', 'class' => 'js-computer-input']);
theme::end_form_section();
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);
开发者ID:ProjectOrangeBox,项目名称:cms-page,代码行数:31,代码来源:form.php

示例8:

<?php

theme::start_form_section('Display', 3);
theme::text('display', $options->display);
theme::end_form_section();
theme::start_form_section('Help');
theme::text('help', $options->help);
theme::end_form_section();
theme::start_form_section('Required', 1);
theme::checkbox('required', 1, $options->required);
theme::end_form_section();
theme::start_form_section('Index', 1);
theme::checkbox('index', 1, $options->index);
theme::end_form_section();
theme::start_form_section('Columns', 1);
theme::text('columns', $options->columns);
theme::end_form_section();
theme::start_form_section('Filter');
$list = ['int', 'float', 'money', 'num', 'hex', 'email', 'alpha', 'alphanum', 'alphanumlower', 'alphaspace', 'alphanumspace', 'alphanumspacelower', 'url', 'phone'];
echo '<select class="select3" name="filter">';
foreach ($list as $v) {
    $select = $v == $options->filter ? 'selected' : '';
    echo '<option ' . $select . ' value="' . $v . '">' . $v . '</option>';
}
echo '</select>';
theme::end_form_section();
开发者ID:ProjectOrangeBox,项目名称:plugin-filter-input,代码行数:26,代码来源:field_type_filter.php

示例9:

<?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('Name', true);
Plugin_locked_field::show('name', $record->name, ['has_access' => 'snippet::change name']);
theme::end_form_section();
theme::start_form_section('Internal Name', true);
theme::text('variable', $record->variable, ['readonly' => true, 'id' => 'variable_text']);
theme::end_form_section();
theme::start_form_section('Value');
theme::textarea('value', $record->value);
theme::end_form_section();
theme::start_form_section('Note');
theme::textarea('note', $record->note);
theme::end_form_section();
theme::hr(0, 12);
theme::footer_start();
theme::footer_required();
theme::footer_button('submit');
theme::footer_end();
theme::form_end();
开发者ID:ProjectOrangeBox,项目名称:snippet,代码行数:25,代码来源:form.php

示例10: 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

示例11:

<?php

theme::start_form_section('Required', 1);
theme::checkbox('required', 1, $options->required);
theme::end_form_section();
theme::start_form_section('Minimum Height', true, 3);
theme::text('min_height', $options->min_height, ['data-parsley-required' => 'true', 'data-parsley-type' => 'integer']);
theme::end_form_section();
theme::start_form_section('Minimum Width', true, 3);
theme::text('min_width', $options->min_width, ['data-parsley-required' => 'true', 'data-parsley-type' => 'integer']);
theme::end_form_section();
theme::start_form_section('Zoom', 3);
theme::text('zoom', $options->zoom, ['data-parsley-type' => 'integer']);
theme::end_form_section('The form preview is the maximum width and height divided by this number to keep it to a manageable size on the form');
theme::start_form_section('Image Public Folder', true);
theme::text('image_path', $options->image_path, ['placeholder' => '/images/']);
theme::end_form_section('public path to save images');
开发者ID:ProjectOrangeBox,项目名称:plugin-attach-file,代码行数:17,代码来源:field_type_image.php

示例12:

theme::end_form_section();
echo '<ul class="nav nav-tabs js-tabs">
    <li class="active"><a href="#general_tab" data-toggle="tab">General</a></li>
    <li><a href="#plain-tab" data-toggle="tab">Plain</a></li>
    <li><a href="#html-plain" data-toggle="tab">HTML</a></li>
    <li><a href="#variables-plain" data-toggle="tab">Snippets & Paths</a></li>
  </ul><br>';
?>
<div class="tab-content">
	<div class="tab-pane active" id="general_tab">
		<?php 
theme::start_form_section('Subject Line', true);
theme::text('subject', $record->subject);
theme::end_form_section();
theme::start_form_section('Description');
theme::text('description', $record->description);
theme::end_form_section();
theme::start_form_section('Active From');
Plugin_datetimepicker::dt('active_from', $record->active_from);
theme::end_form_section();
theme::start_form_section('Active To');
Plugin_datetimepicker::dt('active_to', $record->active_to);
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.');
开发者ID:ProjectOrangeBox,项目名称:email-templates,代码行数:31,代码来源:form.php

示例13:

theme::hr(0, 12);
//kd($record);
theme::start_form_section('Title', true);
theme::text('title', $record->title, ['class' => 'js-human-input']);
theme::end_form_section();
theme::start_form_section('Internal', true);
Plugin_locked_field::show('internal', $record->internal, ['data-lock' => 'internal', 'has_access' => 'content::change internal', 'class' => 'js-computer-input']);
theme::end_form_section();
theme::start_form_section('Categories');
Plugin_chosen::show('categories', $record->categories, $category_options);
theme::end_form_section();
theme::start_form_section('Picture');
plugin_attach_file::image('picture', $record->picture, 150, 1);
theme::end_form_section();
theme::start_form_section('Link');
theme::text('link', $record->link);
theme::end_form_section();
theme::start_form_section('Content');
plugin_bootstrap_wysiwyg::input('content', $record->content, ['toolbar' => $controller_path . '/toolbar.php']);
theme::end_form_section();
theme::start_form_section('Show After', 3);
plugin_datetimepicker::date_time('start_on', $record->start_on);
theme::end_form_section();
theme::start_form_section('Hide After', 3);
plugin_datetimepicker::date_time('end_on', $record->end_on);
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('Note');
theme::textarea('note', $record->note);
开发者ID:ProjectOrangeBox,项目名称:cms-content,代码行数:31,代码来源:form.php

示例14:

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

示例15:

<?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');
theme::text('name', $record->name);
theme::end_form_section();
theme::start_form_section('Crop Box Width', 2);
theme::text('width', $record->width);
theme::end_form_section();
theme::start_form_section('Crop Box Height', 2);
theme::text('height', $record->height);
theme::end_form_section();
theme::start_form_section('Export Zoom', 1);
theme::text('exportzoom', $record->exportzoom);
theme::end_form_section('Multiple width &amp; height by this value on export. This is also how it\'s displayed to end users.');
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,项目名称:cropper,代码行数:26,代码来源:form.php


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