productView.php 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  5. <meta charset="utf-8">
  6. <title>graphene Admin | Dashboard</title>
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no">
  8. <meta name="description" content="">
  9. <meta name="author" content="">
  10. <?php $this->load->view('_css'); ?>
  11. </head>
  12. <body>
  13. <!-- 顶部导航栏 -->
  14. <?php $this->load->view('_header'); ?>
  15. <!-- 顶部导航栏 -->
  16. <!-- PAGE -->
  17. <section id="page">
  18. <!-- 功能栏 -->
  19. <?php $this->load->view('_siderbar'); ?>
  20. <!-- 功能栏 -->
  21. <div id="main-content">
  22. <div class="container">
  23. <div class="row">
  24. <div id="content" class="col-lg-12">
  25. <div class="row">
  26. <div id="content" class="col-lg-12">
  27. <!-- PAGE HEADER-->
  28. <div class="row">
  29. <div class="col-sm-12">
  30. <div class="page-header">
  31. <div class="clearfix">
  32. <h3 class="content-title pull-left">产品列表</h3>
  33. <a href="<?php echo ADMIN_PATH; ?>/product/add"><button type="button" class="btn btn-purple" style="padding-top: 6px; margin-top: 22px; margin-left: 40px;">新增</button></a>
  34. </div>
  35. </div>
  36. </div>
  37. </div>
  38. <!-- /PAGE HEADER -->
  39. <!-- DATA TABLES -->
  40. <div class="row">
  41. <div class="col-md-12">
  42. <!-- BOX -->
  43. <div class="box border green">
  44. <div class="box-title">
  45. <h4><i class="fa fa-table"></i>产品列表</h4>
  46. </div>
  47. <div class="box-body">
  48. <table id="producttable" cellpadding="0" cellspacing="0" border="0" class="datatable table table-striped table-bordered table-hover">
  49. <thead>
  50. <tr>
  51. <th>ID</th>
  52. <th>标题</th>
  53. <th>产品分类</th>
  54. <th>发布日期</th>
  55. <th>操作</th>
  56. </tr>
  57. </thead>
  58. <tbody>
  59. <?php
  60. if(is_array($items)):
  61. foreach ($items as $key => $value):
  62. ?>
  63. <tr class="">
  64. <td><?php echo $value['id'] ?></td>
  65. <td><?php echo $value['title'] ?></td>
  66. <td>
  67. <?php
  68. $type_id_arr = explode(',', $value['type']);
  69. $type_arr = array();
  70. foreach ($type_id_arr as $key => $v) {
  71. $type_arr[] = $type[$v];
  72. }
  73. echo implode('|', $type_arr);
  74. ?>
  75. </td>
  76. <td class='center'><?php echo date('Y-m-d' , $value['publishtime']) ?></td>
  77. <td class='center'>
  78. <a href="<?php echo ADMIN_PATH; ?>/product/edit?id=<?php echo $value['id'] ?>">
  79. <button class="btn btn-xs btn-info"><i
  80. class="fa fa-pencil-square-o"></i> 编 辑
  81. </button>
  82. </a>
  83. <a href="<?php echo ADMIN_PATH; ?>/product/del?id=<?php echo $value['id'] ?>">
  84. <button class="btn btn-xs btn-danger"><i
  85. class="fa fa-minus-circle"></i> 删 除
  86. </button>
  87. </a>
  88. </td>
  89. </tr>
  90. <?php
  91. endforeach;
  92. endif;
  93. ?>
  94. </tbody>
  95. </table>
  96. </div>
  97. </div>
  98. <!-- /BOX -->
  99. </div>
  100. </div>
  101. <!-- /DATA TABLES -->
  102. <!-- hidden bootbox html -->
  103. <!-- <div class='hidden' id='addHomepageLogoHtml'>
  104. <div class="row">
  105. <div class="col-md-12">
  106. <div class="box-body">
  107. <form class="form-horizontal" role="form" action="<?php echo ADMIN_PATH; ?>/example/add" method="post">
  108. <div class="form-group">
  109. <label for="inputPhone" class="col-sm-3 control-label">合作伙伴名称</label>
  110. <div class="col-sm-7">
  111. <input type="text" class="form-control" id="name" name="name" value="" required="required">
  112. </div>
  113. </div>
  114. <div class="form-group">
  115. <label for="inputPhone" class="col-sm-3 control-label">合作伙伴LOGO</label>
  116. <div class="col-sm-7">
  117. <input type="text" class="form-control" id="url" name="url" value="" required="required">
  118. </div>
  119. <span class="btn btn-success fileinput-button">
  120. <i class="fa fa-plus"></i>
  121. <span>上传</span>
  122. <input type="file" multiple="" name="files" id='fileupload'>
  123. </span>
  124. <script>jQuery(document).ready(function(){App.setPage("handleUploadLogo");App.init()});</script>
  125. </div>
  126. <div class="col-sm-offset-1 col-sm-10">
  127. <button type="submit" class="btn btn-pink">更新</button>
  128. </div>
  129. </form>
  130. </div>
  131. </div>
  132. </div>
  133. </div> -->
  134. <!-- /hidden bootbox html-->
  135. </div>
  136. </div>
  137. </div><!-- /CONTENT-->
  138. </div>
  139. </div>
  140. </div>
  141. </section>
  142. <?php $this->load->view('_js'); ?>
  143. <script>
  144. jQuery(document).ready(function() {
  145. App.setPage("news"); //Set current page
  146. App.init(); //Initialise plugins and elements
  147. });
  148. </script>
  149. </body>
  150. </html>