Adminpage.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. <?php session_start(); ?></p>
  2. <html lang="en">
  3. <head id="top">
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <link rel="stylesheet" href="styles/style_admin.css">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8. <title>ModelMaster</title>
  9. </head>
  10. <body>
  11. <script src="Sever_zapad/sever.js"></script>
  12. <header class="header">
  13. <div class="header_content">
  14. <div class="Name_site">
  15. <p class="Name">Model <br class="Name1">
  16. Master</p>
  17. </div>
  18. <div class="hd">
  19. <div class = "login1">
  20. <a href="proverkarol.php"><div class = "login">
  21. <p>Главная</p>
  22. </div></a>
  23. </div>
  24. <div class = "login1">
  25. <a href="index.html"><div class = "login">
  26. <p>Выйти</p>
  27. </div></a>
  28. </div>
  29. </div>
  30. </div>
  31. </header>
  32. <script src="open_block.js"></script>
  33. <div class="pred">
  34. <div class="pred_up">
  35. <div class="info">
  36. <div class="ocenka">
  37. <div class="star">
  38. <svg version="1.0" class="staar"
  39. width="180.000000pt" class="staar" height="116.000000pt" viewBox="0 0 1280.000000 1216.000000"
  40. preserveAspectRatio="xMidYMid meet">
  41. <g transform="translate(0.000000,1216.000000) scale(0.100000,-0.100000)"
  42. stroke="none">
  43. <path d="M5890 10598 c-332 -755 -736 -1674 -898 -2043 -161 -368 -295 -671
  44. -297 -673 -2 -2 -308 -25 -682 -52 -373 -27 -1054 -76 -1513 -109 -459 -34
  45. -1087 -79 -1395 -101 -308 -22 -585 -43 -615 -46 l-54 -6 49 -47 c28 -25 336
  46. -300 684 -611 349 -311 806 -718 1016 -905 1267 -1130 1560 -1391 1572 -1400
  47. 17 -13 74 228 -542 -2265 -256 -1036 -464 -1887 -463 -1890 2 -4 869 499 1928
  48. 1117 1058 618 1931 1122 1940 1120 8 -2 398 -242 865 -532 468 -291 1165 -724
  49. 1550 -963 385 -239 811 -504 947 -588 135 -85 249 -154 253 -154 4 0 4 17 0
  50. 38 -6 34 -411 1897 -776 3568 -87 402 -159 738 -159 747 0 13 649 563 2997
  51. 2542 258 217 261 220 230 227 -18 4 -1011 104 -2207 223 -1196 119 -2184 220
  52. -2196 225 -15 6 -62 111 -199 446 -98 242 -412 1013 -697 1714 -285 701 -564
  53. 1388 -620 1525 -56 138 -104 253 -108 258 -3 4 -278 -610 -610 -1365z"/>
  54. </g>
  55. </svg>
  56. </div>
  57. <div class="data">
  58. <p>Оценка сайта: <?php include 'admin.php'; ?></p>
  59. <p>Количество пользователей: <?php include 'count_user.php'; ?></p>
  60. <p>Количество комментариев: <?php include 'count_com.php'; ?></p>
  61. </div>
  62. </div>
  63. <div class="admin_acc">
  64. <div class="admin_svg">
  65. <svg fill="#263535" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="200px" height="200px" viewBox="0 0 106.391 106.391" xml:space="preserve" stroke="#3e5656">
  66. <g id="SVGRepo_bgCarrier" stroke-width="0"/>
  67. <g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" stroke="#CCCCCC" stroke-width="0.42556400000000005"/>
  68. <g id="SVGRepo_iconCarrier"> <g> <g> <g> <path d="M102.527,75.992l-0.352-0.129c-0.002-0.5-0.021-0.996-0.059-1.494l0.336-0.154c1.436-0.66,2.527-1.84,3.074-3.324 c0.547-1.481,0.483-3.086-0.177-4.52l-1.362-2.961c-0.963-2.088-3.071-3.438-5.373-3.438c-0.857,0-1.688,0.183-2.469,0.541 l-0.34,0.156c-0.354-0.35-0.72-0.688-1.098-1.014l0.131-0.353c1.126-3.059-0.443-6.465-3.498-7.591l-3.061-1.131 c-0.637-0.234-1.307-0.354-1.991-0.354c-2.498,0-4.749,1.547-5.603,3.852l-0.129,0.352c-0.496,0.002-0.994,0.021-1.492,0.058 l-0.156-0.338c-0.961-2.088-3.07-3.438-5.373-3.438c-0.857,0-1.688,0.182-2.469,0.541l-2.963,1.363 c-2.959,1.363-4.259,4.883-2.896,7.844l0.155,0.338c-0.352,0.355-0.688,0.721-1.014,1.101L64.01,61.77 c-0.639-0.238-1.312-0.357-2.003-0.357c-0.438,0-0.866,0.062-1.284,0.154c-0.604-0.234-1.201-0.476-1.806-0.707 c-0.521-0.197-1.146-0.599-1.361-1.054c-0.569-1.264-0.964-2.602-1.378-3.92c-0.252-0.85-0.479-1.643-1.403-2.053 c-0.253-0.111-0.479-0.598-0.479-0.912c0.056-3.067-0.659-6.291,1.62-8.969c0.068-0.082,0.098-0.201,0.146-0.299 c1.229-2.688,1.439-5.764,3.158-8.266c0.043-0.055,0.053-0.137,0.062-0.209c0.201-1.916,0.404-3.814,0.568-5.725 c0.016-0.232-0.191-0.654-0.395-0.727c-0.944-0.332-0.896-1.096-0.889-1.854c0-3.729,0-4.271-0.008-8 c0-2.168-0.637-4.092-2.271-5.568c-1.87-1.676-3.785-3.299-5.704-4.916C49.663,7.604,49.578,7,50.447,6.141 c0.388-0.379,0.872-0.654,1.322-0.973c-0.103-0.148-0.197-0.293-0.292-0.439c-0.581,0-1.164-0.076-1.726,0.01 c-2.122,0.34-4.254,0.643-6.333,1.131c-3.979,0.938-7.839,2.182-11.063,4.844c-2.204,1.818-3.965,3.936-4.188,6.934 c-0.111,1.57-0.099,3.152-0.111,4.721c-0.013,2.564,0.022,1.941-0.032,4.496c-0.014,0.416-0.243,1.102-0.535,1.193 c-1.033,0.338-1.066,1-0.925,1.863c0.102,0.594,0.026,1.213,0.154,1.793c0.357,1.602,0.737,3.205,1.2,4.779 c0.341,1.174,1.007,2.283,1.197,3.477c0.363,2.385,1.256,4.457,2.866,6.262c0.263,0.297,0.463,0.797,0.433,1.193 c-0.127,1.83-0.314,3.666-0.563,5.49c-0.053,0.354-0.423,0.885-0.729,0.955c-1.22,0.248-1.407,1.186-1.698,2.141 c-0.381,1.254-0.791,2.502-1.276,3.718c-0.151,0.379-0.531,0.77-0.905,0.94c-2.164,0.938-4.375,1.812-6.56,2.726 c-2.321,0.977-4.67,1.911-6.939,2.987c-2.339,1.121-4.611,2.377-6.901,3.607c-1.348,0.721-2.607,1.521-3.66,2.512L0,86.082 c15.526,0,23.634,11.227,39.79,12.611l-5.953-8.218l9.232-25.25l-2.856-6.133h5.72l-2.863,6.133l9.233,25.25l-5.799,8.017 c5.602-0.937,12.793-3.795,19.773-6.533c0.107,0.098,0.209,0.201,0.318,0.295l-0.126,0.342c-0.552,1.482-0.489,3.091,0.171,4.523 c0.659,1.436,1.84,2.529,3.322,3.078l3.057,1.127c0.661,0.246,1.352,0.369,2.053,0.369c0.854,0,1.687-0.183,2.47-0.543 c1.435-0.66,2.526-1.84,3.073-3.32l0.129-0.352c0.498-0.003,0.996-0.021,1.494-0.06l0.154,0.34 c0.963,2.088,3.072,3.438,5.375,3.438c0.857,0,1.688-0.185,2.469-0.543l2.961-1.363c2.961-1.363,4.26-4.883,2.896-7.844 l-0.155-0.338c0.352-0.354,0.688-0.722,1.014-1.099l0.353,0.131c1.472,0.546,3.103,0.478,4.521-0.178 c1.434-0.658,2.523-1.838,3.072-3.319l1.129-3.06C107.152,80.531,105.586,77.125,102.527,75.992z M103.568,82.514l-1.129,3.06 c-0.271,0.729-0.808,1.311-1.513,1.635c-0.707,0.326-1.498,0.357-2.229,0.088l-2.418-0.893c-1,1.463-2.217,2.787-3.631,3.932 l1.076,2.336c0.672,1.459,0.033,3.191-1.426,3.863l-2.961,1.363c-1.457,0.672-3.191,0.03-3.863-1.427L84.4,94.135 c-1.789,0.332-3.588,0.396-5.35,0.203l-0.895,2.418c-0.269,0.729-0.805,1.312-1.512,1.638c-0.707,0.323-1.498,0.354-2.228,0.086 l-3.06-1.13c-0.729-0.27-1.311-0.809-1.635-1.516c-0.326-0.707-0.357-1.496-0.086-2.227l0.893-2.416 c-1.465-1-2.791-2.218-3.934-3.631l-2.337,1.075c-1.458,0.672-3.19,0.031-3.862-1.426l-1.363-2.963 c-0.672-1.457-0.032-3.189,1.427-3.861l2.336-1.075c-0.332-1.787-0.396-3.587-0.203-5.349l-2.418-0.895 c-0.728-0.269-1.31-0.806-1.638-1.513c-0.323-0.705-0.354-1.495-0.086-2.227l1.13-3.059c0.538-1.462,2.284-2.265,3.741-1.722 l2.414,0.892c1.002-1.463,2.22-2.789,3.633-3.935l-1.076-2.336c-0.671-1.457-0.031-3.19,1.427-3.863l2.961-1.362 c1.458-0.672,3.191-0.031,3.863,1.428l1.075,2.334c1.787-0.33,3.587-0.393,5.349-0.203l0.894-2.418 c0.539-1.457,2.28-2.26,3.74-1.723l3.059,1.131c1.505,0.555,2.277,2.234,1.723,3.74l-0.893,2.416 c1.463,1.002,2.789,2.217,3.932,3.633l2.338-1.078c1.457-0.672,3.189-0.031,3.861,1.428l1.363,2.959 c0.672,1.459,0.032,3.193-1.427,3.863l-2.336,1.076c0.332,1.789,0.396,3.586,0.204,5.35l2.418,0.894 C103.351,79.332,104.125,81.009,103.568,82.514z"/> </g> <g> <path d="M81.016,87.441c-4.482,0-8.59-2.631-10.464-6.7c-2.655-5.769-0.126-12.621,5.642-15.277 c1.524-0.702,3.145-1.058,4.812-1.058c4.481,0,8.591,2.629,10.466,6.698c2.655,5.769,0.125,12.62-5.641,15.276 C84.303,87.084,82.684,87.441,81.016,87.441z M81.005,67.406c-1.231,0-2.429,0.263-3.558,0.782 c-4.264,1.965-6.135,7.031-4.17,11.297c1.387,3.011,4.424,4.956,7.738,4.956c1.23,0,2.43-0.265,3.559-0.784 c4.264-1.964,6.135-7.032,4.172-11.298C87.359,69.349,84.32,67.406,81.005,67.406z"/> </g> </g> </g> </g>
  69. </svg>
  70. </div>
  71. <div class="admin_status">
  72. Администратор : <?php echo $_SESSION['login'];
  73. ?>
  74. <div class="poz_knopka"><a href="Statisic.csv" download><form action="csv.php">
  75. <input type = "submit" value="Скачать отзывы" class="knopka"> </form></a></div>
  76. <div class="s"><a href="Statisic.csv" download><p>Нажмите сюда, если скачивание не началось</p><a></div>
  77. </div>
  78. </div>
  79. </div>
  80. <div class="poz_knopka">
  81. <button onclick="openB()" class="knopka">Открыть комментарии </button>
  82. <button onclick="openBB()" class="knopka">Открыть пользователей </button>
  83. </div>
  84. <?php include 'comment.php';
  85. $result = mysqli_query($mysql, "SELECT * FROM `reviews`");
  86. ?>
  87. <div class="comments-container" id="b">
  88. <?php
  89. While($rivews = mysqli_fetch_assoc($result)){
  90. $login = $rivews['id_user'];
  91. $result1 = mysqli_query($mysql,"SELECT login from Login where id_user=$login");
  92. $login_user = mysqli_fetch_assoc($result1);
  93. ?>
  94. <div class="com"><div class="krug"> </div><p class="text_in_com">Пользователь: <?php echo $login_user['login'];?> | Комментарий: <?php echo $rivews['review'];?> | Оценка: <?php echo $rivews['rating'];?></p></div>
  95. <?php
  96. }
  97. ?>
  98. </div>
  99. <?php include 'comment.php';
  100. $resultat = mysqli_query($mysql, "SELECT * FROM `Login`");?>
  101. <div class="users-container" id="bb">
  102. <?php
  103. While($Login = mysqli_fetch_assoc($resultat)){
  104. ?>
  105. <div class="com1">
  106. <div class="user_svg">
  107. <svg width="100px" height="100px" viewBox="0 0 1024 1024" class="icon" version="1.1" xmlns="http://www.w3.org/2000/svg" fill="#000000">
  108. <g id="SVGRepo_bgCarrier" stroke-width="0"/>
  109. <g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/>
  110. <g id="SVGRepo_iconCarrier">
  111. <path d="M691.573 338.89c-1.282 109.275-89.055 197.047-198.33 198.331-109.292 1.282-197.065-90.984-198.325-198.331-0.809-68.918-107.758-68.998-106.948 0 1.968 167.591 137.681 303.31 305.272 305.278C660.85 646.136 796.587 503.52 798.521 338.89c0.811-68.998-106.136-68.918-106.948 0z" fill="#7bb7b6"/>
  112. <path d="M294.918 325.158c1.283-109.272 89.051-197.047 198.325-198.33 109.292-1.283 197.068 90.983 198.33 198.33 0.812 68.919 107.759 68.998 106.948 0C796.555 157.567 660.839 21.842 493.243 19.88c-167.604-1.963-303.341 140.65-305.272 305.278-0.811 68.998 106.139 68.919 106.947 0z" fill="#e8e0b5"/>
  113. <path d="M222.324 959.994c0.65-74.688 29.145-144.534 80.868-197.979 53.219-54.995 126.117-84.134 201.904-84.794 74.199-0.646 145.202 29.791 197.979 80.867 54.995 53.219 84.13 126.119 84.79 201.905 0.603 68.932 107.549 68.99 106.947 0-1.857-213.527-176.184-387.865-389.716-389.721-213.551-1.854-387.885 178.986-389.721 389.721-0.601 68.991 106.349 68.933 106.949 0.001z" fill="#5c797a"/>
  114. </g>
  115. </svg>
  116. </div>
  117. <div class="com1_in"><div ><p class="text_in_com">Email: <?php echo $Login['email'];?></p></div>
  118. <div><p class="text_in_com">Login: <?php echo $Login['login'];?></p></div>
  119. <div><p class="text_in_com">Password: <?php echo $Login['password'];?></p></div></div>
  120. </div>
  121. <?php
  122. }
  123. ?>
  124. </div>
  125. </div>
  126. </div>
  127. <footer>
  128. <div class="footer-content">
  129. <div class="footer-info">
  130. <h3>Горячая линия и связь:</h3>
  131. <p>Телефон: **************</p>
  132. <p>Эл. почта: *****************</p>
  133. </div>
  134. </div>
  135. <p class="copyright">&copy; ModelMaster</p>
  136. </footer>
  137. <!-- -->
  138. <!--
  139. <div class="pred_up">
  140. </div>
  141. -->
  142. </body>
  143. </html>