$options = array(
'SELECT' => '*',
'FROM' => 'menu'
);
$html .= '<table><form action="http://www.brianretterer.com/admin/page/insert_page" method="post">
<tr>
<td>Page Name:</td>
<td><input type="text" name="pgname" size="30" maxlength="30"><td>
</tr>
<tr>
<td>Page Title:</td>
<td><input type="text" name="title" size="30" value="(Will Display Under Menu)" onFocus="if(this.value==\'(Will Display Under Menu)\'){this.value=\'\'}"><td>
</tr>
<tr>
<td>Reference Name:</td>
<td><input type="text" name="ref" size="30" maxlength="30"><td>
</tr>
<tr>
<td>Part Of:</td>
<td><select name="mother"><option><b>SELECT PAGE</b></option>';
foreach(advanced_select($options) as $row)
{
$html .= '<option value="'.$row['menu_id'].'_'.$row['menu_page'].'">'.$row['menu_name'].'</option>';
}
$html .= '</select></td>
</tr>
<tr>
<td>Main Menu Item</td>
<td><input type="checkbox" name="mainmenu" value="yes"> Menu Name: <input type="text" name="menuname"></td>
</tr>
<tr>
<td>Body:</td>
<td>';
$oFCKeditor = new FCKeditor('FCKeditor1') ;
$oFCKeditor->BasePath = '../FCKeditor/' ;
$oFCKeditor->Value = 'Default Text In Editor' ;
$oFCKeditor->Create() ;
$html .= '</td>
</tr>
<tr>
<td colspan="2"><input type="submit" value="Create Page"></td>
</tr>
</form></table>';
return $html;
}
http://www.brianretterer.com/test.php
