Example #1
0
<?php

include_once "V2/config.php";
//echo APP_ROOT_PATH;
require_once APP_ROOT_PATH . '_lib/DB_class.php';
echo $_SESSION['ok'];
$params = new Params();
$language = $params->getValue('LANG');
$template = $params->getValue('TEMPLATE');
if ($_SESSION['charset'] != "") {
    $language = $_SESSION['charset'];
}
if ($language == "") {
    $language = "tw";
}
if ($template == "") {
    $template = "default";
}
$homeimg0 = $params->getValue('HOME_IMG0');
$homeimg1 = $params->getValue('HOME_IMG1');
$homeimg2 = $params->getValue('HOME_IMG2');
$homeimg3 = $params->getValue('HOME_IMG3');
$homeimg4 = $params->getValue('HOME_IMG4');
$marquee = $params->getValue('MARQUEE');
//echo $homeimg1;
?>
<!DOCTYPE html>

<html lang="en">

  <head>
Example #2
0
<?php

include_once "V2/config.php";
//echo APP_ROOT_PATH;
require_once APP_ROOT_PATH . '_lib/DB_class.php';
echo $_SESSION['ok'];
$params = new Params();
$language = $params->getValue('LANG');
$template = $params->getValue('TEMPLATE');
if ($_SESSION['charset'] != "") {
    $language = $_SESSION['charset'];
}
if ($language == "") {
    $language = "tw";
}
if ($template == "") {
    $template = "default";
}
$wor_img1 = $params->getValue('WOR_IMG1');
$wor_img2 = $params->getValue('WOR_IMG2');
$wor_img3 = $params->getValue('WOR_IMG3');
$wor_img4 = $params->getValue('WOR_IMG4');
$marquee = $params->getValue('MARQUEE');
?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>安信木屋設計</title>
    <!--<meta name="viewport" content="width=device-width, initial-scale=1">-->
    <meta name="viewport" content="width=1024" />
Example #3
0
/*
 * Created on 2007/4/26 by Jeffrey Yeh
 * Project :
 * Module  :
 * Function:
 * Update  :
 */
session_start();
$UserID = $_SESSION['USERID'];
$UserLevel = $_SESSION['USERLEVEL'];
include_once "../config.php";
if ($UserID == "") {
    header("Location:" . HTML_ROOT_URL . "V2/" . "admin/index.php");
    exit;
}
require_once APP_ROOT_PATH . '_lib/DB_class.php';
require_once APP_ROOT_PATH . '_lib/Template.php';
$params = new Params();
$language = $params->getValue('LANG');
$template = $params->getValue('TEMPLATE');
if ($_SESSION['charset'] != "") {
    $language = $_SESSION['charset'];
}
if ($language == "") {
    $language = "tw";
}
if ($template == "") {
    $template = "default";
}
require_once HTML_ROOT_PATH . "_label/" . $language . "/admin.inc.php";
$system['html_root'] = HTML_TEMPLATE_URL . $template;
Example #4
0
<?php

include_once "V2/config.php";
//echo APP_ROOT_PATH;
require_once APP_ROOT_PATH . '_lib/DB_class.php';
$params = new Params();
$language = $params->getValue('LANG');
$template = $params->getValue('TEMPLATE');
if ($_SESSION['charset'] != "") {
    $language = $_SESSION['charset'];
}
if ($language == "") {
    $language = "tw";
}
if ($template == "") {
    $template = "default";
}
$marquee = $params->getValue('MARQUEE');
?>

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>安信木屋設計</title>
    <!--<meta name="viewport" content="width=device-width, initial-scale=1">-->
	<meta name="viewport" content="width=1024" />
    <link rel="stylesheet" href="css/bootstrap.min.css" media="screen" />
    <link rel="stylesheet" href="css/style.css" />
    <link rel="stylesheet" href="css/nivo-slider.css" />
    <link rel="stylesheet" id="nivoslider-theme-dark-css" href="css/dark.css" type="text/css" media="all" />
