• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP validateMenuPriv函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中validateMenuPriv函数的典型用法代码示例。如果您正苦于以下问题:PHP validateMenuPriv函数的具体用法?PHP validateMenuPriv怎么用?PHP validateMenuPriv使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了validateMenuPriv函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
// 对前?条记录进行统计
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:31,代码来源:diquduibi.php


示例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;
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:31,代码来源:kaipiaorecord_newai.php


示例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') {
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:31,代码来源:yuedulirunzoushi.php


示例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])) {
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:31,代码来源:crm_contact_newai.php


示例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();
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:31,代码来源:workplanmain_detail_newai.php


示例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'] . ',';
                    }
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:31,代码来源:email_newai.php


示例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" => "");
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:31,代码来源:xiaoshoubaobiao_mingxi.php


示例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') {
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:31,代码来源:maolihuizong.php


示例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());
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:31,代码来源:shoupiaorecord_newai.php


示例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';
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:29,代码来源:v_yingkaipiaohuizong_newai.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";
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:27,代码来源:competeproduct_newai.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';
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:19,代码来源:customer_fangan_newai.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 == "是") {
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:31,代码来源:sellcontract_plan_newai.php


示例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";
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:28,代码来源:supply_newai.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;
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:31,代码来源:store_product_newai.php


示例16: 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("公告通知");
global $db;
if ($_GET['action'] == "add_default_data" || $_GET['action'] == "edit_default_data") {
    //新增消息通知
    $touser = explode(",", $_POST["to_user"]);
    $messagetitle = "公告通知";
    $guanlianid = $_POST["id"];
    if ($_GET['action'] == "edit_default_data") {
        $guanlianid = $_GET["id"];
        deleteMessage($messagetitle, $guanlianid);
    }
    $db->StartTrans();
    for ($i = 0; $i < sizeof($touser); $i++) {
        if ($touser[$i] != "") {
            newMessage($touser[$i], $_POST['title'], $messagetitle, '../CRM/notify_newai.php?' . base64_encode('action=view_default&id=' . $guanlianid), $guanlianid);
            $userInfo = returntablefield("user", "user_id", $touser[$i], "user_name,email,MOBIL_NO");
            $destlist[$i]['email'] = $userInfo['email'];
            $destlist[$i]['mobile'] = $userInfo['MOBIL_NO'];
            $destlist[$i]['name'] = $userInfo['user_name'];
        }
    }
    $db->CompleteTrans();
    //新增邮件通知
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:31,代码来源:notify_newai.php


示例17: 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")		{
	//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=?'>";
}
*/
$SYSTEM_ADD_SQL = " and mainrowid in (select billid from buyplanmain where user_flag>=1)";
//数据表模型文件,对应Model目录下面的buyplanmain_detail_newai.ini文件
//如果是需要复制此模块,则需要修改$parse_filename参数的值,然后对应到Model目录 新文件名_newai.ini文件
$filetablename = 'buyplanmain_detail';
$parse_filename = 'buyplanmain_detail';
require_once 'include.inc.php';
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:26,代码来源:buyplanmain_detail_newai.php


示例18: 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'] == "edit_fukuan") {
    print "<script>location='fukuanplan_do.php?id=" . $_GET['id'] . "&url=" . $_SERVER["PHP_SELF"] . "'</script>";
    exit;
}
addShortCutByDate("createtime", "创建时间");
$filetablename = 'fukuanplan';
$parse_filename = 'fukuanplan';
require_once 'include.inc.php';
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:16,代码来源:fukuanplan_newai.php


示例19: ini_set

<?php

//print_r($_GET);
//print_r(base64_decode($_SERVER['QUERY_STRING']));exit;
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 = date("Y-m-d 00:00:00", strtotime("last month"));
} 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'];
}
switch ($_GET['ordername']) {
    case 'name':
        $order = 'b.USER_NAME';
        break;
    case 'num':
        $order = 'count(0)';
        break;
    case 'huikuanjine':
        $order = 'sum(huikuanjine)';
        break;
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:31,代码来源:salseman_ranking_list_newai.php


示例20: 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'] == "shenhedan") {
    $CaiWu = new CaiWu($db);
    $db->StartTrans();
    $billid = $_GET['单号'];
    $feiyonginfo = returntablefield("v_feiyong_sq", "单号", $billid, "金额,费用类型");
    $jine = $feiyonginfo['金额'];
    $fytype = $feiyonginfo['费用类型'];
    $sql = "update crm_feiyong_sq set 是否审核='4',出纳员='" . $_SESSION['LOGIN_USER_ID'] . "',支付时间=now() where 单号='{$billid}'";
    $rs = $db->Execute($sql);
    $CaiWu->insertFeiYongAccount($fytype, $jine, 1, $_SESSION['LOGIN_USER_ID'], -1);
    //是否事务出现错误
    if ($db->HasFailedTrans()) {
        print "<script language=javascript>alert('错误:" . str_replace("'", "\\'", $db->ErrorMsg()) . "');window.history.back(-1);</script>";
    } else {
        page_css("报销单审核");
        $return = $return . "?" . FormPageAction("action", "init_default");
        print_infor("已报销", 'trip', "location='?{$return}'", "{$return}", 0);
    }
    $db->CompleteTrans();
    exit;
}
addShortCutByDate("创建时间", "申请时间");
$filetablename = 'v_feiyong_sq';
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:31,代码来源:v_feiyong_sq_newai.php



注:本文中的validateMenuPriv函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP validatePassword函数代码示例发布时间:2022-05-23
下一篇:
PHP validateLogin函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap