Source for file update_T_LOOKUP_CHA_SHOWMODE.phpinc
Documentation is available at update_T_LOOKUP_CHA_SHOWMODE.phpinc
* upgrade T_LOOKUP_CHA_SHOWMODE to Version 11
* @project Open CSP-Management
* @author Peter Krebs <pitlinz@users.sourceforge.net>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: update_T_LOOKUP_CHA_SHOWMODE.phpinc,v 1.2 2008/08/08 02:00:31 pitlinz Exp $
$query=
"SELECT * FROM T_SYS_TABLES WHERE TBL_NAME ='T_LOOKUP_CHA_SHOWMODE' ORDER BY TBL_VERSION DESC";
$tblVer['TBL_NAME']=
"T_LOOKUP_CHA_SHOWMODE";
$tblVer['TBL_VERSION']=
0;
$tblVer['TBL_INSERT']=
50;
$tblVer['TBL_UPDATE']=
75;
$tblVer['TBL_DELETE']=
75;
$tblVer['TBL_LASTCHANGE']=
NULL;
require_once __OCSP_PHPINCPATH__ .
"db/update/functions_mySQL.phpinc";
if (intval($tblVer['TBL_VERSION']) <
10) {
CREATE TABLE IF NOT EXISTS T_LOOKUP_CHA_SHOWMODE(
LUP_KEY INT NOT NULL PRIMARY KEY,
LUP_VALUE VARCHAR(64) NOT NULL,
LUP_SORTORDER INT NOT NULL DEFAULT '0'
'LUT_TABLE' =>
'T_LOOKUP_CHA_SHOWMODE',
'LUT_TITLE' =>
'Anzeigemodus',
'LUT_KEYFLD' =>
'LUP_KEY',
'LUT_VALUE' =>
'LUP_VALUE',
'LUT_LABELS' =>
'LUP_SORTORDER=Soritier Reihenfolge'
require_once OCSP_CONF::getInstance()->getValue('DEFAULTCONFPATH').
"cms.conf.phpinc";
foreach($GLOBALS['CMS']['CHAPTERSHOWMODE'] as $i_key =>
$s_value) {
'LUP_SORTORDER' =>
$i_key
$tblVer['TBL_VERSION']=
10;
Documentation generated on Thu, 08 Jan 2009 17:49:08 +0100 by phpDocumentor 1.4.0a2