550d77ec1eb8b63ed5fed2cf9a88deeb.php 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <?php /*a:3:{s:61:"/data/web/mall.valimart.net/app/admin/view/express/index.html";i:1657785096;s:61:"/data/web/mall.valimart.net/app/admin/view/public/header.html";i:1657785098;s:66:"/data/web/mall.valimart.net/app/admin/view/public/admin_items.html";i:1657785098;}*/ ?>
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <title><?php echo htmlentities((isset($html_title) && ($html_title !== '')?$html_title:config('ds_config.site_name'))); ?><?php echo htmlentities(lang('system_backend')); ?></title>
  8. <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  9. <link rel="stylesheet" href="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/css/admin.css">
  10. <link rel="stylesheet" href="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.css">
  11. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery-2.1.4.min.js"></script>
  12. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.validate.min.js"></script>
  13. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.cookie.js"></script>
  14. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/common.js"></script>
  15. <script src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/js/admin.js"></script>
  16. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.js"></script>
  17. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery.ui.datepicker-zh-CN.js"></script>
  18. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/perfect-scrollbar.min.js"></script>
  19. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/layer/layer.js"></script>
  20. <script type="text/javascript">
  21. var BASESITEROOT = "<?php echo htmlentities(BASE_SITE_ROOT); ?>";
  22. var ADMINSITEROOT = "<?php echo htmlentities(ADMIN_SITE_ROOT); ?>";
  23. var BASESITEURL = "<?php echo htmlentities(BASE_SITE_URL); ?>";
  24. var HOMESITEURL = "<?php echo htmlentities(HOME_SITE_URL); ?>";
  25. var ADMINSITEURL = "<?php echo htmlentities(ADMIN_SITE_URL); ?>";
  26. </script>
  27. </head>
  28. <body>
  29. <div id="append_parent"></div>
  30. <div id="ajaxwaitid"></div>
  31. <div class="page">
  32. <div class="fixed-bar">
  33. <div class="item-title">
  34. <div class="subject">
  35. <h3><?php echo htmlentities(lang('ds_express')); ?></h3>
  36. <h5></h5>
  37. </div>
  38. <?php if($admin_item): ?>
  39. <ul class="tab-base ds-row">
  40. <?php if(is_array($admin_item) || $admin_item instanceof \think\Collection || $admin_item instanceof \think\Paginator): if( count($admin_item)==0 ) : echo "" ;else: foreach($admin_item as $key=>$item): ?>
  41. <li><a href="<?php echo htmlentities($item['url']); ?>" <?php if($item['name'] == $curitem): ?>class="current"<?php endif; ?>><span><?php echo htmlentities($item['text']); ?></span></a></li>
  42. <?php endforeach; endif; else: echo "" ;endif; ?>
  43. </ul>
  44. <?php endif; ?>
  45. </div>
  46. </div>
  47. <form method="get" name="formSearch" id="formSearch">
  48. <div class="ds-search-form">
  49. <dl>
  50. <dt><?php echo htmlentities(lang('express_name')); ?></dt>
  51. <dd><input class="txt" name="express_name" id="express_name" value="<?php echo htmlentities(app('request')->param('express_name')); ?>" type="text"></dd>
  52. </dl>
  53. <dl>
  54. <dt><?php echo htmlentities(lang('express_letter')); ?></dt>
  55. <dd>
  56. <select name="express_letter" >
  57. <option value=""><?php echo htmlentities(lang('ds_all')); ?></option>
  58. <?php foreach (range('A','Z') as $v){?>
  59. <option <?php if(app('request')->param('express_letter') == $v): ?>selected='selected'<?php endif; ?> value="<?php echo $v;?>"><?php echo $v;?></option>
  60. <?php }?>
  61. </select>
  62. </dd>
  63. </dl>
  64. <div class="btn_group">
  65. <a href="javascript:document.formSearch.submit();" class="btn " title="<?php echo htmlentities(lang('ds_query')); ?>"><?php echo htmlentities(lang('ds_query')); ?></a>
  66. <a class="btn" href="<?php echo url('Express/index'); ?>" title="<?php echo htmlentities(lang('ds_cancel_search')); ?>"><span><?php echo htmlentities(lang('ds_cancel_search')); ?></span></a>
  67. </div>
  68. </div>
  69. </form>
  70. <table class="ds-default-table">
  71. <thead>
  72. <tr>
  73. <th></th>
  74. <th><?php echo htmlentities(lang('express_name')); ?></th>
  75. <th><?php echo htmlentities(lang('express_letter')); ?></th>
  76. <th><?php echo htmlentities(lang('express_url')); ?></th>
  77. <th><?php echo htmlentities(lang('express_order')); ?></th>
  78. <th><?php echo htmlentities(lang('ds_state')); ?></th>
  79. <th><?php echo htmlentities(lang('ds_handle')); ?></th>
  80. </tr>
  81. </thead>
  82. <tbody>
  83. <?php if(!(empty($express_list) || (($express_list instanceof \think\Collection || $express_list instanceof \think\Paginator ) && $express_list->isEmpty()))): if(is_array($express_list) || $express_list instanceof \think\Collection || $express_list instanceof \think\Paginator): if( count($express_list)==0 ) : echo "" ;else: foreach($express_list as $key=>$v): ?>
  84. <tr>
  85. <td><input value="<?php echo htmlentities($v['express_id']); ?>" class="checkitem" type="checkbox" name="del_express_id[]"></td>
  86. <td><?php echo htmlentities($v['express_name']); ?></td>
  87. <td><?php echo htmlentities($v['express_letter']); ?></td>
  88. <td><?php echo htmlentities($v['express_url']); ?></td>
  89. <td class="align-center yes-onoff">
  90. <?php if($v['express_order'] == 1): ?>
  91. <a href="JavaScript:void(0);" class=" enabled" ajax_branch='order' ds_type="inline_edit" fieldname="express_order" fieldid="<?php echo htmlentities($v['express_id']); ?>" fieldvalue="1" title="<?php echo htmlentities(lang('ds_editable')); ?>"><img src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/images/treetable/transparent.gif"></a>
  92. <?php else: ?>
  93. <a href="JavaScript:void(0);" class=" disabled" ajax_branch='order' ds_type="inline_edit" fieldname="express_order" fieldid="<?php echo htmlentities($v['express_id']); ?>" fieldvalue="0" title="<?php echo htmlentities(lang('ds_editable')); ?>"><img src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/images/treetable/transparent.gif"></a>
  94. <?php endif; ?></td>
  95. <td class="align-center yes-onoff">
  96. <?php if($v['express_state'] == 0): ?>
  97. <a href="JavaScript:void(0);" class=" disabled" ajax_branch='state' ds_type="inline_edit" fieldname="express_state" fieldid="<?php echo htmlentities($v['express_id']); ?>" fieldvalue="0" title="<?php echo htmlentities(lang('ds_editable')); ?>"><img src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/images/treetable/transparent.gif"></a>
  98. <?php else: ?>
  99. <a href="JavaScript:void(0);" class=" enabled" ajax_branch='state' ds_type="inline_edit" fieldname="express_state" fieldid="<?php echo htmlentities($v['express_id']); ?>" fieldvalue="1" title="<?php echo htmlentities(lang('ds_editable')); ?>"><img src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/images/treetable/transparent.gif"></a>
  100. <?php endif; ?></td>
  101. <td>
  102. <a href="javascript:dsLayerOpen('<?php echo url('Express/edit',['express_id'=>$v['express_id']]); ?>','<?php echo htmlentities(lang('ds_edit')); ?>-<?php echo htmlentities($v['express_name']); ?>')" class="dsui-btn-edit"><i class="iconfont"></i><?php echo htmlentities(lang('ds_edit')); ?></a>
  103. <a href="javascript:dsLayerConfirm('<?php echo url('Express/del',['express_id'=>$v['express_id']]); ?>','<?php echo htmlentities(lang('ds_ensure_del')); ?>')" class="dsui-btn-del"><i class="iconfont"></i><?php echo htmlentities(lang('ds_del')); ?></a>
  104. </td>
  105. </tr>
  106. <?php endforeach; endif; else: echo "" ;endif; else: ?>
  107. <tr class="no_data">
  108. <td colspan="20"><?php echo htmlentities(lang('no_record')); ?></td>
  109. </tr>
  110. <?php endif; ?>
  111. </tbody>
  112. <tfoot>
  113. <?php if(!(empty($express_list) || (($express_list instanceof \think\Collection || $express_list instanceof \think\Paginator ) && $express_list->isEmpty()))): ?>
  114. <tr colspan="15" class="tfoot">
  115. <td><input type="checkbox" class="checkall" id="checkallBottom"></td>
  116. <td colspan="16">
  117. <label for="checkallBottom"><?php echo htmlentities(lang('ds_select_all')); ?></label>
  118. &nbsp;&nbsp;<a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_delete_batch()"><span><?php echo htmlentities(lang('ds_del')); ?></span></a>
  119. </td>
  120. </tr>
  121. <?php endif; ?>
  122. </tfoot>
  123. </table>
  124. <?php echo $show_page; ?>
  125. </div>
  126. <script type="text/javascript" src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/js/jquery.edit.js" charset="utf-8"></script>
  127. <script type="text/javascript">
  128. function submit_delete(ids_str){
  129. _uri = ADMINSITEURL+"/Express/del.html?express_id=" + ids_str;
  130. dsLayerConfirm(_uri,'<?php echo htmlentities(lang('ds_ensure_del')); ?>');
  131. }
  132. </script>