4dbc6ad7cb87299e770a129d15f028278d772884.file.pic.lbi.php 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. <?php /* Smarty version Smarty-3.1.7, created on 2016-12-20 18:01:20
  2. compiled from "D:/phpStudy/WWW_krpano100/vradmin/template\lib\pic.lbi" */ ?>
  3. <?php /*%%SmartyHeaderCode:2166358590170e3d336-33539221%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4. $_valid = $_smarty_tpl->decodeProperties(array (
  5. 'file_dependency' =>
  6. array (
  7. '4dbc6ad7cb87299e770a129d15f028278d772884' =>
  8. array (
  9. 0 => 'D:/phpStudy/WWW_krpano100/vradmin/template\\lib\\pic.lbi',
  10. 1 => 1476687922,
  11. 2 => 'file',
  12. ),
  13. ),
  14. 'nocache_hash' => '2166358590170e3d336-33539221',
  15. 'function' =>
  16. array (
  17. ),
  18. 'variables' =>
  19. array (
  20. '_lang' => 0,
  21. 'recommon' => 0,
  22. 'uid' => 0,
  23. 'time_s' => 0,
  24. 'time_e' => 0,
  25. 'pname' => 0,
  26. 'res' => 0,
  27. 'v' => 0,
  28. ),
  29. 'has_nocache_code' => false,
  30. 'version' => 'Smarty-3.1.7',
  31. 'unifunc' => 'content_58590171177b5',
  32. ),false); /*/%%SmartyHeaderCode%%*/?>
  33. <?php if ($_valid && !is_callable('content_58590171177b5')) {function content_58590171177b5($_smarty_tpl) {?><style>
  34. .num_edit{
  35. float:right;
  36. margin-right:10px;
  37. cursor: pointer;
  38. }
  39. </style>
  40. <h3>
  41. <form action="/<?php echo $_smarty_tpl->tpl_vars['_lang']->value['admin_path'];?>
  42. /?m=pic" method="post">
  43. <table>
  44. <tr>
  45. <th width="50"><label><input type="checkbox" name="recommon" value="1" <?php if ($_smarty_tpl->tpl_vars['recommon']->value==1){?>checked<?php }?>/> 推荐</label></td>
  46. <th width="60">会员ID:</th>
  47. <td>
  48. <input class="common-text" placeholder="请输入会员ID" name="uid" value="<?php echo $_smarty_tpl->tpl_vars['uid']->value;?>
  49. " size="10" type="text"/>
  50. </td>
  51. <th width="60">发布时间:</th>
  52. <td>
  53. <input id="time_s" name="time_s" value="<?php echo $_smarty_tpl->tpl_vars['time_s']->value;?>
  54. " size="10" onfocus="ca_show('time_s', this, '-');" readonly="" ondblclick="this.value='';" type="text"/>
  55. -
  56. <input id="time_e" name="time_e" value="<?php echo $_smarty_tpl->tpl_vars['time_e']->value;?>
  57. " size="10" onfocus="ca_show('time_e', this, '-');" readonly="" ondblclick="this.value='';" type="text"/>
  58. </td>
  59. <th width="60">项目名称:</th>
  60. <td>
  61. <input class="common-text" placeholder="请输入项目名称" name="pname" value="<?php echo $_smarty_tpl->tpl_vars['pname']->value;?>
  62. " type="text"/>
  63. </td>
  64. <td><input class="btn btn-primary btn2" name="sub" value="查询" type="submit"></td>
  65. </tr>
  66. </table>
  67. </form>
  68. </h3>
  69. <table class="tableBasic" border="0" cellpadding="8" cellspacing="0" width="100%" >
  70. <tr>
  71. <th class="tc">项目ID</th>
  72. <th>会员ID</th>
  73. <th>缩略图</th>
  74. <th>项目名称</th>
  75. <th>发布人</th>
  76. <th>发布时间</th>
  77. <th>是否允许推荐</th>
  78. <th>是否推荐</th>
  79. <th>排序&nbsp;&nbsp;<img src="/static/images/ico/notice.png" title="默认999,数字越小越靠前" style="cursor: pointer;"></th>
  80. <th>浏览量</th>
  81. <th>点赞量</th>
  82. <th>二维码</th>
  83. <th>操作</th>
  84. </tr>
  85. <?php $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
  86. $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
  87. $_from = $_smarty_tpl->tpl_vars['res']->value['res']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  88. foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
  89. $_smarty_tpl->tpl_vars['v']->_loop = true;
  90. $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
  91. ?>
  92. <tr style="text-align: center;">
  93. <td><a target="_blank" href="/tour/<?php echo $_smarty_tpl->tpl_vars['v']->value['view_uuid'];?>
  94. "><?php echo $_smarty_tpl->tpl_vars['v']->value['pk_works_main'];?>
  95. </a></td>
  96. <td><?php echo $_smarty_tpl->tpl_vars['v']->value['pk_user_main'];?>
  97. </td>
  98. <td style="width: 110px;cursor: pointer;"><img src="<?php echo $_smarty_tpl->tpl_vars['v']->value['thumb_path'];?>
  99. " width="80" height="80" onclick="window.open('/tour/<?php echo $_smarty_tpl->tpl_vars['v']->value['view_uuid'];?>
  100. ')"></td>
  101. <td id="p_<?php echo $_smarty_tpl->tpl_vars['v']->value['pk_works_main'];?>
  102. "><a target="_blank" href="/tour/<?php echo $_smarty_tpl->tpl_vars['v']->value['view_uuid'];?>
  103. "><?php echo $_smarty_tpl->tpl_vars['v']->value['name'];?>
  104. </a></td>
  105. <td><?php echo $_smarty_tpl->tpl_vars['v']->value['nickname'];?>
  106. </td>
  107. <td style="width: 150px;"><?php echo $_smarty_tpl->tpl_vars['v']->value['create_time'];?>
  108. </td>
  109. <td style="width: 80px;"><?php if ($_smarty_tpl->tpl_vars['v']->value['flag_allowed_recomm']==0){?><span style="color: #c40000">否</span><?php }else{ ?>是<?php }?></td>
  110. <td style="width: 80px; cursor: pointer;" onclick="edit_recommon(<?php echo $_smarty_tpl->tpl_vars['v']->value['pk_works_main'];?>
  111. )" id="recomm_<?php echo $_smarty_tpl->tpl_vars['v']->value['pk_works_main'];?>
  112. "><?php if ($_smarty_tpl->tpl_vars['v']->value['recommend']==0){?><img src="/static/images/ico/no.gif" ><?php }else{ ?><img src="/static/images/ico/yes.gif" ><?php }?></td>
  113. <td style="width:100px">
  114. <input type="text" class="inpEdit" value="<?php echo $_smarty_tpl->tpl_vars['v']->value['sort'];?>
  115. " onBlur="javascript:edit(<?php echo $_smarty_tpl->tpl_vars['v']->value['pk_works_main'];?>
  116. ,3,this);"/
  117. </td>
  118. <td style="width:100px">
  119. <input type="text" class="inpEdit" value="<?php echo $_smarty_tpl->tpl_vars['v']->value['browsing_num'];?>
  120. " onBlur="javascript:edit(<?php echo $_smarty_tpl->tpl_vars['v']->value['pk_works_main'];?>
  121. ,1,this);"/>
  122. </td>
  123. <td style="width:100px">
  124. <input type="text" class="inpEdit" value="<?php echo $_smarty_tpl->tpl_vars['v']->value['praised_num'];?>
  125. " onBlur="javascript:edit(<?php echo $_smarty_tpl->tpl_vars['v']->value['pk_works_main'];?>
  126. ,2,this);"/>
  127. </td>
  128. <td><a target="_blank" href="http://qr.liantu.com/api.php?w=300&m=10&text=<?php echo $_smarty_tpl->tpl_vars['_lang']->value['host'];?>
  129. tour/<?php echo $_smarty_tpl->tpl_vars['v']->value['view_uuid'];?>
  130. ">打开查看</a></td>
  131. <td><a class="red" href="javascript:;" onClick="javascript:del_project(<?php echo $_smarty_tpl->tpl_vars['v']->value['pk_works_main'];?>
  132. );">删除</a></td>
  133. </tr>
  134. <?php } ?>
  135. </table>
  136. <div class="list-page"><?php echo $_smarty_tpl->getSubTemplate ("lib/pages.lbi", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
  137. </div>
  138. <script type="text/javascript">
  139. //删除项目
  140. function del_project(pid){
  141. var pname = $("#p_"+pid).text();
  142. if(confirm("确认删除项目“"+pname+"”吗?")){
  143. $.post("/<?php echo $_smarty_tpl->tpl_vars['_lang']->value['admin_path'];?>
  144. /?m=pic",{act:"delete",pid:pid},function(data){
  145. var data = json_decode(data);
  146. if(data.status==1){
  147. alert('成功删除项目');
  148. window.location.reload();
  149. }else{
  150. alert("删除失败");
  151. }
  152. });
  153. }
  154. }
  155. function edit(pid,type,ele){
  156. var num = parseInt($(ele).val());
  157. $(ele).addClass('inpEditing');
  158. $(ele).val('');
  159. if(isNaN(num) || num<1){
  160. alert('请输入大于0的整数');
  161. $(ele).removeClass('inpEditing');
  162. return false;
  163. }
  164. $.post("/<?php echo $_smarty_tpl->tpl_vars['_lang']->value['admin_path'];?>
  165. /?m=pic",{
  166. act:"edit_num",
  167. type:type,
  168. num:num,
  169. pid:pid
  170. },function(res){
  171. res = eval("("+res+")");
  172. if (res.flag==1) {
  173. $(ele).removeClass('inpEditing');
  174. $(ele).val(res.num);
  175. }
  176. })
  177. }
  178. function edit_recommon(pid){
  179. $.post("/<?php echo $_smarty_tpl->tpl_vars['_lang']->value['admin_path'];?>
  180. /?m=pic",{
  181. act:"edit_recommon",
  182. pid:pid
  183. },function(res){
  184. res = eval("("+res+")");
  185. if (res.flag==1) {
  186. $("#recomm_"+pid).html('<img src="/static/images/ico/'+(res.recommend==0?"yes":"no")+'.gif" >');
  187. }else{
  188. alert("操作失败");
  189. }
  190. })
  191. }
  192. </script><?php }} ?>