| HB9EIK | Courses | Speech | Photos | Code | My Profile | ||
|
|||||||
\n"; } // main loop for procedures function mainProcedures( $langue, $proce ) { $needed_level = "manage"; $this->noinput="no"; $this->tbl_config( $needed_level, "" ); if ( $this->db_langue ) { $langue = $this->db_langue; } // $db=$this->tbl_config( '', '' ); echo "
\n"; echo ""; echo "
\n"; echo "\n"; echo "\n"; echo "
| \n"; $this->dxfButton( "del2", $this->name_go, "delete", "POST", $j, "" ); echo " | \n"; $this->dxfButton( "ins2", $this->name_giveup, "index", "POST", $j, "" ); echo " |
\n"; $result = $this->startQueryCreate(); echo "
"; $this->goBack( ); } else { echo "
\n"; $this->procedureManagement( ); } $this->endDxfTableManagement( ); exit(); } $this->fileManagement( $j ); $this->tableInsert( $j ); } } $this->pageHeader( 0, "proc" ); $this->procedureManagement(); $this->endDxfTableManagement(); exit(); break; case "mod" : // Prepares to modify row data on tables $needed_level = "manage"; $this->tbl_config( $needed_level, $procedure ); $j = $_POST[$this->db_table_num]; $this->tablePrepareUpdate( $j ); $this->endDxfTableManagement(); exit(); break; case "mod2" : // Performs update on tables and then re-displays data $needed_level = "manage"; $this->tbl_config( $needed_level, $procedure ); $j = $_POST[$this->db_table_num]; if( $_POST[$this->update] ) { if( $this->verifyValues( $j ) ) { $this->fileManagement( $j ); $this->tablePrepareUpdate( $j ); $this->endDxfTableManagement(); exit(); } $this->fileManagement( $j ); $this->tableUpdate( $j ); } $this->pageHeader( 0, "proc" ); $this->procedureManagement(); $this->endDxfTableManagement(); exit(); break; case "qbe2" : // Performs query-by-example and displays result data $needed_level = "search"; $this->tbl_config( $needed_level, $procedure ); $this->tableExecQBE( ); $this->endDxfTableManagement(); exit(); break; case "search" : // Prepares query-by-example $needed_level = "search"; $this->tbl_config( $needed_level, $procedure ); $this->tablePrepareQBE(); $this->endDxfTableManagement(); exit(); break; case "start" : // Asks common columns data and posts to table management $needed_level = "manage"; $this->noinput="no"; $this->tbl_config( $needed_level, $procedure ); if( $this->no_selection > 0 ) { echo "
\n"; $result = $this->startQueryCreate(); echo "
"; $this->goBack( ); } else { echo "
\n"; $this->procedureManagement( ); } $this->endDxfTableManagement( ); exit(); break; case "vis" : // Displays details on rows from query-by-example $needed_level = "search"; $this->tbl_config( $needed_level, $procedure ); $j = $_POST[$this->db_table_num]; $this->noinput="yes"; $this->pageHeader( $j, "display" ); if( $conname = $_POST[$this->db_conn_conname] ) { for( $m=0; $m<=$this->conn_number; $m++ ) { if( $this->conn_conname[$m]==$conname ) { $db = mysql_connect( $this->conn_hostname[$m], $this->conn_username[$m], $this->conn_passwd[$m] ) or die( mysql_error( ) ); if ($db == FALSE) die ("Errore nella connessione al database. $this->conn_hostname[$m] - $this->conn_username[$m] - $this->conn_passwd[$m] - Contattare l'amministratore del sistema per segnalare il malfunzionamento della pagina."); mysql_select_db($this->conn_dbname[$m], $db) or die ("Errore nella selezione del database. $this->conn_dbname[$m] user - $this->conn_username[$m] - $this->conn_passwd[$m] - $this->conn_hostname[$m] Contattare l'amministratore del sistema per segnalare il malfunzionamento della pagina."); break; } } } if( $j==0 && $this->num_tables > 1 ) { $this->procedureManagement(); } else { $this->tableDisplay( $j ); } $this->endDxfTableManagement(); exit(); break; case "dis" : // Displays detail-table rows $needed_level = "manage"; $this->tbl_config( $needed_level, $procedure ); $j = $_POST[$this->db_table_num]; $this->noinput="no"; $this->pageHeader( $j, "display" ); $this->tableDisplay( $j ); echo "
| \n"; $this->dxfButton( "ins2", $this->name_back, "index", "POST", $j, "" ); echo " |