aac62dd2d132d4cd3538c7e6088ccec5.php 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:97:"/Users/kaiyu/Documents/wwwroot/yanglao/public/../application/admin/view/service/category/add.html";i:1766386791;s:81:"/Users/kaiyu/Documents/wwwroot/yanglao/application/admin/view/layout/default.html";i:1746006159;s:78:"/Users/kaiyu/Documents/wwwroot/yanglao/application/admin/view/common/meta.html";i:1746006159;s:80:"/Users/kaiyu/Documents/wwwroot/yanglao/application/admin/view/common/script.html";i:1746006159;}*/ ?>
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <title><?php echo (isset($title) && ($title !== '')?$title:''); ?></title>
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
  8. <meta name="renderer" content="webkit">
  9. <meta name="referrer" content="never">
  10. <meta name="robots" content="noindex, nofollow">
  11. <link rel="shortcut icon" href="/assets/img/favicon.ico" />
  12. <!-- Loading Bootstrap -->
  13. <link href="/assets/css/backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo htmlentities(\think\Config::get('site.version') ?? ''); ?>" rel="stylesheet">
  14. <?php if(\think\Config::get('fastadmin.adminskin')): ?>
  15. <link href="/assets/css/skins/<?php echo htmlentities(\think\Config::get('fastadmin.adminskin') ?? ''); ?>.css?v=<?php echo htmlentities(\think\Config::get('site.version') ?? ''); ?>" rel="stylesheet">
  16. <?php endif; ?>
  17. <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
  18. <!--[if lt IE 9]>
  19. <script src="/assets/js/html5shiv.js"></script>
  20. <script src="/assets/js/respond.min.js"></script>
  21. <![endif]-->
  22. <script type="text/javascript">
  23. var require = {
  24. config: <?php echo json_encode($config ?? ''); ?>
  25. };
  26. </script>
  27. </head>
  28. <body class="inside-header inside-aside <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
  29. <div id="main" role="main">
  30. <div class="tab-content tab-addtabs">
  31. <div id="content">
  32. <div class="row">
  33. <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
  34. <section class="content-header hide">
  35. <h1>
  36. <?php echo __('Dashboard'); ?>
  37. <small><?php echo __('Control panel'); ?></small>
  38. </h1>
  39. </section>
  40. <?php if(!IS_DIALOG && !\think\Config::get('fastadmin.multiplenav') && \think\Config::get('fastadmin.breadcrumb')): ?>
  41. <!-- RIBBON -->
  42. <div id="ribbon">
  43. <ol class="breadcrumb pull-left">
  44. <?php if($auth->check('dashboard')): ?>
  45. <li><a href="dashboard" class="addtabsit"><i class="fa fa-dashboard"></i> <?php echo __('Dashboard'); ?></a></li>
  46. <?php endif; ?>
  47. </ol>
  48. <ol class="breadcrumb pull-right">
  49. <?php foreach($breadcrumb as $vo): ?>
  50. <li><a href="javascript:;" data-url="<?php echo htmlentities($vo['url'] ?? ''); ?>"><?php echo htmlentities($vo['title'] ?? ''); ?></a></li>
  51. <?php endforeach; ?>
  52. </ol>
  53. </div>
  54. <!-- END RIBBON -->
  55. <?php endif; ?>
  56. <div class="content">
  57. <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  58. <?php echo token(); ?>
  59. <div class="form-group">
  60. <label for="c-pid" class="control-label col-xs-12 col-sm-2"><?php echo __('Pid'); ?>:</label>
  61. <div class="col-xs-12 col-sm-8">
  62. <select id="c-pid" data-rule="required" class="form-control selectpicker" name="row[pid]">
  63. <?php if(is_array($parentList) || $parentList instanceof \think\Collection || $parentList instanceof \think\Paginator): if( count($parentList)==0 ) : echo "" ;else: foreach($parentList as $key=>$vo): ?>
  64. <option value="<?php echo htmlentities($key ?? ''); ?>" <?php if(in_array(($key), explode(',',""))): ?>selected<?php endif; ?>><?php echo htmlentities($vo['name'] ?? ''); ?></option>
  65. <?php endforeach; endif; else: echo "" ;endif; ?>
  66. </select>
  67. </div>
  68. </div>
  69. <div class="form-group">
  70. <label class="control-label col-xs-12 col-sm-2"><?php echo __('Name'); ?>:</label>
  71. <div class="col-xs-12 col-sm-8">
  72. <input id="c-name" class="form-control" name="row[name]" type="text" value="">
  73. </div>
  74. </div>
  75. <!-- <div class="form-group">-->
  76. <!-- <label class="control-label col-xs-12 col-sm-2"><?php echo __('Flag'); ?>:</label>-->
  77. <!-- <div class="col-xs-12 col-sm-8">-->
  78. <!-- -->
  79. <!-- <select id="c-flag" class="form-control selectpicker" multiple="" name="row[flag][]">-->
  80. <!-- <?php if(is_array($flagList) || $flagList instanceof \think\Collection || $flagList instanceof \think\Paginator): if( count($flagList)==0 ) : echo "" ;else: foreach($flagList as $key=>$vo): ?>-->
  81. <!-- <option value="<?php echo htmlentities($key ?? ''); ?>" <?php if(in_array(($key), explode(',',""))): ?>selected<?php endif; ?>><?php echo htmlentities($vo ?? ''); ?></option>-->
  82. <!-- <?php endforeach; endif; else: echo "" ;endif; ?>-->
  83. <!-- </select>-->
  84. <!-- </div>-->
  85. <!-- </div>-->
  86. <div class="form-group">
  87. <label class="control-label col-xs-12 col-sm-2"><?php echo __('Isshow'); ?>:</label>
  88. <div class="col-xs-12 col-sm-8">
  89. <select id="c-is_show" data-rule="required" class="form-control selectpicker" name="row[is_show]">
  90. <?php if(is_array($isshowList) || $isshowList instanceof \think\Collection || $isshowList instanceof \think\Paginator): if( count($isshowList)==0 ) : echo "" ;else: foreach($isshowList as $key=>$vo): ?>
  91. <option value="<?php echo htmlentities($key ?? ''); ?>" <?php if(in_array(($key), explode(',',"0"))): ?>selected<?php endif; ?>><?php echo htmlentities($vo ?? ''); ?></option>
  92. <?php endforeach; endif; else: echo "" ;endif; ?>
  93. </select>
  94. </div>
  95. </div>
  96. <div class="form-group">
  97. <label class="control-label col-xs-12 col-sm-2"><?php echo __('Image'); ?>:</label>
  98. <div class="col-xs-12 col-sm-8">
  99. <div class="input-group">
  100. <input id="c-image" class="form-control" size="50" name="row[image]" type="text" value="">
  101. <div class="input-group-addon no-border no-padding">
  102. <span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> <?php echo __('Upload'); ?></button></span>
  103. <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> <?php echo __('Choose'); ?></button></span>
  104. </div>
  105. <span class="msg-box n-right" for="c-image"></span>
  106. </div>
  107. <ul class="row list-inline faupload-preview" id="p-image"></ul>
  108. </div>
  109. </div>
  110. <div class="form-group">
  111. <label class="control-label col-xs-12 col-sm-2"><?php echo __('Weigh'); ?>:</label>
  112. <div class="col-xs-12 col-sm-8">
  113. <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="0">
  114. </div>
  115. </div>
  116. <div class="form-group">
  117. <label class="control-label col-xs-12 col-sm-2"><?php echo __('Status'); ?>:</label>
  118. <div class="col-xs-12 col-sm-8">
  119. <div class="radio">
  120. <?php if(is_array($statusList) || $statusList instanceof \think\Collection || $statusList instanceof \think\Paginator): if( count($statusList)==0 ) : echo "" ;else: foreach($statusList as $key=>$vo): ?>
  121. <label for="row[status]-<?php echo htmlentities($key ?? ''); ?>"><input id="row[status]-<?php echo htmlentities($key ?? ''); ?>" name="row[status]" type="radio" value="<?php echo htmlentities($key ?? ''); ?>" <?php if(in_array(($key), explode(',',"30"))): ?>checked<?php endif; ?> /> <?php echo htmlentities($vo ?? ''); ?></label>
  122. <?php endforeach; endif; else: echo "" ;endif; ?>
  123. </div>
  124. </div>
  125. </div>
  126. <div class="form-group layer-footer">
  127. <label class="control-label col-xs-12 col-sm-2"></label>
  128. <div class="col-xs-12 col-sm-8">
  129. <button type="submit" class="btn btn-primary btn-embossed disabled"><?php echo __('OK'); ?></button>
  130. </div>
  131. </div>
  132. </form>
  133. </div>
  134. </div>
  135. </div>
  136. </div>
  137. </div>
  138. </div>
  139. <script src="/assets/js/require.min.js" data-main="/assets/js/require-backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo htmlentities($site['version'] ?? ''); ?>"></script>
  140. </body>
  141. </html>