chengkun
2025-05-12 b6bc92ec11e1e280185ce7682d17589cb45c20f3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<link href="images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<link href="images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" /> 
<link href="images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script> 
<link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet">
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/custom_layer.js?v={yun:}$config.cachecode{/yun}"></script>
 
<title>后台管理</title>
</head>
<body class="body_ifm">
<div class="infoboxp" >
<div class="tty-tishi_top">
  <div class="tabs_info">
    <ul>
   <li class=""> <a href="index.php?m=admin_uc" class="">整合UCenter</a></li>
      <li class="curr"><a href="index.php?m=admin_uc&c=pw" class="">整合PHPWIND</a></li>
    </ul>
  </div>
<div class="admin_new_tip">
<a href="javascript:;" class="admin_new_tip_close"></a>
<a href="javascript:;" class="admin_new_tip_open" style="display:none;"></a>
<div class="admin_new_tit"><i class="admin_new_tit_icon"></i>操作提示</div>
<div class="admin_new_tip_list_cont">
<div class="admin_new_tip_list"><b>提示:</b>如果整合失败导致后台无法进入或者出现前台用户混乱,请将根目录下/data/plus/config.php 打开找到 sy_pw_type&nbsp;将PW_UC置空,再登录后台关闭PW_UC</div>
<div class="admin_new_tip_list"><b>教程:</b><b><a href='http://www.wanxiangku.com' target="_blank">点击查看</a></b></div>
</div>
</div>
<div class="clear"></div>
 
 
<iframe id="supportiframe"  name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe> 
<form name="myform" action="index.php?m=admin_uc&c=pwsave" method="post" target="supportiframe" class="layui-form">
    <table width="100%" class="table_form">
 
    <tr>
            <th width="220">开启:</th>
            <td  >
              <div class="layui-input-block">
                 <div class="layui-input-inline">
                   <input type="radio" name="sy_pw_type" value="pw_center" id="RadioGroup1_12" {yun:}if $config.sy_uc_type=="pw_center"{/yun}checked{yun:}/if{/yun} title="开启">
                   <input type="radio" name="sy_pw_type" value="" id="RadioGroup1_13" {yun:}if $config.sy_uc_type!="pw_center"{/yun}checked{yun:}/if{/yun} title="关闭">
                 </div>
               </div>
            </td>
        </tr>
            <tr>
            <th width="220">数据库地址 UC_DBHOST:</th>
            <td><input type="text" name="UC_DBHOST" class="tty_input t_w480" value="{yun:}$ucinfo.UC_DBHOST{/yun}"> <span class="admin_web_tip">如:localhost</span></td>
            </tr>
            <tr>
            <th>数据库用户名 UC_DBUSER:</th>
            <td><input type="text" class="tty_input t_w480" name="UC_DBUSER" value="{yun:}$ucinfo.UC_DBUSER{/yun}"> <span class="admin_web_tip">PW数据库用户名</span></td>
            </tr>
            <tr>
            <th>数据库密码 UC_DBPW:</th>
            <td><input type="text" name="UC_DBPW" class="tty_input t_w480" value="{yun:}$ucinfo.UC_DBPW{/yun}"> <span class="admin_web_tip">PW数据库密码</span></td>
            </tr>
            <tr>
           <th>数据库名称 UC_DBNAME:</th>
            <td><input type="text" class="tty_input t_w480" name="UC_DBNAME" value="{yun:}$ucinfo.UC_DBNAME{/yun}"> <span class="admin_web_tip">如:phpwind</span></td>
            </tr>
            <tr>
          <th>数据表前缀 UC_DBTABLEPRE:</th>
            <td><input type="text" name="UC_DBTABLEPRE" class="tty_input t_w480" value="{yun:}$ucinfo.UC_DBTABLEPRE{/yun}"> <span class="admin_web_tip">如:pw_</span></td>
            </tr>
            <tr>
          <th>通信密钥 UC_KEY:</th>
            <td><input type="text" class="tty_input t_w480" name="UC_KEY" value="{yun:}$ucinfo.UC_KEY{/yun}"> <span class="admin_web_tip">如:phpyun123456</span></td>
            </tr>
            <tr>
            <th>Phpwind地址 UC_API:</th>
            <td><input type="text" class="tty_input t_w480" name="UC_API" value="{yun:}$ucinfo.UC_API{/yun}"> <span class="admin_web_tip">如:http://localhost/phpwind</span></td>
            </tr>
            <tr>
          <th>Phpwind编码:</th>
            <td>
              <div class="layui-input-block">
                 <div class="layui-input-inline">
                   <input type="radio" name="UC_CHARSET" value="utf8" id="RadioGroup1_12" {yun:}if $config.UC_CHARSET=="utf8"{/yun}checked{yun:}/if{/yun} title="utf8">
                   <input type="radio" name="UC_CHARSET" value="gbk" id="RadioGroup1_13" {yun:}if $config.UC_CHARSET!="gbk"{/yun}checked{yun:}/if{/yun} title="gbk">
                 </div>
               </div>
            </td>
            </tr>
            <tr>
           <th>应用ID UC_APPID:</th>
            <td><input type="text" class="tty_input t_w480" name="UC_APPID" value="{yun:}$ucinfo.UC_APPID{/yun}"> <span class="admin_web_tip">如:7</span></td>
            </tr>
        <tr>
           <th>UC APP UC_APP:</th>
            <td><input type="text" class="tty_input t_w480" name="UC_APP" value="{yun:}$ucinfo.UC_APP{/yun}"> <span class="admin_web_tip">如:20</span></td>
        </tr>
        <tr>
            <th></th>
            <td>
                <input class="layui-btn tty_sub" type="submit" name="submit" value="&nbsp;保存&nbsp;"  />    
            </td>
        </tr>
    </table>
    <input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
</form>
</div></div>
</div>
<script> 
layui.use(['layer', 'form'], function(){
    var layer = layui.layer
    ,form = layui.form
    ,$ = layui.$;
});
</script>
</body>
</html>