cloudView.php 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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">永天云配置</h3>
  33. <a href="<?php echo ADMIN_PATH; ?>/cloud/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="logotable" cellpadding="0" cellspacing="0" border="0" class="datatable table table-striped table-bordered table-hover">
  49. <thead>
  50. <tr>
  51. <th>序号</th>
  52. <th>名称</th>
  53. <th>logo</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['ord'] ?></td>
  64. <td><?php echo $value['name'] ?></td>
  65. <td class='center'><img src="<?php echo $value['url'] ?>"></td>
  66. <td class='center'>
  67. <a href="<?php echo ADMIN_PATH; ?>/cloud/edit?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; ?>/cloud/del?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. <?php if($key != 0): ?>
  78. <a href="<?php echo ADMIN_PATH; ?>/cloud/update_ord?id=<?php echo $value['id'] ?>&last_id=<?php echo $items[$key - 1]['id'] ?>">
  79. <button class="btn btn-xs btn-pink"><i
  80. class="fa fa-chevron-up"></i> 向 上
  81. </button>
  82. </a>
  83. <?php endif; ?>
  84. <?php if($key != count($items) - 1): ?>
  85. <a href="<?php echo ADMIN_PATH; ?>/cloud/update_ord?id=<?php echo $value['id'] ?>&last_id=<?php echo $items[$key + 1]['id'] ?>">
  86. <button class="btn btn-xs btn-yellow"><i
  87. class="fa fa-chevron-down"></i> 向 下
  88. </button>
  89. </a>
  90. <?php endif; ?>
  91. </td>
  92. </tr>
  93. <?php
  94. endforeach;
  95. endif;
  96. ?>
  97. </tbody>
  98. </table>
  99. </div>
  100. </div>
  101. <!-- /BOX -->
  102. </div>
  103. </div>
  104. <!-- /DATA TABLES -->
  105. <!-- hidden bootbox html -->
  106. <!-- <div class='hidden' id='addHomepageLogoHtml'>
  107. <div class="row">
  108. <div class="col-md-12">
  109. <div class="box-body">
  110. <form class="form-horizontal" role="form" action="<?php echo ADMIN_PATH; ?>/cloud/add" method="post">
  111. <div class="form-group">
  112. <label for="inputPhone" class="col-sm-3 control-label">合作伙伴名称</label>
  113. <div class="col-sm-7">
  114. <input type="text" class="form-control" id="name" name="name" value="" required="required">
  115. </div>
  116. </div>
  117. <div class="form-group">
  118. <label for="inputPhone" class="col-sm-3 control-label">合作伙伴LOGO</label>
  119. <div class="col-sm-7">
  120. <input type="text" class="form-control" id="url" name="url" value="" required="required">
  121. </div>
  122. <span class="btn btn-success fileinput-button">
  123. <i class="fa fa-plus"></i>
  124. <span>上传</span>
  125. <input type="file" multiple="" name="files" id='fileupload'>
  126. </span>
  127. <script>jQuery(document).ready(function(){App.setPage("handleUploadLogo");App.init()});</script>
  128. </div>
  129. <div class="col-sm-offset-1 col-sm-10">
  130. <button type="submit" class="btn btn-pink">更新</button>
  131. </div>
  132. </form>
  133. </div>
  134. </div>
  135. </div>
  136. </div> -->
  137. <!-- /hidden bootbox html-->
  138. </div>
  139. </div>
  140. </div><!-- /CONTENT-->
  141. </div>
  142. </div>
  143. </div>
  144. </section>
  145. <?php $this->load->view('_js'); ?>
  146. <script>
  147. jQuery(document).ready(function() {
  148. App.setPage("index"); //Set current page
  149. App.init(); //Initialise plugins and elements
  150. });
  151. </script>
  152. </body>
  153. </html>