123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371 |
- {template 'common/header'}
-
- </style>
- <script>
- function showOrHiddenValidate(selectstr){
- // alert(selectstr);
- if(selectstr == "miniprogrampage"){
- mbiaoti.style.display = "";
- mjianjie.style.display = "";
- mlinajie.style.display = "";
- mlogo.style.display = "";
- mappid.style.display = "";
- m_web.style.display = "none";
- m_page.style.display = "";
- biaoti.value="小程序标题";
- mappid_0.style.font.color = red;
- mappid_1.style.font.color = red;
- mappid_2.style.font.color = red;
- }
- if(selectstr == "text"){
- mbiaoti.style.display = "";
- mjianjie.style.display = "none";
- mlinajie.style.display = "none";
- mlogo.style.display = "none";
- mappid.style.display = "none";
- m_web.style.display = "none";
- m_page.style.display = "none";
- mappid_0.style.display = "none";
- mappid_1.style.display = "none";
- mappid_2.style.display = "none";
-
- }
- if(selectstr == "image"){
- mbiaoti.style.display = "none";
- mjianjie.style.display = "none";
- mlinajie.style.display = "none";
- mlogo.style.display = "";
- mappid.style.display = "none";
- m_web.style.display = "none";
- m_page.style.display = "none";
- mappid_0.style.display = "none";
- mappid_1.style.display = "none";
- mappid_2.style.display = "none";
-
- }
- if(selectstr == "voice"){
- mbiaoti.style.display = "none";
- mjianjie.style.display = "";
- mlinajie.style.display = "none";
- mlogo.style.display = "none";
- mappid.style.display = "none";
- m_web.style.display = "none";
- m_page.style.display = "none";
- mappid_0.style.display = "none";
- mappid_1.style.display = "none";
- mappid_2.style.display = "none";
-
- }
-
- if(selectstr == "link"){
- mbiaoti.style.display = "";
- mjianjie.style.display = "";
- mlinajie.style.display = "";
- mlogo.style.display = "";
- mappid.style.display = "none";
- m_web.style.display = "none";
- m_page.style.display = "none";
- mappid_0.style.display = "none";
- mappid_1.style.display = "none";
- mappid_2.style.display = "none";
-
- }
- }
- </script>
-
- <ul class="nav nav-tabs">
- <li class="{$active}"><a href="{php echo $this->createWebUrl('sucaiset');}">添加帮助</a></li>
- <li class="{$active1}"><a href="{php echo $this->createWebUrl('sucailist');}">帮助列表</a></li>
-
- <li class="{$active1}"><a href="{php echo $this->createWebUrl('sucailist');}">分类列表</a></li>
-
- </ul>
-
-
-
- {if $active == 'active'}
- <div class="clearfix" ng-controller="memberProperty" id="memberProperty">
- <form action="{php echo $this->createWebUrl('savesucai')}" method="post" class="form-horizontal">
- <div class="panel panel-default">
- <div class="panel-heading">
- 知识管理 :
- {if $bianji==1}
- <span class='label label-success'>编辑模式</span>
- {else}
- <span class='label label-danger'>添加模式</span>
- {/if}
- </div>
-
- <div class="panel-body">
- <label class=" col-sm-3 col-md-2 control-label">顺序ID</label>
- <div class="col-sm-9 col-xs-12">
- <input type="text" name="sid" value="{$navmsg[0]['sid']}" class="form-control">
- <span class="help-block"> </span>
- </div>
-
- <label class="col-xs-12 col-sm-3 col-md-2 control-label">知识类型<font color=red>*</font></label>
- <div class="col-sm-9 col-xs-12">
-
- <select name="stype" class="form-control form-add-type" onChange="showOrHiddenValidate(this.options[selectedIndex].value)">
- <option value="text" > 请选择 </option>
- <option value="text" {if $navmsg[0]['stype'] == 'text'} selected="selected" {/if} >文本</option>
- <option value="link" {if $navmsg[0]['stype'] == 'link'} selected="selected" {/if} >微信图文</option>
- <option value="image" {if $navmsg[0]['stype'] == 'image'} selected="selected" {/if} >图片</option>
- <option value="miniprogrampage" {if $navmsg[0]['stype'] == 'miniprogrampage'} selected="selected" {/if} >小程序卡片</option>
- <option value="voice" {if $navmsg[0]['stype'] == 'voice'} selected="selected" {/if} >语音</option>
-
- </select>
- <span class="help-block">类型:1:文本 2:图文链接 3:图片 4:小程序卡片 ||公众号:5:语音 6.视频 </span>
- </div>
-
- <label class="col-xs-12 col-sm-3 col-md-2 control-label">关键词<font color=red>*</font></label>
- <div class="col-sm-9 col-xs-12">
- <input type="text" name="keywords" value="{$navmsg[0]['keywords']}" class="form-control">
- <span class="help-block">用户发送此关键词 将触发本消息</span>
- </div>
- <div id='mbiaoti' >
- <label id='biaoti' class="col-xs-12 col-sm-3 col-md-2 control-label">标题 </label>
- <div class="col-sm-9 col-xs-12">
- <input type="text" name="title" value="{$navmsg[0]['title']}" class="form-control">
- <span class="help-block">根据功能分别填写:文本回复 图文标题 小程序标题 </span>
- <span class="help-block">填写 [name] [id] 可用来替换成 客户的昵称和ID. </span>
-
- </div>
- </div>
- <div id='mjianjie' >
- <label class="col-xs-12 col-sm-3 col-md-2 control-label"> 附加标题 </label>
- <div class="col-sm-9 col-xs-12">
- <input type="text" name="description" value="{$navmsg[0]['description']}" class="form-control">
- <span id='m_web' class="help-block">图文消息的副标题 | 小程序 图片id| </span>
- <div id='mappid_1'> <span id='m_page' class="help-block"> 当知识类型是图片和小程序时:添加图片后自动生成,无须添加. </span></div>
- </div>
- </div>
- <div id='mlinajie' >
- <label class="col-xs-12 col-sm-3 col-md-2 control-label">图文链接地址 </label>
- <div class="col-sm-9 col-xs-12">
- <input type="text" name="url" value="{$navmsg[0]['url']}" class="form-control">
- <span id='m_web' class="help-block">图文消息的web地址 | 小程序的page路径 | 链接QQ填写:http://wpa.qq.com/msgrd?v=3&uin=这里写QQ号 </span>
- <div id='mappid_2'> <span id='m_page' class="help-block"> </span> </div>
- </div>
- </div>
- <div id='mlogo' >
- <label class="col-xs-12 col-sm-3 col-md-2 control-label">图文消息图标</label>
- <div class="col-sm-9 col-xs-12">
- {php echo tpl_form_field_image('thumb_url',$navmsg['0']['thumb_url']);}
- <span class="help-block">图文链接消息的图片链接,支持 JPG、PNG 格式,较好的效果为大图 640 X 320,小图 80 X 80</span>
- <span class="help-block">注意:回复图片和小程序所需的图片只能是png格式. 并且是3天有效期.</span>
-
- </div>
- </div>
- <div id='mappid' >
- <label class="col-xs-12 col-sm-3 col-md-2 control-label">Appid </label>
- <div class="col-sm-9 col-xs-12">
- <input type="text" name="appid" value="{$navmsg[0]['appid']}" class="form-control">
- <span class="help-block"> 关联小程序的appid ,仅对接公众号时使用 </span>
- </div>
- </div>
- </div>
- </div>
- <div class="form-group col-sm-12">
- <input type="hidden" name="id" value="{$navmsg[0]['id']}" />
- <input type="hidden" name="bianji" value="{$bianji}" />
- <input name="submit" type="submit" {if $bianji==1} value="编辑" {else} value="提交" {/if} class="btn btn-primary col-lg-1" >
- </div>
- </form>
- </div>
- {else}
- {/if}
- {if $active1 == 'active'}
- <div class="clearfix" ng-controller="memberProperty" id="memberProperty">
- <div class="panel panel-default">
- <div class="panel-heading">
- 知识库 <span class='label label-danger'>{$huancun} </span> <span class='label label-success'>提示:点[全部] 可生成素材缓存.</span>
- </div>
- <div id="js-keyword-display" ng-controller="KeywordDisplay" class="ng-scope">
-
- <div class="btn-group we7-btn-group we7-margin-bottom btn-group-justified">
-
- <a href="./index.php?c=site&a=entry&do=sucailist&m=qidong_app" class="btn {if $stype== '' } active {/if} ">全部</a>
- <a href="./index.php?c=site&a=entry&do=sucailist&m=qidong_app&stype=text" class="btn {if $stype== 'text' } active {/if} ">回复文字</a>
- <a href="./index.php?c=site&a=entry&do=sucailist&m=qidong_app&stype=image" class="btn {if $stype== 'image' } active {/if} ">回复图片</a>
- <a href="./index.php?c=site&a=entry&do=sucailist&m=qidong_app&stype=link" class="btn {if $stype== 'link' } active {/if} ">回复图文</a>
- <a href="./index.php?c=site&a=entry&do=sucailist&m=qidong_app&stype=miniprogrampage" class="btn {if $stype== 'miniprogrampage' } active {/if} ">回复小程序</a>
- <a href="./index.php?c=site&a=entry&do=sucailist&m=qidong_app&stype=vioce" class="btn {if $stype== 'vioce' } active {/if} ">回复语音</a>
- <a href="./index.php?c=site&a=entry&do=sucailist&m=qidong_app&stype=video" class="btn {if $stype== 'video' } active {/if} ">回复视频</a>
- </div>
- <div class="clearfix"></div>
-
- <div class="table-responsive panel-body">
-
- <table class="table table-hover">
- <thead class="navbar-inner">
-
-
- <tr>
- <th width=10%>数字id</th>
- <th width=100>关键字</th>
- <th width=10%>类型</th>
- <th width=20%>标题</th>
-
- <th width=20%>链接地址[小程序路径]</th>
- <th width=10%>图片</th>
- <th width=10%>过期时间</th>
- </tr>
- </thead>
- <tbody id="list">
-
- {loop $navmsg $indexid $nav}
- <tr>
- <th>{$nav['sid']} </th>
- <th><span class="label label-success">{$nav['keywords']}</span></th>
- <th> {if $nav['stype']== 'text' } <i class="wi wi-text"></i> 文本 {/if}
- {if $nav['stype']== 'link' } <i class="wi wi-appmsg"></i>图文链接 {/if}
- {if $nav['stype']== 'image' }<i class="wi wi wi-img"></i> 图片 {/if}
- {if $nav['stype']== 'miniprogrampage' } 小程序 {/if}
- {if $nav['stype']== 'voice' } 语音 {/if}
- </th>
- <th>{$nav['title']}</th>
-
- <th>{$nav['url']}</th>
-
- <th>
- {if $nav['stype'] <> 'text'}
- <img src="{$_W['attachurl']}{$nav['thumb_url']}" width="100">
- {/if}
- </th>
- <th width=15%>
- <div>{php echo date("Y-m-d H:i:s",($nav['edittime']+259200));}</div>
-
- </th>
-
- <th>
- <div class="link-group" style="min-width: 210px;">
- <form action="{php echo $this->createWebUrl('sucaiset')}" method="post">
- <input type="hidden" name="id" value="{$nav['id']}" />
- <input type="hidden" name="bianji" value="1" />
- <input name="submit" type="submit" value="编辑" class="btn btn-primary">
-
- </form>
- <form action="{php echo $this->createWebUrl('sucaidel')}" method="post">
- <input type="hidden" name="id" value="{$nav['id']}" />
- <input name="submit" type="submit" value="删除" onclick="return confirm('确认要删除本条,确认吗?');return false;" class="btn btn-danger we7-margin-left">
-
- </form>
-
- </th>
-
- </tr>
- {/loop}
- </tbody>
- </table>
-
- </div>
- </div>
- </div>
- {else}
- {/if}
- {if $active3 == 'active'}
- <div class="clearfix" ng-controller="memberProperty" id="memberProperty">
- <div class="panel panel-default">
- <div class="panel-heading">
- 检测
- </div>
- <div class="panel-body">
-
- <form action="http://vmall.woshangtong.com/json/save.php" method="post">
- <label class="col-xs-12 col-sm-3 col-md-2 control-label">模板1</label>
- <div class="col-sm-9 col-xs-12">
- <img height="300" src="/addons/qicheng_webapp/gd.png">
- <span class="help-block"></span>
- </div>
-
- <div style="display:none;">
- <input type="text" readOnly="true" name="jsonid" value='{$jsonid}' class="form-control" />
- <input type="text" readOnly="true" name="store_name" value='{$store_name}' class="form-control" />
-
- <input type="hidden" name="likes" value='{$store_logo}' class="form-control" />
- <input type="hidden" name="banben" value='109' class="form-control" />
- <input type="hidden" name="uniacid" value='{$uniacid}' class="form-control" />
- <input type="hidden" name="website" value='{$website}' class="form-control" />
- <input type="hidden" name="json" value='{$jsonall}' class="form-control" />
- </div>
- <div class="col-sm-9 col-xs-12">
-
- <input name="submit" type="submit" value="检查更新" class="btn btn-primary">
- </div>
- </form>
-
-
-
- </div>
-
- </div>
- </div>
- {else}
- {/if}
-
-
-
-
- {if $active9 == 'active'}
- <div class="clearfix" ng-controller="memberProperty" id="memberProperty">
- <div class="panel panel-default">
- <div class="panel-heading">
- 上传素材
- </div>
- <div class="panel-body">
- <form id='media' action="{php echo $this->createWebUrl('uploadimg')}" method="post" class="form-horizontal">
- <!-- <label class="col-xs-12 col-sm-3 col-md-2 control-label">小程序appId</label> -->
- <!-- <div class="col-sm-9 col-xs-12"> -->
- <!-- <input type="text" name="store_id" value="{$oldmsg['0']['store_id']}" class="form-control"> -->
- <!-- <span class="help-block">填写关联的小程序APPid</span> -->
- <!-- </div> -->
-
- <!-- <label class="col-xs-12 col-sm-3 col-md-2 control-label">网页地址/小程序路径</label> -->
- <!-- <div class="col-sm-9 col-xs-12"> -->
- <!-- <input type="text" name="wxweb" value="{$oldmsg['0']['wxweb']}" class="form-control"> -->
- <!-- <span class="help-block">需提前在微信小程序后台设置好业务域名.打开小程序的路径是page/开头</span> -->
- <!-- </div> -->
- <div id='mlogo'>
- <label class="col-xs-12 col-sm-3 col-md-2 control-label">图文消息图标</label>
- <div class="col-sm-9 col-xs-12">
- {php echo tpl_form_field_image('img',$img);}
- <input type="hidden" name="stype" value='image' class="form-control" />
- <span class="help-block">永久地址:{$result}</span>
- </div>
- </div>
- <input name="submit" type="submit" value="上传" class="btn btn-primary">
- </form>
- </div>
-
- </div>
-
-
-
- </div>
-
- </div>
-
-
-
-
-
- {else}
- {/if}
-
-
-
-
- {template 'common/footer'}
|