1+ <?php
2+ # MetInfo Enterprise Content Management System
3+ # Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved.
4+ require_once '../login/login_check.php ' ;
5+ $ admin_listed = $ db ->get_one ("SELECT * FROM $ met_admin_table WHERE id=' $ id' " );
6+ if (!$ admin_listed )metsave ('-1 ' ,$ lang_dataerror );
7+ if ($ admin_list [langok]!='metinfo ' ){
8+ foreach ($ met_langok as $ key =>$ val ){
9+ $ langoka =explode ('- ' ,$ admin_list [langok]);
10+ for ($ i =0 ;$ i <count ($ langoka );$ i ++){
11+ if ($ langoka [$ i ]==$ val [mark])$ met_langoka []=$ val ;
12+ }
13+ }
14+ }else {
15+ $ met_langoka =$ met_langok ;
16+ }
17+ if ($ admin_listed [langok]=="metinfo " ){
18+ $ langok1 ="checked='checked' " ;
19+ foreach ($ met_langok as $ key =>$ val ){
20+ $ langok2 [$ val [mark]]="checked='checked' " ;
21+ }
22+ }else {
23+ $ langokb =explode ('- ' ,$ admin_listed [langok]);
24+ foreach ($ langokb as $ key =>$ val ){
25+ $ langok2 [$ val ]="checked='checked' " ;
26+ }
27+ }
28+ if ($ admin_listed [admin_group]==0 ){
29+ if ($ admin_listed [admin_issueok]==1 )$ admin_issue_ok ="checked='checked' " ;
30+ $ admin_op =explode ('- ' ,$ admin_listed ['admin_op ' ]);
31+ if ($ admin_op [0 ]=="metinfo " ||$ admin_listed [admin_op]=="metinfo " ){
32+ $ admin_op_0 ="checked='checked' " ;
33+ $ admin_op_1 ="checked='checked' " ;
34+ $ admin_op_2 ="checked='checked' " ;
35+ $ admin_op_3 ="checked='checked' " ;
36+ }else {
37+ if ($ admin_op [1 ]=="add " )$ admin_op_1 ="checked='checked' " ;
38+ if ($ admin_op [2 ]=="editor " )$ admin_op_2 ="checked='checked' " ;
39+ if ($ admin_op [3 ]=="del " )$ admin_op_3 ="checked='checked' " ;
40+ }
41+ }
42+ $ sexx [$ admin_listed [admin_sex]]="checked='checked' " ;
43+ $ admin_groupx [$ admin_listed [admin_group]]="checked='checked' " ;
44+ $ metmanager =1 ;
45+ $ query ="select * from $ met_app where download=1 " ;
46+ $ app =$ db ->get_all ($ query );
47+ require_once '../include/metlist.php ' ;
48+ $ css_url ="../templates/ " .$ met_skin ."/css " ;
49+ $ img_url ="../templates/ " .$ met_skin ."/images " ;
50+ include template ('admin/admin_editor ' );
51+ footer ();
52+ # 本程序是一个开源系统,使用时请你仔细阅读使用协议,商业用途请自觉购买商业授权.
53+ # Copyright (C) 长沙米拓信息技术有限公司 (http://www.metinfo.cn). All rights reserved.
54+ ?>
0 commit comments