function __construct($value) { parent::__construct('per_page', $value); }
$checked_pangkas_1 = "checked"; $template_path = "./"; $web = new speed_template($template_path); $web->register($template_name); $m_value = $note_text; $note_text = '<form method="post" action=""><textarea name="elm1" style="width:100%" rows="15">'; $note_text .= $m_value; $note_text .= '</textarea>'; //$webpg_content.='<br /><input type="button" name="save" value="save" onclick="tinyMCE.triggerSave();" />'; $note_text .= '</form>'; if (!$page_id) { $result = fn_query($conn_id, "select page_id from page limit 0,1"); while ($row = fn_fetch_array($result)) { extract($row, EXTR_OVERWRITE); } } //- dropdown category unset($option_category); $drop = new drop_down(); $drop->select = "category_id, category_title"; $drop->from = "category"; $drop->where = "page_id='{$page_id}'"; $drop->order_by = "category_title"; $option_category .= $drop->build($category); if (!$category) { $category = $drop->first_value; } $web->parse($template_name); $web_content = $web->return_template($template_name); disconnect($conn_id); require_once "all_pages.php";