-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
898 additions
and
230 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
/** | ||
* | ||
*@file ajax.php | ||
*@author xieyoujiang | ||
*@data 2016年1月30日 | ||
*@language PHP | ||
*@e-mail xie_youjiang@163.com | ||
*@copyright(c) 扬州格佳科技有限公司 | ||
* | ||
*/ | ||
require_once './classpackage/Db.class.php'; | ||
if(isset($_GET['id'])) | ||
{ | ||
|
||
$strUserSql = "select f_username,f_password,f_fullname,f_phone,f_rank,f_head,f_head_phone,f_boss_phone,f_time,f_last_login,f_last_ip,f_last_time from t_users where f_id = ? order by f_id"; | ||
|
||
$strRankSql = "select f_id,f_title from t_rank where f_type=1"; | ||
|
||
$strBossSql = "select f_id,f_fullname from t_head where f_boss>0"; | ||
|
||
$rsUser = DbOperator::querySql($strUserSql,array($_GET['id'])); | ||
|
||
$rsRank = DbOperator::queryAll($strRankSql); | ||
|
||
$rsBoss = DbOperator::queryAll($strBossSql); | ||
|
||
|
||
$rsUser['rank'] = $rsRank; | ||
$rsUser['boss'] = $rsBoss; | ||
|
||
|
||
echo json_encode($rsUser, JSON_UNESCAPED_UNICODE); | ||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.