<?php extend_template('default'); ?> <?php echo form_open($form_action); ?> <?php if (isset($return_loc)) { echo form_hidden(array('return_location' => $return_loc)); } ?> <?php $this->table->set_template($cp_pad_table_template); $this->table->set_heading(array('data' => lang('preference'), 'style' => 'width:50%;'), lang('setting')); foreach ($fields as $name => $details) { $pref = ''; switch ($details['type']) { case 's': $label = lang($name); if (is_array($details['value'])) { $pref = form_dropdown($name, $details['value'], $details['selected'], 'id="' . $name . '"'); } else { $pref = '<span class="notice">' . lang('not_available') . '</span>'; } break; case 'r': $label = lang($name); if (is_array($details['value'])) { foreach ($details['value'] as $options) {
<?php extend_template('basic'); ?> <div class="heading"><h2 class="edit"> <?php if ($this->config->item('multiple_sites_enabled') == 'y') { ?> <?php echo form_dropdown('sites_list_pulldown', $sites_dropdown, $site_id, 'id="site_list_pulldown"'); ?> <?php } ?> <?php echo $page_title; ?> </h2></div> <div class="pageContents"> <?php $this->load->view('_shared/message'); ?> <p> <?php if ($group_id == 1) { ?> <?php echo lang('super_admin_edit_note');
<?php extend_template('wrapper', 'ee_right_nav'); ?> <div class="contents"> <?php enabled('ee_right_nav') && $this->view('_shared/right_nav'); ?> <?php if (isset($cp_notice) && !empty($cp_notice)) { ?> <div id="ee_important_message" class="<?php echo !$info_message_open ? 'closed' : 'open'; ?> "> <div class="contents" id="ee_homepage_notice"> <div class="heading"> <h2><span class="ee_notice_icon"></span><?php echo lang('important_messages'); ?> <span class="msg_open_close">Ignore Button</span></h2> </div> <div class="pageContents open" id="noticeContents"> <p id="newVersionNotice"><?php echo $cp_notice; ?> </p> <div class="clear"></div> </div>
<?php extend_template('wrapper'); ?> <?php enabled('ee_message') && $this->view('_shared/message'); ?> <?php if ($message or isset($new_checksums)) { ?> <div id="ee_important_message" class="<?php echo !$info_message_open ? 'closed' : 'open'; ?> "> <div class="contents" id="ee_homepage_notice"> <div class="heading"> <h2><span class="ee_notice_icon"></span><?php echo lang('important_messages'); ?> <span class="msg_open_close">Ignore Button</span></h2> </div> <div class="pageContents open" id="noticeContents"> <?php // New Version Notice if ($message) { ?> <p id="newVersionNotice"><?php echo $message; ?>
<?php $can_add_site = (bool) lang('create_new_site'); if ($can_add_site) { extend_template('default'); } else { extend_template('default', 'ee_right_nav'); } ?> <h4><?php echo lang('msm_product_name'); ?> </h4> <p><?php echo lang('msm_version') . $msm_version . ' ' . lang('msm_build_number') . $msm_build_number; ?> </p> <?php $this->table->set_template($cp_pad_table_template); $this->table->set_heading(array('data' => lang('site_id'), 'width' => '7%'), lang('site_label'), lang('site_name'), lang('edit_site'), lang('delete')); foreach ($site_data->result() as $site) { $this->table->add_row($site->site_id, "<strong>{$site->site_label}</strong>", $site->site_name, '<a href="' . BASE . AMP . 'C=sites' . AMP . 'M=add_edit_site' . AMP . 'site_id=' . $site->site_id . '">' . lang('edit_site') . '</a>', $site->site_id == 1 ? '----' : '<a href="' . BASE . AMP . 'C=sites' . AMP . 'M=site_delete_confirm' . AMP . 'site_id=' . $site->site_id . '">' . lang('delete') . '</a>'); } echo $this->table->generate();