$_GET['id'], "table" => "templates", "status_table" => "templates", "permission" => "setup_templates_edit", "db_name" => DB_CLIENT )); common_main_header::get_header(); $result = ""; $context = array( "id" => $_GET['id'], "db_name" => DB_CLIENT ); $obj = new form_setup_templates($context); $templates = common_templates::get_templates($_GET['id']); //if($templates['type'] == "Labour Costing"){ $obj->set(); //}else{ // $obj->set_material(); //} //$obj->set(); if($_POST['Submit'] == "Save") $result = $obj->edit_submit(); $obj->form(); ?>