31c7b8a30a25f3db03d62828c835e577.php 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <?php /*a:2:{s:62:"/data/web/mall.valimart.net/app/admin/view/spec/spec_form.html";i:1657785098;s:61:"/data/web/mall.valimart.net/app/admin/view/public/header.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. <form class="" id="user_form" method="post">
  33. <div class="ds-default-table">
  34. <table>
  35. <tbody>
  36. <tr class="noborder">
  37. <td class="required w120"><?php echo htmlentities(lang('gc_select')); ?></td>
  38. <td class="vatop rowform">
  39. <div id="gcategory" class="default_select">
  40. <input type="hidden" name="gc_id" value="<?php echo htmlentities($spec['gc_id']); ?>" class="mls_id" />
  41. <input type="hidden" name="gc_name" value="<?php echo htmlentities((isset($spec['gc_name']) && ($spec['gc_name'] !== '')?$spec['gc_name']:'')); ?>" class="mls_name" />
  42. <?php if($spec['gc_id']): ?>
  43. <span><?php echo htmlentities((isset($spec['gc_name']) && ($spec['gc_name'] !== '')?$spec['gc_name']:'')); ?></span>
  44. <input type="button" value="<?php echo htmlentities(lang('ds_edit')); ?>" class="edit_gcategory" />
  45. <?php endif; ?>
  46. <select <?php if($spec['gc_id']): ?>style="display:none"<?php endif; ?>>
  47. <option value=""><?php echo htmlentities(lang('gc_id_required')); ?></option>
  48. <option value="0"><?php echo htmlentities(lang('gc_all')); ?></option>
  49. <?php if(is_array($gc_list) || $gc_list instanceof \think\Collection || $gc_list instanceof \think\Paginator): if( count($gc_list)==0 ) : echo "" ;else: foreach($gc_list as $key=>$gc): ?>
  50. <option value="<?php echo htmlentities($gc['gc_id']); ?>"><?php echo htmlentities($gc['gc_name']); ?></option>
  51. <?php endforeach; endif; else: echo "" ;endif; ?>
  52. </select>
  53. </div>
  54. </td>
  55. <td><?php echo htmlentities(lang('gc_name_tips')); ?></td>
  56. </tr>
  57. <tr class="noborder">
  58. <td class="required w120"><?php echo htmlentities(lang('sp_name')); ?></td>
  59. <td class="vatop rowform">
  60. <input type="text" name="sp_name" id="sp_name" value="<?php echo htmlentities((isset($spec['sp_name']) && ($spec['sp_name'] !== '')?$spec['sp_name']:'')); ?>" class="w200"/>
  61. </td>
  62. </tr>
  63. <tr class="noborder">
  64. <td class="required w120"><?php echo htmlentities(lang('sp_sort')); ?></td>
  65. <td class="vatop rowform">
  66. <input type="text" name="sp_sort" id="sp_sort" value="<?php echo htmlentities((isset($spec['sp_sort']) && ($spec['sp_sort'] !== '')?$spec['sp_sort']:'255')); ?>" class="w200"/>
  67. </td>
  68. <td></td>
  69. </tr>
  70. </tbody>
  71. <tfoot>
  72. <tr class="tfoot">
  73. <td></td>
  74. <td>
  75. <input class="btn" type="submit" value="<?php echo htmlentities(lang('ds_submit')); ?>"/>
  76. </td>
  77. </tr>
  78. </tfoot>
  79. </table>
  80. </div>
  81. </form>
  82. </div>
  83. <!--载入-->
  84. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/mlselection.js"></script>
  85. <script>
  86. $(function() {
  87. gcategoryInit("gcategory");
  88. });
  89. </script>
  90. <script type="text/javascript">
  91. $(function(){
  92. $('#user_form').validate({
  93. errorPlacement: function(error, element) {
  94. error.appendTo(element.parent().parent().find('td:last'));
  95. },
  96. rules: {
  97. sp_name :{
  98. required: true,
  99. },
  100. sp_sort :{
  101. required: true,
  102. digits:true,
  103. max: 255,
  104. min:0,
  105. }
  106. },
  107. messages: {
  108. sp_name :{
  109. required: '<?php echo htmlentities(lang('gc_id_required')); ?>',
  110. },
  111. sp_sort :{
  112. required: '<?php echo htmlentities(lang('sp_sort_required')); ?>',
  113. digits: '<?php echo htmlentities(lang('sp_sort_digits')); ?>',
  114. max: '<?php echo htmlentities(lang('sp_sort_max')); ?>'
  115. }
  116. }
  117. });
  118. });
  119. </script>