<?php 
require_once "common.inc.php";
header("Content-type: text/html; charset=utf-8");
$mod = $_GET[mod];
$id = $_G["id"];
require_once "wechat_MySqlConn.php";
require_once "wechatLoop.php";
$wechatObj = new wechatFlow();
if ($mod) {
    switch ($mod) {
        case "modified":
            $id = $wechatObj->updateWithArray($_POST, "rel_manager", $id);
            /*$id = $wechatObj->insertWithArray($_POST, "rel_manager");*/
            if (is_numeric($id)) {
                echo $wechatObj->return_json(0, $id);
            } else {
                echo $wechatObj->return_json(72056, $id);
            }
            break;
    }
    exit;
}
$value = mysql_query("select * from rel_manager where id=" . $id);
while ($row = mysql_fetch_array($value)) {
    $manager_name = $row['manager_name'];
    $id = $row['id'];
    $address = $row['address'];
    $phone = $row['phone'];
    $company = $row['company'];
    $job = $row['job'];
}
Beispiel #2
0
require_once "common.inc.php";
header("Content-type: text/html; charset=utf-8");
$othersql = " uid=" . $_G[id] . " order by id asc";
$uid = $_G[id];
$mod = $_GET[mod];
require_once "wechatLoop.php";
$wechatObj = new wechatFlow();
mysql_query("CREATE TABLE IF NOT EXISTS pro_process (\r\n    id int not null primary key auto_increment\r\n)");
//创建表
if ($mod) {
    switch ($mod) {
        case "oper":
            if ($_POST) {
                echo $wechatObj->category_oper($_POST);
            } else {
                echo $wechatObj->return_json(72003, "post null");
            }
            break;
        case "select":
            $data = $_POST['data'];
            $id = $_POST['id'];
            $result = $id;
            // print_r($data);
            if ($result) {
                echo $result;
            } else {
                echo $wechatObj->return_json(72058, $id);
            }
            break;
            break;
    }
Beispiel #3
0
                }
            }
        }
        //print $line;
    }
    // print $lines;
}
if ($mod) {
    switch ($mod) {
        case "out":
            $pro_id = $_POST['id'];
            $pro_name = $_POST["pro_name"];
            $data = $wechatObj->query_pro($tableName, $uid, $pro_id, 0);
            //$wechatObj->extend_excel($data, 'pro_name');
            if ($pro_id) {
                echo $wechatObj->return_json(0, $pro_id);
            } else {
                echo $wechatObj->return_json(72099, $pro_id);
            }
            break;
        case "check":
            $data = $_POST['data'];
            $id = $data["id"];
            if ($scores = $data["scores"]) {
                $data = query_pro($tableName, $uid, $id, $scores);
            } else {
            }
            $lines = print_lines($data);
            //print($lines);
            if (is_numeric($id)) {
                echo $wechatObj->return_json(0, $lines);