37 lines
828 B
PHP
37 lines
828 B
PHP
<?php
|
|
@session_start();
|
|
$sessionPage='';
|
|
if (!isset($page))
|
|
$page=str_replace('.php', '', basename(__FILE__));
|
|
|
|
include_once('tables.php');
|
|
include_once('qs_functions.php');
|
|
|
|
if (isset($_REQUEST['dbtable']) && $_REQUEST['dbtable']<>'')
|
|
{
|
|
$dbtable=$_REQUEST['dbtable'];
|
|
if (array_key_exists($dbtable, $tablesDisp)) {
|
|
$tmp=explode('.', $dbtable);
|
|
$database = $tmp[0];
|
|
$table = $tmp[1];
|
|
$sessionPage=$database.'.'.$table;
|
|
$_SESSION['dbtable'] = $sessionPage;
|
|
}
|
|
else die("Table '$dbtable' inconnue !");
|
|
}
|
|
if ($sessionPage=='') {
|
|
$sessionPage=$dbtable=qssession('dbtable');
|
|
$tmp=explode('.', $sessionPage);
|
|
$database = $tmp[0];
|
|
$table = $tmp[1];
|
|
}
|
|
|
|
$tablesInfo[$dbtable]['table_readOnly']=true;
|
|
|
|
include_once('default.php');
|
|
|
|
if (!isset($titre))
|
|
$titre='Visualisation "'.$table.'"';
|
|
|
|
include('./edit.php');
|
|
?>
|