Initial commit
[2ch-be.git] / dev-test / rewrite / tools / index.php
blobaebefecc80fb946a23c201c543ac734f0d2c4451
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <meta charset="utf-8">
5 <title>BE Points Tool</title>
6 <meta name="viewport" content="width=device-width, initial-scale=1.0">
7 <meta name="description" content="">
8 <meta name="author" content="">
10 <!-- Le styles -->
11 <style type="text/css">
12 body {
13 padding-top: 10px;
14 padding-bottom: 40px;
15 background-color: #f5f5f5;
18 .form-signin {
19 max-width: 300px;
20 padding: 19px 29px 29px;
21 margin: 0 auto 20px;
22 background-color: #fff;
23 border: 1px solid #e5e5e5;
24 -webkit-border-radius: 5px;
25 -moz-border-radius: 5px;
26 border-radius: 5px;
27 -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
28 -moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
29 box-shadow: 0 1px 2px rgba(0,0,0,.05);
31 .form-signin .form-signin-heading,
32 .form-signin .checkbox {
33 margin-bottom: 10px;
35 .form-signin input[type="text"],
36 .form-signin input[type="password"] {
37 font-size: 16px;
38 height: auto;
39 margin-bottom: 15px;
40 padding: 7px 9px;
42 .navbar-nav {
43 float: left;
44 margin: 0;
46 .nav {
47 margin-bottom: 0;
48 padding-left: 0;
49 list-style: none;
51 .navbar-collapse {
52 content: " ";
54 .navbar-nav>li {
55 float: left;
57 .nav>li {
58 position: relative;
59 display: block;
61 a {
62 color: #428bca;
63 text-decoration: none;
64 font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
65 font-size: 14px;
67 .navbar-nav>li>a {
68 padding-top: 15px;
69 padding-bottom: 15px;
71 .nav>li>a {
72 position: relative;
73 display: block;
74 padding: 10px 15px;
76 .containerz {
77 content: " ";
78 display: table;
79 margin-bottom: 30px;
81 </style>
82 </head>
83 <body><center>
84 <div class="containerz">
85 <div class="navbar-collapse">
86 <ul class="nav navbar-nav">
87 <li><a href="?spoint">Set BE Points</a></li>
88 <li><a href="?mpoint">Subtract BE Points</a></li>
89 <li><a href="?apoint">Add BE Points</a></li>
90 </ul>
91 </div>
92 </div>
93 <?php if(isset($_GET['spoint'])) {
94 echo "<div class=\"container\">
95 <form class=\"form-signin\" method=\"post\" action=\"val_input.php\">
96 <h2 class=\"form-signin-heading\">Set BE Points</h2>
97 <input name=\"email\" type=\"text\" placeholder=\"Email address\" required>
98 <input name=\"points\" type=\"text\" placeholder=\"Points to be set\" required>
99 <br>
100 <button class=\"btn btn-large btn-primary\" type=\"submit\">Submit</button>
101 </form>
102 </div>";
103 } elseif(isset($_GET['mpoint'])) {
104 echo "<div class=\"container\">
105 <form class=\"form-signin\" method=\"post\" action=\"chk_input.php\">
106 <h2 class=\"form-signin-heading\">Subtract BE Points</h2>
107 <input type=\"hidden\" name=\"opr\" value=\"sub\">
108 <input name=\"id\" type=\"text\" placeholder=\"ID\" required>
109 <input name=\"points\" type=\"text\" placeholder=\"Points to subtract\" required>
110 <br>
111 <button class=\"btn btn-large btn-primary\" type=\"submit\">Submit</button>
112 </form>
113 </div>";
114 } elseif(isset($_GET['apoint'])) {
115 echo "<div class=\"container\">
116 <form class=\"form-signin\" method=\"post\" action=\"chk_input.php\">
117 <h2 class=\"form-signin-heading\">Add BE Points</h2>
118 <input type=\"hidden\" name=\"opr\" value=\"add\">
119 <input name=\"id\" type=\"text\" placeholder=\"ID\" required>
120 <input name=\"points\" type=\"text\" placeholder=\"Points to add\" required>
121 <br>
122 <button class=\"btn btn-large btn-primary\" type=\"submit\">Submit</button>
123 </form>
124 </div>";
125 } else {
126 echo "<div class=\"container\">
127 <form class=\"form-signin\" method=\"post\" action=\"val_input.php\">
128 <h2 class=\"form-signin-heading\">Set BE Points</h2>
129 <input name=\"email\" type=\"text\" placeholder=\"Email address\" required>
130 <input name=\"points\" type=\"text\" placeholder=\"Points to be set\" required>
131 <br>
132 <button class=\"btn btn-large btn-primary\" type=\"submit\">Submit</button>
133 </form>
134 </div>";
138 </center>
139 </body>
140 </html>