<?php theme::form_start($controller_path . '/' . $controller_action); o::hidden('curr_id', $record->curr_id); theme::header_start(ucfirst($controller_action) . ' ' . $controller_title); theme::header_end(); o::hr(0, 12); /* 4px padding top and bottom */ theme::start_form_section('Currency'); theme::dropdown3('currency_option', $record->currency_option, $currency_options); theme::end_form_section(); theme::start_form_section('Shipping Location'); theme::dropdown3('currency_option', $record->currency_option, $currency_options); theme::end_form_section(); theme::start_form_section('Shipping Option'); theme::dropdown3('currency_option', $record->currency_option, $currency_options); theme::end_form_section(); theme::start_form_section('Tax Location'); theme::dropdown3('currency_option', $record->currency_option, $currency_options); theme::end_form_section(); theme::start_form_section('Tax Rate'); theme::dropdown3('currency_option', $record->currency_option, $currency_options); theme::end_form_section(); o::hr(0, 12); /* 4px padding top and bottom */ theme::footer_start(); theme::footer_cancel_button($controller_path); theme::footer_submit_button(); theme::footer_end(); theme::form_end();
o::hr(0, 12); theme::start_form_section('User Name', true, 3); o::text('username', $record->username); theme::end_form_section(); theme::start_form_section('Email', true, 3); o::text('email', $record->email); theme::end_form_section(); theme::start_form_section('Password', $record->id == -1, 3); o::password('password', ['value' => $record->password]); theme::end_form_section($password_format_copy); theme::start_form_section('Confirm Password', $record->id == -1, 3); o::password('confirm_password', ['value' => $record->confirm_password]); theme::end_form_section(); if ($record->id != 1) { theme::start_form_section('Role', 4); theme::dropdown3('role_id', $record->role_id, o::smart_model_list('o_role_model', 'id', 'name')); theme::end_form_section(); theme::start_form_section('Active'); theme::checkbox('is_active', 1, $record->is_active); theme::end_form_section(); } else { o::hidden('role_id', $record->role_id); o::hidden('is_active', $record->is_active); } if (strtotime($record->last_login) > 1) { theme::start_form_section('Last login'); theme::static_text(date('F j, Y, g:i a', strtotime($record->last_login))); o::hidden('last_login', $record->last_login); theme::end_form_section(); } o::view_event($controller_path, 'form.footer');
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();