本文整理匯總了PHP中validateMenuPriv函數的典型用法代碼示例。如果您正苦於以下問題:PHP validateMenuPriv函數的具體用法?PHP validateMenuPriv怎麽用?PHP validateMenuPriv使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了validateMenuPriv函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: ini_set
<?php
ini_set('display_errors', 1);
ini_set('error_reporting', E_ALL);
error_reporting(E_WARNING | E_ERROR);
require_once 'lib.inc.php';
$GLOBAL_SESSION = returnsession();
global $db;
validateMenuPriv("地域對比");
if (empty($_GET['start_time'])) {
$start_time = date("Y-m-d 00:00:00", strtotime("last year"));
} else {
$start_time = $_GET['start_time'];
}
if (empty($_GET['end_time'])) {
$end_time = date("Y-m-d 23:59:59");
} else {
$end_time = $_GET['end_time'];
}
$type = $_GET['type'];
if ($type == 'zhu' || $type == '') {
$swf = 'Column3D.swf';
} elseif ($type == 'bing') {
$swf = 'Pie2D.swf';
}
$sql = "SELECT c.`name`,SUM(a.totalmoney - a.oddment) as sum FROM sellplanmain a JOIN customer b on a.supplyid=b.ROWID JOIN customerarea c on b.style=c.rowid WHERE a.user_flag>0 and a.createtime>='" . $start_time . "' and a.createtime<='" . $end_time . "' GROUP BY b.style order by sum desc";
$rs = $db->Execute($sql);
$rs_a = $rs->GetArray();
//print_r($rs_a);exit;
$mingci = 20;
// 對前?條記錄進行統計
示例2: ini_set
<?php
ini_set('display_errors', 1);
ini_set('error_reporting', E_ALL);
error_reporting(E_WARNING | E_ERROR);
require_once 'lib.inc.php';
$GLOBAL_SESSION = returnsession();
validateMenuPriv("開票記錄");
//數據表模型文件,對應Model目錄下麵的kaipiaorecord_newai.ini文件
//如果是需要複製此模塊,則需要修改$parse_filename參數的值,然後對應到Model目錄 新文件名_newai.ini文件
if ($_GET['action'] == "add_default_data") {
global $db;
$db->StartTrans();
$CaiWu = new CaiWu($db);
$CaiWu->insertKaiPiao($_POST['customerid'], $_POST['dingdanbillid'], $_POST['kaipiaoneirong'], $_POST['piaojutype'], $_POST['fapiaono'], $_POST['piaojujine'], $_SESSION['LOGIN_USER_ID']);
//是否事務出現錯誤
if ($db->HasFailedTrans()) {
print "<script language=javascript>alert('錯誤:" . str_replace("'", "\\'", $db->ErrorMsg()) . "');window.history.back(-1);</script>";
} else {
page_css("開票記錄");
$return = FormPageAction("action", "init_default");
print_infor("新增開票記錄成功", 'trip', "location='?{$return}'", "?{$return}", 0);
}
$db->CompleteTrans();
exit;
} else {
if ($_GET['action'] == "delete_array") {
$selectid = $_GET['selectid'];
$selectid = explode(",", $selectid);
//開啟事務
global $db;
示例3: ini_set
<?php
ini_set('display_errors', 1);
ini_set('error_reporting', E_ALL);
error_reporting(E_WARNING | E_ERROR);
require_once 'lib.inc.php';
$GLOBAL_SESSION = returnsession();
global $db;
validateMenuPriv("月度利潤走勢圖");
if (empty($_GET['start_time'])) {
$start_time = date("Y-m", strtotime("last year"));
} else {
$start_time = $_GET['start_time'];
}
if (empty($_GET['end_time'])) {
$end_time = date("Y-m");
} else {
$end_time = $_GET['end_time'];
}
if (strtotime($start_time) > strtotime($end_time)) {
exit('日期區間錯誤');
}
$start_time_year = date('Y', strtotime($start_time));
$start_time_month = date('m', strtotime($start_time));
//$start_time_day = date('d',strtotime($start_time));
$end_time_year = date('Y', strtotime($end_time));
$end_time_month = date('m', strtotime($end_time));
//$end_time_day = date('d',strtotime($end_time));
$type = $_GET['type'];
$list = array();
if (empty($type) || $type == 'month') {
示例4: ini_set
<?php
ini_set('display_errors', 1);
ini_set('error_reporting', E_ALL);
error_reporting(E_WARNING | E_ERROR);
require_once 'lib.inc.php';
$GLOBAL_SESSION = returnsession();
$SYSTEM_PRIV_STOP = "1";
validateMenuPriv("跟蹤記錄");
$customerid = $_GET['customerid'];
if ($customerid != '' && $_GET['action'] == 'add_default') {
$ADDINIT = array("customerid" => $customerid, "linkmanid" => $_GET['linkmanid'], "chance" => $_GET['chance']);
}
if ($_GET['action'] == "add_default_data") {
require_once "../Framework/uploadFile.php";
uploadFile();
page_css();
$db->StartTrans();
$sql = "select max(id) as max from crm_contact";
$rs = $db->Execute($sql);
$rs_a = $rs->GetArray();
$id = $rs_a[0]['max'] + 1;
$SQL = "INSERT INTO crm_contact(id,customerid,linkmanid,chance,user_id,createman,contact,stage,describes,createtime,contacttime,nextcontacttime,nextissue,alreadycontact,priority,public) value(" . $id . ",'" . $_POST[customerid] . "','" . $_POST[linkmanid] . "','" . $_POST[chance] . "','" . $_POST[user_id] . "','" . $_POST[createman] . "','" . $_POST[contact] . "','" . $_POST[stage] . "','" . $_POST[describes] . "','" . $_POST[createtime] . "','" . $_POST[contacttime] . "','" . $_POST[nextcontacttime] . "','" . $_POST[nextissue] . "','" . $_POST[alreadycontact] . "','" . $_POST[priority] . "','" . $_POST['public'] . "')";
$rs = $db->Execute($SQL);
//同步修改機會表
if ($_POST[chance] != '') {
$sql = "update crm_chance set `最後聯係時間`='" . $_POST[contacttime] . "',`當前階段`='" . $_POST[stage] . "' where `編號`=" . $_POST[chance];
$rs = $db->Execute($sql);
}
//設置提醒
if (!empty($_POST[nextcontacttime])) {
示例5: ini_set
<?php
ini_set('display_errors', 1);
ini_set('error_reporting', E_ALL);
error_reporting(E_WARNING | E_ERROR);
require_once 'lib.inc.php';
$GLOBAL_SESSION = returnsession();
$SYSTEM_PRIV_STOP = "1";
validateMenuPriv("任務執行");
function updateWorkplanmain($id)
{
global $db;
$state = 0;
$sql = "select * from workplanmain_detail where mainrowid={$id}";
$rs = $db->Execute($sql);
$rs_a = $rs->GetArray();
if (sizeof($rs_a) > 0) {
$state = 1;
}
$sql = "select * from workplanmain where id={$id}";
$rs = $db->Execute($sql);
$rs_a = $rs->GetArray();
if (sizeof($rs_a) == 1) {
$flag = true;
$zhixingren = $rs_a[0]['zhixingren'];
$zhixingrenArray = explode(",", $zhixingren);
for ($i = 0; $i < sizeof($zhixingrenArray); $i++) {
if ($zhixingrenArray[$i] != '') {
$sql = "select * from workplanmain_detail where createman='" . $zhixingrenArray[$i] . "' and mainrowid={$id} and result=1";
$rs = $db->Execute($sql);
$rs_b = $rs->GetArray();
示例6: ini_set
<?php
ini_set('display_errors', 1);
ini_set('error_reporting', E_ALL);
error_reporting(E_WARNING | E_ERROR);
require_once 'lib.inc.php';
$GLOBAL_SESSION = returnsession();
$SYSTEM_PRIV_STOP = "1";
validateMenuPriv("發送郵件");
//print_r($_GET);exit;
if ($_SESSION[SMTPServerIP] == '') {
print "<script language=javascript>alert('您還沒有設置郵件發送賬戶,請先在菜單【我的辦公桌】【個人參數配置】中進行設置');</script>";
}
if ($_GET['action'] == "add_default") {
print "<script type=\"text/javascript\" language=\"javascript\" src=\"" . ROOT_DIR . "general/ERP/Enginee/jquery/jquery.js\"></script>";
$sendlist = $_GET['sendlist'];
//print_r($sendlist);exit;
$sendlistarray = explode(",", $sendlist);
$textareaInitValue = "";
for ($i = 0; $i < count($sendlistarray); $i++) {
if ($sendlistarray[$i] == '') {
continue;
} else {
if ($_GET['fromsrc'] == 'supply') {
$linkman = returntablefield("supplylinkman", "rowid", $sendlistarray[$i], "email,supplyname");
if ($linkman['email'] != '') {
if ($textareaInitValue == '') {
$textareaInitValue = $linkman['email'] . ',';
} else {
$textareaInitValue = $textareaInitValue . $linkman['email'] . ',';
}
示例7: ini_set
<?php
ini_set('display_errors', 1);
ini_set('error_reporting', E_ALL);
error_reporting(E_WARNING | E_ERROR);
require_once 'lib.inc.php';
$GLOBAL_SESSION = returnsession();
validateMenuPriv("銷售日報");
global $db;
if (!empty($_GET['start_time'])) {
$start_time = $_GET['start_time'];
} else {
exit('缺少參數');
}
if (!empty($_GET['end_time'])) {
$end_time = $_GET['end_time'];
} else {
exit('缺少參數');
}
if (!empty($_GET['createman'])) {
$createman = $_GET['createman'];
} else {
exit('缺少參數');
}
$where = '';
$data = array();
if ($_GET['where'] == 'yishou') {
$head = array("id" => "單號", "supplyname" => "客戶名稱", "USER_NAME" => "操作員", "opertype" => "類型", "bankname" => "帳戶", "jine" => "收入", "createtime" => "創建時間");
$headtype = array("id" => "char", "supplyname" => "string", "USER_NAME" => "char", "opertype" => "char", "bankname" => "char", "jine" => "float", "createtime" => "string");
$title = "已收貨款明細";
$sumcol = array("jine" => "");
示例8: ini_set
<?php
ini_set('display_errors', 1);
ini_set('error_reporting', E_ALL);
error_reporting(E_WARNING | E_ERROR);
require_once 'lib.inc.php';
$GLOBAL_SESSION = returnsession();
global $db;
validateMenuPriv("毛利匯總");
if (empty($_GET['start_time'])) {
$start_time = date("Y-m", strtotime("last year"));
} else {
$start_time = $_GET['start_time'];
}
if (empty($_GET['end_time'])) {
$end_time = date("Y-m");
} else {
$end_time = $_GET['end_time'];
}
function printError($errmsg)
{
print "<script>alert('{$errmsg}');history.back(-1);</script>";
}
if (strtotime($start_time) > strtotime($end_time)) {
printError('日期區間錯誤');
exit;
}
$show_type = empty($_GET['show_type']) ? 'table' : $_GET['show_type'];
$type1 = empty($_GET['type1']) ? 'customer' : $_GET['type1'];
if ($show_type == 'graph') {
if ($type1 == 'customer') {
示例9: ini_set
<?php
ini_set('display_errors', 1);
ini_set('error_reporting', E_ALL);
error_reporting(E_WARNING | E_ERROR);
require_once 'lib.inc.php';
$GLOBAL_SESSION = returnsession();
validateMenuPriv("收票記錄");
if ($_GET['action'] == "add_default_data") {
try {
$piaojujine = floatvalue($_POST['piaojujine']);
$billinfo = returntablefield("buyplanmain", "billid", $_POST['caigoubillid'], "totalmoney,shoupiaomoney");
$maxjine = $billinfo['totalmoney'] - $billinfo['shoupiaomoney'];
if ($maxjine > 0 && $piaojujine > $maxjine) {
throw new Exception("本次收票金額不能大於{$maxjine}");
}
if ($maxjine < 0 && $piaojujine < $maxjine) {
throw new Exception("本次收票金額不能小於{$maxjine}");
}
if ($piaojujine == 0) {
throw new Exception("本次收票金額不能為0");
}
global $db;
$db->StartTrans();
$CaiWu = new CaiWu($db);
$CaiWu->insertShouPiao($_POST['supplyid'], $_POST['caigoubillid'], $_POST['kaipiaoneirong'], $_POST['piaojutype'], $_POST['fapiaono'], $_POST['piaojujine'], $_SESSION['LOGIN_USER_ID'], $_POST['qici'], $_POST['beizhu'], $_POST['kaipiaodate']);
$db->CompleteTrans();
page_css("收票記錄");
//是否事務出現錯誤
if ($db->HasFailedTrans()) {
throw new Exception($db->ErrorMsg());
示例10: ini_set
<?php
ini_set('display_errors', 1);
ini_set('error_reporting', E_ALL);
error_reporting(E_WARNING | E_ERROR);
require_once 'lib.inc.php';
$GLOBAL_SESSION = returnsession();
validateMenuPriv("應開票匯總");
if ($_GET['action'] == "mingxi") {
print "<script>location='v_yingkaipiaohuizong_mingxi.php?supplyid=" . $_GET['rowid'] . "'</script>";
exit;
}
/*
if($_GET['action']=="add_default_data") {
//print_R($_GET);print_R($_POST);//exit;
global $db;
$入庫數量 = (int)$_POST['入庫數量'];$教材編號 = $_POST['教材編號'];
$sql = "update edu_jiaocai set 現有庫存=現有庫存+$入庫數量 where 教材編號='".$教材編號."'";
$rs = $db->Execute($sql);//print $sql;exit;
$_POST['編作者'] = returntablefield("edu_jiaocai","教材編號",$教材編號,"編作者");
$_POST['出版社'] = returntablefield("edu_jiaocai","教材編號",$教材編號,"出版社");
//print "<META HTTP-EQUIV=REFRESH CONTENT='0;URL=?'>";
}
*/
//數據表模型文件,對應Model目錄下麵的v_yingkaipiaohuizong_newai.ini文件
//如果是需要複製此模塊,則需要修改$parse_filename參數的值,然後對應到Model目錄 新文件名_newai.ini文件
$filetablename = 'v_yingkaipiaohuizong';
$parse_filename = 'v_yingkaipiaohuizong';
require_once 'include.inc.php';
示例11: ini_set
<?php
/*
版權歸屬:鄭州單點科技軟件有限公司;
聯係方式:0371-69663266;
公司地址:河南鄭州經濟技術開發區第五大街經北三路通信產業園四樓西南;
公司簡介:鄭州單點科技軟件有限公司位於中國中部城市-鄭州,成立於2007年1月,致力於把基於先進信息技術(包括通信技術)的最佳管理與業務實踐普及到教育行業客戶的管理與業務創新活動中,全麵提供具有自主知識產權的教育管理軟件、服務與解決方案,是中部最優秀的高校教育管理軟件及中小學校管理軟件提供商。目前己經有多家高職和中職類院校使用通達中部研發中心開發的軟件和服務;
軟件名稱:單點科技軟件開發基礎性架構平台,以及在其基礎之上擴展的任何性軟件作品;
發行協議:數字化校園產品為商業軟件,發行許可為LICENSE方式;單點CRM係統即SunshineCRM係統為GPLV3協議許可,GPLV3協議許可內容請到百度搜索;
特殊聲明:軟件所使用的ADODB庫,PHPEXCEL庫,SMTARY庫歸原作者所有,餘下代碼沿用上述聲明;
*/
ini_set('display_errors', 1);
ini_set('error_reporting', E_ALL);
error_reporting(E_WARNING | E_ERROR);
require_once 'lib.inc.php';
$GLOBAL_SESSION = returnsession();
validateMenuPriv("競爭產品");
$customerid = $_GET['customerid'];
if ($customerid != '' && $_GET['action'] == 'add_default') {
$ADDINIT = array("customerid" => $customerid);
}
addShortCutByDate("createtime", "創建時間");
$SYSTEM_ADD_SQL = getCustomerRoleByCustID($SYSTEM_ADD_SQL, "customerid");
$limitEditDelCust = 'customerid';
$filetablename = "competeproduct";
require_once "include.inc.php";
示例12: ini_set
<?php
ini_set('display_errors', 1);
ini_set('error_reporting', E_ALL);
error_reporting(E_WARNING | E_ERROR);
require_once 'lib.inc.php';
$GLOBAL_SESSION = returnsession();
validateMenuPriv("解決方案");
$customerid = $_GET['customerid'];
if ($customerid != '' && $_GET['action'] == 'add_default') {
$ADDINIT = array("customerid" => $customerid);
}
$SYSTEM_ADD_SQL = getCustomerRoleByCustID($SYSTEM_ADD_SQL, "customerid");
$limitEditDelCust = 'customerid';
//數據表模型文件,對應Model目錄下麵的customer_fangan_newai.ini文件
//如果是需要複製此模塊,則需要修改$parse_filename參數的值,然後對應到Model目錄 新文件名_newai.ini文件
$filetablename = 'customer_fangan';
$parse_filename = 'customer_fangan';
require_once 'include.inc.php';
示例13: ini_set
<?php
ini_set('display_errors', 1);
ini_set('error_reporting', E_ALL);
error_reporting(E_WARNING | E_ERROR);
require_once 'lib.inc.php';
$GLOBAL_SESSION = returnsession();
validateMenuPriv("交付計劃");
if ($_GET['action'] == "action_jiaofu") {
require_once "sellcontract_plan_do.php";
exit;
}
if ($_GET['action'] == "add_default") {
$billid = $_GET['billid'];
$customerid = returntablefield("sellplanmain", "billid", $billid, "supplyid");
$ADDINIT = array("supplyid" => $customerid, "mainrowid" => $billid);
}
if ($_GET['action'] == "workplan") {
$hetongid = returntablefield("v_sellcontract_plan", "id", $_GET['id'], "mainrowid");
$hetongzhuti = returntablefield("v_sellcontract", "billid", $hetongid, "zhuti");
$guanlianurl = urlencode("../JXC/sellcontract_plan_newai.php?action=view_default&id=" . $_GET['id']);
$guanlianshiwu = "合同交付-" . $hetongid;
$zhuti = "執行合同《" . $hetongzhuti . "》";
print "<script>location='../CRM/workplanmain_newai.php?action=add_default&zhuti={$zhuti}&guanlianshiwu={$guanlianshiwu}&guanlianurl={$guanlianurl}'</script>";
exit;
}
if ($_GET['action'] == "add_default_data" || $_GET['action'] == "edit_default_data") {
page_css("合同計劃交付");
$jine = round($_POST['num'] * $_POST['price'], 2);
$ifkucun = returntablefield("product", "productid", $_POST['prodid'], "ifkucun");
if ($ifkucun == "是") {
示例14: ini_set
<?php
/*
版權歸屬:鄭州單點科技軟件有限公司;
聯係方式:0371-69663266;
公司地址:河南鄭州經濟技術開發區第五大街經北三路通信產業園四樓西南;
公司簡介:鄭州單點科技軟件有限公司位於中國中部城市-鄭州,成立於2007年1月,致力於把基於先進信息技術(包括通信技術)的最佳管理與業務實踐普及到教育行業客戶的管理與業務創新活動中,全麵提供具有自主知識產權的教育管理軟件、服務與解決方案,是中部最優秀的高校教育管理軟件及中小學校管理軟件提供商。目前己經有多家高職和中職類院校使用通達中部研發中心開發的軟件和服務;
軟件名稱:單點科技軟件開發基礎性架構平台,以及在其基礎之上擴展的任何性軟件作品;
發行協議:數字化校園產品為商業軟件,發行許可為LICENSE方式;單點CRM係統即SunshineCRM係統為GPLV3協議許可,GPLV3協議許可內容請到百度搜索;
特殊聲明:軟件所使用的ADODB庫,PHPEXCEL庫,SMTARY庫歸原作者所有,餘下代碼沿用上述聲明;
*/
ini_set('display_errors', 1);
ini_set('error_reporting', E_ALL);
error_reporting(E_WARNING | E_ERROR);
require_once 'lib.inc.php';
$GLOBAL_SESSION = returnsession();
validateMenuPriv("供應商");
if ($_GET['action'] == "edit_default_data" || $_GET['action'] == "add_default_data") {
$_POST['supplycn'] = 漢字轉拚音首字母($_POST['supplyname']);
}
if ($_GET['action'] == "addlinkman") {
print "<script>location.href='supplylinkman_newai.php?action=add_default&supplyid=" . $_GET['ROWID'] . "';</script>";
exit;
}
addShortCutByDate("startdate", "建立日期");
$filetablename = "supply";
require_once "include.inc.php";
示例15: ini_set
<?php
ini_set('display_errors', 1);
ini_set('error_reporting', E_ALL);
error_reporting(E_WARNING | E_ERROR);
require_once 'lib.inc.php';
$GLOBAL_SESSION = returnsession();
validateMenuPriv("庫存清單");
if ($_GET['action'] == 'init_default' || $_GET['action'] == '' || $_GET['action'] == 'init_default_search') {
print "<script type=\"text/javascript\" language=\"javascript\" src=\"" . ROOT_DIR . "general/ERP/Enginee/popup/js/popup.js\"></script>";
print "<script type=\"text/javascript\" language=\"javascript\" src=\"" . ROOT_DIR . "general/ERP/Enginee/popup/js/popupclass.js\"></script>";
}
if ($_GET['action'] == 'colorinput') {
global $db;
$id = $_GET['rowid'];
$colorarray = $_GET['colorarray'];
$colorarray = explode(",", $colorarray);
$sql = "delete from store_color where id={$id}";
$db->Execute($sql);
$sql = "select * from productcolor";
$rs = $db->Execute($sql);
$rs_a = $rs->GetArray();
for ($i = 0; $i < sizeof($rs_a); $i++) {
if (intval($colorarray[$i]) == 0) {
continue;
}
$sql = "insert into store_color values({$id}," . $rs_a[$i]['id'] . "," . $colorarray[$i] . ")";
$db->Execute($sql);
}
print "ok";
exit;