--
-- Host: localhost    Database: generator
-- ------------------------------------------------------


--
-- Table structure for table `actions`
--

CREATE TABLE `actions` (
  `TableID` int(11) NOT NULL default '0',
  `ActionID` int(11) NOT NULL auto_increment,
  `Action` enum('show','add','edit','remove') NOT NULL default 'show',
  `Part` enum('session','allow','complete','header','footer') NOT NULL default 'session',
  `Code` text NOT NULL,
  PRIMARY KEY  (`ActionID`),
  KEY `TableID` (`TableID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `actions`
--


INSERT INTO `actions` VALUES (37,1,'edit','allow','$sql->QueryItem(\"SELECT COUNT(*) AS good FROM tbl_trajecten LEFT JOIN tbl_trajectactiviteiten ON traject_ID=trajectactiviteit_trajectID WHERE trajectactiviteit_ID=$trajectactiviteit_ID AND (\'$rechten\'<>\'gebruiker\' OR $gebruiker_ID=traject_plannerID OR $gebruiker_ID=traject_uitvoerderID OR $gebruiker_ID=trajectactiviteit_gebruikerID)\");\nif ($sql->data[good]==0) { $test = false; }'),(37,2,'remove','allow','$sql->QueryItem(\"SELECT COUNT(*) AS good FROM tbl_trajecten LEFT JOIN tbl_trajectactiviteiten ON traject_ID=trajectactiviteit_trajectID WHERE trajectactiviteit_ID=$trajectactiviteit_ID AND (\'$rechten\'<>\'gebruiker\' OR $gebruiker_ID=traject_plannerID OR $gebruiker_ID=traject_uitvoerderID OR $gebruiker_ID=trajectactiviteit_gebruikerID)\");\nif ($sql->data[good]==0) { $test = false; }'),(37,3,'add','footer','$sql->Query(\"SELECT activiteit_tekst FROM tbl_activiteiten WHERE activiteit_ID=\'$_POST[inserttrajectactiviteit_activiteitID]\'\");\nif ($sql->rows!=0) {\n  $sql->Fetch(0);\n  $data=$sql->data[activiteit_tekst];\n  if ($data!=\'\') { echo \"<hr><p>$data</p>\\n\"; }\n}'),(37,4,'edit','footer','$sql->Query(\"SELECT activiteit_tekst FROM tbl_activiteiten WHERE activiteit_ID=\'$trajectactiviteit_activiteitID\'\");\nif ($sql->rows!=0) {\n  $sql->Fetch(0);\n  $data=$sql->data[activiteit_tekst];\n  if ($data!=\'\') { echo \"<hr><p>$data</p>\\n\"; }\n}'),(31,5,'edit','allow','$sql->QueryItem(\"SELECT COUNT(*) AS good FROM tbl_trajecten WHERE traject_ID=$traject_ID AND (\'$rechten\'<>\'gebruiker\' OR $gebruiker_ID=traject_plannerID OR $gebruiker_ID=traject_uitvoerderID)\");\nif ($sql->data[good]==0) { $test = false; }'),(37,6,'add','complete','$_POST[trajectactiviteit_activiteitID]<>\'\' && $_POST[trajectactiviteit_kostentypeID]<>\'\''),(31,7,'add','complete','$_POST[traject_clientID]<>\'\' && $_POST[traject_opdrachtgeverID]<>\'\''),(32,9,'edit','allow','if ($rechten==\'gebruiker\') { $test = false; }'),(32,8,'add','allow','if ($rechten==\'gebruiker\') { $test = false; }'),(34,10,'add','allow','$sql->QueryItem(\"SELECT COUNT(*) AS good FROM tbl_trajecten LEFT JOIN tbl_trajectactiviteiten ON traject_ID=trajectactiviteit_trajectID WHERE trajectactiviteit_ID=$trajectactiviteit_ID AND (\'$rechten\'<>\'gebruiker\' OR $gebruiker_ID=traject_plannerID OR $gebruiker_ID=traject_uitvoerderID OR $gebruiker_ID=trajectactiviteit_gebruikerID)\");\nif ($sql->data[good]==0) { $test = false; }');

--
-- Table structure for table `column`
--

CREATE TABLE `column` (
  `ColumnID` int(11) NOT NULL auto_increment,
  `SheetID` int(11) NOT NULL default '0',
  `DatabaseID` int(11) NOT NULL default '0',
  `Name` varchar(80) NOT NULL default '',
  `Size` int(11) NOT NULL default '0',
  `Type` enum('date','datemin','datemax','number','select','char','text') NOT NULL default 'date',
  `TableName` varchar(80) NOT NULL default '',
  `Calculation` text NOT NULL,
  `Sort` int(11) NOT NULL default '0',
  PRIMARY KEY  (`ColumnID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `column`
--


INSERT INTO `column` VALUES (1,2,0,'Activiteit',22,'select','tbl_activiteiten','activiteit_type',1),(2,2,0,'Client',14,'char','','concat(client_achternaam, if(client_voorletters=\'\',\'\',concat(\', \',client_voorletters)), if(client_voorvoegsel=\'\',\'\',concat(\' \',client_voorvoegsel)))',3),(3,2,0,'Status',10,'select','tbl_trajectactiviteitstatussen','trajectactiviteitstatus_status',5),(4,2,0,'Roepnaam',10,'char','','client_roepnaam',7),(5,2,0,'Omschrijving',22,'char','','trajectactiviteit_omschrijving',9),(6,2,0,'Uitvoerder',8,'select','tbl_gebruikers','gebruiker_initialen',11),(7,2,0,'Kostentype',14,'select','tbl_kostentypen','kostentype_type',13),(8,2,0,'Minuten',6,'number','','trajectactiviteit_minuten',15),(9,2,0,'Kosten',6,'number','','trajectactiviteit_kosten',17),(10,1,0,'Client',14,'char','','concat(client_achternaam, if(client_voorletters=\'\',\'\',concat(\', \',client_voorletters)), if(client_voorvoegsel=\'\',\'\',concat(\' \',client_voorvoegsel)))',1),(11,1,0,'Roepnaam',14,'char','','client_roepnaam',3),(12,1,0,'M/V',2,'char','','client_geslacht',5),(13,1,0,'Woonplaats',14,'char','','client_plaats',7),(14,1,0,'Opdrachtgever',14,'char','','opdrachtgever_organisatie',9),(15,1,0,'Contactpersoon',14,'char','','opdrachtgever_contactpersoon',11),(16,1,0,'Beheerder',14,'select','tbl_gebruikers','gebruiker_initialen',13),(17,1,0,'Startdatum',10,'datemin','','traject_startdatum',15),(18,1,0,'Einddatum',10,'datemax','','traject_einddatum',17),(19,1,0,'Prijs',6,'number','','traject_prijs',19),(20,1,0,'Kosten',6,'number','','traject_gemaaktekosten',21),(21,1,0,'%',4,'number','','((traject_gemaaktekosten/traject_prijs)*100)',23),(22,1,0,'Trajecttype',12,'select','tbl_trajecttypen','trajecttype_type',25),(23,1,0,'Status',8,'select','tbl_trajectstatussen','trajectstatus_status',27),(24,2,0,'Datum',10,'date','','trajectactiviteit_datum',19),(26,3,0,'supporter',15,'char','','concat(last_name,\' \',first_name)',3),(27,3,0,'company',15,'char','','company_name',5),(28,3,0,'priority',8,'select','tpriorities','priority',7),(29,3,0,'status',10,'select','tstatus','status',9),(30,3,0,'product',20,'char','','platform',11),(31,3,0,'firmware',10,'char','','firmware',13),(32,3,0,'title',15,'char','','title',17),(33,3,0,'created',8,'date','','date_created',19),(34,3,0,'last',8,'date','','tickets.date_modified',21),(35,3,0,'contract',10,'char','','contract_name',15);

--
-- Table structure for table `database`
--

CREATE TABLE `database` (
  `DatabaseID` int(11) NOT NULL auto_increment,
  `DatabaseName` varchar(50) default NULL,
  `ApplicationName` varchar(50) default NULL,
  `OutputLocation` varchar(50) default NULL,
  `Select` enum('true','false') NOT NULL default 'true',
  PRIMARY KEY  (`DatabaseID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `database`
--


INSERT INTO `database` VALUES (4,'retrofit','Trainingen','/devel/devos/trainingen','false'),(5,'retrofit','Retrotest','/devel/devos/retrotest','false'),(6,'devos','Devos','/devel/devos/devos','false'),(7,'devos','Devos-beheer','/devel/devos/devos','false'),(8,'japanese','Japanese','/devel/japanese/html','false'),(9,'generator','Screen generator','/home/devel/generator/html','true'),(10,'myhelpdesk','myhelpdesk','/home/webdevel/myhelpdesk','true');

--
-- Table structure for table `fields`
--

CREATE TABLE `fields` (
  `FieldID` int(11) NOT NULL auto_increment,
  `TableID` int(11) default NULL,
  `Name` varchar(80) NOT NULL default '',
  `FieldName` varchar(50) default NULL,
  `DisplayName` varchar(50) default NULL,
  `Help` varchar(50) NOT NULL default '',
  `Type` enum('int','enum','text','varchar','date','datetime','time','html','ordering') default NULL,
  `SessionVar` varchar(50) NOT NULL default 'false',
  `AreaHeight` int(11) default NULL,
  `AreaWidth` int(11) default NULL,
  `DisplayLength` int(11) default NULL,
  `Record` enum('left','right','front','none','edit') NOT NULL default 'left',
  `List` enum('true','false') default NULL,
  `ListWidth` int(11) default NULL,
  `Add` enum('true','false') default NULL,
  `Edit` enum('true','false','show') default NULL,
  `LookupTable` text,
  `OrderByField` text,
  `LookupIDField` varchar(50) default NULL,
  `LookupDisplayField` text,
  `Order` int(11) default NULL,
  `default` text NOT NULL,
  PRIMARY KEY  (`FieldID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `fields`
--


INSERT INTO `fields` VALUES (59,14,'achternaam','achternaam','Achternaam','','varchar','',0,0,20,'','true',20,'true','true','','','','',59,''),(60,14,'werkgeverID','werkgeverID','Werkgever','','int','',0,0,300,'','false',0,'true','true','werkgevers','werkgevernaam','werkgeverID','werkgevernaam',60,''),(61,14,'roepnaam','roepnaam','Roepnaam','','varchar','',0,0,20,'','true',20,'true','true','','','','',61,''),(142,23,'help_vraag','help_vraag','Vraag/onderwerp','','varchar','',0,0,70,'','true',50,'true','true','','','','',142,''),(143,23,'help_tekst','help_tekst','Antwoord/toelichting','','text','',12,62,0,'','false',0,'true','true','','','','',143,''),(144,23,'help_actief','help_actief','Actief','','enum','',0,0,0,'','true',5,'true','true','','','','',144,''),(161,25,'traject_ID','traject_ID','traject_ID','','int','',0,0,4,'','true',4,'false','false','','','','',161,''),(162,25,'traject_contractID','traject_contractID','Contract-organisatie','','int','',0,0,300,'','true',20,'true','true','tbl_contracten','contract_organisatie','contract_ID','contract_organisatie',162,''),(163,25,'traject_clientID','traject_clientID','Client','','int','',0,0,300,'','true',20,'true','true','tbl_clienten','client_achternaam','client_ID','client_achternaam',163,''),(164,25,'traject_plannerID','traject_plannerID','Traject-beheerder','','int','',0,0,300,'','true',20,'true','true','tbl_gebruikers','gebruiker_volledigenaam','gebruiker_ID','gebruiker_volledigenaam',164,''),(165,25,'traject_statusID','traject_statusID','Traject-status','','int','',0,0,300,'','true',12,'true','true','tbl_trajectstatussen','trajectstatus_status','trajectstatus_ID','trajectstatus_status',165,''),(181,28,'trajectactiviteitstatus_volgnummer','trajectactiviteitstatus_volgnummer','Volgnummer','','varchar','',0,0,10,'','true',10,'true','true','','','','',181,''),(182,28,'trajectactiviteitstatus_status','trajectactiviteitstatus_status','Status','','varchar','',0,0,40,'','true',40,'true','true','','','','',182,''),(183,29,'trajectstatus_volgnummer','trajectstatus_volgnummer','Volgnummer','','varchar','',0,0,10,'','true',10,'true','true','','','','',183,''),(184,29,'trajectstatus_status','trajectstatus_status','Status','','varchar','',0,0,40,'','true',40,'true','true','','','','',184,''),(185,30,'trajecttype_volgnummer','trajecttype_volgnummer','Volgnummer','','varchar','',0,0,10,'','true',10,'true','true','','','','',185,''),(186,30,'trajecttype_type','trajecttype_type','Type','','varchar','',0,0,40,'','true',40,'true','true','','','','',186,''),(187,31,'traject_contractID','traject_contractID','','','int','contract_ID',0,0,0,'none','false',0,'false','false','','','','',1,''),(189,31,'traject_clientID','traject_clientID','Client','client','int','',0,0,300,'none','true',35,'true','show','tbl_clienten','client_achternaam','client_ID','[[client_achternaam]][, [client_voorletters]][ [client_voorvoegsel]][ ([client_roepnaam])]',2,''),(190,31,'traject_plannerID','traject_plannerID','Traject-beheerder','','int','',0,0,300,'left','true',30,'true','true','tbl_gebruikers','gebruiker_volledigenaam','gebruiker_ID','[[gebruiker_volledigenaam]]',4,''),(191,31,'traject_uitvoerderID','traject_uitvoerderID','Traject-uitvoerder','','int','',0,0,300,'left','false',30,'true','true','tbl_gebruikers','gebruiker_volledigenaam','gebruiker_ID','[[gebruiker_volledigenaam]]',5,''),(192,31,'traject_statusID','traject_statusID','Status','','int','',0,0,300,'right','true',15,'true','true','tbl_trajectstatussen','trajectstatus_volgnummer','trajectstatus_ID','[[trajectstatus_status]]',6,''),(193,31,'traject_startdatum','traject_startdatum','Startdatum','datum','date','',0,0,10,'right','false',10,'true','true','','','','',7,''),(194,31,'traject_einddatum','traject_einddatum','Einddatum','datum','date','',0,0,10,'right','false',10,'true','true','','','','',8,''),(195,31,'traject_prijs','traject_prijs','Prijs','valuta','int','',0,0,10,'left','false',10,'true','true','','','','',9,''),(196,31,'traject_tekst','traject_tekst','Tekst','','text','',14,76,0,'edit','false',60,'true','true','','','','',12,''),(197,31,'traject_typeID','traject_typeID','Trajecttype','','int','',0,0,300,'right','false',25,'true','true','tbl_trajecttypen','trajecttype_volgnummer','trajecttype_ID','[[trajecttype_type]]',14,''),(198,31,'traject_opdrachtgeverID','traject_opdrachtgeverID','Opdrachtgever','opdrachtgever','int','',0,0,300,'none','true',35,'true','true','tbl_opdrachtgevers','opdrachtgever_organisatie','opdrachtgever_ID','[[opdrachtgever_organisatie]][, [opdrachtgever_contactpersoon]][, [opdrachtgever_plaats]]',3,''),(199,32,'client_achternaam','client_achternaam','Achternaam','','varchar','',0,0,50,'left','true',30,'true','true','','','','',2,''),(200,32,'client_voorvoegsel','client_voorvoegsel','Voorvoegsel','','varchar','',0,0,10,'left','true',5,'true','true','','','','',3,''),(201,32,'client_voorletters','client_voorletters','Voorletters','','varchar','',0,0,10,'','true',5,'true','true','','','','',4,''),(202,32,'client_roepnaam','client_roepnaam','Roepnaam','','varchar','',0,0,30,'left','true',25,'true','true','','','','',5,''),(203,32,'client_geslacht','client_geslacht','Geslacht','','enum','',0,0,0,'left','true',14,'true','true','','','','',6,''),(204,32,'client_geboortedatum','client_geboortedatum','Geboortedatum','datum','date','',0,0,10,'left','false',0,'true','true','','','','',7,''),(205,32,'client_adres','client_adres','Adres','','varchar','',0,0,50,'left','true',25,'true','true','','','','',8,''),(206,32,'client_postcode','client_postcode','Postcode','','varchar','',0,0,7,'','false',0,'true','true','','','','',9,''),(207,32,'client_plaats','client_plaats','Plaats','','varchar','',0,0,50,'left','true',25,'true','true','','','','',10,''),(208,32,'client_telefoon','client_telefoon','Telefoon','','varchar','',0,0,40,'','false',0,'true','true','','','','',11,''),(209,32,'client_fax','client_fax','Fax','','varchar','',0,0,40,'','false',0,'true','true','','','','',12,''),(210,32,'client_email','client_email','E-mail','','varchar','',0,0,50,'left','false',25,'true','true','','','','',13,''),(211,32,'client_beroep','client_beroep','Beroep','','varchar','',0,0,50,'left','false',25,'true','true','','','','',14,''),(212,32,'client_sofinummer','client_sofinummer','Sofinummer','','varchar','',0,0,10,'left','false',15,'true','true','','','','',15,''),(213,32,'client_rekening','client_rekening','Rekening','','varchar','',0,0,30,'left','false',15,'true','true','','','','',16,''),(214,32,'client_tekst','client_tekst','Tekst','','text','',4,50,0,'left','false',40,'true','true','','','','',17,''),(215,33,'contract_contractnummer','contract_contractnummer','Contractnummer','','int','',0,0,10,'','true',10,'true','true','','','','',1,''),(216,33,'contract_typeID','contract_typeID','Contracttype','','int','',0,0,180,'','true',0,'true','true','tbl_contracttypen','contracttype_type','contracttype_ID','contracttype_type',2,''),(217,33,'contract_organisatie','contract_organisatie','Organisatie','','varchar','',0,0,50,'','true',20,'true','true','','','','',3,''),(218,33,'contract_contactpersoon','contract_contactpersoon','Contactpersoon','','varchar','',0,0,50,'','true',20,'true','true','','','','',4,''),(219,33,'contract_aanhef','contract_aanhef','Aanhef','','varchar','',0,0,50,'','false',0,'true','true','','','','',5,''),(220,33,'contract_adres','contract_adres','Adres','','varchar','',0,0,50,'','false',0,'true','true','','','','',6,''),(221,33,'contract_postcode','contract_postcode','Postcode','','varchar','',0,0,7,'','false',0,'true','true','','','','',7,''),(222,33,'contract_plaats','contract_plaats','Plaats','','varchar','',0,0,50,'','true',20,'true','true','','','','',8,''),(223,33,'contract_telefoon','contract_telefoon','Telefoon','','varchar','',0,0,30,'','false',0,'true','true','','','','',9,''),(224,33,'contract_fax','contract_fax','Fax','','varchar','',0,0,30,'','false',0,'true','true','','','','',10,''),(225,33,'contract_email','contract_email','E-mail','','varchar','',0,0,50,'','false',0,'true','true','','','','',11,''),(226,33,'contract_website','contract_website','Website','','varchar','',0,0,50,'','false',0,'true','true','','','','',12,''),(227,33,'contract_statusID','contract_statusID','Status','','int','',0,0,180,'','false',0,'true','true','tbl_contractstatussen','contractstatus_status','contractstatus_ID','contractstatus_status',13,''),(228,33,'contract_startdatum','contract_startdatum','Start-datum','datum','varchar','',0,0,10,'','false',0,'true','true','','','','',14,''),(229,33,'contract_einddatum','contract_einddatum','Eind-datum','datum','varchar','',0,0,10,'','false',0,'true','true','','','','',15,''),(230,33,'contract_tekst','contract_tekst','Tekst','','text','',3,50,0,'','false',0,'true','true','','','','',16,''),(231,34,'memo_datum','memo_datum','Datum toekenning IRO','','varchar','',0,0,10,'','true',0,'true','true','','','','',2,'date(\'Y-m-d\')'),(232,35,'memo_datum','memo_datum','Datum','datum','date','',0,0,10,'left','true',15,'true','true','','','','',4,''),(233,35,'memo_gebruikerID','memo_gebruikerID','Memo voor','','int','',0,0,300,'left','true',30,'true','true','tbl_gebruikers','gebruiker_volledigenaam','gebruiker_ID','[[gebruiker_volledigenaam]]',6,''),(234,35,'memo_omschrijving','memo_omschrijving','Tekst','','varchar','',0,0,60,'left','true',50,'true','true','','','','',8,''),(235,36,'opdrachtgever_organisatie','opdrachtgever_organisatie','Organisatie','','varchar','',0,0,50,'left','true',30,'true','true','','','','',2,''),(236,36,'opdrachtgever_afdeling','opdrachtgever_afdeling','Afdeling','','varchar','',0,0,50,'left','false',25,'true','true','','','','',3,''),(237,36,'opdrachtgever_contactpersoon','opdrachtgever_contactpersoon','Contactpersoon','','varchar','',0,0,50,'','true',30,'true','true','','','','',4,''),(238,36,'opdrachtgever_functiecontactpersoon','opdrachtgever_functiecontactpersoon','Functie','','varchar','',0,0,50,'left','false',25,'true','true','','','','',5,''),(239,36,'opdrachtgever_adres','opdrachtgever_adres','Adres','','varchar','',0,0,50,'left','false',30,'true','true','','','','',6,''),(240,36,'opdrachtgever_postcode','opdrachtgever_postcode','Postcode','','varchar','',0,0,7,'left','false',12,'true','true','','','','',7,''),(241,36,'opdrachtgever_plaats','opdrachtgever_plaats','Plaats','','varchar','',0,0,50,'left','true',30,'true','true','','','','',8,''),(242,36,'opdrachtgever_telefoon','opdrachtgever_telefoon','Telefoon','','varchar','',0,0,30,'left','false',20,'true','true','','','','',9,''),(243,36,'opdrachtgever_fax','opdrachtgever_fax','Fax','','varchar','',0,0,30,'left','false',20,'true','true','','','','',10,''),(244,36,'opdrachtgever_email','opdrachtgever_email','E-mail','','varchar','',0,0,50,'left','false',30,'true','true','','','','',11,''),(245,36,'opdrachtgever_website','opdrachtgever_website','Website','','varchar','',0,0,50,'left','false',30,'true','true','','','','',12,''),(246,36,'opdrachtgever_rekening','opdrachtgever_rekening','Rekening','','varchar','',0,0,30,'left','false',20,'true','true','','','','',13,''),(247,36,'opdrachtgever_tekst','opdrachtgever_tekst','Tekst','','text','',8,56,0,'left','false',40,'true','true','','','','',14,''),(248,37,'trajectactiviteit_activiteitID','trajectactiviteit_activiteitID','Activiteit','','int','',0,0,300,'left','true',20,'true','true','tbl_activiteiten','activiteit_volgnummer','activiteit_ID','[[activiteit_type]]',3,''),(249,37,'trajectactiviteit_datum','trajectactiviteit_datum','Datum','datum','varchar','',0,0,10,'left','true',10,'true','true','','','','',4,''),(250,37,'trajectactiviteit_statusID','trajectactiviteit_statusID','Status','','int','',0,0,300,'left','true',12,'true','true','tbl_trajectactiviteitstatussen','trajectactiviteitstatus_volgnummer','trajectactiviteitstatus_ID','[[trajectactiviteitstatus_status]]',6,''),(251,37,'trajectactiviteit_minuten','trajectactiviteit_minuten','Minuten','','int','',0,0,10,'left','true',4,'true','true','','','','',7,''),(252,37,'trajectactiviteit_omschrijving','trajectactiviteit_omschrijving','Korte toelichting','','varchar','',0,0,50,'left','true',20,'true','true','','','','',8,''),(253,37,'trajectactiviteit_gebruikerID','trajectactiviteit_gebruikerID','Gebruiker','','int','',0,0,300,'left','true',30,'true','true','tbl_gebruikers','gebruiker_volledigenaam','gebruiker_ID','[[gebruiker_volledigenaam]]',5,''),(254,37,'trajectactiviteit_kosten','trajectactiviteit_kosten','Kosten','','int','',0,0,10,'left','true',7,'true','true','','','','',11,''),(255,37,'trajectactiviteit_kostentypeID','trajectactiviteit_kostentypeID','Kostensoort','','int','',0,0,300,'left','false',15,'true','true','tbl_kostentypen','kostentype_volgnummer','kostentype_ID','[[kostentype_type]]',13,''),(256,37,'trajectactiviteit_tekst','trajectactiviteit_tekst','Tekst','','text','',8,50,0,'left','false',40,'true','true','','','','',15,''),(257,38,'activiteit_volgnummer','activiteit_volgnummer','Volgnummer','','int','',0,0,10,'','true',0,'true','true','','','','',1,''),(258,38,'activiteit_type','activiteit_type','Naam','','varchar','',0,0,40,'','true',0,'true','true','','','','',2,''),(315,39,'contract_contractnummer','contract_contractnummer','Contractnumer','','int','',0,0,10,'','true',0,'true','true','','','','',1,''),(316,39,'contract_contracttype','contract_contracttype','Contracttype','','int','',0,0,180,'','true',0,'true','true','tbl_contracttypen','contracttype_type','contracttype_ID','contracttype_type',2,''),(317,39,'contract_organisatie','contract_organisatie','Organisatie','','varchar','',0,0,50,'','true',0,'true','true','','','','',3,''),(318,39,'contract_contactpersoon','contract_contactpersoon','Contractpersoon','','varchar','',0,0,50,'','true',0,'true','true','','','','',4,''),(319,39,'contract_aanhef','contract_aanhef','Aanhef','','varchar','',0,0,50,'','true',0,'true','true','','','','',5,''),(320,39,'contract_adres','contract_adres','Adres','','varchar','',0,0,50,'','true',0,'true','true','','','','',6,''),(321,39,'contact_postcode','contact_postcode','Postcode','','varchar','',0,0,7,'','true',0,'true','true','','','','',7,''),(322,39,'contract_plaats','contract_plaats','Plaats','','varchar','',0,0,50,'','true',0,'true','true','','','','',8,''),(323,39,'contract_telefoon','contract_telefoon','Telefoon','','varchar','',0,0,30,'','true',0,'true','true','','','','',9,''),(324,39,'contract_fax','contract_fax','Fax','','varchar','',0,0,30,'','true',0,'true','true','','','','',10,''),(325,39,'contract_email','contract_email','E-mail','','varchar','',0,0,50,'','true',0,'true','true','','','','',11,''),(326,39,'contract_website','contract_website','Website','','varchar','',0,0,50,'','true',0,'true','true','','','','',12,''),(327,39,'contract_status','contract_status','Status','','int','',0,0,180,'','true',0,'true','true','tbl_contractstatussen','contractstatus_status','contractstatus_ID','contractstatus_status',13,''),(328,39,'contract_startdatum','contract_startdatum','Startdatum','datum','varchar','',0,0,10,'','true',0,'true','true','','','','',14,''),(329,39,'contract_einddatum','contract_einddatum','Einddatum','datum','varchar','',0,0,10,'','true',0,'true','true','','','','',15,''),(330,39,'contract_tekst','contract_tekst','Tekst','','text','',3,50,0,'','true',0,'true','true','','','','',16,''),(331,40,'gebruiker_volledigenaam','gebruiker_volledigenaam','Volledige naam','','varchar','',0,0,50,'','true',0,'true','true','','','','',1,''),(332,40,'gebruiker_inlognaam','gebruiker_inlognaam','Inlognaam','','varchar','',0,0,30,'','true',0,'true','true','','','','',2,''),(333,40,'gebruiker_wachtwoord','gebruiker_wachtwoord','Wachtwoord','','varchar','',0,0,30,'','true',0,'true','true','','','','',3,''),(334,40,'gebruiker_type','gebruiker_type','Gebruikertype','','int','',0,0,200,'','true',0,'true','true','tbl_gebruikertypen','gebruikertype_type','gebruikertype_ID','gebruikertype_type',4,''),(335,40,'gebruiker_actiefJN','gebruiker_actiefJN','Actief J/N','','varchar','',0,0,2,'','true',0,'true','true','','','','',5,''),(336,40,'gebruiker_telefoon','gebruiker_telefoon','Telefoon','','varchar','',0,0,30,'','true',0,'true','true','','','','',6,''),(337,40,'gebruiker_email','gebruiker_email','E-mail','','varchar','',0,0,50,'','true',0,'true','true','','','','',7,''),(338,40,'gebruiker_adres','gebruiker_adres','Adres','','varchar','',0,0,50,'','true',0,'true','true','','','','',8,''),(339,40,'gebruiker_plaats','gebruiker_plaats','Plaats','','varchar','',0,0,50,'','true',0,'true','true','','','','',10,''),(340,40,'gebruiker_postcode','gebruiker_postcode','Postcode','','varchar','',0,0,7,'','true',0,'true','true','','','','',9,''),(341,40,'gebruiker_tekst','gebruiker_tekst','Teskt','','text','',8,50,0,'','true',0,'true','true','','','','',11,''),(342,41,'gebruiker_inlognaam','gebruiker_inlognaam','Inlognaam','','varchar','',0,0,20,'','true',10,'true','true','','','','',2,''),(343,41,'gebruiker_wachtwoord','gebruiker_wachtwoord','Wachtwoord','','varchar','',0,0,20,'','false',0,'true','true','','','','',3,''),(344,41,'gebruiker_volledigenaam','gebruiker_volledigenaam','Volledige naam','','varchar','',0,0,50,'','true',30,'true','true','','','','',4,''),(559,41,'gebruiker_special','gebruiker_special','Special','','enum','',0,NULL,NULL,'left','true',15,NULL,NULL,'','','','',6,''),(560,41,'gebruiker_ID','gebruiker_ID','','','int','gebruiker_ID',0,NULL,NULL,'none','false',0,NULL,NULL,'','','','',0,''),(347,41,'gebruiker_telefoon','gebruiker_telefoon','Telefoon','','varchar','',0,0,40,'left','false',12,'true','true','','','','',15,''),(348,41,'gebruiker_email','gebruiker_email','E-mail','','varchar','',0,0,50,'left','false',30,'true','true','','','','',16,''),(349,41,'gebruiker_adres','gebruiker_adres','Adres','','varchar','',0,0,50,'left','false',30,'true','true','','','','',18,''),(350,41,'gebruiker_postcode','gebruiker_postcode','Postcode','','varchar','',0,0,7,'left','false',10,'true','true','','','','',20,''),(351,41,'gebruiker_plaats','gebruiker_plaats','Plaats','','varchar','',0,0,50,'left','false',30,'true','true','','','','',22,''),(352,41,'gebruiker_tekst','gebruiker_tekst','Tekst','','text','',4,56,0,'left','false',40,'true','true','','','','',24,''),(378,44,'kostentype_volgnummer','kostentype_volgnummer','Volgnummer','','int','',0,0,10,'','true',10,'true','true','','','','',2,''),(379,44,'kostentype_type','kostentype_type','Type','','int','',0,0,40,'','true',80,'true','true','','','','',4,''),(354,42,'kostentype_volgnummer','kostentype_volgnummer','Volgnumer','','int','',0,0,10,'','true',0,'true','true','','','','',1,''),(355,42,'kostentype_type','kostentype_type','Type','','varchar','',0,0,40,'','true',0,'true','true','','','','',2,''),(356,43,'trajectactiviteitstatus_volgnummer','trajectactiviteitstatus_volgnummer','Volgnummer','','int','',0,0,10,'','true',0,'true','true','','','','',1,''),(357,43,'trajectactiviteitstatus_status','trajectactiviteitstatus_status','Status','','varchar','',0,0,40,'','true',0,'true','true','','','','',2,''),(358,32,'client_contractID','client_contractID','','','int','contract_ID',0,0,0,'none','false',0,'false','false','','','','',1,''),(359,41,'gebruiker_contractID','gebruiker_contractID','','','int','contract_ID',0,0,0,'none','false',0,'false','false','','','','',1,''),(360,36,'opdrachtgever_contractID','opdrachtgever_contractID','','','int','contract_ID',0,0,0,'none','false',0,'false','false','','','','',1,''),(361,37,'trajectactiviteit_contractID','trajectactiviteit_contractID','','','int','contract_ID',0,0,0,'none','false',0,'false','false','','','','',1,''),(362,37,'trajectactiviteit_trajectID','trajectactiviteit_trajectID','','','int','traject_ID',0,0,0,'none','false',0,'false','false','','','','',2,''),(363,35,'memo_trajectID','memo_trajectID','','','int','traject_ID',0,0,0,'none','false',0,'false','false','','','','',1,''),(364,34,'memo_gebruikerID','memo_gebruikerID','Memo\'s richten aan:','','int','',0,0,300,'','true',0,'true','true','tbl_gebruikers','gebruiker_volledigenaam','gebruiker_ID','gebruiker_volledigenaam',3,'$gebruiker_ID'),(365,34,'memo_trajectID','memo_trajectID','','','int','traject_ID',0,0,0,'','true',0,'false','false','','','','',1,''),(366,50,'sjabloon_contractID','sjabloon_contractID','','','int','contract_ID',0,0,0,'','false',0,'false','false','','','','',1,''),(367,50,'sjabloon_sjabloontypeID','sjabloon_sjabloontypeID','Type','','int','',0,0,200,'','true',30,'true','true','tbl_sjabloontypen','sjabloontype_omschrijving','sjabloontype_ID','sjabloontype_omschrijving',2,''),(368,50,'sjabloon_omschrijving','sjabloon_omschrijving','Omschrijving','','varchar','',0,0,40,'','true',40,'true','true','','','','',4,''),(369,50,'sjabloon_tekst','sjabloon_tekst','Tekst','','text','',20,65,0,'','false',0,'true','true','','','','',6,''),(370,51,'sjabloontype_contractID','sjabloontype_contractID','','','int','contract_ID',0,0,0,'','false',0,'false','false','','','','',1,''),(371,51,'sjabloontype_omschrijving','sjabloontype_omschrijving','Omschrijving','','varchar','',0,0,40,'','true',30,'true','true','','','','',3,''),(372,51,'sjabloontype_nummeren','sjabloontype_nummeren','Nummeren','','enum','',0,0,0,'','true',7,'true','true','','','','',4,''),(373,51,'sjabloontype_nummer','sjabloontype_nummer','Volgnummer','','int','',0,0,10,'','true',10,'true','true','','','','',5,''),(374,51,'sjabloontype_lijst','sjabloontype_lijst','Activiteiten','','enum','',0,0,0,'','true',7,'true','true','','','','',6,''),(375,51,'sjabloontype_onthoud','sjabloontype_onthoud','Onthoud','','enum','',0,0,0,'','true',7,'true','true','','','','',7,''),(376,47,'activiteit_volgnummer','activiteit_volgnummer','Volgnummer','','varchar','',0,0,10,'','true',10,'true','true','','','','',2,''),(377,47,'activiteit_type','activiteit_type','Type','','varchar','',0,0,40,'','true',80,'true','true','','','','',4,''),(380,49,'trajectactiviteitstatus_volgnummer','trajectactiviteitstatus_volgnummer','Volgnummer','','int','',0,0,10,'','true',10,'true','true','','','','',2,''),(381,49,'trajectactiviteitstatus_status','trajectactiviteitstatus_status','Status','','int','',0,0,40,'','true',80,'true','true','','','','',4,''),(382,46,'trajecttype_volgnummer','trajecttype_volgnummer','Volgnummer','','varchar','',0,0,10,'','true',10,'true','true','','','','',2,''),(383,46,'trajecttype_type','trajecttype_type','Type','','varchar','',0,0,40,'','true',80,'true','true','','','','',4,''),(384,45,'trajectstatus_volgnummer','trajectstatus_volgnummer','Volgnummer','','varchar','',0,0,10,'','true',10,'true','true','','','','',2,''),(385,45,'trajectstatus_status','trajectstatus_status','Status','','varchar','',0,0,40,'','true',80,'true','true','','','','',4,''),(386,41,'gebruiker_initialen','gebruiker_initialen','Initialen','','int','',0,0,5,'left','true',5,'true','true','','','','',14,''),(400,44,'kostentype_actief','kostentype_actief','Actief','','enum','',0,0,0,'','true',8,'true','true','','','','',3,''),(388,32,'client_actief','client_actief','Actief','','enum','',0,0,0,'','true',5,'true','true','','','','',18,''),(401,50,'sjabloon_actief','sjabloon_actief','Actief','','enum','',0,0,0,'','true',8,'true','true','','','','',3,''),(390,36,'opdrachtgever_actief','opdrachtgever_actief','Actief','','enum','',0,0,0,'left','true',8,'true','true','','','','',15,''),(402,51,'sjabloontype_actief','sjabloontype_actief','Actief','','enum','',0,0,0,'','true',8,'true','true','','','','',2,''),(403,44,'kostentype_contractID','kostentype_contractID','','','int','contract_ID',0,0,0,'','false',0,'false','false','','','','',1,'$contract_ID'),(397,46,'trajecttype_actief','trajecttype_actief','Actief','','enum','',0,0,0,'','true',8,'true','true','','','','',3,''),(399,47,'activiteit_actief','activiteit_actief','Actief J/N','','enum','',0,0,0,'','true',8,'true','true','','','','',3,''),(398,45,'trajectstatus_actief','trajectstatus_actief','Actief','','enum','',0,0,0,'','true',8,'true','true','','','','',3,''),(396,49,'trajectactiviteitstatus_actief','trajectactiviteitstatus_actief','Actief','','enum','',0,0,0,'','true',8,'true','true','','','','',3,''),(408,52,'brief_trajectID','brief_trajectID','','','int','traject_ID',0,0,0,'','false',0,'false','false','','','','',2,''),(404,47,'activiteit_contractID','activiteit_contractID','','','int','contract_ID',0,0,0,'','false',0,'false','false','','','','',1,''),(405,49,'trajectactiviteitstatus_contractID','trajectactiviteitstatus_contractID','','','int','contract_ID',0,0,0,'','false',0,'false','false','','','','',1,''),(406,45,'trajectstatus_contractID','trajectstatus_contractID','','','int','contract_ID',0,0,0,'','false',0,'false','false','','','','',1,''),(407,46,'trajecttype_contractID','trajecttype_contractID','','','int','contract_ID',0,0,0,'','false',0,'false','false','','','','',1,''),(409,52,'brief_contractID','brief_contractID','','','int','contract_ID',0,0,0,'','false',0,'false','false','','','','',1,''),(410,52,'brief_trajectactiviteitID','brief_trajectactiviteitID','Activiteit','','int','',0,0,40,'','true',40,'false','false','tbl_trajectactiviteiten','trajectactiviteit_datum','trajectactiviteit_ID','[[trajectactiviteit_omschrijving]][ van [trajectactiviteit_datum]]',3,''),(411,52,'brief_datum','brief_datum','Datum','','date','',0,0,10,'','true',10,'false','show','','','','',4,''),(412,52,'brief_gebruikerID','brief_gebruikerID','Door','','varchar','',0,0,5,'','true',5,'false','show','tbl_gebruikers','gebruiker_volledigenaam','gebruiker_ID','gebruiker_initialen',5,''),(413,52,'brief_aan','brief_aan','Aan O/C','','int','',0,0,0,'','true',0,'false','show','','','','',6,'\'O\''),(414,52,'brief_sjabloon','brief_sjabloon','Sjabloon','','int','',0,0,0,'','true',0,'false','show','','','','',7,''),(415,52,'brief_volgnummer','brief_volgnummer','Volgnr','','int','',0,0,4,'','true',4,'false','show','','','','',8,''),(416,52,'brief_verstuurd','brief_verstuurd','Verstuurd','','varchar','',0,0,3,'','true',4,'false','true','','','','',9,''),(417,51,'sjabloontype_aan','sjabloontype_aan','Aan','','enum','',0,0,0,'','true',7,'true','true','','','','',8,'\'O\''),(418,52,'brief_tekst','brief_tekst','Tekst','','html','',0,0,0,'','false',0,'false','show','','','','',10,''),(419,50,'sjabloon_activiteitID','sjabloon_activiteitID','Activiteit','','int','',0,0,300,'','true',30,'true','true','tbl_activiteiten','activiteit_volgnummer','activiteit_ID','activiteit_type',5,''),(420,51,'sjabloontype_communicatie','sjabloontype_communicatie','Via','','enum','',0,0,0,'','true',7,'true','true','','','','',9,''),(421,47,'activiteit_tekst','activiteit_tekst','Tekst','','text','',10,70,0,'','false',0,'true','true','','','','',5,''),(422,54,'course','course','Course','','int','',0,0,300,'','true',40,'true','true','course','name','course','name',1,''),(423,54,'chapter','chapter','Chapter','','int','',0,0,10,'','true',10,'true','true','','','','',2,''),(424,54,'part','part','Part','','int','',0,0,10,'','true',10,'true','true','','','','',3,''),(425,54,'name','name','Name','','varchar','',0,0,40,'','true',40,'true','true','','','','',4,''),(426,55,'name','name','name','','varchar','',0,0,40,'','true',40,'true','true','','','','',1,''),(427,56,'english','english','english','','varchar','',0,0,40,'','true',40,'true','true','','','','',2,''),(428,56,'kana','kana','kana','','varchar','',0,0,40,'','true',40,'true','true','','','','',3,''),(429,56,'kanij','kanij','kanij','','varchar','',0,0,40,'','true',40,'true','true','','','','',4,''),(430,56,'lesson','lesson','','','int','lesson_ID',0,0,0,'','false',0,'false','false','','','','',1,''),(432,57,'type','type','Type','','enum','',0,0,20,'','true',20,'true','true','','','','',1,''),(433,57,'from','from','From','','enum','',0,0,20,'','true',20,'true','true','','','','',2,''),(434,57,'to','to','To','','int','',0,0,20,'','true',20,'true','true','','','','',3,''),(435,58,'test','test','','','int','test_ID',0,0,0,'','false',0,'false','false','','','','',1,''),(436,58,'lesson','lesson','Lesson','','int','',0,0,30,'','true',30,'true','true','lesson','name','lesson','name',2,''),(437,59,'DatabaseName','DatabaseName','Name','','varchar','',0,0,0,'','true',40,'true','true','','','','',2,''),(438,59,'ApplicationName','ApplicationName','Title','','varchar','',0,0,0,'','true',40,'true','true','','','','',3,''),(439,59,'OutputLocation','OutputLocation','Directory','','varchar','',0,0,0,'','true',40,'true','true','','','','',4,''),(440,61,'DatabaseID','DatabaseID','','','int','DatabaseID',0,0,0,'none','false',0,'false','false','','','','',3,''),(441,61,'TableName','TableName','SQL name','','varchar','',0,0,0,'left','true',30,'true','true','show tables from $database','','0','',4,''),(467,66,'SheetID','SheetID','','','int','SheetID',0,0,0,'none','false',0,'false','false','','','','',1,''),(442,61,'TableID','TableID','','','int','TableID',0,0,0,'none','false',0,'false','false','','','','',2,''),(443,59,'DatabaseID','DatabaseID','','','int','DatabaseID',0,0,0,'none','false',0,'false','false','','','','',1,''),(444,61,'Subject','Subject','Name','','varchar','',0,0,0,'left','true',30,'true','true','','','','',6,'$TableName'),(445,61,'Title','Title','Title','','varchar','',0,0,0,'left','true',30,'true','true','','','','',5,'$TableName'),(446,60,'name','name','Name','','varchar','',0,0,0,'','true',30,'true','true','','','','',3,''),(447,60,'title','title','Title','','varchar','',0,0,0,'','true',30,'true','true','','','','',4,''),(448,65,'Name','Name','Name','','varchar','',0,0,0,'left','true',30,'true','true','','','','',3,''),(450,62,'screen','screen','','','int','screen',0,0,0,'none','false',0,'false','false','','','','',3,''),(452,62,'type','type','Type','','enum','',0,0,0,'','true',30,'true','true','','','','',4,''),(453,62,'table','table','Table','','int','',0,0,0,'left','true',30,'true','true','tables','Subject','TableID','[[Subject]]',5,'<empty>'),(454,62,'link','link','Link','','int','',0,0,0,'left','true',30,'true','true','screen','name','screen','[[name]]',6,''),(456,62,'title','title','Title','','varchar','',0,0,0,'','true',30,'true','true','','','','',7,''),(457,62,'code','code','Code','','text','',5,0,0,'','true',30,'true','true','','','','',8,''),(458,60,'DatabaseID','DatabaseID','','','int','DatabaseID',0,0,0,'none','false',0,'false','false','','','','',2,''),(459,65,'DatabaseID','DatabaseID','','','int','DatabaseID',0,0,0,'none','false',0,'false','false','','','','',1,''),(460,64,'TableID','TableID','','','int','TableID',0,0,0,'none','false',0,'false','false','','','','',1,''),(461,64,'Action','Action','Action','','enum','',0,0,0,'','true',30,'true','true','','','','',2,''),(462,64,'Part','Part','Part','','enum','',0,0,0,'','true',30,'true','true','','','','',3,''),(463,64,'Code','Code','Code','','text','',10,0,0,'left','true',50,'true','true','','','','',4,''),(464,63,'TableID','TableID','','','int','TableID',0,0,0,'none','false',0,'false','false','','','','',4,''),(465,63,'FieldName','FieldName','SQLName','','varchar','',0,0,0,'left','true',30,'true','true','show fields from $database.$table','','Field','',3,'<empty>'),(466,63,'DisplayName','DisplayName','Title','','varchar','',0,0,0,'left','true',30,'true','true','','','','',4,''),(468,66,'Name','Name','Name','','varchar','',0,0,0,'','true',30,'true','true','','','','',2,''),(469,66,'Size','Size','Size','','int','',0,0,0,'','false',10,'true','true','','','','',3,''),(470,66,'Type','Type','Type','','enum','',0,0,0,'','false',30,'true','true','','','','',4,''),(471,66,'TableName','TableName','Table','','varchar','',0,0,0,'','false',30,'true','true','','','','',5,''),(472,66,'Calculation','Calculation','Calculation','','text','',5,0,0,'left','false',70,'true','true','','','','',6,''),(473,60,'screen','screen','','','int','screen',0,0,0,'none','false',0,'false','false','','','','',1,''),(474,62,'','','','','int','DatabaseID',0,0,0,'none','false',0,'false','false','','','','',2,''),(475,63,'SessionVar','SessionVar','SessionVar','','varchar','',0,0,0,'','true',30,'true','true','','','','',7,''),(476,63,'Help','Help','Help','','varchar','',0,0,0,'','false',30,'true','true','','','','',9,''),(477,63,'ListWidth','ListWidth','Width','','int','',0,0,0,'left','true',10,'true','true','','','','',10,''),(478,63,'Type','Type','Type','','enum','',0,0,0,'','false',30,'true','true','','','','',8,''),(479,63,'AreaHeight','AreaHeight','Height','','int','',0,0,0,'left','false',10,'true','true','','','','',11,''),(480,63,'List','List','List','','enum','',0,0,0,'','false',10,'true','true','','','','',12,''),(481,63,'LookupTable','LookupTable','LookupTable','','varchar','',0,0,0,'left','false',30,'true','true','','','','',14,''),(482,63,'LookupIDField','LookupIDField','LookupField','','varchar','',0,0,0,'','false',30,'true','true','','','','',15,''),(483,63,'Order','Order','Order','','ordering','',0,0,0,'left','true',10,'true','true','','','','',29,''),(484,63,'Default','Default','Default','','varchar','',0,0,0,'left','false',30,'true','true','','','','',27,''),(518,31,'traject_ID','traject_ID','','','int','traject_ID',0,NULL,NULL,'none','false',0,NULL,NULL,'','','','',0,''),(486,63,'database','','','','int','DatabaseID',0,0,0,'none','false',0,'false','false','database','','DatabaseID','DatabaseName',1,''),(487,61,'IDfield','IDfield','IDfield','','varchar','',0,0,0,'left','false',30,'true','true','show fields from $database.$TableName','','Field','',7,''),(488,61,'ScreenHeight','ScreenHeight','Height','','int','',0,0,0,'right','false',10,'true','true','','','','',11,'500'),(491,61,'ListOrderByField','ListOrderByField','OrderBy','','varchar','',0,0,0,'right','false',30,'true','true','show fields from $database.$TableName','','Field','',8,''),(490,61,'ScreenWidth','ScreenWidth','Width','','int','',0,0,0,'right','false',10,'true','true','','','','',10,'500'),(492,61,'ListOrderByAscDec','ListOrderByAscDec','Asc/Desc','','enum','',0,0,0,'right','false',10,'true','true','','','','',9,''),(493,63,'Record','Record','Record','','enum','',0,0,0,'left','false',10,'true','true','','','','',13,''),(494,63,'FieldID','FieldID','','','int','FieldID',0,0,0,'none','false',0,'true','true','','','','',2,''),(495,62,'part','part','','','int','part',0,0,0,'none','false',0,'false','false','','','','',1,''),(496,68,'user','user','','','html','user',0,NULL,NULL,'none','false',0,NULL,NULL,'',NULL,'',NULL,1,''),(497,68,'username','username','Username','','varchar','',0,NULL,NULL,'left','true',30,NULL,NULL,'',NULL,'',NULL,2,''),(498,68,'password','password','Password','','varchar','',0,NULL,NULL,'left','false',30,NULL,NULL,'',NULL,'',NULL,3,''),(499,68,'special','special','Special','','enum','',0,NULL,NULL,'left','false',15,NULL,NULL,'',NULL,'',NULL,4,''),(500,68,'type','type','Type','','enum','',0,NULL,NULL,'left','false',15,NULL,NULL,'',NULL,'',NULL,5,''),(501,69,'user','user','User','','int','user',0,NULL,NULL,'none','false',0,NULL,NULL,'',NULL,'user',NULL,2,''),(502,69,'right','right','Right','','int','',0,NULL,NULL,'left','true',30,NULL,NULL,'user','username','user','username',3,'dd'),(503,70,'right','right','','','int','right',0,NULL,NULL,'left','true',0,NULL,NULL,'',NULL,'',NULL,2,''),(504,70,'field','field','','','int','field',0,NULL,NULL,'left','true',0,NULL,NULL,'',NULL,'',NULL,1,''),(505,70,'user','user','User','','int','',0,NULL,NULL,'left','true',0,NULL,NULL,'select `username`, `user` from `user` where (type=\'group\' or type=\'both\')',NULL,'user',NULL,3,''),(506,71,'part','part','','','int','part',0,NULL,NULL,'left','true',0,NULL,NULL,'',NULL,'',NULL,1,''),(507,71,'right','right','','','int','right',0,NULL,NULL,'left','true',0,NULL,NULL,'',NULL,'',NULL,2,''),(508,71,'user','user','User','','int','',0,NULL,NULL,'left','true',0,NULL,NULL,'select `username`, `user` from `user` where (`type`=\'group\' or `type`=\'both\')',NULL,'user',NULL,3,''),(509,72,'gebruiker_ID','gebruiker_ID','','','int','user_ID',0,NULL,NULL,'none','false',0,NULL,NULL,'',NULL,'',NULL,0,''),(510,72,'gebruiker_volledigenaam','gebruiker_volledigenaam','','','int','',0,NULL,NULL,'none','false',0,NULL,NULL,'',NULL,'',NULL,0,''),(511,60,'class','class','Class','','varchar','',0,NULL,NULL,'left','false',30,NULL,NULL,'',NULL,'',NULL,5,''),(512,72,'gebruiker_contractID','gebruiker_contractID','','','int','',0,NULL,NULL,'none','false',0,NULL,NULL,'',NULL,'',NULL,0,''),(513,73,'contract_ID','contract_ID','','','int','contract_ID',0,NULL,NULL,'none','false',0,NULL,NULL,'',NULL,'',NULL,0,''),(514,73,'contract_organisatie','contract_organisatie','','','int','',0,NULL,NULL,'none','false',0,NULL,NULL,'',NULL,'',NULL,0,''),(515,62,'order','order','Order','','ordering','',0,NULL,NULL,'left','true',5,NULL,NULL,'','','','',9,''),(516,63,'OrderByField','OrderByField','LookupOrder','','varchar','',0,NULL,NULL,'left','false',30,NULL,NULL,'','','','',19,''),(517,63,'LookupDisplayField','LookupDisplayField','LookupDisplay','','varchar','',0,NULL,NULL,'left','false',30,NULL,NULL,'','','','',16,''),(519,32,'client_ID','client_ID','','','int','client_ID',0,NULL,NULL,'none','false',0,NULL,NULL,'','','','',0,''),(530,35,'memo_ID','memo_ID','','','int','memo_ID',0,NULL,NULL,'none','false',0,NULL,NULL,'','','','',0,''),(521,74,'traject_client','client_ID','','','int','traject_client',0,NULL,NULL,'none','false',0,NULL,NULL,'','','','',1,''),(522,74,'client_achternaam','client_achternaam','','','varchar','',0,NULL,NULL,'front','true',30,NULL,NULL,'','','','[[client_achternaam]][, [client_voorletters]][ [client_voorvoegsel]]',3,''),(523,74,'client_adres','client_adres','','','varchar','',0,NULL,NULL,'front','false',30,NULL,NULL,'','','','',4,''),(524,74,'client_postcode','client_postcode','','','int','',0,NULL,NULL,'front','true',0,NULL,NULL,'','','','[[client_postcode] ][[client_plaats]]',5,''),(525,74,'client_roepnaam','client_roepnaam','Roepnaam','','varchar','',0,NULL,NULL,'left','false',25,NULL,NULL,'','','','',6,''),(526,74,'client_sofinummer','client_sofinummer','Sofinummer','','varchar','',0,NULL,NULL,'left','false',15,NULL,NULL,'','','','',8,''),(527,74,'client_beroep','client_beroep','Beroep','','varchar','',0,NULL,NULL,'left','false',25,NULL,NULL,'','','','',10,''),(528,74,'client_rekening','client_rekening','Rekening','','varchar','',0,NULL,NULL,'left','false',15,NULL,NULL,'','','','',12,''),(529,74,'client_geboortedatum','client_geboortedatum','Geboortedatum','','date','',0,NULL,NULL,'right','false',15,NULL,NULL,'','','','',14,''),(531,31,'traject_kostprijs','traject_kostprijs','Kosten','valuta','int','',0,NULL,NULL,'left','false',10,NULL,NULL,'','','','',10,''),(532,31,'traject_client','traject_clientID','','','int','',0,NULL,NULL,'none','false',0,NULL,NULL,'','','','',0,''),(533,63,'Name','Name','Name','','int','',0,NULL,NULL,'left','true',30,NULL,NULL,'','','','',6,''),(539,75,'traject_opdrachtgever','opdrachtgever_ID','','','int','traject_opdrachtgever',0,NULL,NULL,'none','false',0,NULL,NULL,'','','','',0,''),(535,74,'client_telefoon','client_telefoon','Telefoon','','varchar','',0,NULL,NULL,'right','false',15,NULL,NULL,'','','','',16,''),(536,74,'client_fax','client_fax','Fax','','varchar','',0,NULL,NULL,'right','false',15,NULL,NULL,'','','','',18,''),(537,74,'client_email','client_email','E-mail','','varchar','',0,NULL,NULL,'right','false',30,NULL,NULL,'','','','',20,''),(538,36,'opdrachtgever_ID','opdrachtgever_ID','','','int','',0,NULL,NULL,'none','false',0,NULL,NULL,'','','','',0,''),(540,75,'opdrachtgever_organisatie','opdrachtgever_organisatie','','','varchar','',0,NULL,NULL,'front','true',30,NULL,NULL,'','','','',2,''),(541,75,'opdrachtgever_contactpersoon','opdrachtgever_contactpersoon','','','varchar','',0,NULL,NULL,'front','true',30,NULL,NULL,'','','','',4,''),(542,75,'opdrachtgever_plaats','opdrachtgever_plaats','','','varchar','',0,NULL,NULL,'front','true',30,NULL,NULL,'','','','[[opdrachtgever_postcode] ][[opdrachtgever_plaats]]',6,''),(543,75,'opdrachtgever_email','opdrachtgever_email','E-mail','','varchar','',0,NULL,NULL,'left','false',30,NULL,NULL,'','','','',8,''),(544,75,'opdrachtgever_telefoon','opdrachtgever_telefoon','Telefoon','','varchar','',0,NULL,NULL,'right','false',30,NULL,NULL,'','','','',10,''),(545,31,'traject_opdrachtgever','traject_opdrachtgeverID','','','int','',0,NULL,NULL,'none','false',0,NULL,NULL,'','','','',0,''),(546,37,'trajectactiviteit_ID','trajectactiviteit_ID','','','int','',0,NULL,NULL,'none','false',0,NULL,NULL,'','','','',0,''),(547,37,'trajectactiviteit_prijs','trajectactiviteit_prijs','Prijs','','int','',0,NULL,NULL,'left','true',7,NULL,NULL,'','','','',9,''),(548,35,'memo_creatie','memo_creatie','Creatie','','datetime','',0,NULL,NULL,'left','false',20,NULL,NULL,'','','','',2,''),(549,35,'memo_van','memo_van','Memo van','','int','',0,NULL,NULL,'left','true',30,NULL,NULL,'tbl_gebruikers','gebruiker_volledigenaam','gebruiker_ID','[[gebruiker_volledigenaam]]',5,''),(550,76,'traject_ID','traject_ID','','','int','traject_ID',0,NULL,NULL,'none','false',0,NULL,NULL,'','','','',1,''),(551,76,'traject_tekst','traject_tekst','','','text','',5,NULL,NULL,'front','false',80,NULL,NULL,'','','','',3,''),(552,77,'user_part','user_part','','','int','user_part',0,NULL,NULL,'none','false',0,NULL,NULL,'','','','',0,''),(553,77,'right','right','','','enum','right',0,NULL,NULL,'none','false',10,NULL,NULL,'','','','',3,''),(554,77,'user','user','Group','','int','',0,NULL,NULL,'left','true',30,NULL,NULL,'tbl_gebruikers','gebruiker_volledigenaam','gebruiker_ID','[[gebruiker_volledigenaam]]',5,''),(555,61,'checks','Checks','Where','','text','',3,NULL,NULL,'left','false',40,NULL,NULL,'','','','',13,''),(557,77,'','','','','int','contract_ID',0,NULL,NULL,'none','false',0,NULL,NULL,'','','','',0,''),(558,41,'gebruiker_type','gebruiker_type','Type','','enum','',0,NULL,NULL,'left','true',15,NULL,NULL,'','','','',8,''),(561,79,'user_rights','user_rights','','','int','user_rights',0,NULL,NULL,'none','false',0,NULL,NULL,'','','','',0,''),(562,79,'user','user','','','int','gebruiker_ID',0,NULL,NULL,'none','false',0,NULL,NULL,'','','','',0,''),(563,79,'right','right','Right','','int','',0,NULL,NULL,'left','true',30,NULL,NULL,'tbl_gebruikers','gebruiker_volledigenaam','gebruiker_ID','[[gebruiker_volledigenaam]]',2,''),(564,79,'','','','','int','contract_ID',0,NULL,NULL,'none','false',0,NULL,NULL,'','','','',0,''),(565,80,'user_field','user_field','','','int','user_field',0,NULL,NULL,'none','false',0,NULL,NULL,'','','','',0,''),(566,80,'','','','','int','contract_ID',0,NULL,NULL,'none','false',0,NULL,NULL,'','','','',0,''),(567,80,'right','right','','','int','right',0,NULL,NULL,'none','false',0,NULL,NULL,'','','','',0,''),(568,80,'field','field','','','int','field',0,NULL,NULL,'none','false',0,NULL,NULL,'','','','',0,''),(569,80,'user','user','Right','','int','',0,NULL,NULL,'left','true',30,NULL,NULL,'tbl_gebruikers','gebruiker_volledigenaam','gebruiker_ID','[[gebruiker_volledigenaam]]',2,''),(570,77,'part','part','','','int','part',0,NULL,NULL,'none','false',0,NULL,NULL,'','','','',0,''),(571,82,'contract_ID','contract_ID','','','int','contract_ID',0,NULL,NULL,'left','true',25,NULL,NULL,'tbl_contracten','contract_organisatie','contract_ID','[[contract_organisatie]]',1,''),(572,82,'user_ID','user_ID','','','int','user_ID',0,NULL,NULL,'left','true',25,NULL,NULL,'tbl_gebruikers','gebruiker_volledigenaam','gebruiker_ID','[[gebruiker_volledigenaam]]',2,''),(573,65,'SheetID','SheetID','','','int','SheetID',0,NULL,NULL,'none','false',0,NULL,NULL,'','','','',2,''),(574,59,'Select','Select','Select','','enum','',0,NULL,NULL,'left','true',8,NULL,NULL,'','','','',6,''),(575,66,'ColumnID','ColumnID','','','int','ColumnID',0,NULL,NULL,'none','false',0,NULL,NULL,'','','','',0,''),(576,65,'SheetTable','SheetTable','SheetTable','','varchar','',0,NULL,NULL,'left','false',30,NULL,NULL,'','','','',6,''),(577,65,'Code','Code','Code','','text','',5,NULL,NULL,'left','false',70,NULL,NULL,'','','','',8,''),(578,65,'Ordering','Ordering','Ordering','','text','',3,NULL,NULL,'left','false',70,NULL,NULL,'','','','',10,''),(579,65,'Restrictions','Restrictions','Restrictions','','text','',3,NULL,NULL,'left','false',70,NULL,NULL,'','','','',12,''),(580,65,'Link','Link','Link','','text','',3,NULL,NULL,'left','false',70,NULL,NULL,'','','','',14,''),(581,66,'Sort','Sort','Sort','','int','',0,NULL,NULL,'left','true',6,NULL,NULL,'','','','',7,''),(582,61,'database','','','','varchar','DatabaseID',0,NULL,NULL,'none','false',0,NULL,NULL,'database','','DatabaseID','databaseName',0,''),(583,63,'table','','','','int','TableID',0,NULL,NULL,'none','false',0,'false',NULL,'tables','','TableID','TableName',0,''),(584,83,'Category','category','Category','','varchar','',0,NULL,NULL,'left','true',30,NULL,NULL,'','','','',0,''),(585,84,'name','version_name','Name','','varchar','',0,NULL,NULL,'left','true',30,NULL,NULL,'','','','',0,'');

--
-- Table structure for table `part`
--

CREATE TABLE `part` (
  `part` int(11) NOT NULL auto_increment,
  `screen` int(11) NOT NULL default '0',
  `order` int(11) NOT NULL default '0',
  `type` enum('icon','link','script','record','edit','list','html') NOT NULL default 'icon',
  `title` varchar(80) NOT NULL default '',
  `table` int(11) NOT NULL default '0',
  `link` int(11) NOT NULL default '0',
  `code` text NOT NULL,
  PRIMARY KEY  (`part`),
  KEY `screen` (`screen`,`order`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `part`
--


INSERT INTO `part` VALUES (1,2,1,'icon','Memo\'s',44,3,'memos.gif'),(2,2,2,'icon','Clienten',44,4,'clienten.gif'),(3,2,3,'icon','Opdrachtgevers',44,5,'opdrachtgevers.gif'),(4,2,4,'icon','Trajecten',44,6,'trajecten.gif'),(5,2,5,'icon','Overzichten',44,7,'overzichten.gif'),(6,2,6,'icon','Help',44,8,'help.gif'),(7,2,7,'icon','Beheer',44,9,'beheer.gif'),(8,2,8,'icon','Afmelden',44,10,'afmelden.gif'),(9,11,1,'icon','Projects',0,15,'projects.gif'),(10,11,5,'icon','Current project',59,1,'projects.gif\r\n'),(11,11,6,'icon','Table',61,13,''),(12,11,7,'icon','Sheet',65,14,''),(13,1,0,'record','',59,1,''),(14,1,0,'list','Screens',60,12,''),(15,1,0,'list','Tables',61,13,''),(16,1,0,'list','Sheets',65,14,''),(17,12,0,'record','',60,12,''),(18,12,0,'list','',62,12,''),(19,13,0,'record','',61,13,''),(20,13,0,'list','Fields',63,13,''),(21,13,0,'list','Actions',64,13,''),(22,14,0,'record','',65,14,''),(23,14,0,'list','Columns',66,14,''),(24,15,0,'list','',59,1,''),(25,11,8,'icon','Users',68,16,'users.gif'),(26,11,9,'icon','Logoff',0,15,'logoff.gif'),(27,16,0,'list','Users',68,17,''),(29,17,0,'record','User',68,17,''),(30,17,0,'list','Rights',69,17,''),(31,18,0,'list','Field rights',70,18,''),(32,19,0,'list','Part rights',71,19,''),(33,3,1,'record','',72,3,''),(35,3,3,'list','',35,3,''),(36,4,1,'html','',32,4,'<IMG SRC=\"clienten.gif\" BORDER=0 ALIGN=LEFT><BR>\r\n<FONT COLOR=\"#800000\" FACE=\"Verdana, sans-serif\" SIZE=3><B>Clienten</B></FONT>'),(34,3,2,'html','',34,3,'<IMG SRC=\"memos.gif\" BORDER=0 ALIGN=LEFT><BR>\r\n<FONT COLOR=\"#800000\" FACE=\"Verdana, sans-serif\" SIZE=3><B>Memo\'s van \r\n[[gebruiker_volledigenaam]]</B></FONT>'),(37,4,2,'list','',32,4,''),(40,20,1,'record','',73,20,''),(41,20,2,'html','',73,20,'<table width=100%><tr><td>D E V O S <FONT COLOR=\"#ccffff\">W E B </FONT><FONT COLOR=\"#ffffff\">| [[contract_organisatie]] '),(42,5,1,'html','',36,5,'<IMG SRC=\"opdrachtgevers.gif\" BORDER=0 ALIGN=LEFT><BR>\r\n<FONT COLOR=\"#800000\" FACE=\"Verdana, sans-serif\" SIZE=3><B>Opdrachtgevers</B></FONT>'),(43,5,2,'list','',36,5,''),(46,6,0,'html','',31,6,'<IMG SRC=\"trajecten.gif\" BORDER=0 ALIGN=LEFT><BR>\r\n<FONT COLOR=\"#800000\" FACE=\"Verdana, sans-serif\" SIZE=3><B>Trajecten</B></FONT>'),(47,6,0,'list','',31,21,''),(49,21,3,'record','Clientgegevens',74,21,''),(50,21,1,'record','Trajectgegevens',31,21,''),(51,21,8,'record','Opdrachtgever',75,21,''),(52,21,10,'list','Activiteiten',37,21,''),(53,21,17,'list','Memo\'s',35,21,''),(54,21,18,'link','IRO-rapportagememo\'s toevoegen',34,21,'edit'),(65,20,6,'link','Rechten',73,20,'frames2.html'),(55,21,2,'link','Brieven',52,21,'screen'),(56,21,6,'link','Selectiegegevens',32,21,'edit'),(57,21,19,'record','Tekst',76,21,''),(58,22,2,'list','',77,22,''),(59,9,5,'link','Gebruikers',41,23,'screen'),(60,23,2,'list','',41,24,''),(61,24,2,'record','',41,24,''),(62,24,4,'list','Groepen',79,24,''),(63,25,2,'list','',80,25,''),(64,20,8,'html','',73,20,'</td><td><div>Online Deelnemer-volgsysteem</div></td></tr></table>'),(66,20,4,'edit','',82,20,'');

--
-- Table structure for table `screen`
--

CREATE TABLE `screen` (
  `screen` int(11) NOT NULL auto_increment,
  `DatabaseID` int(11) NOT NULL default '0',
  `name` varchar(80) NOT NULL default '',
  `title` varchar(80) NOT NULL default '',
  `class` varchar(80) NOT NULL default '',
  PRIMARY KEY  (`screen`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `screen`
--


INSERT INTO `screen` VALUES (1,9,'project.php','Project',''),(2,6,'menu.php','Menu','menu'),(3,6,'memos.php','Memo\'s','main'),(4,6,'clienten.php','Clienten',''),(5,6,'opdrachtgevers.php','Opdrachtgevers',''),(6,6,'trajecten.php','Trajecten','main'),(7,6,'overzichten.php','Overzichten',''),(8,6,'help.php','Help',''),(9,6,'beheer.php','Beheer',''),(10,6,'afmelden.php','Afmelden',''),(11,9,'menu.php','Menu','menu'),(12,9,'screen.php','Screen',''),(13,9,'table.php','Table',''),(14,9,'sheet.php','Sheet',''),(15,9,'projects.php','Projects',''),(16,9,'users.php','Users',''),(17,9,'user.php','User',''),(18,9,'field_rights.php','Field rights',''),(19,9,'part_rights.php','Part rights',''),(20,6,'top.php','Top','top'),(21,6,'traject.php','Traject','main'),(22,6,'part_rights.php','Rights',''),(23,6,'gebruikers.php','Gebruikers',''),(24,6,'gebruiker.php','Gebruiker',''),(25,6,'field_rights.php','Rights','');

--
-- Table structure for table `sheet`
--

CREATE TABLE `sheet` (
  `SheetID` int(11) NOT NULL auto_increment,
  `DatabaseID` int(11) NOT NULL default '0',
  `Name` varchar(80) NOT NULL default '',
  `SheetTable` varchar(80) NOT NULL default '',
  `Code` text NOT NULL,
  `Ordering` text NOT NULL,
  `Restrictions` text NOT NULL,
  `Link` text NOT NULL,
  PRIMARY KEY  (`SheetID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `sheet`
--


INSERT INTO `sheet` VALUES (1,6,'trajecten','tbl_trajecten','from tbl_trajecten\nleft join tbl_clienten on traject_clientID=client_ID\nleft join tbl_opdrachtgevers on traject_opdrachtgeverID=opdrachtgever_ID\nleft join tbl_gebruikers on traject_plannerID=gebruiker_ID\nleft join tbl_trajecttypen on traject_typeID=trajecttype_ID\nleft join tbl_trajectstatussen on traject_statusID=trajectstatus_ID','[recent]traject_startdatum DESC\n[prijs]traject_prijs DESC\n[kosten]traject_gemaaktekosten DESC\n[opbrengst]((traject_gemaaktekosten/traject_prijs)*100) DESC','(traject_plannerID = \'$gebruiker_ID\' OR traject_uitvoerderID =  \'$gebruiker_ID\')','trajectgegevens.php?traject_ID=\".$sql->data[c1].\"'),(2,6,'activiteiten','tbl_trajectactiviteiten','from tbl_trajectactiviteiten\nleft join tbl_trajecten on trajectactiviteit_trajectID=traject_ID\nleft join tbl_activiteiten on trajectactiviteit_activiteitID=activiteit_ID\nleft join tbl_trajectactiviteitstatussen on trajectactiviteit_statusID=trajectactiviteitstatus_ID\nleft join tbl_clienten on traject_clientID=client_ID\nleft join tbl_gebruikers on trajectactiviteit_gebruikerID=gebruiker_ID\nleft join tbl_kostentypen on trajectactiviteit_kostentypeID=kostentype_ID','[recent]trajectactiviteit_datum DESC\n[tijdsduur]trajectactiviteit_minuten DESC\n[kosten]trajectactiviteit_kosten DESC','trajectactiviteit_gebruikerID = \'$gebruiker_ID\'','trajectgegevens.php?traject_ID=\".$sql->data[c0].\"'),(3,10,'tickets','tickets','from tickets left join people on people.id=tickets.supporter_id left join companies on companies.id=tickets.company_id left join tpriorities on tpriorities.id=tickets.priority_id left join tstatus on tstatus.id=tickets.status_id left join purchase on purchase.id=tickets.purchase_id left join platforms on platforms.id=purchase.platform_id left join purchaseaction on purchaseaction.id=purchase.last_action left join contracts on contracts.id=purchase.contract_id','[recent]date_created DESC [status]tstatus.rank, date_created DESC [product]platforms.rank, date_created DESC','','');

--
-- Table structure for table `tables`
--

CREATE TABLE `tables` (
  `TableID` int(11) NOT NULL auto_increment,
  `DatabaseID` int(11) default NULL,
  `TableName` varchar(50) default NULL,
  `Subject` varchar(50) default NULL,
  `Title` varchar(50) NOT NULL default '',
  `Header` text NOT NULL,
  `IDfield` varchar(50) default NULL,
  `Link` varchar(80) NOT NULL default '',
  `Include` enum('true','false') default NULL,
  `Checks` text NOT NULL,
  `Session` text NOT NULL,
  `ScreenHeight` int(11) default NULL,
  `ScreenWidth` int(11) default NULL,
  `ListOrderByField` text,
  `Comment` varchar(200) default NULL,
  `ListOrderByAscDec` enum('ASC','DESC') NOT NULL default 'ASC',
  PRIMARY KEY  (`TableID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tables`
--


INSERT INTO `tables` VALUES (13,4,'trainingen','training','','','trainingID','','true','','',600,640,'','','ASC'),(14,5,'dossiers','dossier','','','ID','','true','','',640,480,'achternaam','','ASC'),(15,5,'activiteitenperclient','activiteit','','','activiteitperclientID','','true','','',640,520,'datum','','ASC'),(23,6,'tbl_help','help','Help','','help_ID','','true','','session_start();\n$rechten = $HTTP_SESSION_VARS[ses_rechten];\n$beheer = $HTTP_SESSION_VARS[ses_beheer];\n$contract_ID = $HTTP_SESSION_VARS[ses_contract_ID];\n$gebruiker_ID = $HTTP_SESSION_VARS[ses_gebruiker_ID];\nif ($rechten != \'beheerder\' || $beheer != \'ja\')\n{\n    header(\'location: index.php\');\n    die(\'Login failed\');\n}',420,690,'help_vraag','','ASC'),(25,7,'tbl_trajecten','traject','','','traject_ID','','true','','',600,600,'contract_organisatie','','ASC'),(29,7,'tbl_trajectstatussen','trajectstatus','','','trajectstatus_ID','','true','','',600,600,'trajectstatus_volgnummer','','ASC'),(30,7,'tbl_trajecttypen','trajecttype','','','trajecttype_ID','','true','','',600,200,'trajecttype_volgnummer','','ASC'),(31,6,'tbl_trajecten','traject','Traject','<IMG SRC=\"trajecten.gif\" ALIGN=LEFT WIDTH=32 HEIGHT=32 BORDER=0><BR>\n<FONT COLOR=\"#800000\" FACE=\"Verdana, sans-serif\" SIZE=3><B>Trajecten</B></FONT>','traject_ID','trajectgegevens.php','true','traject_contractID=\'$contract_ID\'','session_start();\n$rechten = $HTTP_SESSION_VARS[ses_rechten];\n$contract_ID = $HTTP_SESSION_VARS[ses_contract_ID];\n$gebruiker_ID = $HTTP_SESSION_VARS[ses_gebruiker_ID];\nif ($rechten == \'geen\' || $rechten == \'\')\n{\n    header(\'location: index.php\');\n    die(\'Login failed\');\n}',650,780,'client_achternaam',NULL,'ASC'),(32,6,'tbl_clienten','client','Client','<IMG SRC=\"clienten.gif\" ALIGN=LEFT WIDTH=32 HEIGHT=32 BORDER=0><BR>\n<FONT COLOR=\"#800000\" FACE=\"Verdana, sans-serif\" SIZE=3><B>Clienten</B></FONT>','client_ID','','true','client_contractID=\'$contract_ID\' AND client_actief <> \'nee\'','session_start();\n$rechten = $HTTP_SESSION_VARS[ses_rechten];\n$contract_ID = $HTTP_SESSION_VARS[ses_contract_ID];\n$gebruiker_ID = $HTTP_SESSION_VARS[ses_gebruiker_ID];\nif ($rechten == \'geen\' || $rechten == \'\')\n{\n    header(\'location: index.php\');\n    die(\'Login failed\');\n}\n',700,640,'client_achternaam',NULL,'ASC'),(33,6,'tbl_contracten','contract','Contract','','contract_ID','','true','','session_start();\n$rechten = $HTTP_SESSION_VARS[ses_rechten];\n$beheer = $HTTP_SESSION_VARS[ses_beheer];\n$contract_ID = $HTTP_SESSION_VARS[ses_contract_ID];\n$gebruiker_ID = $HTTP_SESSION_VARS[ses_gebruiker_ID];\nif ($rechten != \'beheerder\' || $beheer != \'ja\')\n{\n    header(\'location: index.php\');\n    die(\'Login failed\');\n}',640,600,'contract_organisatie',NULL,'ASC'),(34,6,'tbl_memos','iromemos','IRO memo\'s','','memo_ID','','true','memo_trajectID=\'$traject_ID\'','session_start();\n$rechten = $HTTP_SESSION_VARS[ses_rechten];\n$contract_ID = $HTTP_SESSION_VARS[ses_contract_ID];\n$gebruiker_ID = $HTTP_SESSION_VARS[ses_gebruiker_ID];\nif ($rechten == \'geen\' || $rechten == \'\')\n{\n    header(\'location: index.php\');\n    die(\'Login failed\');\n}\n\nif ($_GET[traject_ID]!=\'\') { $traject_ID = $_GET[traject_ID]; } else { $traject_ID = $_POST[traject_ID]; }\nif (!is_numeric($traject_ID)) { die(\'Onmogelijk traject\'); }\n',420,690,'memo_datum',NULL,'ASC'),(35,6,'tbl_memos','memo','Memo','<IMG SRC=\"memos.gif\" ALIGN=LEFT WIDTH=32 HEIGHT=32 BORDER=0><BR>\n<FONT COLOR=\"#800000\" FACE=\"Verdana, sans-serif\" SIZE=3><B>Memo\'s van \n<?php\necho $gebrvolledigenaam\n?>\n</B></FONT>','memo_ID','','true','memo_gebruikerID=\'$gebruiker_ID\'','session_start();\n$rechten = $HTTP_SESSION_VARS[ses_rechten];\n$contract_ID = $HTTP_SESSION_VARS[ses_contract_ID];\n$gebruiker_ID = $HTTP_SESSION_VARS[ses_gebruiker_ID];\n$gebrvolledigenaam = $HTTP_SESSION_VARS[ses_gebruiker_naam];\nif ($rechten == \'geen\' || $rechten == \'\')\n{\n    header(\'location: index.php\');\n    die(\'Login failed\');\n}\n\nif ($_GET[traject_ID]!=\'\') { $traject_ID = $_GET[traject_ID]; } else { $traject_ID = $_POST[traject_ID]; }\nif (!is_numeric($traject_ID)) { die(\'Onmogelijk traject\'); }\n',250,560,'memo_datum',NULL,'ASC'),(36,6,'tbl_opdrachtgevers','opdrachtgever','Opdrachtgever','<IMG SRC=\"opdrachtgevers.gif\" ALIGN=LEFT WIDTH=32 HEIGHT=32 BORDER=0><BR>\n<FONT COLOR=\"#800000\" FACE=\"Verdana, sans-serif\" SIZE=3><B>Opdrachtgevers</B></FONT>','opdrachtgever_ID','','true','opdrachtgever_contractID=\'$contract_ID\' AND opdrachtgever_actief <> \'nee\'','session_start();\n$rechten = $HTTP_SESSION_VARS[ses_rechten];\n$contract_ID = $HTTP_SESSION_VARS[ses_contract_ID];\n$gebruiker_ID = $HTTP_SESSION_VARS[ses_gebruiker_ID];\nif ($rechten == \'geen\' || $rechten == \'\')\n{\n    header(\'location: index.php\');\n    die(\'Login failed\');\n}',700,650,'opdrachtgever_organisatie',NULL,'ASC'),(37,6,'tbl_trajectactiviteiten','trajectactiviteit','Traject activiteit','','trajectactiviteit_ID','','true','trajectactiviteit_contractID = \'$contract_ID\'','session_start();\n$rechten = $HTTP_SESSION_VARS[ses_rechten];\n$contract_ID = $HTTP_SESSION_VARS[ses_contract_ID];\n$gebruiker_ID = $HTTP_SESSION_VARS[ses_gebruiker_ID];\nif ($rechten == \'geen\' || $rechten == \'\')\n{\n    header(\'location: index.php\');\n    die(\'Login failed\');\n}\n\nif ($_GET[traject_ID]!=\'\') { $traject_ID = $_GET[traject_ID]; } else { $traject_ID = $_POST[traject_ID]; }\nif (!is_numeric($traject_ID)) { die(\'Onmogelijk traject\'); }\n',580,630,'trajectactiviteit_datum',NULL,'ASC'),(38,7,'tbl_activiteiten','activiteit','','','activiteit_ID','','true','','',600,200,'activiteit_volgnummer',NULL,'ASC'),(39,7,'tbl_contract','contract','','','contract_ID','','true','','',420,690,'contract_contractnummer',NULL,'ASC'),(40,7,'tbl_gebruikers','gebruiker','','','gebruiker_ID','','true','','',600,200,'gebruiker_volledigenaam',NULL,'ASC'),(41,6,'tbl_gebruikers','gebruiker','Gebruiker','','gebruiker_ID','','true','gebruiker_contractID = \'$contract_ID\'','session_start();\n$rechten = $HTTP_SESSION_VARS[ses_rechten];\n$beheer = $HTTP_SESSION_VARS[ses_beheer];\n$contract_ID = $HTTP_SESSION_VARS[ses_contract_ID];\n$gebruiker_ID = $HTTP_SESSION_VARS[ses_gebruiker_ID];\nif ($rechten != \'beheerder\')\n{\n    header(\'location: index.php\');\n    die(\'Login failed\');\n}',570,550,'gebruiker_volledigenaam',NULL,'ASC'),(42,7,'tbl_kostentypen','kostentype','','','kostentype_ID','','true','','',600,200,'constentype_volgnummer',NULL,'ASC'),(43,7,'tbl_trajectactiviteitstatussen','trajectactiviteitstatus','','','trajectactiviteitstatus_ID','','true','','',600,200,'trajectactiviteitstatus_volgnummer',NULL,'ASC'),(44,6,'tbl_kostentypen','kostentype','Kostentype','','kostentype_ID','','true','kostentype_contractID=\'$contract_ID\' AND kostentype_actief<>\'nee\'','session_start();\n$rechten = $HTTP_SESSION_VARS[ses_rechten];\n$contract_ID = $HTTP_SESSION_VARS[ses_contract_ID];\n$gebruiker_ID = $HTTP_SESSION_VARS[ses_gebruiker_ID];\nif ($rechten != \'beheerder\')\n{\n    header(\'location: index.php\');\n    die(\'Login failed\');\n}',170,650,'kostentype_volgnummer',NULL,'ASC'),(45,6,'tbl_trajectstatussen','trajectstatus','Traject status','','trajectstatus_ID','','true','trajectstatus_contractID = \'$contract_ID\' AND trajectstatus_actief <> \'nee\'','session_start();\n$rechten = $HTTP_SESSION_VARS[ses_rechten];\n$contract_ID = $HTTP_SESSION_VARS[ses_contract_ID];\n$gebruiker_ID = $HTTP_SESSION_VARS[ses_gebruiker_ID];\nif ($rechten != \'beheerder\')\n{\n    header(\'location: index.php\');\n    die(\'Login failed\');\n}',170,560,'trajectstatus_volgnummer',NULL,'ASC'),(46,6,'tbl_trajecttypen','trajecttype','Traject typen','','trajecttype_ID','','true','trajecttype_contractID = \'$contract_ID\' AND trajecttype_actief <> \'nee\'','session_start();\n$rechten = $HTTP_SESSION_VARS[ses_rechten];\n$contract_ID = $HTTP_SESSION_VARS[ses_contract_ID];\n$gebruiker_ID = $HTTP_SESSION_VARS[ses_gebruiker_ID];\nif ($rechten != \'beheerder\')\n{\n    header(\'location: index.php\');\n    die(\'Login failed\');\n}',170,560,'trajecttype_volgnummer',NULL,'ASC'),(47,6,'tbl_activiteiten','activiteit','Activiteit','','activiteit_ID','','true','activiteit_contractID = \'$contract_ID\' AND activiteit_actief <> \'nee\'','session_start();\n$rechten = $HTTP_SESSION_VARS[ses_rechten];\n$contract_ID = $HTTP_SESSION_VARS[ses_contract_ID];\n$gebruiker_ID = $HTTP_SESSION_VARS[ses_gebruiker_ID];\nif ($rechten != \'beheerder\')\n{\n    header(\'location: index.php\');\n    die(\'Login failed\');\n}',400,680,'activiteit_volgnummer',NULL,'ASC'),(49,6,'tbl_trajectactiviteitstatussen','trajectactiviteitstatus','Traject activiteit status','','trajectactiviteitstatus_ID','','true','trajectactiviteitstatus_contractID = \'$contract_ID\' AND trajectactiviteitstatus_actief <> \'nee\'','session_start();\n$rechten = $HTTP_SESSION_VARS[ses_rechten];\n$contract_ID = $HTTP_SESSION_VARS[ses_contract_ID];\n$gebruiker_ID = $HTTP_SESSION_VARS[ses_gebruiker_ID];\nif ($rechten != \'beheerder\')\n{\n    header(\'location: index.php\');\n    die(\'Login failed\');\n}',170,560,'trajectactiviteitstatus_volgnummer',NULL,'ASC'),(50,6,'tbl_sjablonen','sjabloon','Sjabloon','','sjabloon_ID','','true','sjabloon_contractID = \'$contract_ID\' AND sjabloon_actief <> \'nee\'','session_start();\n$rechten = $HTTP_SESSION_VARS[ses_rechten];\n$contract_ID = $HTTP_SESSION_VARS[ses_contract_ID];\n$gebruiker_ID = $HTTP_SESSION_VARS[ses_gebruiker_ID];\nif ($rechten != \'beheerder\')\n{\n    header(\'location: index.php\');\n    die(\'Login failed\');\n}',620,650,'sjabloon_omschrijving',NULL,'ASC'),(51,6,'tbl_sjabloontypen','sjabloontype','Sjabloon type','','sjabloontype_ID','','true','sjabloontype_contractID=\'$contract_ID\' AND sjabloontype_actief <> \'nee\'','session_start();\n$rechten = $HTTP_SESSION_VARS[ses_rechten];\n$contract_ID = $HTTP_SESSION_VARS[ses_contract_ID];\n$gebruiker_ID = $HTTP_SESSION_VARS[ses_gebruiker_ID];\nif ($rechten != \'beheerder\')\n{\n    header(\'location: index.php\');\n    die(\'Login failed\');\n}',350,560,'sjabloontype_omschrijving',NULL,'ASC'),(52,6,'tbl_brief','brieven','Brieven','<?php\ninclude \'listtrajectsjabloon.php\';\n?>','brief_ID','','true','brief_contractID = \'$contract_ID\' AND brief_trajectID = \'$traject_ID\'','session_start();\n$rechten = $HTTP_SESSION_VARS[ses_rechten];\n$contract_ID = $HTTP_SESSION_VARS[ses_contract_ID];\n$gebruiker_ID = $HTTP_SESSION_VARS[ses_gebruiker_ID];\nif ($rechten == \'geen\' || $rechten == \'\')\n{\n    header(\'location: index.php\');\n    die(\'Login failed\');\n}\nif ($_GET[traject_ID]!=\'\') { $traject_ID = $_GET[traject_ID]; } else { $traject_ID = $_POST[traject_ID]; }\nif (!is_numeric($traject_ID)) { die(\'Onmogelijk traject\'); }\n',0,0,'brief_datum',NULL,'ASC'),(73,6,'tbl_contracten','contract data','Contract data','','contract_ID','',NULL,'','',0,0,'contract_ID',NULL,'ASC'),(54,8,'lesson','lesson','Lesson','','lesson','','true','','',400,560,'chapter',NULL,'ASC'),(55,8,'course','course','Course','','course','','true','','',400,400,'name',NULL,'ASC'),(56,8,'word','word','Word','','word','','true','lesson = \'$lesson_ID\'','header(\'Content-Type: text/html; charset=utf-8\');\nsession_start();\n$lesson_ID = $HTTP_SESSION_VARS[lesson];\n',200,400,'word',NULL,'ASC'),(57,8,'test','test','Test','','test','','true','','',200,400,'test',NULL,'ASC'),(58,8,'selection','selection','Selection','','selection','','true','test=\'$test_ID\'','session_start();\n$test_ID = $HTTP_SESSION_VARS[test];',200,400,'selection',NULL,'ASC'),(59,9,'database','project','Project','','DatabaseID','','true','','',500,500,'DatabaseName',NULL,'ASC'),(60,9,'screen','screen','Screen','','screen','','true','DatabaseID=[[DatabaseID]]','',200,500,'name',NULL,'ASC'),(61,9,'tables','tables','Table','','TableID','','true','DatabaseID=[[DatabaseID]]','',450,500,'TableName',NULL,'ASC'),(62,9,'part','part','Part','','part','','true','DatabaseID=[[DatabaseID]]','',500,500,'order',NULL,'ASC'),(63,9,'fields','field','Field','','FieldID','','true','','',600,500,'order',NULL,'ASC'),(64,9,'actions','action','Action','','ActionID','','true','','',500,500,'ActionID',NULL,'ASC'),(65,9,'sheet','sheet','Sheet','','SheetID','','true','','',500,700,'Name',NULL,'ASC'),(66,9,'column','column','Column','','ColumnID','','true','','',500,700,'Sort',NULL,'ASC'),(68,9,'user','user','User','','user','',NULL,'','',300,500,'username',NULL,'ASC'),(69,9,'user_rights','rights','Rights','','user_rights','',NULL,'','',400,400,'right',NULL,'ASC'),(70,9,'user_field','user_field','User field','','user_field','',NULL,'','',300,300,'user',NULL,'ASC'),(71,9,'user_part','user_part','User part','','user_part','',NULL,'','',300,300,'user',NULL,'ASC'),(72,6,'tbl_gebruikers','gebruiker data','Gebruiker data','','gebruiker_ID','',NULL,'gebruiker_contractID = \'$contract_ID\' and (`gebruiker_type`=\'group\' or `gebruiker_type`=\'both\')','',0,0,'gebruiker_ID',NULL,'ASC'),(74,6,'tbl_clienten','traject client','Traject client','','client_ID','',NULL,'','',500,500,'client_achternaam',NULL,'ASC'),(75,6,'tbl_opdrachtgevers','traject opdrachtgever','Traject opdrachtgever','','opdrachtgever_ID','',NULL,'','',500,500,'opdrachtgever_organisatie',NULL,'ASC'),(76,6,'tbl_trajecten','traject tekst','Traject tekst','','traject_ID','',NULL,'','',0,0,'traject_ID',NULL,'ASC'),(77,6,'user_part','user_part','user_part','','user_part','',NULL,'','',300,300,'right',NULL,'ASC'),(79,6,'user_rights','user_rights','user_rights','','user_rights','',NULL,'','',300,500,'right',NULL,'ASC'),(80,6,'user_field','user_field','user_field','','user_field','',NULL,'','',300,300,'right',NULL,'ASC'),(82,6,'','session_vars','Session','','','',NULL,'','',0,0,'',NULL,'ASC'),(83,10,'tcategories','categories','Categories','','id','',NULL,'','',500,500,'rank',NULL,'ASC'),(84,10,'versions','versions','versions','','id','',NULL,'','',500,500,'rank',NULL,'ASC'),(85,10,'announcements','announcement','announcements','','id','',NULL,'','',500,500,'time',NULL,'ASC');

--
-- Table structure for table `user`
--

CREATE TABLE `user` (
  `user` int(11) NOT NULL auto_increment,
  `username` varchar(80) NOT NULL default '',
  `password` varchar(80) NOT NULL default '',
  `special` enum('none','admin','sysadmin') NOT NULL default 'none',
  `type` enum('user','group','both','cancelled') NOT NULL default 'user',
  PRIMARY KEY  (`user`),
  KEY `username` (`username`,`password`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `user`
--


INSERT INTO `user` VALUES (1,'jurjen','mijnww','sysadmin','user'),(2,'general','','none','group');

--
-- Table structure for table `user_field`
--

CREATE TABLE `user_field` (
  `user_field` int(11) NOT NULL auto_increment,
  `user` int(11) NOT NULL default '0',
  `right` enum('hide','readonly') NOT NULL default 'hide',
  `field` int(11) NOT NULL default '0',
  PRIMARY KEY  (`user_field`),
  KEY `user` (`user`,`right`,`field`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `user_field`
--



--
-- Table structure for table `user_part`
--

CREATE TABLE `user_part` (
  `user_part` int(11) NOT NULL auto_increment,
  `user` int(11) NOT NULL default '0',
  `right` enum('show','edit','add','delete','listall','filter') NOT NULL default 'show',
  `part` int(11) NOT NULL default '0',
  PRIMARY KEY  (`user_part`),
  KEY `user` (`user`,`right`,`part`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `user_part`
--



--
-- Table structure for table `user_rights`
--

CREATE TABLE `user_rights` (
  `user_rights` int(11) NOT NULL auto_increment,
  `user` int(11) NOT NULL default '0',
  `right` int(11) NOT NULL default '0',
  PRIMARY KEY  (`user_rights`),
  UNIQUE KEY `user` (`user`,`right`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `user_rights`
--


INSERT INTO `user_rights` VALUES (1,1,2);

--
-- Table structure for table `user_selection`
--

CREATE TABLE `user_selection` (
  `user_selection` int(11) NOT NULL auto_increment,
  `user` int(11) NOT NULL default '0',
  `field` varchar(80) NOT NULL default '',
  `value` varchar(80) NOT NULL default '',
  PRIMARY KEY  (`user_selection`),
  UNIQUE KEY `user` (`user`,`field`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `user_selection`
--




