'map', 'access arguments' => array('access tmc map content'), 'type' => MENU_CALLBACK, ); $items['admin/tmc/fileupload'] = array( 'page callback' => 'fileupload', 'title' => 'Upload TMC Coverage Date', 'access arguments' => array('upload tmc data file'), 'type' => MENU_NORMAL_ITEM, ); $items['mapfullscreen/%'] = array( 'page callback' => 'mapfullscreen', 'page arguments' => array(1), 'title' => 'Live Traffic | iTIC : Thai Intelligent Traffic Information Center Foundation', 'access callback' => true, 'type' => MENU_NORMAL_ITEM, ); return $items; } function map(){ drupal_set_title("TMC Coverage Map"); $modulepath = drupal_get_path('module', 'tmc_map'); drupal_add_css($modulepath.'/tmc_map.css'); drupal_add_css('os/css/south-street/jquery-ui-1.8.2.custom.css'); drupal_add_js('os/js/jquery-1.4.2.min.js'); drupal_add_js('os/js/jquery-ui-1.8.2.custom.min.js'); drupal_add_js('os/js/tmc.js'); drupal_add_js($modulepath.'/tmc_map.js'); $returnStr = ""; $scriptStr = ""; $contentStr = ""; global $language ; $mapmode = "gray+overlay-en"; if($language->language == 'th') $mapmode = "gray+overlay"; $scriptStr = ' '; $contentStr = '
'; $returnStr = $scriptStr; return $returnStr; } function fileupload(){ drupal_set_title("Upload TMC Coverage Data"); $returnStr = ' '; return $returnStr; /*require("os/fileupload/fileupload-class.php"); $path = "os/fileupload/uploads/"; $upload_file_name = "userfile"; $acceptable_file_types = ""; $default_extension = ""; $mode = 1; if (isset($_REQUEST['submitted'])) { $my_uploader = new uploader($_POST['language']); $my_uploader->max_filesize(200000000); $my_uploader->max_image_size(800, 800); if ($my_uploader->upload($upload_file_name, $acceptable_file_types, $default_extension)) { $my_uploader->save_file($path, $mode); } if ($my_uploader->error) { echo $my_uploader->error . "

\n"; } else { $strPath = realpath(basename(getenv($_SERVER["SCRIPT_NAME"]))); // C:/AppServ/www/myphp $OpenFile = $my_uploader->file['xls'] ; include("os/fileupload/genjava.php"); print($my_uploader->file['xls'] . " was successfully uploaded!
"); if(stristr($my_uploader->file['type'], "image")) { echo "file['name'] . "\" border=\"0\" alt=\"\">"; } else { print "

Files list

\n";
			  $result=`ls -al uploads/`;
			  print "$result

\n"; } } } $scriptStr = ''; $contentStr = '
Upload this file:


Error Messages:



'; $resultStr = ''; if (isset($acceptable_file_types) && trim($acceptable_file_types)) { $resultStr = "This form only accepts " . str_replace("|", " or ", $acceptable_file_types) . " files\n"; } return $scriptStr.$contentStr.$resultStr;*/ } function mapfullscreen($lang){ $mapscript = ""; if($_SERVER['SERVER_NAME'] == 'www2.iticfoundation.org') $mapscript = ''; else $mapscript = ''; if($_SERVER['SERVER_NAME'] == 'www.thaitrafficfoundation.org') $mapscript .= ''; else if($_SERVER['SERVER_NAME'] == 'www.iticfoundation.org') $mapscript .= ''; else if($_SERVER['SERVER_NAME'] == 'itic.longdo.com') $mapscript .= ''; else $mapscript .= ''; $scriptStr = ''; $minimapPath = ($lang == 'th')? '/th/home': '/home'; $contentStr = $mapscript.$scriptStr.'
'; $returnStr = $contentStr; echo $returnStr; } ?> Contact | iTIC : Thai Intelligent Traffic Information Center Foundation 0) { $m['below'] = $submenu; } else { $m['below'] = ''; } } array_push($topmenu, $m); } } $topmenu_keys = array_keys($topmenu); ?>

Contact

You can leave a message using the contact form below.
Image CAPTCHA
Enter the characters shown in the image.