Advertisement
Kode_Omut

1

Jan 21st, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.82 KB | None | 0 0
  1.  
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. </head>
  7. <!-- Latest compiled and minified CSS -->
  8. <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
  9.  
  10. <!-- Optional theme -->
  11. <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme.min.css">
  12.  
  13. <!-- Latest compiled and minified JavaScript -->
  14. <script src="//netdna.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
  15. <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
  16. <style type="text/css">
  17.  
  18. square {
  19. position: absolute;
  20. top: 70px;
  21. right: 1070px;
  22. }
  23. square1 {
  24. position: absolute;
  25. top: 160px;
  26. right: 180px;
  27. }
  28.  
  29. square2 {
  30. position: absolute;
  31. top: 70px;
  32. right: 950px;
  33. }
  34.  
  35. square3 {
  36. position: absolute;
  37. top: 70px;
  38. right: 900px;
  39. }
  40.  
  41. square4 {
  42. position: absolute;
  43. top: 73px;
  44. right: 750px;
  45. }
  46.  
  47. .modalDialog {
  48. background: none repeat scroll 0 0 rgba(0, 0, 0, 0.8);
  49. bottom: 0;
  50. font-family: Arial,Helvetica,sans-serif;
  51. left: 0;
  52. opacity: 0;
  53. pointer-events: none;
  54. position: fixed;
  55. right: 0;
  56. top: 0;
  57. transition: opacity 400ms ease-in 0s;
  58. z-index: 99999;
  59. }
  60. .modalDialog:target {
  61. opacity: 1;
  62. pointer-events: auto;
  63. }
  64. .modalDialog > div {
  65. background: linear-gradient(#fff, #999) repeat scroll 0 0 rgba(0, 0, 0, 0);
  66. border-radius: 10px;
  67. margin: 10% auto;
  68. padding: 5px 20px 13px;
  69. position: relative;
  70. width: 400px;
  71. }
  72. .close {
  73. background: none repeat scroll 0 0 #606061;
  74. border-radius: 12px;
  75. box-shadow: 1px 1px 3px #000;
  76. color: #ffffff;
  77. font-weight: bold;
  78. line-height: 25px;
  79. position: absolute;
  80. right: -12px;
  81. text-align: center;
  82. text-decoration: none;
  83. top: -10px;
  84. width: 24px;
  85. }
  86. .close:hover {
  87. background: none repeat scroll 0 0 #00d9ff;
  88. }
  89.  
  90. .c {
  91. border: 1px solid #333; /* Рамка */
  92. display: inline-block;
  93. padding: 5px 15px; /* Поля */
  94. text-decoration: none; /* Убираем подчёркивание */
  95. color: #000; /* Цвет текста */
  96. }
  97. .c:hover {
  98. box-shadow: 0 0 5px rgba(0,0,0,0.3); /* Тень */
  99. background: linear-gradient(to bottom, #fcfff4, #e9e9ce); /* Градиент */
  100. color: #a00;
  101. }
  102.  
  103.  
  104. </style>
  105. <body>
  106.  
  107.  
  108. <!--------------------------------------------Кнопка добавления---------------------------------------------->
  109. <square>
  110. <a class="c" href="#openModal">Добавление</a>
  111. <div id="openModal" class="modalDialog">
  112. <div>
  113. <a class="close1" title="Close1" href="#close">X</a>
  114. <h2>Добавление</h2>
  115. <!--<h2>Добавление</h2>-->
  116. <?php
  117. include 'form.php';
  118. ?>
  119.  
  120. </div>
  121. </div>
  122. </square>
  123. <!------------------------------------------------------------------------------------------>
  124.  
  125.  
  126. <!--------------------------------------------Кнопка удаления----------------------------------------------
  127. <square2>
  128. <a class="c" href="#openModal1">Удаления</a>
  129. <div id="openModal1" class="modalDialog">
  130. <div>
  131. <a class="close1" title="Close1" href="#close">X</a>
  132. <h2>Удаление</h2>
  133. <?php
  134. //include 'del.php';
  135. ?>
  136. </div>
  137. </div>
  138. </square2>
  139. !------------------------------------------------------------------------------------------>
  140.  
  141. <!--------------------------------------------Кнопка редактирования----------------------------------------------
  142. <square3>
  143. <a class="c" href="#openModal2">Редактирование</a>
  144. <div id="openModal2" class="modalDialog">
  145. <div>
  146. <a class="close1" title="Close1" href="#close">X</a>
  147. <h2>Редактирование</h2>
  148. <?php
  149. //include 'reda.php';
  150. ?>
  151. </div>
  152. </div>
  153. </square3>
  154. !------------------------------------------------------------------------------------------>
  155.  
  156.  
  157.  
  158. <square4>
  159. <?php
  160. include '11.php';
  161. ?>
  162. </square4>
  163. <!-------Форма добавления---------->
  164. <?php
  165. //include 'form.php';
  166. ?>
  167. <!----------------->
  168. <square1>
  169. <?php
  170. require_once("2.php");
  171. if($connection == false){
  172. echo "Error!";
  173. echo mysqli_connect_errno();
  174. exit();
  175. }
  176. if (isset($_GET['page'])){
  177. $page = $_GET['page'];
  178. } else {
  179. $page = 1;
  180. }
  181. $limit = 12;
  182. $number = ($page * $limit) - $limit;
  183. $res_count = mysqli_query($connection, "SELECT COUNT(*) FROM zakaz1 ");
  184. $row = mysqli_fetch_row($res_count);
  185. $total = $row[0];
  186. $str_pag = ceil($total / $limit);
  187. $query = mysqli_query($connection, "SELECT * FROM zakaz1 ORDER BY Nomer DESC LIMIT $number, $limit");
  188. ?>
  189.  
  190. <?php
  191. //$n1 = $_POST['n1'];
  192. //$n1='1';
  193. //echo "$n1";
  194. //echo "$n1";
  195.  
  196. //============================================================================================ТАБЛИЦА
  197. echo "<table class='table table-inverse' align='center'>";
  198. echo "<th>Номер заказаᅠ ᅠ ᅠ ᅠ ᅠ ᅠ ᅠ ᅠ ᅠ ᅠ ᅠ ᅠ ᅠ ᅠ ᅠ ᅠ ᅠ ᅠ </th><th>Дата заказа ᅠ ᅠ ᅠ ᅠ ᅠ ᅠ ᅠ ᅠ ᅠ </th><th>Сумма ᅠᅠ ᅠ ᅠ ᅠ ᅠ </th>";
  199. //=============================================================================================
  200. for ($i = 1; $i <=$str_pag; $i++){
  201. echo " <a href=1.php?page=".$i.">".$i."</a> ";
  202. }
  203. if(mysqli_num_rows($query) == 0){
  204. echo "There are no records!";
  205. } else {
  206.  
  207. echo "<br/>";
  208.  
  209. while($article = mysqli_fetch_assoc($query)){
  210. //if (!empty($n1))
  211. //{
  212. if($article['Nomer'] >= '1'){
  213.  
  214. echo '<tr><td>'.$article['Nomer'].'</td><td>'.$article['Date1'].'</td><td>'.$article['Sum'].'</td><td><a href=del.php?Nomer='.$article['Nomer'].'>Удалить</a></td><td><a href=reda.php?Nomer='.$article['Nomer'].'>Редактировать</a></td></tr>';
  215. //}
  216. }
  217. }
  218. echo "</table>";
  219. }
  220. //////////////////////////////////////////////////
  221. ?>
  222.  
  223. </square1>
  224. </body>
  225. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement