newsView.php 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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>Usky 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"><?php echo $exa[$type] ?>列表</h3>
  33. <a href="<?php echo ADMIN_PATH; ?>/news/add?type=<?php echo $type ?>"><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>新闻-<?php echo $exa[$type] ?></h4>
  46. </div>
  47. <div class="box-body">
  48. <table id="newstable" 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. </tr>
  56. </thead>
  57. <tbody>
  58. <?php
  59. if(is_array($items)):
  60. foreach ($items as $key => $value):
  61. ?>
  62. <tr class="">
  63. <td><?php echo $value['id'] ?></td>
  64. <td><?php echo $value['title'] ?></td>
  65. <td class='center'><?php echo date('Y-m-d' , $value['publishtime']) ?></td>
  66. <td class='center'>
  67. <a href="<?php echo ADMIN_PATH; ?>/news/edit?type=<?php echo $type ?>&id=<?php echo $value['id'] ?>">
  68. <button class="btn btn-xs btn-info"><i
  69. class="fa fa-pencil-square-o"></i> 编 辑
  70. </button>
  71. </a>
  72. <a href="<?php echo ADMIN_PATH; ?>/news/del?type=<?php echo $type ?>&id=<?php echo $value['id'] ?>">
  73. <button class="btn btn-xs btn-danger"><i
  74. class="fa fa-minus-circle"></i> 删 除
  75. </button>
  76. </a>
  77. </td>
  78. </tr>
  79. <?php
  80. endforeach;
  81. endif;
  82. ?>
  83. </tbody>
  84. </table>
  85. </div>
  86. </div>
  87. <!-- /BOX -->
  88. </div>
  89. </div>
  90. <!-- /DATA TABLES -->
  91. <!-- hidden bootbox html -->
  92. <!-- <div class='hidden' id='addHomepageLogoHtml'>
  93. <div class="row">
  94. <div class="col-md-12">
  95. <div class="box-body">
  96. <form class="form-horizontal" role="form" action="<?php echo ADMIN_PATH; ?>/example/add" method="post">
  97. <div class="form-group">
  98. <label for="inputPhone" class="col-sm-3 control-label">合作伙伴名称</label>
  99. <div class="col-sm-7">
  100. <input type="text" class="form-control" id="name" name="name" value="" required="required">
  101. </div>
  102. </div>
  103. <div class="form-group">
  104. <label for="inputPhone" class="col-sm-3 control-label">合作伙伴LOGO</label>
  105. <div class="col-sm-7">
  106. <input type="text" class="form-control" id="url" name="url" value="" required="required">
  107. </div>
  108. <span class="btn btn-success fileinput-button">
  109. <i class="fa fa-plus"></i>
  110. <span>上传</span>
  111. <input type="file" multiple="" name="files" id='fileupload'>
  112. </span>
  113. <script>jQuery(document).ready(function(){App.setPage("handleUploadLogo");App.init()});</script>
  114. </div>
  115. <div class="col-sm-offset-1 col-sm-10">
  116. <button type="submit" class="btn btn-pink">更新</button>
  117. </div>
  118. </form>
  119. </div>
  120. </div>
  121. </div>
  122. </div> -->
  123. <!-- /hidden bootbox html-->
  124. </div>
  125. </div>
  126. </div><!-- /CONTENT-->
  127. </div>
  128. </div>
  129. </div>
  130. </section>
  131. <?php $this->load->view('_js'); ?>
  132. <script>
  133. jQuery(document).ready(function() {
  134. App.setPage("news"); //Set current page
  135. App.init(); //Initialise plugins and elements
  136. });
  137. </script>
  138. </body>
  139. </html>