Advertisement
Guest User

Untitled

a guest
Oct 10th, 2015
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 12.84 KB | None | 0 0
  1. <?php
  2. include("connect.php");
  3. session_start();
  4.  
  5. ?>
  6.  
  7. <head>
  8. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  9. <title>Players Online - Condemned MMO</title>
  10. <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
  11. <link rel="stylesheet" href="//code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css">
  12.   <script src="//code.jquery.com/jquery-1.10.2.js"></script>
  13.   <script src="//code.jquery.com/ui/1.11.2/jquery-ui.js"></script>
  14.   <script>
  15. $(function() {
  16.     $( "#accordion" ).accordion({
  17.       collapsible: true,
  18.       active: false,
  19.       heightStyle: "content"
  20.     });
  21.   });
  22.   $(function() {
  23.     $( "#accordion1" ).accordion({
  24.       collapsible: true,
  25.       active: false,
  26.       heightStyle: "content"
  27.     });
  28.   });
  29.     $(function() {
  30.     $( "#accordion2" ).accordion({
  31.       collapsible: true,
  32.       active: false,
  33.       heightStyle: "content"
  34.     });
  35.   });
  36.  $(function() {
  37.     $( "#accordion4" ).accordion({
  38.       collapsible: true,
  39.       active: false,
  40.       heightStyle: "content"
  41.     });
  42.   });
  43.   </script>
  44. <body bgcolor="#686868 "></body>
  45. <body background="WarZ.jpg" style="background-size: 100% 100%;">
  46. <style>
  47. .ventanas{
  48.     border-right : #DCDCDC 2px solid;
  49.     border-top   : #DCDCDC 1px solid;
  50.     border-bottom: #DCDCDC 1px solid;
  51.     border-left  : #DCDCDC 1px solid;  
  52.     font-style: normal;
  53.     font-family: Arial;
  54.     font-weight: normal;
  55.     font-size: 12px;
  56.     padding-right : 0px;
  57.     padding-left  : 0px;
  58.     padding-top   : 0px;
  59.     padding-bottom: 0px;     
  60.     border-collapse:separate;
  61.     border-spacing:0px 0px 0px 0px;
  62.     border-radius: 5px 0px 0px 0px;
  63.     -moz-border-radius: 5px 30px 45px 60px;
  64.     -webkit-border-radius: 15px;
  65. }
  66. .ventanas2{
  67.     border-right : #DCDCDC 2px solid;
  68.     border-top   : #DCDCDC 1px solid;
  69.     border-bottom: #DCDCDC 1px solid;
  70.     border-left  : #DCDCDC 1px solid;  
  71.     font-style: normal;
  72.     font-family: Arial;
  73.     font-weight: normal;
  74.     font-size: 12px;
  75.     padding-right : 0px;
  76.     padding-left  : 0px;
  77.     padding-top   : 0px;
  78.     padding-bottom: 0px;     
  79.     border-collapse:separate;
  80.     border-spacing:0px 0px 0px 0px;
  81.     border-radius: 5px 0px 0px 0px;
  82.     -moz-border-radius: 5px 30px 45px 60px;
  83.     -webkit-border-radius: 15px;
  84. }
  85. hr {border: 1px dashed #C0C0C0; height: 0; width: 100%;}
  86.  
  87. .row{
  88.     margin-top:40px;
  89.     padding: 0 10px;
  90. }
  91.  
  92. .clickable{
  93.     cursor: pointer;  
  94. }
  95.  
  96. .panel-heading span {
  97.     margin-top: -20px;
  98.     font-size: 15px;
  99. }
  100. table a:link {
  101.     color: #666;
  102.     font-weight: bold;
  103.     text-decoration:none;
  104. }
  105. table a:visited {
  106.     color: #999999;
  107.     font-weight:bold;
  108.     text-decoration:none;
  109. }
  110. table a:active,
  111. table a:hover {
  112.     color: #bd5a35;
  113.     text-decoration:underline;
  114. }
  115. table {
  116.     font-family:Arial, Helvetica, sans-serif;
  117.     color:#666;
  118.     font-size:12px;
  119.     text-shadow: 1px 1px 0px #fff;
  120.     background:#eaebec;
  121.     margin:20px;
  122.     border:#ccc 1px solid;
  123.  
  124.     -moz-border-radius:3px;
  125.     -webkit-border-radius:3px;
  126.     border-radius:3px;
  127.  
  128.     -moz-box-shadow: 0 1px 2px #d1d1d1;
  129.     -webkit-box-shadow: 0 1px 2px #d1d1d1;
  130.     box-shadow: 0 1px 2px #d1d1d1;
  131. }
  132. table th {
  133.     padding:21px 25px 22px 25px;
  134.     border-top:1px solid #fafafa;
  135.     border-bottom:1px solid #e0e0e0;
  136.  
  137.     background: #ededed;
  138.     background: -webkit-gradient(linear, left top, left bottom, from(#ededed), to(#ebebeb));
  139.     background: -moz-linear-gradient(top,  #ededed,  #ebebeb);
  140. }
  141. table th:first-child {
  142.     text-align: left;
  143.     padding-left:20px;
  144. }
  145. table tr:first-child th:first-child {
  146.     -moz-border-radius-topleft:3px;
  147.     -webkit-border-top-left-radius:3px;
  148.     border-top-left-radius:3px;
  149. }
  150. table tr:first-child th:last-child {
  151.     -moz-border-radius-topright:3px;
  152.     -webkit-border-top-right-radius:3px;
  153.     border-top-right-radius:3px;
  154. }
  155. table tr {
  156.     text-align: center;
  157.     padding-left:20px;
  158. }
  159. table td:first-child {
  160.     text-align: left;
  161.     padding-left:20px;
  162.     border-left: 0;
  163. }
  164. table td {
  165.     padding:18px;
  166.     border-top: 1px solid #ffffff;
  167.     border-bottom:1px solid #e0e0e0;
  168.     border-left: 1px solid #e0e0e0;
  169.  
  170.     background: #fafafa;
  171.     background: -webkit-gradient(linear, left top, left bottom, from(#fbfbfb), to(#fafafa));
  172.     background: -moz-linear-gradient(top,  #fbfbfb,  #fafafa);
  173. }
  174. table tr:nth-of-type(even) td {
  175.     background: #f6f6f6;
  176.     background: -webkit-gradient(linear, left top, left bottom, from(#f8f8f8), to(#f6f6f6));
  177.     background: -moz-linear-gradient(top,  #f8f8f8,  #f6f6f6);
  178. }
  179. table tr:last-child td {
  180.     border-bottom:0;
  181. }
  182. table tr:last-child td:first-child {
  183.     -moz-border-radius-bottomleft:3px;
  184.     -webkit-border-bottom-left-radius:3px;
  185.     border-bottom-left-radius:3px;
  186. }
  187. table tr:last-child td:last-child {
  188.     -moz-border-radius-bottomright:3px;
  189.     -webkit-border-bottom-right-radius:3px;
  190.     border-bottom-right-radius:3px;
  191. }
  192. table tr:hover td {
  193.     background: #f2f2f2;
  194.     background: -webkit-gradient(linear, left top, left bottom, from(#f2f2f2), to(#f0f0f0));
  195.     background: -moz-linear-gradient(top,  #f2f2f2,  #f0f0f0); 
  196. }
  197.  
  198. button,input {line-height: normal}
  199.  
  200. button,select {text-transform: none}
  201.  
  202. button,html input[type=button],input[type=reset],input[type=submit] {
  203.     -webkit-appearance: button;
  204.     cursor: pointer;
  205.     *overflow: visible
  206.  }
  207.  
  208. button[disabled],html input[disabled] {cursor: default}
  209.  
  210. input[type=checkbox],input[type=radio] {
  211.     box-sizing: border-box;
  212.     padding: 0;
  213.     *height: 13px;
  214.     *width: 13px
  215.  }
  216.  
  217. input[type=search] {
  218.     -webkit-appearance: textfield;
  219.     -moz-box-sizing: content-box;
  220.     -webkit-box-sizing: content-box;
  221.     box-sizing: content-box
  222.  }
  223.  
  224.     input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration {-webkit-appearance: none}
  225.  
  226. button::-moz-focus-inner,input::-moz-focus-inner {border: 0;padding:0}
  227.  
  228. .pure-button {
  229.     display: inline-block;
  230.     *display: inline;
  231.     zoom: 1;
  232.     line-height: normal;
  233.     white-space: nowrap;
  234.     vertical-align: baseline;
  235.     text-align: center;
  236.     cursor: pointer;
  237.     -webkit-user-drag: none;
  238.     -webkit-user-select: none;
  239.     -moz-user-select: none;
  240.     -ms-user-select: none;
  241.     user-select: none
  242.  }
  243.  
  244.     .pure-button::-moz-focus-inner {padding: 0;border:0}
  245.  
  246. .pure-button {
  247.     font-family: inherit;
  248.     font-size: 100%;
  249.     *font-size: 90%;
  250.     *overflow: visible;
  251.     padding: .5em 1em;
  252.     color: #444;
  253.     color: rgba(0,0,0,.8);
  254.     *color: #444;
  255.     border: 1px solid #999;
  256.     border: 0 rgba(0,0,0,0);
  257.     background-color: #E6E6E6;
  258.     text-decoration: none;
  259.     border-radius: 2px
  260.  }
  261.  
  262. .pure-button-hover,.pure-button:hover,.pure-button:focus {
  263.     filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#1a000000', GradientType=0);
  264.     background-image: -webkit-gradient(linear,0 0,0 100%,from(transparent),color-stop(40%,rgba(0,0,0,.05)),to(rgba(0,0,0,.1)));
  265.     background-image: -webkit-linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1));
  266.     background-image: -moz-linear-gradient(top,rgba(0,0,0,.05) 0,rgba(0,0,0,.1));
  267.     background-image: -o-linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1));
  268.     background-image: linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1))
  269.  }
  270.  
  271. .pure-button:focus {outline: 0}
  272.  
  273. .pure-button-active,.pure-button:active {box-shadow: 0 0 0 1px rgba(0,0,0,.15) inset,0 0 6px rgba(0,0,0,.2) inset}
  274.  
  275. .pure-button[disabled],.pure-button-disabled,.pure-button-disabled:hover,.pure-button-disabled:focus,.pure-button-disabled:active {
  276.     border: 0;
  277.     background-image: none;
  278.     filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  279.     filter: alpha(opacity=40);
  280.     -khtml-opacity: .4;
  281.     -moz-opacity: .4;
  282.     opacity: .4;
  283.     cursor: not-allowed;
  284.     box-shadow: none
  285.  }
  286.  
  287. .pure-button-hidden {display: none}
  288.  
  289. .pure-button::-moz-focus-inner {padding: 0;border:0}
  290.  
  291. .pure-button-primary,.pure-button-selected,a.pure-button-primary,a.pure-button-selected {background-color: #0078e7;color:#fff}
  292.  
  293. .pure-form input[type=text],.pure-form input[type=password],.pure-form input[type=email],.pure-form input[type=url],.pure-form input[type=date],.pure-form input[type=month],.pure-form input[type=time],.pure-form input[type=datetime],.pure-form input[type=datetime-local],.pure-form input[type=week],.pure-form input[type=number],.pure-form input[type=search],.pure-form input[type=tel],.pure-form input[type=color],.pure-form select,.pure-form textarea {
  294.     padding: .5em .6em;
  295.     display: inline-block;
  296.     border: 1px solid #ccc;
  297.     box-shadow: inset 0 1px 3px #ddd;
  298.     border-radius: 4px;
  299.     -webkit-box-sizing: border-box;
  300.     -moz-box-sizing: border-box;
  301.     box-sizing: border-box
  302.  }
  303.  
  304. .pure-form input:not([type]) {
  305.     padding: .5em .6em;
  306.     display: inline-block;
  307.     border: 1px solid #ccc;
  308.     box-shadow: inset 0 1px 3px #ddd;
  309.     border-radius: 4px;
  310.     -webkit-box-sizing: border-box;
  311.     -moz-box-sizing: border-box;
  312.     box-sizing: border-box
  313.  }
  314.  
  315. .pure-form input[type=color] {padding: .2em .5em}
  316.  
  317. .pure-form input[type=text]:focus,.pure-form input[type=password]:focus,.pure-form input[type=email]:focus,.pure-form input[type=url]:focus,.pure-form input[type=date]:focus,.pure-form input[type=month]:focus,.pure-form input[type=time]:focus,.pure-form input[type=datetime]:focus,.pure-form input[type=datetime-local]:focus,.pure-form input[type=week]:focus,.pure-form input[type=number]:focus,.pure-form input[type=search]:focus,.pure-form input[type=tel]:focus,.pure-form input[type=color]:focus,.pure-form select:focus,.pure-form textarea:focus {
  318.     outline: 0;
  319.     outline: thin dotted 9;
  320.     border-color: #129FEA
  321.  }
  322.  
  323. .pure-form input:not([type]):focus {
  324.     outline: 0;
  325.     outline: thin dotted 9;
  326.     border-color: #129FEA
  327.  }
  328.  
  329. .pure-form input[type=file]:focus,.pure-form input[type=radio]:focus,.pure-form input[type=checkbox]:focus {outline: thin dotted #333;outline:1px auto #129FEA}
  330.  
  331. .pure-form .pure-checkbox,.pure-form .pure-radio {margin: .5em 0;display:block}
  332.  
  333. .pure-form input[type=text][disabled],.pure-form input[type=password][disabled],.pure-form input[type=email][disabled],.pure-form input[type=url][disabled],.pure-form input[type=date][disabled],.pure-form input[type=month][disabled],.pure-form input[type=time][disabled],.pure-form input[type=datetime][disabled],.pure-form input[type=datetime-local][disabled],.pure-form input[type=week][disabled],.pure-form input[type=number][disabled],.pure-form input[type=search][disabled],.pure-form input[type=tel][disabled],.pure-form input[type=color][disabled],.pure-form select[disabled],.pure-form textarea[disabled] {
  334.     cursor: not-allowed;
  335.     background-color: #eaeded;
  336.     color: #cad2d3
  337.  }
  338.  
  339. .pure-form input:not([type])[disabled] {
  340.     cursor: not-allowed;
  341.     background-color: #eaeded;
  342.     color: #cad2d3
  343.  }
  344.  
  345. .pure-form input[readonly],.pure-form select[readonly],.pure-form textarea[readonly] {
  346.     background: #eee;
  347.     color: #777;
  348.     border-color: #ccc
  349.  }
  350.  
  351. .pure-form input:focus:invalid,.pure-form textarea:focus:invalid,.pure-form select:focus:invalid {color: #b94a48;border-color:#ee5f5b}
  352.  
  353. .pure-form input:focus:invalid:focus,.pure-form textarea:focus:invalid:focus,.pure-form select:focus:invalid:focus {border-color: #e9322d}
  354.  
  355. .pure-form input[type=file]:focus:invalid:focus,.pure-form input[type=radio]:focus:invalid:focus,.pure-form input[type=checkbox]:focus:invalid:focus {outline-color: #e9322d}
  356.  
  357. .pure-form select {border: 1px solid #ccc;background-color:#fff}
  358.  
  359. .pure-form select[multiple] {height: auto}
  360.  
  361. .pure-form label {margin: .5em 0 .2em}
  362.  
  363.  
  364. .pure-form-stacked input[type=text],.pure-form-stacked input[type=password],.pure-form-stacked input[type=email],.pure-form-stacked input[type=url],.pure-form-stacked input[type=date],.pure-form-stacked input[type=month],.pure-form-stacked input[type=time],.pure-form-stacked input[type=datetime],.pure-form-stacked input[type=datetime-local],.pure-form-stacked input[type=week],.pure-form-stacked input[type=number],.pure-form-stacked input[type=search],.pure-form-stacked input[type=tel],.pure-form-stacked input[type=color],.pure-form-stacked select,.pure-form-stacked label,.pure-form-stacked textarea {display: block;margin:.25em 0}
  365.  
  366. .pure-form-stacked input:not([type]) {display: block;margin:.25em 0}
  367.  
  368. .pure-form-aligned input,.pure-form-aligned textarea,.pure-form-aligned select,.pure-form-aligned .pure-help-inline,.pure-form-message-inline {
  369.     display: inline-block;
  370.     *display: inline;
  371.     *zoom: 1;
  372.     vertical-align: middle
  373.  }
  374. </style>
  375.      
  376.      
  377.      
  378.      
  379.      <center><table cellspacing='0'>
  380.     <thead>
  381.     <tr>
  382.     <th>Name</th>
  383.     <th>Type</th>
  384.     </tr>
  385.     </thead>
  386.     <tbody>
  387.     <font color="red"><center><b>Players Online in past 15 Minutes</b></center></font>
  388. <?php
  389.  $sqlcall = "{CALL WEB_PlayersOnline}";
  390.          $query = sqlsrv_query($conexion,$sqlcall)or die(print_r(sqlsrv_errors(),true));
  391.         while ($row = sqlsrv_fetch_array($query))
  392.         {
  393.          $name = $row["Gamertag"];
  394.          $isDev = $row["IsDeveloper"];
  395.          $accType = $row["AccountType"];
  396.          Echo "<tr><td>" . $name . "</td>";
  397.              if($isDev){
  398.              echo "<td><font color=red>Developer</font></td></tr>";
  399.              } elseif($accType == 0) {
  400.              echo "<td><Font color=#EDDA74>Donator</font></td></tr>";
  401.              } else {
  402.              echo "<td>Regular Account</td></tr>";
  403.             }
  404.         }
  405.  ?>
  406.  </tbody>
  407.  </table></center>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement