本文整理汇总了PHP中Params::getValue方法的典型用法代码示例。如果您正苦于以下问题:PHP Params::getValue方法的具体用法?PHP Params::getValue怎么用?PHP Params::getValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Params
的用法示例。
在下文中一共展示了Params::getValue方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Params
<?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>
示例2: Params
<?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" />
示例3: header
/*
* 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;
示例4: Params
<?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" />
示例5: MailSend
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();
}
}
示例6: Params
<?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));
示例7: Params
<?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" />
示例8: Params
<?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">