function __construct() { list($cate, $args) = CORE::$args; self::$temp = CORE::$temp_main; CORE::common_resource(); CORE::res_init('blog/data_list', 'css'); self::$temp["MAIN"] = 'ogs-blog-tpl.html'; if (!empty($cate)) { self::$cate = SEO::origin('blog_cate', $cate); self::$temp["MAIN"] = 'ogs-blog-tpl.html'; $func++; } if (!empty($args)) { self::$id = SEO::origin('blog', $args); self::$temp["MAIN"] = 'ogs-blog-detail-tpl.html'; $func++; } if ($func <= 1) { self::row(); } else { self::detail(); } self::nav(); self::hot(self::$id); self::$temp['NAV'] = ''; new VIEW(CORE::$temp_option["HULL"], self::$temp, false, false); }
function __construct() { list($cate, $args) = CORE::$args; self::$temp = CORE::$temp_main; CORE::common_resource(); self::$temp["MAIN"] = 'ogs-gallery-tpl.html'; if (!empty($cate)) { self::$cate = SEO::origin('gallery_cate', $cate); self::$temp["MAIN"] = 'ogs-gallery-tpl.html'; $func++; } if (!empty($args)) { self::$id = SEO::origin('gallery', $args); self::$temp["MAIN"] = 'ogs-gallery-detail-tpl.html'; $func++; } if ($func <= 1) { self::row(); } else { self::detail(); } VIEW::assignGlobal(array('TAG_FUNC_STR_ENG' => 'GALLERY', 'TAG_GALLERY_ACTIVE' => 'class="li1"')); self::nav(); new VIEW(CORE::$temp_option["HULL"], self::$temp, false, false); }
function __construct() { list($args) = CORE::$args; self::$m_id = SESS::get('m_id'); self::$temp = CORE::$temp_main; CRUMBS::fetch('feedback'); SEO::load('feedback'); if (empty(SEO::$data["h1"])) { SEO::$data["h1"] = CORE::$lang['feedback']; } SEO::output(); switch ($args) { case "thankyou": new RESPONSE('feedback', CORE::$lang['feedbackThanks']); break; case "list": # 顯示反饋 self::$temp["MAIN"] = 'ogs-feedback-list-tpl.html'; self::row(); break; case "add": # 執行增加反饋 self::$temp["MAIN"] = CORE::$temp_option["MSG"]; self::add(); break; default: self::$temp["MAIN"] = 'ogs-feedback-tpl.html'; break; } CORE::common_resource(); new VIEW(CORE::$temp_option["HULL"], self::$temp, false, false); }
function __construct($func = false, $title = false, $custom = false) { self::$temp = CORE::$temp_main; self::$temp['MAIN'] = 'ogs-response-tpl.html'; $tplPath = CORE::$temp . self::$temp['MAIN']; file_put_contents($tplPath, SYSTEM::$setting['response']); switch ($func) { case "feedback": VIEW::assignGlobal(array('SEO_H1' => !empty($title) ? $title : '感謝您的評價')); break; case "contact": VIEW::assignGlobal(array('SEO_H1' => !empty($title) ? $title : '感謝您的留言')); break; } if (is_array($custom)) { VIEW::assignGlobal($custom); } $msg = SESS::get('msg'); if (empty($msg)) { header('location: ' . CORE::$root . $func . '/'); exit; } SESS::del('msg'); if (is_array($msg)) { $output['TAG_NAME'] = CORE::fetchName(array($msg['lastName'], $msg['firstName']), 'call', $msg['gender']); foreach ($msg as $field => $var) { $output['TAG_' . strtoupper($field)] = $var; } } else { $output['TAG_MSG'] = $msg; } VIEW::assignGlobal($output); CORE::common_resource(); new VIEW(CORE::$temp_option["HULL"], self::$temp, false, false); }
public static function notFound() { CORE::common_resource(); SEO::load('nofound'); SEO::output(); VIEW::assignGlobal('SEO_H1', empty(SEO::$data['h1']) ? '404 not found' : SEO::$data['h1']); $temp = CORE::$temp_main; $temp["MAIN"] = 'ogs-fn-404-tpl.html'; new VIEW(CORE::$temp_option["HULL"], $temp, false, false); }
function __construct() { list($args) = CORE::$args; self::$temp = CORE::$temp_main; self::$id = SEO::origin('intro', $args); self::$temp["MAIN"] = 'ogs-intro-tpl.html'; self::row(); self::nav(); CORE::common_resource(); CORE::res_init('about/data', 'css'); new VIEW(CORE::$temp_option["HULL"], self::$temp, false, false); }
function __construct() { list($cate, $args) = CORE::$args; self::$temp = CORE::$temp_main; CORE::common_resource(); self::$temp["MAIN"] = 'ogs-news-tpl.html'; if (!empty($cate)) { self::$cate = SEO::origin('news_cate', $cate); self::$temp["MAIN"] = 'ogs-news-tpl.html'; $func++; } if (!empty($args)) { self::$id = SEO::origin('news', $args); self::$temp["MAIN"] = 'ogs-news-detail-tpl.html'; $func++; } if ($func <= 1) { self::row(); } else { self::detail(); } self::nav(); new VIEW(CORE::$temp_option["HULL"], self::$temp, false, false); }
function __construct() { list($func, $args) = CORE::$args; self::$id = SESS::get('m_id'); self::$temp = CORE::$temp_main; self::$temp["NAV"] = 'ogs-member-nav-tpl.html'; switch ($func) { case "regist": self::$temp["MAIN"] = 'ogs-member-regist-tpl.html'; CRUD::args_output(true, true); break; case "regist-act": self::$temp["MAIN"] = CORE::$temp_option["MSG"]; self::regist(); break; case "verify": self::$temp["MAIN"] = CORE::$temp_option["MSG"]; self::verify($args); break; case "forget": self::$temp["MAIN"] = 'ogs-member-forget-tpl.html'; break; case "forget-act": self::$temp["MAIN"] = CORE::$temp_option["MSG"]; self::forget(); break; case "cart-login": self::$temp["MAIN"] = CORE::$temp_option["MSG"]; self::cart_login(); break; case "login": self::$temp["MAIN"] = CORE::$temp_option["MSG"]; self::login(); break; case "logout": self::$temp["MAIN"] = CORE::$temp_option["MSG"]; self::logout(); break; case "profile": self::$temp["NAV"] = 'ogs-member-nav-tpl.html'; self::$temp["MAIN"] = 'ogs-member-form-tpl.html'; self::profile(); break; case "modify": self::$temp["NAV"] = 'ogs-member-nav-tpl.html'; self::$temp["MAIN"] = CORE::$temp_option["MSG"]; self::modify(); break; case "order": self::order($args); break; default: if (empty(self::$id)) { self::$temp["MAIN"] = 'ogs-member-login-tpl.html'; } else { self::$temp["NAV"] = 'ogs-member-nav-tpl.html'; self::$temp["MAIN"] = ''; } break; } CORE::common_resource(); new VIEW(CORE::$temp_option["HULL"], self::$temp, false, false); }