corrade-http-templates – Rev
?pathlinks?
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>[Wizardry and Steamworks]:Corrade - Add Remove Groups</title>
<meta name="description" content="Add Remove Groups using Corrade">
<meta name="author" content="Wizardry and Steamworks">
<link rel="stylesheet" href="css/fonts.css?v=1.0">
<link rel="stylesheet" href="css/style.css?v=1.0">
<link rel="stylesheet" href="css/table.css?v=1.1">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.serializejson.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$.ajax({
type: 'POST',
url: "Corrade.ini?q=" + Math.random(),
}).done(function(data) {
$('#configuration').val(data);
});
$('#create').click(function() {
$("#add").animate({ opacity: 'hide' }, 'slow');
$("#configuration").animate({ opacity: 'hide' }, 'slow');
var formObject = $('#add').serializeJSON(
{
checkboxUncheckedValue: false,
useIntKeysAsArrayIndex: true
}
);
$.ajax({
type: 'POST',
url: 'addGroup.php',
data: {
group: JSON.stringify(formObject)
}
}).done(function(data) {
$.ajax({
type: 'POST',
url: "Corrade.ini?q=" + Math.random(),
}).done(function(data) {
$('#configuration').val(data);
$("#configuration").animate({ opacity: 'show' }, 'slow');
});
$("#add").animate({ opacity: 'show' }, 'slow');
});
});
$('#delete').click(function() {
$("#remove").animate({ opacity: 'hide' }, 'slow');
$("#configuration").animate({ opacity: 'hide' }, 'slow');
var formObject = $('#remove').serializeJSON(
{
checkboxUncheckedValue: false,
useIntKeysAsArrayIndex: true
}
);
$.ajax({
type: 'POST',
url: 'removeGroup.php',
data: {
group: JSON.stringify(formObject)
}
}).done(function(data) {
$.ajax({
type: 'post',
url: "Corrade.ini?q=" + Math.random(),
}).done(function(data) {
$('#configuration').val(data);
$("#configuration").animate({ opacity: 'show' }, 'slow');
});
$("#remove").animate({ opacity: 'show' }, 'slow');
});
});
});
</script>
</head>
<body>
<div id="container">
<div id="controls">
<textarea id="configuration" rows="12"></textarea>
<form id="add">
<div class="csstable">
<table>
<tr>
<td>
Description
</td>
<td>
Setting
</td>
</tr>
<tr>
<td>
<label for="Name">Group name:</label>
</td>
<td>
<input type="text" name="Name"></input><br/>
</td>
</tr>
<tr>
<td>
<label for="UUID">Group UUID:</label>
</td>
<td>
<input type="text" name="UUID"></input><br/>
</td>
</tr>
<tr>
<td>
<label for="Password">Group password:</label>
</td>
<td>
<input type="password" name="Password"></input><br/>
</td>
</tr>
<tr>
<td>
<label for="ChatLog">Path to chat log:</label>
</td>
<td>
<input type="text" name="ChatLog"></input><br/>
</td>
</tr>
<tr>
<td>
<label for="ChatLogEnabled">Enable chat log?</label>
</td>
<td>
<input type="checkbox" name="ChatLogEnabled" value="false"></input><br/>
</td>
</tr>
<tr>
<td>
<label for="DatabaseFile">Path to database file:</label>
</td>
<td>
<input type="text" name="DatabaseFile"></input><br/>
</td>
</tr>
<tr>
<td>
<label for="Workers">Amount of workers:</label>
</td>
<td>
<input type="text" name="Workers"></input><br/>
</td>
</tr>
<tr>
<td>
<label for "Notifications">Notifications:</label>
</td>
<td>
<label for="alert">alert</label>
<input type="checkbox" name="Notifications[0]" value="alert"></input>
<label for="region">region</label>
<input type="checkbox" name="Notifications[1]" value="region"></input>
<label for="group">group</label>
<input type="checkbox" name="Notifications[2]" value="group"></input>
<label for="balance">balance</label>
<input type="checkbox" name="Notifications[3]" value="balance"></input>
<label for="local">local</label>
<input type="checkbox" name="Notifications[4]" value="local"></input>
<label for="message">message</label>
<input type="checkbox" name="Notifications[5]" value="message"></input>
<label for="notice">notice</label>
<input type="checkbox" name="Notifications[6]" value="notice"></input>
<label for="dialog">dialog</label>
<input type="checkbox" name="Notifications[7]" value="dialog"></input>
<label for="friendship">friendship</label>
<input type="checkbox" name="Notifications[8]" value="friendship"></input>
<label for="inventory">inventory</label>
<input type="checkbox" name="Notifications[9]" value="inventory"></input>
<label for="permission">permission</label>
<input type="checkbox" name="Notifications[10]" value="permission"></input>
<label for="lure">lure</label>
<input type="checkbox" name="Notifications[11]" value="lure"></input>
<label for="effect">effect</label>
<input type="checkbox" name="Notifications[12]" value="effect"></input>
<label for="collision">collision</label>
<input type="checkbox" name="Notifications[13]" value="collision"></input>
<label for="crossing">crossing</label>
<input type="checkbox" name="Notifications[14]" value="crossing"></input>
<label for="terse">terse</label>
<input type="checkbox" name="Notifications[15]" value="terse"></input>
<label for="typing">typing</label>
<input type="checkbox" name="Notifications[16]" value="typing"></input>
<label for="invite">invite</label>
<input type="checkbox" name="Notifications[17]" value="invite"></input>
<label for="economy">economy</label>
<input type="checkbox" name="Notifications[18]" value="economy"></input>
<label for="membership">membership</label>
<input type="checkbox" name="Notifications[19]" value="membership"></input>
<label for="url">url</label>
<input type="checkbox" name="Notifications[20]" value="url"></input>
<label for="ownersay">ownersay</label>
<input type="checkbox" name="Notifications[21]" value="ownersay"></input>
<label for="regionsayto">regionsayto</label>
<input type="checkbox" name="Notifications[22]" value="regionsayto"></input>
<label for="objectim">objectim</label>
<input type="checkbox" name="Notifications[23]" value="objectim"></input>
<label for="rlv">rlv</label>
<input type="checkbox" name="Notifications[24]" value="rlv"></input>
<label for="debug">debug</label>
<input type="checkbox" name="Notifications[25]" value="debug"></input>
<label for="avatars">avatars</label>
<input type="checkbox" name="Notifications[26]" value="avatars"></input>
<label for="primitives">primitives</label>
<input type="checkbox" name="Notifications[27]" value="primitives"></input>
<label for="control">control</label>
<input type="checkbox" name="Notifications[28]" value="control"></input>
</td>
</tr>
<tr>
<td>
<label for "Permissions">Permissions:</label>
</td>
<td>
<label for="movement">movement</label>
<input type="checkbox" name="Permissions[0]" value="movement"></input>
<label for="economy">economy</label>
<input type="checkbox" name="Permissions[1]" value="economy"></input>
<label for="land">land</label>
<input type="checkbox" name="Permissions[2]" value="land"></input>
<label for="grooming">grooming</label>
<input type="checkbox" name="Permissions[3]" value="grooming"></input>
<label for="inventory">inventory</label>
<input type="checkbox" name="Permissions[4]" value="inventory"></input>
<label for="interact">interact</label>
<input type="checkbox" name="Permissions[5]" value="interact"></input>
<label for="mute">mute</label>
<input type="checkbox" name="Permissions[6]" value="mute"></input>
<label for="database">database</label>
<input type="checkbox" name="Permissions[7]" value="database"></input>
<label for="notifications">notifications</label>
<input type="checkbox" name="Permissions[8]" value="notifications"></input>
<label for="talk">talk</label>
<input type="checkbox" name="Permissions[9]" value="talk"></input>
<label for="directory">directory</label>
<input type="checkbox" name="Permissions[10]" value="directory"></input>
<label for="system">system</label>
<input type="checkbox" name="Permissions[11]" value="system"></input>
<label for="friendship">friendship</label>
<input type="checkbox" name="Permissions[12]" value="friendship"></input>
<label for="execute">execute</label>
<input type="checkbox" name="Permissions[13]" value="execute"></input>
<label for="group">group</label>
<input type="checkbox" name="Permissions[14]" value="group"></input>
<label for="filter">filter</label>
<input type="checkbox" name="Permissions[15]" value="filter"></input>
</td>
</tr>
</table>
</div>
<button type="button" id="create">Create Group</button>
</form>
<form id="remove">
<div class="csstable">
<table>
<tr>
<td>
Description
</td>
<td>
Settings
</td>
</tr>
<tr>
<td>
<label for="Name">Group name:</label>
</td>
<td>
<input type="text" name="Name"></input><br/>
</td>
</tr>
<tr>
<td>
<label for="UUID">Group UUID:</label>
</td>
<td>
<input type="text" name="UUID"></input><br/>
</td>
</tr>
</table>
</div>
<button type="button" id="delete">Delete Group</button>
</form>
</div>
</div>
</body>
</html>