コード例 #1
0
<?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
0
<?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
0
ファイル: form.php プロジェクト: ProjectOrangeBox/scheduler
<?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
0
ファイル: form.php プロジェクト: ProjectOrangeBox/templates
<?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
0
ファイル: form.php プロジェクト: ProjectOrangeBox/cms-banner
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
0
ファイル: form.php プロジェクト: ProjectOrangeBox/flexi-cart
<?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();
コード例 #7
0
ファイル: form.php プロジェクト: ProjectOrangeBox/flexi-cart
<?php

theme::form_start($controller_path . '/' . $controller_action);
theme::hidden('lzone_id', $record->lzone_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('lzone_name', $record->lzone_name);
theme::end_form_section();
theme::start_form_section('Exchange Rate', true, 2);
theme::text('lzone_description', $record->lzone_description);
theme::end_form_section();
theme::start_form_section('Enabled');
theme::checkbox('lzone_status', 1, $record->lzone_status);
theme::end_form_section();
theme::hr(0, 12);
theme::footer_start();
theme::footer_required();
theme::footer_button('submit');
theme::footer_end();
theme::form_end();
コード例 #8
0
ファイル: form.php プロジェクト: ProjectOrangeBox/flexi-cart
<?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();