123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209 |
- {template 'common/header'}
- {template 'profile/common'}
- {if $do == 'uc_setting'}
- <div class="main js-profile-uc" ng-controller="ucCtrl">
- <form id="form1" action="{php echo url('profile/common/uc_setting')}" method="post" class="we7-form form ng-cloak" >
- <div class="panel panel-default">
- <div class="panel-heading">
- 设置UC参数
- </div>
- <div class="panel-body">
- <div class="alert alert-info">
- <p>
- 使用UC能够整合其他系统的会员信息. 如果你不清楚此功能的作用, 请咨询您的技术人员. <br />
- 1. 在UC系统中增加新的应用, 并填写[应用接口文件名称]为: uc.php?uniacid={$_W['uniacid']} <br />
- 2. 在下方启用UC, 并按照UC系统中新增的应用参数填写
- </p>
- </div>
- <div class="form-group">
- <label class="col-xs-12 col-sm-3 col-md-2 control-label">启用UC</label>
- <div class="col-sm-8">
- <input type="radio" id="status1" name="status" ng-model="uc.status" value="1"/>
- <label class="radio-inline" for="status1">开启</label>
- <input type="radio" id="status0" name="status" ng-model="uc.status" value="0"/>
- <label class="radio-inline" for="status0">关闭</label>
- <span class="help-block">使用UC能够整合其他系统的会员信息. 如果你不清楚此功能的作用, 请咨询您的技术人员.</span>
- </div>
- </div>
- <div ng-show="uc.status == '1'">
- <div class="form-group">
- <label class="col-xs-12 col-sm-3 col-md-2 control-label">快速录入</label>
- <div class="col-sm-8 col-xs-12">
- <textarea class="form-control" rows="6" id="textarea"></textarea>
- <span class="help-block">你可以直接复制UC中的[应用的 UCenter 配置信息]来快速搞定配置参数.</span>
- </div>
- </div>
- <div class="form-group">
- <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
- <div class="col-sm-8 col-xs-12">
- <input id="submit" type="button" class="btn btn-primary" value="一键录入">
- </div>
- </div>
- <div class="form-group">
- <label class="col-xs-12 col-sm-3 col-md-2 control-label">通行证名称</label>
- <div class="col-sm-8 col-xs-12">
- <input type="text" name="title" class="form-control" value="{{uc.title}}" autocomplete="off">
- <span class="help-block">请输入你的通行证名称, 方便与UC系统联系.比如: 你的论坛名字</span>
- </div>
- </div>
- <div class="form-group">
- <label class="col-xs-12 col-sm-3 col-md-2 control-label">应用ID</label>
- <div class="col-sm-8 col-xs-12">
- <input type="text" name="appid" class="form-control" value="{{uc.appid}}" autocomplete="off">
- </div>
- </div>
- <div class="form-group">
- <label class="col-xs-12 col-sm-3 col-md-2 control-label">通信密钥</label>
- <div class="col-sm-8 col-xs-12">
- <input type="text" name="key" class="form-control" value="{{uc.key}}" autocomplete="off"/>
- </div>
- </div>
- <div class="form-group">
- <label class="col-xs-12 col-sm-3 col-md-2 control-label">UCenter字符集</label>
- <div class="col-sm-8 col-xs-12">
- <input type="text" name="charset" class="form-control" value="{{uc.charset}}" autocomplete="off"/>
- </div>
- </div>
- <div class="form-group">
- <label class="col-xs-12 col-sm-3 col-md-2 control-label">通信方式</label>
- <div class="col-sm-8 col-xs-12">
- <input type="radio" id="connect-1" name="connect" ng-model="uc.connect" value="mysql"/>
- <label class="radio-inline" for="connect-1">MYSQL方式</label>
- <input type="radio" id="connect-2" name="connect" ng-model="uc.connect" value="http"/>
- <label class="radio-inline" for="connect-2">远程方式HTTP</label>
- </div>
- </div>
- <div class="tb mysql" ng-show="uc.connect == 'mysql';">
- <div class="form-group">
- <label class="col-xs-12 col-sm-3 col-md-2 control-label">数据库主机</label>
- <div class="col-sm-8 col-xs-12">
- <input type="text" name="dbhost" class="form-control" value="{{uc.dbhost}}" autocomplete="off">
- </div>
- </div>
- <div class="form-group">
- <label class="col-xs-12 col-sm-3 col-md-2 control-label">数据库用户名</label>
- <div class="col-sm-8 col-xs-12">
- <input type="text" name="dbuser" class="form-control" value="{{uc.dbuser}}" autocomplete="off"/>
- </div>
- </div>
- <div class="form-group">
- <label class="col-xs-12 col-sm-3 col-md-2 control-label">数据库密码</label>
- <div class="col-sm-8 col-xs-12">
- <input type="text" name="dbpw" class="form-control" value="{{uc.dbpw}}" autocomplete="off"/>
- </div>
- </div>
- <div class="form-group">
- <label class="col-xs-12 col-sm-3 col-md-2 control-label">数据库名称</label>
- <div class="col-sm-8 col-xs-12">
- <input type="text" name="dbname" class="form-control" value="{{uc.dbname}}" autocomplete="off"/>
- </div>
- </div>
- <div class="form-group">
- <label class="col-xs-12 col-sm-3 col-md-2 control-label">数据库字符集</label>
- <div class="col-sm-8 col-xs-12">
- <input type="text" name="dbcharset" class="form-control" value="{{uc.dbcharset}}" autocomplete="off"/>
- </div>
- </div>
- <div class="form-group">
- <label class="col-xs-12 col-sm-3 col-md-2 control-label">表前缀</label>
- <div class="col-sm-8 col-xs-12">
- <input type="text" name="dbtablepre" class="form-control" value="{{uc.dbtablepre}}" autocomplete="off"/>
- </div>
- </div>
- <div class="form-group">
- <label class="col-xs-12 col-sm-3 col-md-2 control-label">是否持久连接</label>
- <div class="col-sm-8 col-xs-12">
- <input type="radio" id="dbconnect-1" name="dbconnect" value="1" ng-model="uc.dbconnect"/>
- <label class="radio-inline" for="dbconnect-1">是</label>
- <input type="radio" id="dbconnect-2" name="dbconnect" value="0" ng-model="uc.dbconnect"/>
- <label class="radio-inline" for="dbconnect-2">否</label>
- </div>
- </div>
- </div>
- <div class="tb http" ng-show="uc.connect != 'mysql';">
- <div class="form-group">
- <label class="col-xs-12 col-sm-3 col-md-2 control-label">服务端URL地址</label>
- <div class="col-sm-8 col-xs-12">
- <input type="text" name="api" class="form-control" value="{{uc.api}}" autocomplete="off"/>
- </div>
- </div>
- <div class="form-group">
- <label class="col-xs-12 col-sm-3 col-md-2 control-label">服务端IP</label>
- <div class="col-sm-8 col-xs-12">
- <input type="text" name="ip" class="form-control" value="{{uc.ip}}" autocomplete="off"/>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="form-group col-sm-12">
- <input type="submit" name="submit" value="提交" class="btn btn-primary col-lg-1" />
- <input type="hidden" name="token" value="{$_W['token']}" />
- </div>
- </form>
- </div>
- <script type="text/javascript">
- angular.module('profileApp').value('config', {
- 'uc' : {php echo json_encode($uc)}
- });
- angular.bootstrap($('.js-profile-uc'), ['profileApp']);
- //处理快速录入
- </script>
- {elseif $do == 'upload_file'}
- <div class="main">
- <form id="form21" action="{php echo url('profile/common/upload_file')}" method="post" class="we7-form form" enctype="multipart/form-data">
- <div class="panel-body">
- <div class="alert alert-info">
- <p>
- 设置JS接口安全域名,需要上传的文件。 <br />
- </p>
- </div>
- <table class="we7-table table-hover table-form">
- <col width="150px"/>
- <col />
- <col width="150px"/>
- <tr>
- <th colspan="3">上传js接口文件</th>
- </tr>
- <tr>
- <td>上传文件</td>
- <td class="color-gray"></td>
- <td class="text-right">
- <div class="link-group">
- <a href="javascript:;" data-toggle="modal" data-target="#jsauth_acid">修改</a>
- </div>
- </td>
- </tr>
- </table>
- <div class="modal fade" id="jsauth_acid" tabindex="-1" role="dialog" aria-hidden="true">
- <div class="we7-modal-dialog modal-dialog">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
- <div class="modal-title">选择公众号</div>
- </div>
- <div class="modal-body">
- <div class="form-group">
- <label class="col-xs-12 col-sm-3 col-md-2 control-label">上传文件</label>
- <div class="col-sm-8">
- <input type="file" name="file" value="">
- </div>
- </div>
- </div>
- <div class="modal-footer">
- <input type="hidden" name="token" value="{$_W['token']}" />
- <input type="submit" class="btn btn-primary" name="submit" value="上传" />
- <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
- </div>
- </div>
- </div>
- </div>
-
- </div>
- </form>
- </div>
- {/if}
- {template 'common/footer'}
-
|