Example #5
0
 function MailSend($code, $new_var, $old_var, $to_email, $lang)
 {
     //測試帳戶
     $oParams = new Params($this->db_conns);
     $emails = $oParams->getValue("CONTACT_US_EMAIL");
     $emails = explode(";", $emails);
     foreach ($emails as $key => $value) {
         if ($value != "") {
             $slice = explode(",", $value);
             $test_email[] = $slice[0];
             $test_lang[] = $slice[1];
         }
     }
     //合併
     $to_emails = array_merge($test_email, $to_email);
     $to_langs = array_merge($test_lang, $lang);
     $oMailNotice = new MailNotice();
     $oMail = new TempEmail($this->db_conns);
     $oMail->getDataByCode($code);
     $oMailNotice->IsHTML($oMail->body_type == 'html' ? true : false);
     foreach ($to_emails as $key => $email) {
         switch ($to_langs[$key]) {
             case "tw":
                 $oMailNotice->setTemplate($oMail->subject_tw, $oMail->body_tw, $old_var, $new_var);
                 break;
             case "cn":
                 $oMailNotice->setTemplate($oMail->subject_cn, $oMail->body_cn, $old_var, $new_var);
                 break;
             default:
                 $oMailNotice->setTemplate($oMail->subject_en, $oMail->body_en, $old_var, $new_var);
                 break;
         }
         $oMailNotice->ClearAddresses();
         $oMailNotice->AddAddress($email);
         $oMailNotice->send_mail();
     }
 }
Example #6
0
<?php

include_once "V2/config.php";
//echo APP_ROOT_PATH;
require_once APP_ROOT_PATH . '_lib/DB_class.php';
$params = new Params();
$language = $params->getValue('LANG');
$template = $params->getValue('TEMPLATE');
if ($_SESSION['charset'] != "") {
    $language = $_SESSION['charset'];
}
if ($language == "") {
    $language = "tw";
}
if ($template == "") {
    $template = "default";
}
$marquee = $params->getValue('MARQUEE');
$com_img1 = $params->getValue('COM_IMG1');
/*
$com_img2  = $params->getValue('COM_IMG2');
$com_img3  = $params->getValue('COM_IMG3'); 
$com_img4  = $params->getValue('COM_IMG4');
$com_img5  = $params->getValue('COM_IMG5');
*/
#fetch sale data
$comb = new Comb();
$p1 = array();
$comb_lists = $comb->getListArray($p1);
$photo_path = "/V2/photo/comb/";
//print_r(count($comb_lists));
Example #7
0
<?php

include_once "V2/config.php";
//echo APP_ROOT_PATH;
require_once APP_ROOT_PATH . '_lib/DB_class.php';
$params = new Params();
$language = $params->getValue('LANG');
$template = $params->getValue('TEMPLATE');
if ($_SESSION['charset'] != "") {
    $language = $_SESSION['charset'];
}
if ($language == "") {
    $language = "tw";
}
if ($template == "") {
    $template = "default";
}
$abo_img1 = $params->getValue('ABO_IMG1');
$abo_img2 = $params->getValue('ABO_IMG2');
$abo_img3 = $params->getValue('ABO_IMG3');
$marquee = $params->getValue('MARQUEE');
?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>安信木屋設計</title>
    <!--<meta name="viewport" content="width=device-width, initial-scale=1">-->
    <meta name="viewport" content="width=1024" />
    <link rel="stylesheet" href="css/bootstrap.min.css" media="screen" />
    <link rel="stylesheet" href="css/style.css" />
Example #8
0
<?php

include_once "V2/config.php";
//echo APP_ROOT_PATH;
require_once APP_ROOT_PATH . '_lib/DB_class.php';
$params = new Params();
$language = $params->getValue('LANG');
$template = $params->getValue('TEMPLATE');
if ($_SESSION['charset'] != "") {
    $language = $_SESSION['charset'];
}
if ($language == "") {
    $language = "tw";
}
if ($template == "") {
    $template = "default";
}
$marquee = $params->getValue('MARQUEE');
$saleimg1 = $params->getValue('SAL_IMG1');
#fetch sale data
$sale = new Sale();
$p1 = array();
$sale_lists = $sale->getListArray($p1);
$photo_path = "/V2/photo/sale/";
//print_r(count($sale_lists));
?>

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">