From e8a6594d7653d968b28941531ce54eae69e5ec94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E8=AF=9A=E8=AF=9A?= Date: Mon, 27 May 2019 11:45:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=A8=E7=BA=BF=E5=BC=80?= =?UTF-8?q?=E6=9C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webht/models/operator_model.php | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/webht/models/operator_model.php b/webht/models/operator_model.php index 720d19f0..0a71edca 100644 --- a/webht/models/operator_model.php +++ b/webht/models/operator_model.php @@ -161,6 +161,29 @@ class Operator_model extends CI_Model } return $result; } + + public function get_webhtuser_by_id($whu_uid){ + $sql=" + SELECT TOP 1 wu.whu_uid, + wu.whu_uname, + wu.whu_email, + wu.whu_ip, + wu.whu_mac, + wu.whu_status, + wu.whu_isadmin, + wu.department + FROM webht_user wu + WHERE wu.whu_uid = ? + "; + $query = $this->HT->query($sql,array($whu_uid)); + if ($query->num_rows() > 0) + { + $row = $query->row(); + return $row; + }else{ + return false; + } + } public function get_webhtuser_by_name($whu_uname,$filed='whu_uid',$flag=false) { @@ -178,6 +201,7 @@ class Operator_model extends CI_Model $result=$result[0]->$filed; } } + //print_r($this->HT->queries); return $result; } @@ -188,7 +212,8 @@ class Operator_model extends CI_Model { return false; } - + //echo $OPI_Name; + $sql = "SELECT TOP $top oi.OPI_SN, \n" . " oi.OPI_Name, \n" . " oi.OPI_Email,OPI_MoveTelephone,OPI_Telephone, \n"