本文整理汇总了PHP中UserSettings::getSettingValue方法的典型用法代码示例。如果您正苦于以下问题:PHP UserSettings::getSettingValue方法的具体用法?PHP UserSettings::getSettingValue怎么用?PHP UserSettings::getSettingValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UserSettings
的用法示例。
在下文中一共展示了UserSettings::getSettingValue方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: UserSettings
</div>
<div align="center">
<p id="pYourFirstProject" style="font-size:1.4em;">Setup your Invoices</p>
<div class="spacerblock_20"></div>
<div id="setup_invoices">
<div>
<?php
$UserSettings = new UserSettings();
$UserSettings->sessionPersistent("InvLogo", "index.php", OFUZ_TTL);
//$UserSettings->sessionPersistent("InvCurrency", "index.php", OFUZ_TTL);
//$UserSettings->sessionPersistent("InvDateFormat", "index.php", OFUZ_TTL);
//$UserSettings->sessionPersistent("InvAuthNet", "index.php", OFUZ_TTL);
//$UserSettings->sessionPersistent("InvPaypal", "index.php", OFUZ_TTL);
// Invoice Logo section
$inv_logo = $UserSettings->getSettingValue("invoice_logo");
if ($inv_logo && is_array($inv_logo)) {
$_SESSION['InvLogo']->getId($inv_logo["iduser_settings"]);
$img = $_SESSION['InvLogo']->setting_value;
$e_inv_logo = new Event("InvLogo->eventValuesFromForm");
$e_inv_logo->addEventAction("InvLogo->update", 2000);
$e_inv_logo->addEventAction("InvLogo->eventCheckInvLogoExtension", 2);
echo '<table width="50%" height="100px"><tr><td width="40%">';
$e_inv_logo->setGotFile(true);
$e_inv_logo->addEventAction("mydb.gotoPage", 2333);
$e_inv_logo->addParam("goto", $_SERVER['PHP_SELF']);
echo $e_inv_logo->getFormHeader();
echo $e_inv_logo->getFormEvent();
$_SESSION['InvLogo']->setFields("invoice_logo");
$_SESSION['InvLogo']->setApplyRegistry(true, "Form");
echo _('Logo (GIF files are not supported)') . '<br />';
示例2: _
include_once 'includes/setting_tabs.php';
?>
<div class="settingsbottom"></div></div>
</td><td class="layout_rcolumn">
<div class="banner60 pad020 text32"><?php
echo _('Settings');
?>
</div>
<div class="banner50 pad020 text16 fuscia_text"><?php
echo _('Discussion Email Alert Setup');
?>
</div>
<div class="contentfull">
<?php
$UserSettings = new UserSettings();
$data = $UserSettings->getSettingValue("task_discussion_alert");
//if($_SESSION['do_User']->discussion_email_alert !='No'){
if (!$data) {
$e_set_email_alert = new Event("UserSettings->eventSetOffDiscussionAlert");
$e_set_email_alert->addParam("goto", $_SERVER['PHP_SELF']);
echo '<div class="messageshadow">';
echo '<div class="messages">';
$msg = new Message();
echo $msg->getMessage('global_discussion_email_on');
echo '<br />';
echo $e_set_email_alert->getLink(_('Turn Off'));
echo '</div></div>';
echo '<br />';
} else {
if (is_array($data)) {
$e_set_email_alert = new Event("UserSettings->eventSetOnOffDiscussionAlert");
示例3: htmlentities
echo htmlentities($_SESSION['in_page_message']);
$_SESSION['in_page_message'] = '';
echo '</div></div><br /><br />';
}
?>
<?php
$UserSettings = new UserSettings();
$UserSettings->sessionPersistent("InvLogo", "index.php", OFUZ_TTL);
//$UserSettings->sessionPersistent("InvCurrency", "index.php", OFUZ_TTL);
//$UserSettings->sessionPersistent("InvDateFormat", "index.php", OFUZ_TTL);
//$UserSettings->sessionPersistent("InvAuthNet", "index.php", OFUZ_TTL);
//$UserSettings->sessionPersistent("InvPaypal", "index.php", OFUZ_TTL);
// Invoice Logo section
$inv_logo = $UserSettings->getSettingValue("invoice_logo");
if ($inv_logo && is_array($inv_logo)) {
$_SESSION['InvLogo']->getId($inv_logo["iduser_settings"]);
$img = $_SESSION['InvLogo']->setting_value;
$e_inv_logo = new Event("InvLogo->eventValuesFromForm");
$e_inv_logo->addEventAction("InvLogo->update", 2000);
$e_inv_logo->addEventAction("InvLogo->eventCheckInvLogoExtension", 2);
$e_inv_logo->setGotFile(true);
$e_inv_logo->addEventAction("mydb.gotoPage", 2333);
$e_inv_logo->addParam("goto", $_SERVER['PHP_SELF']);
echo $e_inv_logo->getFormHeader();
echo $e_inv_logo->getFormEvent();
$_SESSION['InvLogo']->setFields("invoice_logo");
$_SESSION['InvLogo']->setApplyRegistry(true, "Form");
echo '<div class="in290x18">';
echo _('Logo (GIF files are not supported)') . '<br />';
示例4: UserSettings
<?php
/**COPYRIGHTS**/
// Copyright 2008 - 2010 all rights reserved, SQLFusion LLC, info@sqlfusion.com
/**COPYRIGHTS**/
$pageTitle = 'Ofuz :: Contacts';
$Author = 'SQLFusion LLC';
$Keywords = 'Keywords for search engine';
$Description = 'Description for search engine';
$background_color = 'white';
// include_once('config.php');
// include_once('includes/ofuz_check_access.script.inc.php');
// include_once('includes/header.inc.php');
//If gears is not enabled, redirect to contacts.php
$do_user_settings = new UserSettings();
$setting_gears_arr = $do_user_settings->getSettingValue("google_gears");
if ($setting_gears_arr['setting_value'] == 'No') {
$message = '<div class="contentfull">';
$message .= '<div class="contentfull">';
$message .= '<div class="messageshadow">';
$message .= '<div class="messages">';
$message .= 'You have not turned on the Gears. <br />To access the Gears enabled Contacts page, please follow : <B>Settings->Google Gears->Turn On</B>.<br />You are being redirected to Contacts page without Gears....';
$message .= '</div></div></div></div>';
echo $message;
$jscript = '<script language="javascript">';
$jscript .= 'setTimeout("redirectUser()",30000);';
$jscript .= "function redirectUser(){window.location='/contacts.php';}";
$jscript .= '</script>';
echo $jscript;
exit;
}