$data[] = array("Body Type: ", HTML_UTIL::dropdown("list[body]", array("B" => "Full Page", "U" => "Popup", "L" => "Blank", VIEW_GENERATE_LISTVIEW::FORMAT_SKIP => "None"))); $data[] = array("Method: ", HTML_UTIL::radiobuttons("format[list]", array("A" => "Ajax", "P" => "Post"), get_value($format, "list"))); $data[] = array("Options", HTML_UTIL::checkbox("list_options[search_form]", "1", get_value($list_options, "search_form"), array(), "Search Form")); $data[] = array('<h3>View Settings</h3>', ""); $data[] = array("Body Type: ", HTML_UTIL::dropdown("format[view]", array("P" => "Full Page", "U" => "Popup", "L" => "Blank", VIEW_GENERATE_LISTVIEW::FORMAT_SKIP => "None"), get_value($format, "view"))); $data[] = array("Method: ", HTML_UTIL::radiobuttons("view_settings[method]", array("A" => "Ajax", "P" => "Post"), get_value($view_settings, "method"))); $data[] = array('<h3>Options</h3>', ""); $data[] = array("Frontend: ", HTML_UTIL::dropdown("frameworks", $frameworks, $selected_frameworks, array(), count($frameworks), true)); $data[] = array("Location:", HTML_UTIL::dropdown("location", CMODEL_GENERATOR::get_locations(), "", array("class" => "wa"))); $data[] = array("", HTML_UTIL::get_checkbox("override", "1", $override, array(), "Override")); $data[] = array("", HTML_UTIL::button("generate", "Generate", array("id" => "generate", "class" => "btn-primary"))); $data[] = array("", HTML_UTIL::div("", array("class" => "pt20"))); $html_table = new HTML_TABLE_UTIL(); $html_table->set_data($data); $html_table->set_row_id_prefix("row-"); $html_table->set_column_attribute(0, "class", "vat"); $html_table->set_padding(2); $html_table->set_class(""); $html_table->render(); ?> <script> $(function() { $("input[name='controller']").keyup(function() { $("#plural-controller").text($(this).val()); }); $("input[name='model']").keyup(function() { $("input[name='task']").val($(this).val().toLowerCase().replace(/[_\s]/g,""));
<?php $view_types = array(VIEW::TYPE_BODY => "Body", VIEW::TYPE_POPUP => "Popup", VIEW::TYPE_BLANK => "Blank", VIEW::TYPE_COMPONENT => "Component"); if ($is_mva_component) { $data[] = array("MVA Components", HTML_UTIL::get_checkboxes("mva_components", array("V" => "View", "A" => "Action"), $mva_components)); } $task_name_div = HTML_UTIL::get_div("", array("id" => "task_name")); $data[] = array("ACL Roles", HTML_UTIL::dropdown("security_roles", $security_roles, $selected_security_roles, array("class" => "w100p"), count($security_roles), true)); if ($show_view_type) { $data[] = array("Type", HTML_UTIL::dropdown("view_type", $view_types, $view_type, array("class" => "w100p"))); } $data[] = array("Controller", HTML_UTIL::input("controller", $controller, array("class" => "w100p"))); $data[] = array($task_name_div, HTML_UTIL::input("task", $task, array("class" => "w100p"))); $data[] = array("Location", HTML_UTIL::dropdown("location", CMODEL_GENERATOR::get_locations(), "", array("class" => "wa"))); $data[] = array("", HTML_UTIL::get_checkbox("override", "1", $override, [], "Override")); $data[] = array("", HTML_UTIL::get_button("cmd_generate", "Generate", array("class" => "btn-primary"))); $html_table = new HTML_TABLE_UTIL(); $html_table->set_data($data); $html_table->set_row_id_prefix("row-"); $html_table->set_column_attribute(0, "width", 120); $html_table->set_padding(2); $html_table->set_class(""); $html_table->render();
$object_list = array("dbo" => "DBO", "dbq" => "DBQ"); $select_object_list = array(); if ($create_dbo) { $select_object_list[] = "dbo"; } if ($create_dbq) { $select_object_list[] = "dbq"; } $data[] = array("Generate:", HTML_UTIL::get_checkboxes("objects", $object_list, $select_object_list)); $data[] = array("Class Name:", HTML_UTIL::get_input("classname", $classname, array("class" => "w300"))); $data[] = array("Location:", HTML_UTIL::dropdown("location", CMODEL_GENERATOR::get_locations(), "", array("class" => "wa"))); $data[] = array("", HTML_UTIL::get_checkbox("override", "1", $override, [], "Override")); $data[] = array("", HTML_UTIL::link("javascript:;", "Generate", array("id" => "generate", "class" => "btn btn-primary"))); $db_table = new HTML_TABLE_UTIL(); $db_table->set_data($data); $db_table->set_column_attribute(0, "style", "padding-top:2px"); $db_table->set_row_id_prefix("row-"); $db_table->set_class(""); $db_table->set_padding(3); $tablename_dd = HTML_UTIL::dropdown("tablename", $tablename_list, $tablename, array("onKeyUp" => "update_class_name(this)", "onChange" => "update_class_name(this)", "size" => 30), 50); $html_table = new HTML_TABLE_UTIL(); $html_table->set_data(array(array("Table Name: ", $tablename_dd, $db_table->get_html()))); $html_table->set_default_column_attribute("class", "vat"); $html_table->set_class(""); $html_table->set_padding(3); $html_table->render(); ?> </form> <script>