| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232 |
- <include file="public@header" />
- </head>
- <body>
- <div class="wrap js-check-wrap">
- <ul class="nav nav-tabs">
- <li class="active"><a href="{:url('Message/index')}">加盟咨询</a></li>
- <if condition="$qx"><li><a href="{:url('Message/add')}">添加咨询</a></li></if>
- </ul>
- <if condition="$qx">
- <!--树选择数据-->
- <include file="public/category_data_tree" />
- <script>
- var setting = {
- data: {
- simpleData: {
- enable: true,
- pIdKey:'parent_id',
- }
- },
- callback: {
- onClick: onClick
- }
- };
- var data_list={$cate_tree};
- $.fn.zTree.init($("#treeUl"), setting, data_list);
- var treeObj = $.fn.zTree.getZTreeObj("treeUl");
- var nodes = treeObj.getNodes();
-
- var node = treeObj.getNodeByParam("id", {$catid});
- treeObj.selectNode(node);
- treeObj.expandNode(node);
-
-
- function onClick(event, treeId, treeNode, clickFlag) {
- window.location.href="{:url('Message/index')}"+'?catid='+treeNode.id;
- }
-
- </script>
- </if>
- <div style="float:left; width:80%;">
-
- <form method="post" action="{:url('Message/export')}" class="form-horizontal js-ajax-form margin-top-20">
-
- <table class="table table-hover table-bordered">
- <thead>
- <tr>
- <?php if($qx){ ?>
- <th width="40"><input type="checkbox" onclick="checkall(this.form);"></th>
- <?php }else{ ?>
- <th width="40">序号</th>
- <?php }?>
- <th width="150">品牌</th>
- <th width="130">新闻</th>
- <th width="70">分类</th>
- <!--<th width="120">新闻</th>-->
- <th width="100">姓名</th>
- <th width="80">IP</th>
- <th width="100">所在区域</th>
- <th width="80">投资额度</th>
- <th width="180">电话</th>
- <!-- <th width="80">回访时间</th> -->
- <th>留言内容</th>
- <th width="180">留言时间</th>
- <?php if($qx){ ?>
- <th width="120">操作</th>
- <?php } ?>
- </tr>
- </thead>
- <tbody>
- <foreach name="lists" item="vo">
- <tr>
- <?php if($qx){ ?>
- <td><input type="checkbox" name="msg[]" value="{$vo.id}"></td>
- <?php }else{ ?>
- <td width="40"><?php echo $i=$i+1; ?></td>
- <?php }?>
- <td><a target="_blank" href="/b{$vo.jm_id}">{$vo.jm_title}</a></td>
- <?php if($vo['news_id']>0){ ?>
- <td><a target="_blank" href="/news{$vo.news_id}">{$vo.news_kw} </td>
- <?php }else{ ?>
- <td></td>
- <?php } ?>
-
- <td>{$vo.catname}</td>
-
- <td>{$vo.name}</td>
- <td>{$vo.ip}</td>
- <td>{$vo.area}</td>
- <td>{$vo.tzed}</td>
- <td id="m{$vo.id}" >{$vo.mobile}
- <?php if(!$qx){ ?>
- <if condition="$fenpei.enable==1">
- <a class="mobile" data="{$vo.id}" href="javascript:;" > 查看</a>
- <span class="label label-success" title="已被查看{$vo.vid}次">{$vo.vid}</span>
- </if>
- <?php }?>
- </td>
-
- <!-- <td>{$vo.lxsj}</td> -->
- <td>{$vo.content}</td>
- <td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td>
- <?php if($qx){ ?>
- <td>
-
- <a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('Message/delete',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>
- <a class="btn btn-xs btn-primary" href="{:url('Message/edit1',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
- </td>
- <?php } ?>
- </tr>
- </foreach>
- </tbody>
- <?php if(!$qx){ ?>
- <tbody><tr>
- <td colspan="11">
- <if condition="$fenpei.enable==1">
- <input class="btn btn-sm btn-primary js-ajax-submit" type="submit" name="export" value="导出已查看信息">
- <span> 可查看条数 :<span class="label label-success" title="">{$fenpei.tiaoshu}</span></span>
- <span> 剩余查看点数 :<span class="label label-success" id="points" title="">{$fenpei.points}</span></span>
- <else/>
- <input class="btn btn-sm btn-primary js-ajax-submit" type="submit" name="export" value="导出信息">
- <span> 可查看条数 :<span class="label label-success" title="">{$fenpei.tiaoshu}</span></span>
- </if>
-
- </td>
- </tr>
- </tbody>
- <?php }?>
- <?php if($qx){ ?>
- <!-- <tr>
- <td colspan="10">
- 选择用户:
- <foreach name="users" item="v1">
- <input type="checkbox" name="members[]" value="{$v1.id}"> {$v1.user_login}
- </foreach>
- </td>
- </tr>
- <tr>
- <th colspan="10">
- <input type="submit" class="btn btn-xs btn-primary" value="分配">
- </th>
- </tr> -->
- <?php } ?>
- </table>
- </form>
- <?php if($qx){ ?>
- <div class="pagination">{$lists->render()}</div>
- <?php } ?>
- </div>
- <script src="__STATIC__/js/admin.js"></script>
- <script>
- $(".mobile").click(function () {
- Wind.css('layer');
- var getid=$(this).attr("data");
- var $_this = this,
- $this = $($_this),
- href = $this.data('href'),
- refresh = $this.data('refresh'),
- msg = $this.data('msg');
- href = href ? href : $this.attr('href');
- art.dialog({
- title: false,
- icon: 'question',
- content: "提示" ? "查看隐藏号码需扣除一次点数,重复查看不扣点数" : '确定要删除吗?',
- close: function () {
- $_this.focus(); //关闭时让触发弹窗的元素获取焦点
- return true;
- },
- okVal: "确定",
- ok: function () {
- $.ajax({
- url:'tomobile.html',
- type:'get',
- data:{id:getid},
- beforeSend: function (xhr) {
- // $('#loading').modal('show');
- //加载层
-
- }
- ,
- success: function (res) {
- if(res.code=='1'){
- // $("#m"+getid).html('数据获取错误');
-
- $("#m"+getid).html(res.msg.mobile);
- $("#points").html(res.msg.points);
- console.log(res);
- }else{
- Wind.use("layer", function () {
- layer.msg(res.msg, {icon: 5});
- });
- }
- // $('#loading').modal('hide');
- }
- });
- },
- cancelVal: '关闭',
- cancel: true
- });
-
-
-
- });
- </script>
- <script>
- function checkall(f, t) {
- var t = t ? t : 1;
- for(var i = 0; i < f.elements.length; i++) {
- var e = f.elements[i];
- if(e.type != 'checkbox') continue;
- if(e.name=='msg[]'){
- if(t == 1) e.checked = e.checked ? false : true;
- if(t == 2) e.checked = true;
- if(t == 3) e.checked = false;
- }
- }
- }
- </script>
-
- </div>
- </body>
- </html>
|