enable_edit('FORM', 'CRUD'); //$dg->enable_advanced_search(true); //$dg->set_col_readonly('cl_table_id'); $dg->enable_search(true); $dg -> set_theme('start'); $dg -> set_caption('Clients'); $dg->enable_autowidth(true); $dg -> enable_resize(true); $dg->enable_debug(false); $dg -> set_col_hidden('cl_table_id'); $dg -> set_col_hidden('cl_fax'); $dg -> set_col_hidden('cl_contact2'); $dg -> set_col_hidden('cl_setup_date'); $dg -> set_col_title("cl_id", "Client ID"); $dg -> set_col_title("cl_name", "Client Name"); $dg -> set_col_title("cl_address1", "Address 1"); $dg -> set_col_title("cl_address2", "Address 2"); $dg -> set_col_title("cl_ciy", "City"); $dg -> set_col_title("cl_state", "State"); $dg -> set_col_title("cl_zip", "Zip"); $dg -> set_col_title("cl_phone", "Telephone"); $dg -> set_col_title("cl_fax", "Fax"); $dg -> set_col_title("cl_email", "E-mail"); $dg -> set_col_title("cl_contact1", "Contact"); $dg -> set_col_title("cl_contact2", "Contact2"); $dg -> set_col_title("cl_pw", "Password"); $dg -> set_col_title("cl_setup_date", "Setup Date"); $dg -> set_col_title("cl_comment", "Comment"); $sdg = new C_DataGrid("SELECT * FROM cc_reports", "re_table_id", "cc_reports"); $dg->set_masterdetail($sdg, 're_client_id'); $sdg->enable_autowidth(true); $sdg -> set_caption('Reports'); $sdg -> set_col_hidden('re_table_id'); $sdg -> set_col_hidden('re_client_id'); $sdg->enable_edit('FORM', 'CRUD'); $sdg -> set_col_title("re_report_file", "Report File"); $sdg -> set_col_title("re_client_id", "Client ID"); $sdg -> set_col_title("re_report_descrip", "Description"); $sdg -> set_col_title("re_date_uploaded", "Uploaded on"); $sdg -> set_col_title("re_comment", "Private comment"); $dg -> display(); ?>