Location: PHPKode > projects > HypatiaDB > hypatiadb/export.php
<?php
include("common_db.php");
include("functions.php");
dbconnect($host, $username, $password); //from common_db.php
$strings = loadStrings($lang, 'EXPORT');
headers();
html();
head($strings['EXPORT_TITLE'], array('xhr/create-xhr.php?target=\'xhr/get-data.php?action=tl-ops\'%2BString.fromCharCode(38)%2B\'db=\'%2Bindb&amp;caller=reloadTables&amp;tid=tbl&amp;tfunc=clearElem(\'tbl\');'));
menu();
navpane();
?>
	<div id="mainpane">
			<form action="run-export.php" method="POST" class="lblock standalone">
		<?php echo($strings['EXPORT_INTRO']); 
echo('<label for="type">' . $strings['EXPORT_TYPE'] .
'<select name="type" onchange="var e = document.getElementById(\'dbdops\'); if(this.value==\'dbdump\') e.style.display = \'block\'; else e.style.display = \'none\';">
	<option value="csv" selected="selected">' . $strings['EXPORT_CSV'] . '</option>
	<option value="dbdump">' . $strings['EXPORT_DBD'] . '</option>
	<option value="xml">' . $strings['EXPORT_XML'] . '</option>
</select></label> 
<label for="database">' . $strings['EXPORT_FDATABASE'] . ' <select name="database" onchange="indb=this.value;reloadTables();"><option value="">' . $strings['EXPORT_SELECTADB'] . '</option>');
		echo(listDbs('<option name="%1$s">%1$s</option>', $_SESSION['current_db'], '<option name="%1$s" selected="selected">%1$s</option>'));
		echo('</select></label><label for="table">' . $strings['EXPORT_FTABLE'] . '<span id="tbl">');
		if($_SESSION['current_db'] != '') {
			echo('<select name="table">' . listTables('<option name="%1$s">%1$s</option>',$_SESSION['current_db']) . '</select>');
		}
		echo('</span></label><div id="dbdops" style="display: none;"><h2>' .  $strings['EXPORT_DBD_HEADING'] . '</h2>');
//ansi, mysql323, mysql40, postgresql, oracle, mssql, db2, maxdb
		echo('<label for="dbd_mode">' . $strings['EXPORT_FMODE'] .  '<select name="dbd_mode">
			<option value="mysql40" selected="selected">' . $strings['EXPORT_MODE_MYSQL40'] . '</option>
			<option value="mysql323">' . $strings['EXPORT_MODE_MYSQL323'] . '</option>
			<option value="ansi">' . $strings['EXPORT_MODE_ANSI'] . '</option>
			<option value="postgresql">' . $strings['EXPORT_MODE_POSTGRESQL'] . '</option>
			<option value="oracle">' . $strings['EXPORT_MODE_ORACLE'] . '</option>
			<option value="mssql">' . $strings['EXPORT_MODE_MSSQL'] . '</option>
			<option value="db2">' . $strings['EXPORT_MODE_DB2'] . '</option>
			<option value="maxdb">' . $strings['EXPORT_MODE_MAXDB'] . '</option>
		</select></label></div>');

?>
			<input type="submit" name="confirm" value="<?php echo($strings['EXPORT_SUBMIT']); ?>" />
		</form>
	</div>
<?php
endhtml();
?>
Return current item: HypatiaDB