/** * 获得商品信息 * @param int $id */ public function product_id($id) { $product_info = $this->_info("id", $id); if ($product_info == FALSE) { redirect("/"); } $data['info'] = $product_info; $this->load->view(themes("product/index"), $data); }
/** * @param int brand_id * @return void */ public function brand_id($brand_id) { $data['$id'] = $brand_id; $brand = $this->brand_model->getOne(array('id' => $brand_id)); //获得brand信息 if (empty($brand)) { redirect("/"); } $this->load->view(themes("brand/info"), $data); }
/** * Setup the forum theme * @global array */ function load_theme() { global $config; if ($config['theme'] != "") { if (in_array($config['theme'], themes())) { $config['template_path'] = BASEPATH . "../templates/" . $config['theme'] . "/"; $config['template_url'] = $config['url_path'] . "/templates/" . $config['theme'] . "/"; } else { $config['template_path'] = BASEPATH . "../templates/default/"; $config['template_url'] = $config['url_path'] . "/templates/default/"; } } else { $config['template_path'] = BASEPATH . "../templates/default/"; $config['template_url'] = $config['url_path'] . "/templates/default/"; } }
public function info($id = 0) { $act = 'edit_admin_user'; $data = ""; if (empty($id)) { $id = $this->input->post('id'); } if (empty($id)) { $act = "add_admin_user"; } if ($act == 'edit_admin_user') { $ar['user_id'] = $id; $data['res'] = $this->admin_user_model->getOne($ar); } $data['act'] = $act; $data['id'] = $id; $this->load->model("admin_group_model"); $data['groups'] = $this->admin_group_model->getValidGroup(); //var_dump($act,$this->form_validation->run($act)); if ($this->form_validation->run($act) == TRUE) { if ($this->input->post('act') == 'edit_admin_user' || $this->input->post('act') == 'add_admin_user') { $post['user_name'] = $this->input->post('user_name'); $post['email'] = $this->input->post("email"); if ($this->input->post('password') != "") { $post['password'] = $this->input->post('password'); if ($this->input->post('re_password') != $post['password']) { $data['error'] = $this->lang->line("error_same_password"); $this->load->view(themes("admin/admin_user/info"), $data); return; } $post['password'] = md5($post['password']); } $post['user_state'] = $this->input->post("user_state"); $post['role_id'] = $this->input->post('role_id'); $post['add_time'] = time(); if ($id > 0) { $this->admin_user_model->edit($id, $post); } else { $this->admin_user_model->add($post); } redirect("admin/admin_user/index"); } else { } } $this->load->view("admin/admin_user/info", $data); }
public function index() { //$this->output->cache($this->config->item('cache_time')); $data = array(); $this->load->view(themes("index/index"), $data); }
public function home() { $this->load->view(themes("")); }
<?php if (!isset($_GET['cmd'])) { $_GET['cmd'] = NULL; } switch ($_GET['cmd']) { default: themes(); break; case 'edit': edit(); break; case 'delete': delete(); break; case 'install': install(); break; } function themes() { global $domain, $db, $directorypath; $r = mysql_query("SELECT * FROM fas_themes WHERE active='1' ORDER BY ID DESC"); echo '<div class="heading"> <h2>Themes</h2> </div> <br clear="all"> <table id="table"> <thead> <tr> <th colspan="2">Active Themes</th>
?> </dt> <dd><?php languages(true); ?> </dd> </dl> <dl class="input"> <dt> <?php echo lang('site_theme'); ?> </dt> <dd><?php themes(true); ?> </dd> </dl> <dl class="input"> <dt> <?php echo lang('site_url'); ?> <br /> <span><?php echo lang('site_url_msg'); ?> </span> </dt>
function theme_options() { if (!array_key_exists('theme', $_REQUEST) || array_key_exists('admin_theme_options_cancel_changes', $_REQUEST)) { themes(); return; } $theme = $_REQUEST['theme']; $theme_output = ""; if (preg_match('/([a-zA-Z0-9_\\/\\-]+)/', $theme, $matches)) { $theme = $matches[1]; // sanitize input $theme_info = getThemeInfo($theme); extract($theme_info); if (file_exists("../" . RSS_THEME_DIR . "/{$fsname}/config.php")) { ob_start(); rss_theme_options_rendered_buttons(false); rss_require(RSS_THEME_DIR . "/{$fsname}/config.php"); $theme_output = ob_get_contents(); ob_end_clean(); rss_invalidate_cache(); } if ($theme_output) { // Let us set up a form echo "<h2\n class=\"trigger\">" . __('Theme Options') . " " . TITLE_SEP . " " . $name . "</h2>\n" . "<div id=\"admin_theme_options\">\n"; echo "<form method=\"post\" "; if (rss_theme_options_form_class() !== null) { echo "class='" . rss_theme_options_form_class() . "' "; } echo "action=\"" . $_SERVER['PHP_SELF'] . "\">\n"; echo "<p><input type=\"hidden\" name=\"" . CST_ADMIN_DOMAIN . "\" value=\"" . CST_ADMIN_DOMAIN_THEME_OPTIONS . "\" /></p>\n"; echo $theme_output; echo "<p><input type=\"hidden\" name=\"theme\" value=\"" . $theme . "\"/>\n"; echo "<input type=\"hidden\" name=\"" . CST_ADMIN_METAACTION . "\" value=\"ACT_ADMIN_SUBMIT_CHANGES\"/>\n"; if (isset($_REQUEST['mediaparam'])) { $mediaparam = sanitize($_REQUEST['mediaparam'], RSS_SANITIZER_CHARACTERS); echo "<input type=\"hidden\" name=\"mediaparam\" value=\"{$mediaparam}\">\n"; } if (!rss_theme_options_rendered_buttons()) { echo "<input type=\"submit\" name=\"admin_theme_options_submit_changes\" value=\"" . __('Submit Changes') . "\" />\n"; echo "<input type=\"submit\" name=\"admin_theme_options_cancel_changes\"\n value=\"" . __('Cancel') . "\" />\n"; } echo "</p></form>\n"; echo "</div>"; } else { themes(); } } }
/** * main function. checks for authorization and renders the * required admin section. */ function admin_main($authorised) { echo "\n<div id=\"channel_admin\" class=\"frame\">"; if ($authorised) { admin_menu(); if (array_key_exists(CST_ADMIN_DOMAIN, $_REQUEST)) { switch ($_REQUEST[CST_ADMIN_DOMAIN]) { case CST_ADMIN_DOMAIN_FOLDER: $show = folder_admin(); break; case CST_ADMIN_DOMAIN_CHANNEL: $show = channel_admin(); break; case CST_ADMIN_DOMAIN_CONFIG: $show = config_admin(); break; case CST_ADMIN_DOMAIN_ITEM: $show = item_admin(); break; case CST_ADMIN_DOMAIN_PLUGINS: $show = plugins_admin(); break; case CST_ADMIN_DOMAIN_THEMES: $show = themes_admin(); break; case CST_ADMIN_DOMAIN_TAGS: $show = tags_admin(); break; case CST_ADMIN_DOMAIN_PLUGIN_OPTIONS: $show = plugin_options_admin(); break; case CST_ADMIN_DOMAIN_THEME_OPTIONS: $show = theme_options_admin(); break; default: break; } } if (array_key_exists(CST_ADMIN_VIEW, $_REQUEST) || isset($show)) { if (!isset($show)) { $show = $_REQUEST[CST_ADMIN_VIEW]; } switch ($show) { case CST_ADMIN_DOMAIN_CONFIG: config(); break; case CST_ADMIN_DOMAIN_CHANNEL: channels(); break; case CST_ADMIN_DOMAIN_FOLDER: folders(); break; case CST_ADMIN_DOMAIN_OPML: opml(); break; case CST_ADMIN_DOMAIN_NONE: break; case CST_ADMIN_DOMAIN_ITEM: items(); break; case CST_ADMIN_DOMAIN_SYSINFO: sysinfo(); break; case CST_ADMIN_DOMAIN_DASHBOARD: dashboard(); break; case CST_ADMIN_DOMAIN_PLUGINS: plugins(); break; case CST_ADMIN_DOMAIN_THEMES: themes(); break; case CST_ADMIN_DOMAIN_TAGS: tags(); break; case CST_ADMIN_DOMAIN_PLUGIN_OPTIONS: plugin_options(); break; case CST_ADMIN_DOMAIN_THEME_OPTIONS: theme_options(); break; default: } } else { if (true == getConfig('rss.config.defaultdashboard')) { dashboard(); } else { channels(); } } echo "\n<div class=\"clearer\"></div>\n"; } else { rss_error(sprintf(__('<h1>Not Authorized!</h1>You are not authorized to access the administration interface. Please follow <a href="%s">this link</a> back to the main page. Have a nice day!'), getPath()), RSS_ERROR_ERROR, true); } echo "</div>\n"; }
<div class="product_info"> <h3><a href="leisure_detail.html">CN Clogs Beach/Garden Clog</a></h3> <small>Comfortable and fun to wear these clogs are the latest trend in fash</small> </div> <div class="price_info"> <a href="#">+ Add to wishlist</a> <button class="price_add" title="" type="button"><span class="pr_price">$76.00</span><span class="pr_add">Add to Cart</span></button> </div> </li> </ul> </div> <!--Product List Ends--> <!--Newsletter_subscribe Starts--> <div class="subscribe_block"> <div class="find_us"> <h3>Find us on</h3> <a class="twitter" href="#"></a> <a class="facebook" href="#"></a> <a class="rss" href="#"></a> </div> <div class="subscribe_nl"> <h3>Subscribe to our Newsletter</h3> <small>Instant wardrobe updates, new arrivals, fashion news, don’t miss a beat – sign up to our newsletter now.</small> <form id="newsletter" method="post" action="#"> <input type="text" class="input-text" value="Enter your email" title="Enter your email" id="newsletter" name="email"> <button class="button" title="" type="submit"></button> </form> </div> </div> <!--Newsletter_subscribe Ends--> </section> <!--Mid Section Ends--> </div> <?php $this->load->view(themes("library/footer"));
$_SESSION['aux_ciclo'] = $_GET['ciclo']; print $_SESSION['aux_ciclo']; break; case "respaldos_cron": $ruta = PATH_CRON; $url = URL_MAIN . "respaldo_db/"; listar_directorios_ruta($ruta, $url); break; case "calcularPromedioSemestreAsignatura": calcularPromedioSemestreAsignatura($_GET['rut'], $_GET['ramo_ID'], $_GET['periodo']); break; case "pagoAdelantado": pagoAdelantado($_GET['rut'], $_GET['pago_adelantado']); break; case "themes": themes($_GET['colegio_ID']); break; } function themes($colegio_ID) { $class_style = new style(); $style = $class_style->obtenerStyle($colegio_ID); $styles = $class_style->obtenerStyles(); $html = "Seleccione un tema: <br><select id='selectStyle' name='selectStyle'>"; foreach ($styles as $key => $styleFolder) { if ($styleFolder == $style['style_path']) { $selected = "selected"; } else { $selected = ""; } $html .= "<option value='{$styleFolder}' {$selected}>{$styleFolder}</option>";
<small>Comfortable and fun to wear these clogs are the latest trend in fash</small> </div> <div class="price_info"> <a href="#">+ Add to wishlist</a> <button class="price_add" title="" type="button"><span class="pr_price">$76.00</span><span class="pr_add">Add to Cart</span></button> </div> </li> </ul></div><div disabled="disabled" style="display: block;" class="jcarousel-prev jcarousel-prev-horizontal jcarousel-prev-disabled jcarousel-prev-disabled-horizontal"></div><div style="display: block;" class="jcarousel-next jcarousel-next-horizontal"></div></div></div> </div> <!--Product List Ends--> <!--Newsletter_subscribe Starts--> <div class="subscribe_block"> <div class="find_us"> <h3>Find us on</h3> <a class="twitter" href="#"></a> <a class="facebook" href="#"></a> <a class="rss" href="#"></a> </div> <div class="subscribe_nl"> <h3>Subscribe to our Newsletter</h3> <small>Instant wardrobe updates, new arrivals, fashion news, don’t miss a beat – sign up to our newsletter now.</small> <form id="newsletter" method="post" action="#"> <input class="input-text" value="Enter your email" title="Enter your email" id="newsletter" name="email" type="text"> <button class="button" title="" type="submit"></button> </form> </div> </div> <!--Newsletter_subscribe Ends--> </section> <!--Mid Section Ends--> </div> <?php $this->load->view(themes('library/footer'));
" ></script> <script type="text/javascript" src="/application/views/<?php echo themes("js/simpletabs_1.3.js"); ?> "></script> <script type="text/javascript" src="/application/views/<?php echo themes("js/form_elements.js"); ?> " ></script> <script type="text/javascript" src="/application/views/<?php echo themes("js/custom.js"); ?> "></script> <!--[if lt IE 9]> <script src="/application/views/<?php echo themes('js/html5.js'); ?> "></script> <![endif]--> <!-- mobile setting --> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> </head> <body> <div class="wrapper"> <div class="header_container"> <!--Header Starts--> <header> <div class="top_bar clear"> <!--Language Switcher Starts--> <div class="language_switch"> <a class="active" href="#" title="ENGLISH">EN</a> <a href="#" title="FRENCH">FR</a> </div> <!--Language Switcher Ends-->
<?php return ['presenter' => ['highscores' => themes('HighscorePresenter'), 'forum-replies' => themes('ForumRepliesPresenter')]];