Location: PHPKode > projects > DDL CMS > Upload these files to your webspace/topsites/templates/admin_editpage.tpl
<?PHP

$DB->Connect();
$DB->EscapeHash($_GET);

$page = $DB->Row("SELECT * FROM topsites_Pages WHERE Identifier='{$_GET['Identifier']}'");

$DB->Disconnect();

?>
<script type="text/javascript">
function checkForm(form)
{
    if( !form.Identifier.value )
    {
        alert('The identifier field must be filled in');
        return false;
    }
}

function fixIdentifier(field)
{
    field.value = field.value.replace(/[^a-zA-Z0-9_]/g, '');
}
</script>
<form name="form" action="admin.php" method="post" onSubmit="return checkForm(this);">

<table>
<tr>
<td>
Edit A Page
</td>
</tr>

<tr>
<td>
<b>Identifier</b>
</td>
<td>
<input type="text" name="Identifier" size="25" value="<?PHP echo $page['Identifier']; ?>" onChange="fixIdentifier(this)" onBlur="fixIdentifier(this)">
</td>
</tr>
<tr>
<td>
<b>Forward</b>
</td>
<td>
<select name="Forward">
  <option value="0">No</option>
  <option value="1"<?PHP if( $page['Forward'] == 1 ) echo ' selected'; ?>>Yes</option>
</select>
</td>
</tr>

<tr>
<td>
<input type="submit" value="Update Page">
</td>
</tr>
</table>

<input type="hidden" name="Old_Identifier" value="<?PHP echo $page['Identifier']; ?>">
<input type="hidden" name="Run" value="UpdatePage">

</form>
Return current item: DDL CMS