<html>
<head>
<title>Editor PHP by Fernando</title>
</head>
<body>
<?php
require_once('core.class.php');
$editor = new Editor();
$editor->listAll();
?>
<table border="1">
<?php
while($list = mysql_fetch_object($editor->Command))
{
?>
<tr>
<td colspan="3">File name:</td>
</tr>
<tr>
<td>
<?php
echo substr($list->content, 0, 20) . "...";
echo "<td><a href=editor.php?edit={$list->id} >Edit</a></td>";
echo "<td><a href=editor.php?delete={$list->id} >Delete</a></td>";
?>
</td>
</tr>
<?php
}
?>
</table>
</body>
</html>
|