$form->setTitleWidth("20%"); //export the search result into csv echo "<div id='csv_block' style='clear:both; float:left; margin-bottom:5px; margin-top:10px;'><input type='button' onclick='csv_report(\"plugins/IP%20Manager/export_csv.php?report_name=vlan_report&vlan_id=showALL\")' value='Export to CSV' /></div>"; echo $form->showForm(); } } //update VLAN information when the update is called if (isset($_POST['updateInfo'])) { $my_vlan = new Vlan_database($v_id); $my_vlan->set_name($_POST["name"]); $my_vlan->set_status($_POST["status"]); $my_vlan->set_location($_POST["location"]); $my_vlan->set_assigned_to($_POST["assign"]); $my_vlan->set_notes($_POST["notes"]); $my_vlan->set_vlan_distinguisher($_POST['distinguish']); if ($my_vlan->update()) { echo "<meta http-equiv=\"REFRESH\" content=\"0;url=" . $_SERVER['SCRIPT_NAME'] . "?tab=" . $_GET['tab'] . "&pluginID=" . $_GET['pluginID'] . "&className=" . $_GET['className'] . "&family=vlan&v_id=" . $v_id . "&success=update\">"; } } } } else { echo "<div id='report'>"; //create a button to toggle advance searches echo "<div id='toggle'><a onclick='toggle_search()'><p><input type='button' value='Open Advance Report'></p><p style='display:none'><input type='button' value='Close Advance Report'></p></a></div>"; echo "<div id='report_filter'>"; //display search box display_search_box("report_search", "Advance Report"); echo $string; //go through the database to report echo "</div>"; $IP_Search = new IP_Database();