本文整理汇总了PHP中theme::hidden方法的典型用法代码示例。如果您正苦于以下问题:PHP theme::hidden方法的具体用法?PHP theme::hidden怎么用?PHP theme::hidden使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类theme
的用法示例。
在下文中一共展示了theme::hidden方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<?php
theme::form_start($controller_path . '/' . $controller_action, $record->id);
theme::header_start($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('Name', true, 6);
theme::text('name', $record->name);
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();
示例2: 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');
示例3:
<?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::hidden('trigger_valid', $record->trigger_valid);
theme::hr(0, 12);
theme::start_form_section('Description', true, 6);
theme::text('description', $record->description);
theme::end_form_section();
theme::start_form_section('Enabled');
theme::checkbox('is_enabled', 1, $record->is_enabled);
theme::end_form_section();
theme::start_form_section('Minute', true, 2);
theme::text('minute', $record->minute);
theme::end_form_section();
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);
示例4:
<?php
theme::form_start($controller_path . '/' . $controller_action, $record->id);
theme::header_start(ucfirst($controller_action) . ' Template');
theme::header_button('cancel');
theme::header_end();
theme::hr(0, 12);
theme::start_form_section('Name', true, 5);
if (has_access('templates::change name') || $this->id < 0) {
theme::text('name', $record->name);
} else {
theme::static_text($record->name);
}
theme::hidden('previous_name', $record->name);
theme::end_form_section();
theme::start_form_section('HTML', true);
codemirror::textarea('content', $record->content);
if ($record->id > 0) {
$save_text = os_save::copy();
}
theme::end_form_section('Pressing Esc will toggle fullscreen ~ ' . $save_text);
theme::hr(0, 12);
theme::footer_start();
theme::checkbox('is_file', 1, $record->is_file);
echo ' Save as file';
theme::footer_required();
theme::footer_button('submit');
theme::footer_end();
theme::form_end();
示例5:
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('URL', false, 5);
theme::text('url', $record->url);
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('Image', true, 9);
Plugin_cropper::show('content', $record->content, 843, 403);
theme::end_form_section();
theme::start_form_section('Weight', false, 5);
Field_range::range('weight', $record->weight, ['before' => 'Light', 'after' => 'Heavy']);
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::hidden('category', 0);
theme::hr(0, 12);
theme::footer_start();
theme::footer_required();
theme::footer_button('submit');
theme::footer_end();
theme::form_end();
示例6:
<?php
theme::form_start($controller_path . '/' . $controller_action);
theme::hidden('curr_id', $record->curr_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('curr_name', $record->curr_name);
theme::end_form_section();
theme::start_form_section('Exchange Rate', true, 2);
theme::text('curr_exchange_rate', $record->curr_exchange_rate);
theme::end_form_section();
theme::start_form_section('Symbol HTML', true, 2);
theme::text('curr_symbol', $record->curr_symbol);
theme::end_form_section();
theme::start_form_section('Suffix', 2);
theme::checkbox('curr_symbol_suffix', 1, $record->curr_symbol_suffix);
theme::end_form_section();
theme::start_form_section('Thousand', true, 2);
theme::text('curr_thousand_separator', $record->curr_thousand_separator);
theme::end_form_section();
theme::start_form_section('Decimal', true, 2);
theme::text('curr_decimal_separator', $record->curr_decimal_separator);
theme::end_form_section();
theme::start_form_section('Enabled');
theme::checkbox('curr_status', 1, $record->curr_status);
theme::end_form_section();
theme::hr(0, 12);
theme::footer_start();