if ($debug) { print '<br>' . $page . '.php::$id is empty' . "\n"; } do_title($title); print '<p>Please provide a valid Ticket number'; } else { // Debuggin if ($debug) { print '<br> ' . $page . '.php:: id **not** empty::switch()'; } do_title($title . " #" . $id); // Set page title // Show entry print "<!-- Showing the selected Element -->"; require_once 'functions03.inc'; $i = show_simple_data($id, $start_id); $SQL_option = " AND `{$linking_field}` = {$id} "; mysql_open("{$mysql_db}", "{$mysql_user}", "{$mysql_passwd}"); //edit_option("", "add", "action",$option_element,$id); mysql_open_next("{$mysql_db_next}", "{$mysql_user_next}", "{$mysql_passwd_next}"); do_title($option_element . 's\' belonging to this ' . $GLOBALS['ELEMENT']); //list_option($SQL="",$current=0,$search=0) //list_option($SQL_option); list_simple_option($SQL_option); } print '<hr>'; //simple_search_by_element_num($GLOBALS['ELEMENT']); powered(); // Print "Powered by" and end the HTML page session_destroy(); die;
$single_search_is_activated = 1; $search_help_is_activated = 0; require_once 'conf.inc'; require_once 'functions01.inc'; require_once 'functions02.inc'; $page = "search"; // name of this current php page. Use 'index' for 'index.php'. do_login($page . '.php'); global $debug; $debug = get_variable("debug_value"); //$_SESSION['ticket_username']; = $_SESSION['ticket_username']; $option_table = $GLOBALS['OPTION_TABLE']; //"action"; $linking_field = "ticket_id"; global $mysql_db_next; $link_next = mysql_open_next($mysql_db_next); // Open second Database on MySQL Server if ($debug) { print " \n " . '<p>' . $page . '.php::<br>'; print '<br> $_GET[term] ="' . $_GET['term'] . "\" \n "; print '<br> $_POST[frm_query] ="' . $_POST['frm_query'] . "\" \n "; print '<br> $_POST[frm_owner] ="' . $_POST['frm_owner'] . "\" \n "; print '<br> $_POST[frm_querytype] ="' . $_POST['frm_querytype'] . "\" \n "; print '<br> $_POST[frm_search_in] ="' . $_POST['frm_search_in'] . "\" \n "; print '<br> $_SESSION[ticket_username] ="' . $_SESSION['ticket_username'] . "\" \n "; } switch ($_GET['term']) { case "": do_title("Search Page"); print '<FORM METHOD="post" ACTION="search.php?term=ticket">' . "\n"; print '<TABLE CELLPADDING="2" BORDER="0">' . "\n";