corrade-http-templates – Blame information for rev 2

Subversion Repositories:
Rev:
Rev Author Line No. Line
2 eva 1 <!doctype html>
2  
3 <html lang="en">
4 <head>
5 <meta charset="utf-8">
6  
7 <title>[Wizardry and Steamworks]:Corrade - Add Remove Groups</title>
8  
9 <meta name="description" content="Add Remove Groups using Corrade">
10 <meta name="author" content="Wizardry and Steamworks">
11  
12 <link rel="stylesheet" href="css/fonts.css?v=1.0">
13 <link rel="stylesheet" href="css/style.css?v=1.0">
14 <link rel="stylesheet" href="css/table.css?v=1.1">
15  
16 <script type="text/javascript" src="js/jquery.js"></script>
17 <script type="text/javascript" src="js/jquery.serializejson.js"></script>
18 <script type="text/javascript">
19 $(document).ready(function () {
20 $.ajax({
21 type: 'POST',
22 url: "Corrade.ini?q=" + Math.random(),
23 }).done(function(data) {
24 $('#configuration').val(data);
25 });
26 $('#create').click(function() {
27 $("#add").animate({ opacity: 'hide' }, 'slow');
28 $("#configuration").animate({ opacity: 'hide' }, 'slow');
29 var formObject = $('#add').serializeJSON(
30 {
31 checkboxUncheckedValue: false,
32 useIntKeysAsArrayIndex: true
33 }
34 );
35 $.ajax({
36 type: 'POST',
37 url: 'addGroup.php',
38 data: {
39 group: JSON.stringify(formObject)
40 }
41 }).done(function(data) {
42 $.ajax({
43 type: 'POST',
44 url: "Corrade.ini?q=" + Math.random(),
45 }).done(function(data) {
46 $('#configuration').val(data);
47 $("#configuration").animate({ opacity: 'show' }, 'slow');
48 });
49 $("#add").animate({ opacity: 'show' }, 'slow');
50 });
51 });
52 $('#delete').click(function() {
53 $("#remove").animate({ opacity: 'hide' }, 'slow');
54 $("#configuration").animate({ opacity: 'hide' }, 'slow');
55 var formObject = $('#remove').serializeJSON(
56 {
57 checkboxUncheckedValue: false,
58 useIntKeysAsArrayIndex: true
59 }
60 );
61 $.ajax({
62 type: 'POST',
63 url: 'removeGroup.php',
64 data: {
65 group: JSON.stringify(formObject)
66 }
67 }).done(function(data) {
68 $.ajax({
69 type: 'post',
70 url: "Corrade.ini?q=" + Math.random(),
71 }).done(function(data) {
72 $('#configuration').val(data);
73 $("#configuration").animate({ opacity: 'show' }, 'slow');
74 });
75 $("#remove").animate({ opacity: 'show' }, 'slow');
76 });
77 });
78 });
79 </script>
80 </head>
81  
82 <body>
83 <div id="container">
84 <div id="controls">
85 <textarea id="configuration" rows="12"></textarea>
86 <form id="add">
87 <div class="csstable">
88 <table>
89 <tr>
90 <td>
91 Description
92 </td>
93 <td>
94 Setting
95 </td>
96 </tr>
97 <tr>
98 <td>
99 <label for="Name">Group name:</label>
100 </td>
101 <td>
102 <input type="text" name="Name"></input><br/>
103 </td>
104 </tr>
105 <tr>
106 <td>
107 <label for="UUID">Group UUID:</label>
108 </td>
109 <td>
110 <input type="text" name="UUID"></input><br/>
111 </td>
112 </tr>
113 <tr>
114 <td>
115 <label for="Password">Group password:</label>
116 </td>
117 <td>
118 <input type="password" name="Password"></input><br/>
119 </td>
120 </tr>
121 <tr>
122 <td>
123 <label for="ChatLog">Path to chat log:</label>
124 </td>
125 <td>
126 <input type="text" name="ChatLog"></input><br/>
127 </td>
128 </tr>
129 <tr>
130 <td>
131 <label for="ChatLogEnabled">Enable chat log?</label>
132 </td>
133 <td>
134 <input type="checkbox" name="ChatLogEnabled" value="false"></input><br/>
135 </td>
136 </tr>
137 <tr>
138 <td>
139 <label for="DatabaseFile">Path to database file:</label>
140 </td>
141 <td>
142 <input type="text" name="DatabaseFile"></input><br/>
143 </td>
144 </tr>
145 <tr>
146 <td>
147 <label for="Workers">Amount of workers:</label>
148 </td>
149 <td>
150 <input type="text" name="Workers"></input><br/>
151 </td>
152 </tr>
153 <tr>
154 <td>
155 <label for "Notifications">Notifications:</label>
156 </td>
157 <td>
158 <label for="alert">alert</label>
159 <input type="checkbox" name="Notifications[0]" value="alert"></input>
160 <label for="region">region</label>
161 <input type="checkbox" name="Notifications[1]" value="region"></input>
162 <label for="group">group</label>
163 <input type="checkbox" name="Notifications[2]" value="group"></input>
164 <label for="balance">balance</label>
165 <input type="checkbox" name="Notifications[3]" value="balance"></input>
166 <label for="local">local</label>
167 <input type="checkbox" name="Notifications[4]" value="local"></input>
168 <label for="message">message</label>
169 <input type="checkbox" name="Notifications[5]" value="message"></input>
170 <label for="notice">notice</label>
171 <input type="checkbox" name="Notifications[6]" value="notice"></input>
172 <label for="dialog">dialog</label>
173 <input type="checkbox" name="Notifications[7]" value="dialog"></input>
174 <label for="friendship">friendship</label>
175 <input type="checkbox" name="Notifications[8]" value="friendship"></input>
176 <label for="inventory">inventory</label>
177 <input type="checkbox" name="Notifications[9]" value="inventory"></input>
178 <label for="permission">permission</label>
179 <input type="checkbox" name="Notifications[10]" value="permission"></input>
180 <label for="lure">lure</label>
181 <input type="checkbox" name="Notifications[11]" value="lure"></input>
182 <label for="effect">effect</label>
183 <input type="checkbox" name="Notifications[12]" value="effect"></input>
184 <label for="collision">collision</label>
185 <input type="checkbox" name="Notifications[13]" value="collision"></input>
186 <label for="crossing">crossing</label>
187 <input type="checkbox" name="Notifications[14]" value="crossing"></input>
188 <label for="terse">terse</label>
189 <input type="checkbox" name="Notifications[15]" value="terse"></input>
190 <label for="typing">typing</label>
191 <input type="checkbox" name="Notifications[16]" value="typing"></input>
192 <label for="invite">invite</label>
193 <input type="checkbox" name="Notifications[17]" value="invite"></input>
194 <label for="economy">economy</label>
195 <input type="checkbox" name="Notifications[18]" value="economy"></input>
196 <label for="membership">membership</label>
197 <input type="checkbox" name="Notifications[19]" value="membership"></input>
198 <label for="url">url</label>
199 <input type="checkbox" name="Notifications[20]" value="url"></input>
200 <label for="ownersay">ownersay</label>
201 <input type="checkbox" name="Notifications[21]" value="ownersay"></input>
202 <label for="regionsayto">regionsayto</label>
203 <input type="checkbox" name="Notifications[22]" value="regionsayto"></input>
204 <label for="objectim">objectim</label>
205 <input type="checkbox" name="Notifications[23]" value="objectim"></input>
206 <label for="rlv">rlv</label>
207 <input type="checkbox" name="Notifications[24]" value="rlv"></input>
208 <label for="debug">debug</label>
209 <input type="checkbox" name="Notifications[25]" value="debug"></input>
210 <label for="avatars">avatars</label>
211 <input type="checkbox" name="Notifications[26]" value="avatars"></input>
212 <label for="primitives">primitives</label>
213 <input type="checkbox" name="Notifications[27]" value="primitives"></input>
214 <label for="control">control</label>
215 <input type="checkbox" name="Notifications[28]" value="control"></input>
216 </td>
217 </tr>
218 <tr>
219 <td>
220 <label for "Permissions">Permissions:</label>
221 </td>
222 <td>
223 <label for="movement">movement</label>
224 <input type="checkbox" name="Permissions[0]" value="movement"></input>
225 <label for="economy">economy</label>
226 <input type="checkbox" name="Permissions[1]" value="economy"></input>
227 <label for="land">land</label>
228 <input type="checkbox" name="Permissions[2]" value="land"></input>
229 <label for="grooming">grooming</label>
230 <input type="checkbox" name="Permissions[3]" value="grooming"></input>
231 <label for="inventory">inventory</label>
232 <input type="checkbox" name="Permissions[4]" value="inventory"></input>
233 <label for="interact">interact</label>
234 <input type="checkbox" name="Permissions[5]" value="interact"></input>
235 <label for="mute">mute</label>
236 <input type="checkbox" name="Permissions[6]" value="mute"></input>
237 <label for="database">database</label>
238 <input type="checkbox" name="Permissions[7]" value="database"></input>
239 <label for="notifications">notifications</label>
240 <input type="checkbox" name="Permissions[8]" value="notifications"></input>
241 <label for="talk">talk</label>
242 <input type="checkbox" name="Permissions[9]" value="talk"></input>
243 <label for="directory">directory</label>
244 <input type="checkbox" name="Permissions[10]" value="directory"></input>
245 <label for="system">system</label>
246 <input type="checkbox" name="Permissions[11]" value="system"></input>
247 <label for="friendship">friendship</label>
248 <input type="checkbox" name="Permissions[12]" value="friendship"></input>
249 <label for="execute">execute</label>
250 <input type="checkbox" name="Permissions[13]" value="execute"></input>
251 <label for="group">group</label>
252 <input type="checkbox" name="Permissions[14]" value="group"></input>
253 <label for="filter">filter</label>
254 <input type="checkbox" name="Permissions[15]" value="filter"></input>
255 </td>
256 </tr>
257 </table>
258 </div>
259 <button type="button" id="create">Create Group</button>
260 </form>
261 <form id="remove">
262 <div class="csstable">
263 <table>
264 <tr>
265 <td>
266 Description
267 </td>
268 <td>
269 Settings
270 </td>
271 </tr>
272 <tr>
273 <td>
274 <label for="Name">Group name:</label>
275 </td>
276 <td>
277 <input type="text" name="Name"></input><br/>
278 </td>
279 </tr>
280 <tr>
281 <td>
282 <label for="UUID">Group UUID:</label>
283 </td>
284 <td>
285 <input type="text" name="UUID"></input><br/>
286 </td>
287 </tr>
288 </table>
289 </div>
290 <button type="button" id="delete">Delete Group</button>
291 </form>
292 </div>
293 </div>
294 </body>
295 </html>