Created
November 4, 2008 09:37
-
-
Save lehrblogger/22107 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$key_char = ''; | |
$row = ''; | |
$col = ''; | |
$type = ''; | |
$name = ''; | |
$slug = ''; | |
$text = ''; | |
if( isset($_GET['key_char']) ) $key_char = $_GET['key_char']; | |
if( isset($_GET['row']) ) $row = $_GET['row']; | |
if( isset($_GET['col']) ) $col = $_GET['col']; | |
if( isset($_GET['type']) ) $type = $_GET['type']; | |
if( isset($_GET['name']) ) $name = $_GET['name']; | |
if( isset($_GET['slug']) ) $slug = $_GET['slug']; | |
if( isset($_GET['text']) ) $text = $_GET['text']; | |
?> | |
<html> | |
<head> | |
<title>Add/Update or Delete a Key</title> | |
<link rel="stylesheet" href="/cms.css"></link> | |
<script type="text/javascript"> | |
<!-- | |
if(!console) | |
{ | |
var console = { | |
log: function() {}, | |
error: function() {}, | |
warning: function() {} | |
}; | |
} | |
//--> | |
</script> | |
<script src="mootools-1.2-core.js" type="text/javascript" charset="utf-8"></script> | |
<script src="mootools-1.2-more.js" type="text/javascript" charset="utf-8"></script> | |
<script language="javascript" type="text/javascript" src="editKey.js"></script> | |
</head> | |
<body id="main" onload="init()"> | |
Key : <input id='key_char' name='key_char' type='text' class='SmallTextField' maxlength="1"></input><br/> | |
Row : <select id='row'> | |
<option value =""></option> | |
<option value ="0">0</option> | |
<option value ="1">1</option> | |
<option value ="2">2</option> | |
<option value ="3">3</option> | |
<option value ="4">4</option> | |
</select><br/> | |
Col : <select id='col'> | |
<option value =""></option> | |
<option value ="0">0</option> | |
<option value ="1">1</option> | |
<option value ="2">2</option> | |
<option value ="3">3</option> | |
<option value ="4">4</option> | |
</select><br/> | |
Type: <input id='type' name='type' type='text' class='SmallTextField' maxlength="8"></input><br/> | |
Name: <input id='name' name='name' type='text' class='SmallTextField' maxlength="50"></input><br/> | |
Slug: <input id='slug' name='slug' type='text' class='SmallTextField' maxlength="50"></input><br/> | |
Text: <textarea id='text' name='text' rows='10' cols='100' maxlength="5000" wrap='virtual' onload="checkCharacterCount(this, $('textCount'))" onkeypress="checkCharacterCount(this, $('textCount'))" onkeyup="checkCharacterCount(this, $('textCount'))"></textarea><br/> | |
<span id='textCount' name='textCount'>0</span> of 5000 maximum characters<br/> | |
<br/> | |
<input id='save' name='save' type='button' value='Add key to/Update key in database'></input> | |
<input id='delete' name='delete' type='button' value='Delete key from database'></input> | |
</body> | |
</html> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment