public function __construct($exceptions = false) {
			parent::__construct($exceptions);
			$sysvar = new JTSysvar();
			$this->service_email = $sysvar->get(self::SERVICE_EMAIL);
			$this->service_email_name = $sysvar->get(self::SERVICE_EMAIL_NAME);
			$this->CharSet = "UTF-8";
			$this->IsHTML(true);
		}
示例#2
0
		public function _edit() {
			$sysvar = new JTSysvar($_SESSION['login_user_id']);
			$smarty = $this->createSmarty();
			$smarty->assign('web_header_title',$sysvar->get('web.header.title'));
			$smarty->assign('web_header_keyword',$sysvar->get('web.header.keyword'));
			$smarty->assign('web_header_description',$sysvar->get('web.header.description'));
			$smarty->display(dirname(__FILE__).'/edit.tpl.htm');
		}
示例#3
0
<?php

if (!isset($sysvar)) {
    $sysvar = new JTSysvar();
}
?>
<!-- <meta name="title" content="" /> -->
<meta name="keywords" content="<?php 
echo htmlspecialchars($sysvar->get('web.header.keyword'));
?>
"><!-- 關鍵字 -->
<meta name="description" content="<?php 
echo htmlspecialchars($sysvar->get('web.header.description'));
?>
" /><!-- 網站描述 -->
<meta name="Copyright" content="" /><!-- 版權宣告 -->
<meta name="robots" content="index,follow">

<meta name="viewport" content="width=device-width, user-scalable=yes">
<!-- Don't forget to set your site up: http://google.com/webmasters -->
<meta name="google-site-verification" content="" />

<link rel="shortcut icon" href="favicon.ico" />

<link rel="stylesheet" href="<?php 
path_au('css');
?>
reset.css" />
<link rel="stylesheet" href="plugin/bootstrap-material-design/css/ripples.css">
<link rel="stylesheet" href="plugin/bootstrap-material-design/css/material.css">
<link rel="stylesheet" href="<?php 
示例#4
0
}
function notPhone($title)
{
    global $detect;
    global $deviceType;
    if ($deviceType != 'phone') {
        echo $title;
    }
}
define('IMG_PATH', 'dist/images/');
define('TEMP_IMG_PATH', 'dist/images/temp/');
define('INC_PATH', 'dist/inc/');
define('CSS_PATH', 'dist/css/');
define('JS_PATH', 'dist/js/');
$sysvar = new JTSysvar();
$webTitle = htmlspecialchars($sysvar->get('web.header.title'));
//	$webTitle = '康和期貨經理事業';
function path_au($what)
{
    switch ($what) {
        case 'img':
            echo IMG_PATH;
            break;
        case 'temp':
            echo TEMP_IMG_PATH;
            break;
        case 'css':
            echo CSS_PATH;
            break;
        case 'js':
            echo JS_PATH;