Location: PHPKode > scripts > ZBase > zbase/html/export.php
<?
/*****************************************************************************
 * export.php : Export the content of a table to text
 *****************************************************************************
 * $Id: export.php,v 1.1 2000/08/17 09:52:40 massiot Exp $
 *****************************************************************************
 *  ZBase - a gateway between the database and the WWW
 *  Copyright (c) 1999 The ZBase team
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *****************************************************************************/

require("srv_html.inc");
srv_init();
srv_header("Exportation");

?>
<form method=post action="<? echo srv_url("export_result.php"); ?>">
Sélectionnez les champs à exporter :
<br><center>
<input type=hidden name=TABLE value="<? echo $TABLE; ?>">
<select name="FIELDS[]" multiple>
<?
  srv_include($TABLE);
  $obj = new $TABLE;
  foreach ($obj->FIELDS as $field)
    echo "<option>$field\n";
?>
</select><br>
<input type=submit value="OK">
</center></form>

<?
srv_close();
?>
Return current item: ZBase