3
* Web based SQLite management
4
* Show and manage 'TABLE' properties
5
* @package SQLiteManager
6
* @author Fr�d�ric HENNINOT
7
* @version $Id: tableproperties.php,v 1.21 2006/04/14 15:16:52 freddy78 Exp $ $Revision: 1.21 $
10
include_once INCLUDE_LIB.'SQLiteTableProperties.class.php';
11
$tableProp = &new SQLiteTableProperties($workDb);
13
$tableProp->getTableProperties();
17
$tableProp->tablePropView();
21
$tableProp->tableEditForm();
27
$tableProp->saveProp();
31
$tableProp->saveKey();
34
$tableProp->formElement();
36
case 'insertFromFile':
37
$tableProp->formFromFile();
40
$tableProp->saveFromFile();
43
$tableProp->formElement(urldecode(stripslashes($_GET['query'])), $_GET['pos']);
47
$tableProp->saveElement();
48
if(isset($GLOBALS['reBrowse']) && $GLOBALS['reBrowse']) include_once INCLUDE_LIB.'browse.php';
51
$query = 'DELETE FROM '.brackets($table).';';
52
if($dbsel) $workDb->getResId($query);
53
displayQuery($query, false);
54
$redirect = "<script type=\"text/javascript\">parent.left.location='left.php?dbsel=".$dbsel."'; parent.main.location='main.php?dbsel=$dbsel&table=$table';</script>";
57
include_once INCLUDE_LIB.'SQLiteExport.class.php';
58
$export =& new SQLiteExport($workDb);
61
include_once INCLUDE_LIB.'SQLiteSelect.class.php';
62
$select =& new SQLiteSelect($workDb, $table);
65
$DisplayQuery = $tableProp->selectElement($table);
66
include INCLUDE_LIB.'browse.php';
69
include_once INCLUDE_LIB.'SQLiteDbOperation.class.php';
70
$export =& new SQLiteDbOperation($workDb);
77
$tableProp->tableEditForm();
80
$tableProp->tableEditForm();