* @copyright Deakin University 2007,2008 * @package queXS * @subpackage admin * @link http://www.deakin.edu.au/dcarf/ queXS was writen for DCARF - Deakin Computer Assisted Research Facility * @license http://opensource.org/licenses/gpl-2.0.php The GNU General Public License (GPL) Version 2 * */ /** * Configuration file */ include ("../config.inc.php"); /** * XHTML functions */ include ("../functions/functions.xhtml.php"); /** * Sample import functions */ include("../functions/functions.import.php"); session_start(); if (isset($_GET['import_form'])) { //form has been submitted xhtml_head(T_("Import: Validating and uploading")); //verify each GET field is unique (except import_form) $sfields = array(); foreach($_GET as $getv => $val) //clean up? $sfields[$getv] = $val; $error = verify_fields($sfields); $description = $_GET['description']; if ($error == "") { //verified so upload if (import_file($_SESSION['filename'],$description,$sfields)) { print "

" . T_("Successfully imported file") . "

"; } else { print "

" . T_("Error importing file. Please try again") . "

"; } } else print "

" . T_("Error:") . " $error

" . T_("Please go back in your browser and fix the problem") . "

"; //verifiy that exactly one primary phone number is selected //upload to database xhtml_foot(); } else if (isset($_POST['import_file'])) { //file has been submitted xhtml_head(T_("Import: Select columns to import")); ?>