", $html['description']); $html['additional_notes'] = nl2br( stripslashes( htmlentities( $item['additional_notes'], ENT_QUOTES, 'UTF-8' ) ) ); $html['additional_notes'] = str_replace("<", "<", $html['additional_notes']); $html['additional_notes'] = str_replace(">", ">", $html['additional_notes']); // set Type if($_GET['type'] == "") { $type = "1"; } else { $type = $_GET['type']; } // get Category Info if($type != "0") { $category_sql = "SELECT * FROM training_category WHERE id = ".$type; } else { $category_sql = "SELECT * FROM training_category WHERE section_title != '' ORDER BY section_title ASC"; } $category_result = mysql_query($category_sql, $myconnection) or die(mysql_error()); // get Menu Info $menu_sql = "SELECT * FROM training_category WHERE display = 'Y' && menu_title != '' ORDER BY display_order ASC"; $menu_result = mysql_query($menu_sql, $myconnection) or die(mysql_error()); // get Usergroup Info if($_GET['filter'] != "") { $usergroup_sql = "SELECT * FROM training_usergroup WHERE user_id = ".$_GET['filter']; } else { $usergroup_sql = "SELECT * FROM training_usergroup ORDER BY description ASC"; } $usergroup_result = mysql_query($usergroup_sql, $myconnection) or die(mysql_error()); // download forms if($_GET["form"] != "") { $sql = "SELECT file_name FROM forms WHERE id = ".$_GET["form"]; $result = mysql_query($sql, $myconnection) or die(mysql_error()); $row = mysql_fetch_assoc($result); $file_name = $row["file_name"]; $file_dir = "forms/"; if (!file_exists($file_dir . $file_name) || $file_name == "") { //check if the file is exist echo ""; }else { $file = fopen($file_dir . $file_name,"r"); Header("Content-type: application/octet-stream"); Header("Accept-Ranges: bytes"); Header("Accept-Length: ".filesize($file_dir . $file_name)); Header("Content-Disposition: attachment; filename=" . str_replace($_GET["form"]."_", "", $file_name)); // print the file's content echo fread($file,filesize($file_dir . $file_name)); fclose($file); return; } } // set Type mysql_select_db($database_myconnection, $myconnection); // get Menu Info $menu_sql = "SELECT * FROM training_category WHERE display = 'Y' && menu_title != '' ORDER BY display_order ASC"; $menu_result = mysql_query($menu_sql, $myconnection) or die(mysql_error()); // get Filter Info //$filter_sql = "SELECT * FROM training_category WHERE filter_title != '' ORDER BY filter_title ASC"; $filter_sql = "SELECT * FROM training_category WHERE filter_title != '' AND (display =\"y\" OR display =\"Y\") ORDER BY filter_title ASC"; $filter_result = mysql_query($filter_sql, $myconnection) or die(mysql_error()); ?>
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
J. Ellis Apartment Locators, a Licensed Real Estate Broker, is an Equal Housing Opportunity rental service. Copyright 2009. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||