<?php
/***************************************
* Free MyDB Project
* MyData Version 0.9
* Configuration file for MyData
* By Philippe Lewicki
*
* The MyDB librairy and applications are product of SQLFusion
* It may be used and/or distributed under the terms of the Q Public
* License (QPL) version 1.0, enclosed in the file licence.txt.
***************************************/
require("../mydatalib/mydatalib.inc.php3");
// Choose your language here
$language = "uk" ;
// $language = "fr" ;
// $language = "de" ;
require("mydatalang_".$language.".inc.php3") ;
Class connect extends mydataconnect {
/* Information to connect to the database */
var $hostname = "localhost" ; /* Name of the host */
var $login = "" ; /* Login to acces the database */
var $password = "" ; /* Password to acces the database */
/* information use by the other class */
var $db = "photoalbum" ; /* Database Name */
var $table ; /* Table Name */
var $registryTable = "registry" ; /* Name of the registry Table */
}
Class form extends mydataForm {
/* submitPage URL of the page that will receive the data
* This page will send back to the resultPage a message in
* the message variable.
*/
var $submitPage = "mydataproced.php3";
var $resultPage = "" ; /* URL of the page that will display the message result. */
var $readonly ; /* List of the field to be diplayed, its overhide the readonly in the registry */
var $labelfield ; /* List of the label to overhide table field names */
var $picture ;
var $listfield ;
var $hidefield ;
var $required;
var $default;
var $optiontype ;
var $emailfield;
var $requiredPage = "requiredfield.html";
var $requiredIndicator = "*" ;
var $requiredLegend = "(*) sont obligatoires";
var $secondary_key ; /* For linktable to add the secondary key to the form */
/* Information for the table presentation of the form */
var $tblBorder = "0" ; /* Lenght of the table border */
var $tblWidth = "100%" ;
var $tblCellspacing ="0" ;
var $tblCellpadding = "0" ;
/* Code uniquement pour formfusion a supprimer */
var $tblEditForm = false;
var $tblLabelEdit;
var $tblLabelDelete;
var $frmFormId = "" ;
var $frmTextareaCols = "40" ; /* Number of cols for the textarea */
var $frmTextareaRows = "5" ; /* Number of rows for the textarea */
var $frmFieldSize = "40" ; /* Size of the fields in char */
var $frmSubmitButton = "Submit" ; /* Text in the submit button */
}
Class table extends mydataTable {
/* Parameters for the tables functions */
var $cfgBorder = "0"; /* Border of the Table */
var $cfgBgcolorOne = "#CCCCCC"; /* Background color of the line 1 */
var $cfgBgcolorTwo = "#DDDDDD"; /* Background color of the line 2 */
var $cfgMaxRows = 30; /* Maximum numbers of rows per page */
var $cfgOrder = "ASC" ; /* Default orders of the query's */
var $cfgShowBlob = true ; /* Show the content of blob fields (false to hide) */
var $cfgWarpcels = 0 ; /* Limite la longueur des cellules à une valeur fixe. */
/* Variable de la registry */
var $showlist; /* Récupere une valeur dans une autre table. */
var $labelfield; /* Label correspondant au nom des colonnes */
var $hidefield ; /* Pour cacher certaines colonne doit contenir 1 */
/* Activate the options when display the table */
var $cfgOrderTable = true ; /* true= show link in the field name to order the table */
var $cfgEditRecord = true ; /* Show link to edit the record */
var $cfgDeleteRecord = true ; /* Show link to delete the record */
var $cfgLinkTableRecord = true; /* Show link to the linked table of the record */
var $cfgAddRecord = true ; /* Show link to add a record in the table */
var $cfgConfirmDelete = "Yes" ; /*Show a dialog box to confirm delete use "No" for direct delete */
/* URL of the page linked for edit, add, linktable and delete */
var $cfgEditPage = "mydataedit.php3"; /* URL of the page that edit the record */
var $cfgAddPage = "mydataedit.php3"; /* URL of the page that Add a record */
var $cfgDeletePage = "mydatadelete.php3"; /* URL of the page that delete a record */
var $cfgLinkTablePage = "mydatalinktable.php3"; /* URL of the page show the linked tables of the record */
/* Texte used in this class : english
var $strShowingRecords = "Showing records ";
var $strNoRecords = "There is no records";
var $strTotal = "total";
var $strEdit = "Edit";
var $strPrevious = "Previous";
var $strNext = "Next";
var $strDelete = "Delete";
var $strDeleted = "The row has been deleted";
var $strLinkedTable = "Linked Table";
var $strPos1 = "Begin";
var $strEnd = "End";
var $strInsertNewRow = "Insert new row";
var $strYes = "Yes";
var $strNo = "No";
var $strDoYouReallyDelete = "Do you really want to delete this record";
*/
/* Texte used in this class : French */
var $strNoRecords = "Il n'y a aucun enregistrement";
var $strShowingRecords = "Affichage des enregistrements";
var $strTotal = "total";
var $strEdit = "Modifier";
var $strPrevious = "Précédent";
var $strNext = "Suivant";
var $strDelete = "Effacer";
var $strDeleted = "L'enregistrement a été effacé";
var $strLinkedTable = "Tables Liés";
var $strPos1 = "Début";
var $strEnd = "Fin";
var $strInsertNewRow = "Insérer un nouvel enregistrement";
var $strYes = "Oui";
var $strNo = "Non";
var $strDoYouReallyDelete = "Voulez vous vraiment supprimer l'enregistrement ";
}
?>