e11c4a8e0e6b3899c477b5db7825b404.php 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369
  1. <?php if (!defined('THINK_PATH')) exit(); /*a:7:{s:86:"/home/www/wwwroot/cjq.wngluo.org.cn/vendor/skycaiji/app/admin/view/taskgroup/list.html";i:1750210657;s:83:"/home/www/wwwroot/cjq.wngluo.org.cn/vendor/skycaiji/app/admin/view/common/main.html";i:1750210657;s:92:"/home/www/wwwroot/cjq.wngluo.org.cn/vendor/skycaiji/app/admin/view/common/header_public.html";i:1750210657;s:85:"/home/www/wwwroot/cjq.wngluo.org.cn/vendor/skycaiji/app/admin/view/common/footer.html";i:1750210657;s:92:"/home/www/wwwroot/cjq.wngluo.org.cn/vendor/skycaiji/app/admin/view/common/footer_public.html";i:1750210657;s:94:"/home/www/wwwroot/cjq.wngluo.org.cn/vendor/skycaiji/app/common/view/common/browser_is_old.html";i:1750210657;s:95:"/home/www/wwwroot/cjq.wngluo.org.cn/vendor/skycaiji/app/common/view/common/page_translator.html";i:1750210657;}*/ ?>
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  7. <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  8. <title><?php echo g_sc('html_tag_title')?(g_sc('html_tag_title').' - '):''; ?>蓝天采集器后台管理</title>
  9. <meta name="generator" content="skycaiji" />
  10. <meta http-equiv="x-dns-prefetch-control" content="on">
  11. <link rel="icon" href="data:image/ico;base64,aWNv">
  12. <!-- Bootstrap 3.3.7 -->
  13. <link rel="stylesheet" href="/public/bootstrap/css/bootstrap.min.css?<?php echo \think\Config::get('html_v'); ?>">
  14. <!-- Font Awesome -->
  15. <link rel="stylesheet" href="/public/addon/font-awesome/css/font-awesome.min.css?<?php echo \think\Config::get('html_v'); ?>">
  16. <!-- Ionicons -->
  17. <link rel="stylesheet" href="/public/addon/Ionicons/css/ionicons.min.css?<?php echo \think\Config::get('html_v'); ?>">
  18. <!-- Theme style -->
  19. <link rel="stylesheet" href="/public/adminlte/dist/css/AdminLTE.min.css?<?php echo \think\Config::get('html_v'); ?>">
  20. <link rel="stylesheet" href="/public/adminlte/dist/css/skins/_all-skins.min.css?<?php echo \think\Config::get('html_v'); ?>">
  21. <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  22. <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  23. <!--[if lt IE 9]>
  24. <script src="/public/addon/adminlte/html5shiv.min.js?<?php echo \think\Config::get('html_v'); ?>"></script>
  25. <script src="/public/addon/adminlte/respond.min.js?<?php echo \think\Config::get('html_v'); ?>"></script>
  26. <![endif]-->
  27. <!-- Google Font -->
  28. <!-- <link rel="stylesheet" href="/public/addon/adminlte/google-font.css?<?php echo \think\Config::get('html_v'); ?>"> -->
  29. <!-- jQuery -->
  30. <script src="/public/jquery/jquery.min.js?<?php echo \think\Config::get('html_v'); ?>"></script>
  31. <!-- else -->
  32. <script type="text/javascript" src="/public/static/js/base64.min.js?<?php echo \think\Config::get('html_v'); ?>"></script>
  33. <link href="/public/static/css/toastr.css?<?php echo \think\Config::get('html_v'); ?>" rel="stylesheet" type="text/css">
  34. <script src="/public/static/js/toastr.js?<?php echo \think\Config::get('html_v'); ?>"></script>
  35. <!-- jQuery UI -->
  36. <script src="/public/addon/adminlte/jquery-ui.min.js?<?php echo \think\Config::get('html_v'); ?>"></script>
  37. <!-- Bootstrap 3.3.7 -->
  38. <script src="/public/bootstrap/js/bootstrap.min.js?<?php echo \think\Config::get('html_v'); ?>"></script>
  39. <!-- FastClick -->
  40. <script src="/public/addon/adminlte/fastclick.js?<?php echo \think\Config::get('html_v'); ?>"></script>
  41. <!-- AdminLTE App -->
  42. <script src="/public/adminlte/dist/js/adminlte.min.js?<?php echo \think\Config::get('html_v'); ?>"></script>
  43. <!-- custom -->
  44. <script src="/public/static/js/common.js?<?php echo \think\Config::get('html_v'); ?>"></script>
  45. <script src="/public/static/js/admin.js?<?php echo \think\Config::get('html_v'); ?>"></script>
  46. <link href="/public/static/css/admin.css?<?php echo \think\Config::get('html_v'); ?>" rel="stylesheet" type="text/css">
  47. <script type="text/javascript" src="/public/static/js/langs/<?php echo \think\Config::get('DEFAULT_LANG'); ?>.js?<?php echo \think\Config::get('html_v'); ?>"></script>
  48. <script type="text/javascript">var site_config={root:"",pub:"/public",usertoken:"<?php echo g_sc('usertoken'); ?>",clientinfo:"<?php echo g_sc('clientinfo'); ?>",admincp:<?php echo json_encode(g_sc_c('admincp')); ?>};</script>
  49. </head>
  50. <body class="skin-blue" data-spy="scroll" data-target="#scrollspy">
  51. <div class="wrapper">
  52. <header class="main-header">
  53. <!-- <a href="<?php echo url('admin/backstage/index'); ?>" class="logo">-->
  54. <!-- 采-->
  55. <!-- </a>-->
  56. <nav class="navbar navbar-static-top" role="navigation">
  57. <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
  58. <span class="sr-only"> </span>
  59. <span class="icon-bar"></span>
  60. <span class="icon-bar"></span>
  61. <span class="icon-bar"></span>
  62. </a>
  63. <!-- <div class="navbar-custom-menu">-->
  64. <!-- <ul class="nav navbar-nav">-->
  65. <!-- <li class="dropdown tasks-menu">-->
  66. <!-- <a href="javascript:;" id="menu_backstage_task">-->
  67. <!-- <i class="fa fa-flag-o"></i>-->
  68. <!-- <span class="label label-warning"></span>-->
  69. <!-- </a>-->
  70. <!-- </li>-->
  71. <!-- <li class="dropdown user user-menu">-->
  72. <!-- <a href="#" class="dropdown-toggle" data-toggle="dropdown">-->
  73. <!-- <span class="glyphicon glyphicon-user"></span>-->
  74. <!-- <span><?php echo g_sc('user','username'); ?></span>-->
  75. <!-- </a>-->
  76. <!-- <ul class="dropdown-menu">-->
  77. <!-- <li><a href="<?php echo url('user/edit?uid='.g_sc('user','uid')); ?>"><?php echo \think\Lang::get('user_edit'); ?></a></li>-->
  78. <!-- <li><a href="<?php echo url('admin/index/logout'); ?>"><?php echo \think\Lang::get('logout'); ?></a></li>-->
  79. <!-- </ul>-->
  80. <!-- </li>-->
  81. <!-- </ul>-->
  82. <!-- </div>-->
  83. </nav>
  84. </header>
  85. <?php $curMenu=array(strtolower(request()->controller())=>' menu-open cur-menu'); $curSubm=array(strtolower(request()->action())=>' menu-open cur-menu'); ?>
  86. <aside class="main-sidebar">
  87. <section class="sidebar">
  88. <ul class="sidebar-menu">
  89. <li class="treeview<?php echo $curMenu['setting']; ?>">
  90. <a href="#">
  91. <i class="fa fa-cog"></i> <span><?php echo \think\Lang::get('setting'); ?></span>
  92. <span class="pull-right-container">
  93. <i class="fa fa-angle-left pull-right"></i>
  94. </span>
  95. </a>
  96. <ul class="treeview-menu">
  97. <li><a href="<?php echo url('admin/setting/caiji'); ?>"><i class="fa fa-circle-o"></i> <?php echo \think\Lang::get('setting_caiji'); ?></a></li>
  98. <li><a href="<?php echo url('admin/setting/site'); ?>"><i class="fa fa-circle-o"></i> <?php echo \think\Lang::get('setting_site'); ?></a></li>
  99. <!-- <li><a href="<?php echo url('admin/setting/store'); ?>"><i class="fa fa-circle-o"></i> <?php echo \think\Lang::get('setting_store'); ?></a></li>-->
  100. <!-- <li><a href="<?php echo url('admin/setting/email'); ?>"><i class="fa fa-circle-o"></i> <?php echo \think\Lang::get('setting_email'); ?></a></li>-->
  101. </ul>
  102. </li>
  103. <li class="treeview<?php echo $curMenu['task']; ?><?php echo $curMenu['taskgroup']; ?><?php echo $curMenu['collector']; ?><?php echo $curMenu['release']; ?><?php echo $curMenu['collected']; ?>">
  104. <a href="#">
  105. <i class="fa fa-th-list"></i> <span><?php echo \think\Lang::get('task'); ?></span>
  106. <span class="pull-right-container">
  107. <i class="fa fa-angle-left pull-right"></i>
  108. </span>
  109. </a>
  110. <ul class="treeview-menu">
  111. <li><a href="<?php echo url('admin/task/list'); ?>"><i class="fa fa-circle-o"></i> <?php echo \think\Lang::get('task_list'); ?></a></li>
  112. <li><a href="<?php echo url('admin/task/set'); ?>"><i class="fa fa-circle-o"></i> <?php echo \think\Lang::get('task_add'); ?></a></li>
  113. <li><a href="<?php echo url('admin/taskgroup/list'); ?>"><i class="fa fa-circle-o"></i> <?php echo \think\Lang::get('taskgroup'); ?></a></li>
  114. <li><a href="<?php echo url('admin/collected/list'); ?>"><i class="fa fa-circle-o"></i> 已采集数据</a></li>
  115. </ul>
  116. </li>
  117. <!-- <li class="treeview<?php echo $curMenu['dataset']; ?><?php echo $curMenu['dataapi']; ?>">-->
  118. <!-- <a href="#">-->
  119. <!-- <i class="fa fa-database"></i> <span>数据</span>-->
  120. <!-- <span class="pull-right-container">-->
  121. <!-- <i class="fa fa-angle-left pull-right"></i>-->
  122. <!-- </span>-->
  123. <!-- </a>-->
  124. <!-- <ul class="treeview-menu">-->
  125. <!-- <li><a href="<?php echo url('admin/dataset/list'); ?>"><i class="fa fa-circle-o"></i> 数据集</a></li>-->
  126. <!-- <li><a href="<?php echo url('admin/dataapi/list'); ?>"><i class="fa fa-circle-o"></i> 数据接口</a></li>-->
  127. <!-- </ul>-->
  128. <!-- </li>-->
  129. <!-- <li class="treeview<?php echo $curMenu['store']; ?><?php echo $curMenu['mystore']; ?><?php echo $curMenu['provider']; ?><?php echo $curMenu['develop']; ?>">-->
  130. <!-- <a href="#">-->
  131. <!-- <i class="fa fa-cloud"></i> <span>云端</span>-->
  132. <!-- <span class="pull-right-container">-->
  133. <!-- <i class="fa fa-angle-left pull-right"></i>-->
  134. <!-- </span>-->
  135. <!-- </a>-->
  136. <!-- <ul class="treeview-menu">-->
  137. <!-- <li><a href="<?php echo url('admin/mystore/store'); ?>" target="_blank"><i class="fa fa-circle-o"></i> 云平台</a></li>-->
  138. <!-- <li><a href="<?php echo url('admin/provider/list'); ?>"><i class="fa fa-circle-o"></i> 第三方</a></li>-->
  139. <!-- <li class="treeview<?php echo !empty($curMenu['develop'])?'':' menu-open cur-menu'; ?>">-->
  140. <!-- <a href="#"><i class="fa fa-circle-o"></i> 仓库-->
  141. <!-- <span class="pull-right-container">-->
  142. <!-- <i class="fa fa-angle-left pull-right"></i>-->
  143. <!-- </span>-->
  144. <!-- </a>-->
  145. <!-- <ul class="treeview-menu">-->
  146. <!-- <li><a href="<?php echo url('admin/mystore/rule'); ?>"><i class="fa fa-circle-o"></i> 采集规则</a></li>-->
  147. <!-- <li><a href="<?php echo url('admin/mystore/funcApp'); ?>"><i class="fa fa-circle-o"></i> 函数插件</a></li>-->
  148. <!-- <li><a href="<?php echo url('admin/mystore/apiApp'); ?>"><i class="fa fa-circle-o"></i> 接口插件</a></li>-->
  149. <!-- <li><a href="<?php echo url('admin/mystore/releaseApp'); ?>"><i class="fa fa-circle-o"></i> 发布插件</a></li>-->
  150. <!-- <li><a href="<?php echo url('admin/mystore/app'); ?>"><i class="fa fa-circle-o"></i> 应用程序</a></li>-->
  151. <!-- </ul>-->
  152. <!-- </li>-->
  153. <!-- <li class="treeview<?php echo $curMenu['develop']; ?>">-->
  154. <!-- <a href="#"><i class="fa fa-circle-o"></i> 开发-->
  155. <!-- <span class="pull-right-container">-->
  156. <!-- <i class="fa fa-angle-left pull-right"></i>-->
  157. <!-- </span>-->
  158. <!-- </a>-->
  159. <!-- <ul class="treeview-menu">-->
  160. <!-- <li><a href="<?php echo url('admin/develop/func'); ?>"><i class="fa fa-circle-o"></i> 函数插件</a></li>-->
  161. <!-- <li><a href="<?php echo url('admin/develop/api'); ?>"><i class="fa fa-circle-o"></i> 接口插件</a></li>-->
  162. <!-- <li><a href="<?php echo url('admin/develop/releaseCms'); ?>"><i class="fa fa-circle-o"></i> 发布插件</a></li>-->
  163. <!-- <li><a href="<?php echo url('admin/develop/app'); ?>"><i class="fa fa-circle-o"></i> 应用程序</a></li>-->
  164. <!-- <li><a href="<?php echo url('admin/develop/editor'); ?>"><i class="fa fa-edit"></i> 插件编辑器</a></li>-->
  165. <!-- </ul>-->
  166. <!-- </li>-->
  167. <!-- </ul>-->
  168. <!-- </li>-->
  169. <!-- <li class="treeview<?php echo $curMenu['user']; ?>">-->
  170. <!-- <a href="#">-->
  171. <!-- <i class="fa fa-user"></i> <span><?php echo \think\Lang::get('user'); ?></span>-->
  172. <!-- <span class="pull-right-container">-->
  173. <!-- <i class="fa fa-angle-left pull-right"></i>-->
  174. <!-- </span>-->
  175. <!-- </a>-->
  176. <!-- <ul class="treeview-menu">-->
  177. <!-- <li><a href="<?php echo url('admin/user/list'); ?>"><i class="fa fa-circle-o"></i> <?php echo \think\Lang::get('user_list'); ?></a></li>-->
  178. <!-- </ul>-->
  179. <!-- </li>-->
  180. <li class="treeview<?php echo $curMenu['tool']; ?>">
  181. <a href="#">
  182. <i class="fa fa-wrench"></i> <span>工具</span>
  183. <span class="pull-right-container">
  184. <i class="fa fa-angle-left pull-right"></i>
  185. </span>
  186. </a>
  187. <ul class="treeview-menu">
  188. <!-- <li><a href="<?php echo url('admin/tool/fileManager'); ?>"><i class="fa fa-circle-o"></i> 文件管理</a></li>-->
  189. <li><a href="<?php echo url('admin/tool/preview'); ?>"><i class="fa fa-circle-o"></i> 解析预览</a></li>
  190. <li><a href="<?php echo url('admin/tool/logs'); ?>"><i class="fa fa-circle-o"></i> 错误日志</a></li>
  191. <li class="treeview<?php echo $curSubm['checkfile']; ?><?php echo $curSubm['checkdb']; ?>">
  192. <a href="#"><i class="fa fa-circle-o"></i> 校验
  193. <span class="pull-right-container">
  194. <i class="fa fa-angle-left pull-right"></i>
  195. </span>
  196. </a>
  197. <ul class="treeview-menu">
  198. <li><a href="<?php echo url('admin/tool/checkfile'); ?>"><i class="fa fa-circle-o"></i> 文件</a></li>
  199. <li><a href="<?php echo url('admin/tool/checkdb'); ?>"><i class="fa fa-circle-o"></i> 数据库</a></li>
  200. </ul>
  201. </li>
  202. <li class="treeview">
  203. <a href="#" id="treeview_skins"><i class="fa fa-circle-o"></i> <?php echo \think\Lang::get('admincp_style'); ?>
  204. <span class="pull-right-container">
  205. <i class="fa fa-angle-left pull-right"></i>
  206. </span>
  207. </a>
  208. <ul class="treeview-menu treeview-skins" style="display:none;">
  209. <li>
  210. <div class="checkbox"><label><input id="chk_sidebar_mini" type="checkbox"> <?php echo \think\Lang::get('admincp_sidebar_mini'); ?></label></div>
  211. <div class="checkbox"><label><input id="chk_sidebar_fixed" type="checkbox"> 菜单侧边栏固定</label></div>
  212. <div class="checkbox"><label><input id="chk_sidebar_narrow" type="checkbox"> 窄屏显示</label></div>
  213. </li>
  214. <li>
  215. <div id="sidebar_skins"></div>
  216. </li>
  217. </ul>
  218. </li>
  219. </ul>
  220. </li>
  221. </ul>
  222. </section>
  223. </aside>
  224. <script type="text/javascript">admincpOp.init();</script>
  225. <div class="content-wrapper">
  226. <section class="content-header">
  227. <h1><?php echo g_sc('html_tag_name'); ?></h1>
  228. <ol class="breadcrumb">
  229. <li><a href="<?php echo url('admin/backstage/index'); ?>"><i class="fa fa-dashboard"></i> <?php echo \think\Lang::get('admincp'); ?></a></li>
  230. <?php echo g_sc('html_tag_nav'); ?>
  231. </ol>
  232. </section>
  233. <section class="content">
  234. <div class="box">
  235. <div class="box-body">
  236. <form id="form_list" method="post" ajax-submit="true" action="<?php echo url('taskgroup/op'); ?>">
  237. <?php echo html_usertoken(); ?>
  238. <input type="hidden" name="op" value="saveall" />
  239. <div class="table-responsive" style="border:0;">
  240. <table id="list_table" class="table table-hover datatable">
  241. <thead>
  242. <tr>
  243. <th><?php echo \think\Lang::get('sort'); ?></th>
  244. <th><?php echo \think\Lang::get('taskgroup_name'); ?></th>
  245. <th><?php echo \think\Lang::get('op'); ?></th>
  246. </tr>
  247. </thead>
  248. <tbody>
  249. <?php if(is_array($parentList) || $parentList instanceof \think\Collection || $parentList instanceof \think\Paginator): if( count($parentList)==0 ) : echo "" ;else: foreach($parentList as $key=>$pitem): $num++;$itemList=is_array($subList[$pitem['id']])?array_merge(array($pitem),$subList[$pitem['id']]):array($pitem); if(is_array($itemList) || $itemList instanceof \think\Collection || $itemList instanceof \think\Paginator): if( count($itemList)==0 ) : echo "" ;else: foreach($itemList as $key=>$item): ?>
  250. <tr class="bg<?php echo $num%2; ?>">
  251. <td class="sort"><input type="text" name="newsort[<?php echo $item['id']; ?>]" class="form-control" value="<?php echo $item['sort']; ?>" autocomplete="off" /></td>
  252. <td<?php echo !empty($item['parent_id'])?' class="sub"':''; ?>><?php echo $item['name']; ?></td>
  253. <td>
  254. <div class="in-line-mg"><a href="<?php echo url('taskgroup/edit?id='.$item['id']); ?>" class="edit"><?php echo \think\Lang::get('edit'); ?></a></div>
  255. <div class="in-line-mg"><a href="javascript:;" url="<?php echo url('taskgroup/op?op=delete&id='.$item['id']); ?>" class="delete"><?php echo \think\Lang::get('delete'); ?></a></div>
  256. <div class="dropdown">
  257. <a href="javascript:;" item-id="<?php echo $item['id']; ?>" parent-id="<?php echo $item['parent_id']; ?>" class="dropdown-toggle more" data-toggle="dropdown" aria-expanded="false"><?php echo \think\Lang::get('more'); ?><span class="caret"></span></a>
  258. </div>
  259. </td>
  260. </tr>
  261. <?php endforeach; endif; else: echo "" ;endif; endforeach; endif; else: echo "" ;endif; ?>
  262. </tbody>
  263. <tfoot>
  264. <tr>
  265. <td colspan="3">
  266. <button type="submit" class="btn btn-default"><?php echo \think\Lang::get('save'); ?></button>
  267. <button type="button" class="btn btn btn-primary" onclick="windowModal('<?php echo \think\Lang::get('taskgroup_add'); ?>','<?php echo url('taskgroup/add'); ?>')"><?php echo \think\Lang::get('taskgroup_add'); ?></button>
  268. </td>
  269. </tr>
  270. </tfoot>
  271. </table>
  272. </div>
  273. </form>
  274. <?php echo $pagenav; ?>
  275. </div>
  276. <!-- /.box-body -->
  277. </div>
  278. <!-- /.box -->
  279. <div class="list-footer">
  280. <form id="form_search" method="post" action="<?php echo url('taskgroup/list'); ?>" class="form-inline">
  281. <?php echo html_usertoken(); ?>
  282. <div class="form-group form-group-sm">
  283. <label><?php echo \think\Lang::get('taskgroup_parent_id'); ?></label>
  284. <select name="parent_id" class="form-control">
  285. <option value="0"><?php echo \think\Lang::get('all'); ?></option>
  286. <?php if(is_array($parentTgList) || $parentTgList instanceof \think\Collection || $parentTgList instanceof \think\Paginator): if( count($parentTgList)==0 ) : echo "" ;else: foreach($parentTgList as $tgId=>$tgName): ?>
  287. <option value="<?php echo $tgId; ?>"><?php echo $tgName; ?></option>
  288. <?php endforeach; endif; else: echo "" ;endif; ?>
  289. </select>
  290. </div>
  291. <div class="form-group form-group-sm">
  292. <label><?php echo \think\Lang::get('taskgroup_name'); ?></label>
  293. <input type="text" name="name" class="form-control" value="<?php echo $search['name']; ?>">
  294. </div>
  295. <button type="submit" class="btn btn-default btn-sm"><?php echo \think\Lang::get('search'); ?></button>
  296. </form>
  297. </div>
  298. <script type="text/javascript">
  299. $('#form_search select[name="parent_id"]').val("<?php echo $search['parent_id']; ?>");
  300. $(document).ready(function(){
  301. //单个删除
  302. $('#list_table .delete').bind('click',function(){
  303. var obj=$(this);
  304. confirmRight('<?php echo \think\Lang::get('confirm_delete'); ?>',function(){
  305. ajaxOpen({
  306. type: "GET",
  307. url: obj.attr('url'),
  308. dataType: "json",
  309. success: function(data){
  310. data.code==1?toastr.success(data.msg):toastr.error(data.msg);
  311. if(data.code==1){
  312. obj.parents('tr').eq(0).remove();
  313. }
  314. }
  315. });
  316. });
  317. });
  318. //更多操作
  319. $('#list_table .more').bind('click',function(){
  320. var dropdown=$(this).parent('.dropdown');
  321. var options='<ul class="dropdown-menu'+($(document.body).width()<=500?' dropdown-menu-right':'')+'">';
  322. var parent_id=parseInt($(this).attr('parent-id'));
  323. if(parent_id==0){
  324. //是父分组
  325. var addTgUrl='<?php echo url("taskgroup/add?parent_id=_parent_id_"); ?>';
  326. addTgUrl=addTgUrl.replace('_parent_id_',$(this).attr('item-id'));//传递parent_id
  327. options+='<li><a href="javascript:;" onclick="windowModal(\'<?php echo \think\Lang::get('tg_add_sub'); ?>\',\''+addTgUrl+'\')"><?php echo \think\Lang::get('tg_add_sub'); ?></a></li>';
  328. }
  329. var moveTgUrl='<?php echo url("taskgroup/op?op=move&id=_id_"); ?>';
  330. moveTgUrl=moveTgUrl.replace('_id_',$(this).attr('item-id'));
  331. options+='<li><a href="javascript:;" onclick="windowModal(\'<?php echo \think\Lang::get('tg_move'); ?>\',\''+moveTgUrl+'\')"><?php echo \think\Lang::get('tg_move'); ?></a></li></ul>';
  332. dropdown.find('.dropdown-menu').remove();
  333. dropdown.append(options);
  334. });
  335. });
  336. </script>
  337. </section>
  338. </div>
  339. <div class="control-sidebar-bg"></div>
  340. </div>
  341. <?php if(!is_empty(g_sc('browser_is_old'))): ?>
  342. <div class="alert alert-danger alert-dismissible fade in" role="alert" style="position:fixed;top:0;z-index:9999;width:100%;padding-top:5px;padding-bottom:5px;border-top-left-radius:0;border-top-right-radius:0;">
  343. <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
  344. 您的浏览器版本过低,不能完全展现页面效果,请使用谷歌、火狐或IE10及以上版本的浏览器!
  345. </div>
  346. <?php endif; if(is_empty(g_sc_c('site','closetrans'))): ?>
  347. <script type="text/javascript">
  348. 'use strict';//严格模式
  349. page_translator("/public","<?php echo addslashes($_SERVER['HTTP_ACCEPT_LANGUAGE']); ?>");
  350. </script>
  351. <?php endif; ?>
  352. <footer class="footer-end">
  353. <p>Powered by <a href="https://www.skycaiji.com" target="_blank">蓝天采集器</a></p>
  354. </footer>
  355. </body>
  356. </html>