Clean installation on XAMPP
1. To install, move the folder named ‘aqualabo’ to an appropriate place inside the web server root folder: Xampp/htdocs/labstore
2. Next, set up an MySQL database. You may call it ‘aqualabo’.
I went on localhost
select phpmyadmin
I created a database: aqualabo
database importation to polulate the database:
I cliked on the database created
Click on import
choose file
when on the disk to choose labstore.sql
Click on go
See image for result.
3. On my drive, I opened with Notepad++ the files file config.php which is at: xampp/htdocs/labstore/config.php
I changed informations from line 31 to 56. See the two pictures (aqualabo 3 et 4)
Got to line 115, there is important information for access to admin page inside the software: The database that was uploaded contains admin username : root and password: letizia. So you’ll need these information to login as admin after labstore installation.
You’ll net this info later
4. I opened my browser at localhost/aqualabo
It worked! the homepage was displayed.
To acess to admin screen, a login is needed. In the databased that was installed to populate the database, there was already an admin login, necessary to acess to admin page. here is what I checked in config.php, line 115
so login: root password: letizia.
So I cliked on admin and get to the admin login page, entered the information.
It worked
I tried then to create my own admin name. That is possible on that page
login: aqualabo
pass: laxxxxpk
Register a user also
login : juliem
password: laxxxxjm
It is set
Source: http://www.bioinformatics.org/phplabware/sourceer/sourceer.php?&Sfs=readme.txt&Sl=.%2FLabStoRe
WORKING FOR DATABASE MODIFICATION
Now, I want to create some new tables for my need, based on the table « chemicals »
What is important to know is that you need to create 2 things:
1- A table in the database based on the table chemicals (in phpMyAdmin) browser side
2- A php file that will be a copy of chemicals.php that is inside aqualabo/content on the server (my disk in the case I am installing on Xampp)
1- Creating the table in the database and configure it
open browser, type: localhost, then enter
Find phpMyAdmin and click on it
enter your root password of phpMyadmin
click on aqualabo database. Click on the table chemicals, click on More / operations
the table displayed has many parts that are displayed as small tables with names.
Find the one named:Copy table to database.
The table is named: aqualabo.chemicals. Change the last part by the new name of the table:
you’ll get in this case: aqualabo.produits
Check : Structure and data and hit Go.
You’ll get a message that table has been copied in aqualabo and you’ll se the new name of the table in the list of tables of the database Aqualabo.
You don’t need to create a the table aqualabo.dadabik_produits. It will be created later by it’s self.
For configuration:
We want to change some names of colons and attibutes of the table created for our need.
So click on the table created
click on Structure and all the colums (they are rows, but they are called colums) of the batabase will be displayed.
Now you’ll see that for each of the colomns, there is « action » where you click on change.
The column you want to change, click on change and it will be diaplayed. You can change anything and even the name.
after making changes, click on save and you’ll be return back to the table structure.
Do so for all columns we want to change.
To add another colums (don’t use insert, because in phpMyAdmin, inserting means adding data).
So to add a new colums, when the table is displayed in Structure mode, scroll down to the end of the colums.
there is a line where you’ll see Add (with line of a table insertion image). type how many colums you want to add and choose where you want to add them
and click on Go.
(reference, by Tomasz Kowalczyk : http://stackoverflow.com/questions/6260015/how-to-add-another-field-in-an-existing-table-in-mysql
If you want to add a field in existing table in PhpMyAdmin, click « Structure » tab while viewing its data, and at the bottom of table structure you have nice box: « Add [number] fields at the [beginning / ending] of a table. Click the button on the right and processd with forms.)
You’ll see lines of the tables displayed and you’ll have to fill them (adding name, type of character, etc.)
After filling everyting, click on Go.
Culums will be added to the table at the place you precised.
After setting colums, they can be rearranged (in certain order).
Still on Structure display, go at the end of the table. Under the table, there an option: Move columns.
Click on it. a pop-up screen will be displayed and you’ll be able to move the table culums in the order you like.
After that click on Go and you’ll get your table displayed in the order you made.
2- creating and modifying php file for the new database
We are now going to create a new file for product based on chemicals. it is on the disk
xampp/htdocs/aqualabo/modules
copy and paste chemicals.php
rename it produits.php
Edit the new file with notepad++
ligne 12: change name: chemicals for produits
Find all words « chemicals » in the file and replace by « produits ». Save
Edit config.php in notepad++
copy line 72 following:
‘chemical’=>array(‘Chemical’,’Chemicals’,’Chemical, DNA, peptide, PCR primer, RNA, etc.’,’chemicals.php’,’chemicals’),
Make an line 83 by pasting the copied line 72 between « , » and « ); »
Remplace in the pasted text any chemical or chemicals by : produit or produits.
That is set.
SETTING UP the App to integrate the new item products.
Open browser, go to: localhost/aqualabo. You’ll see that « product appears in the list at the left.
Click on Admin
login with admin login and password.
Find interface creator and click on it
Scroll that page down and you’ see « produits » with « install » in front.
Click on install to install products. This will create the table « dadabik_produits » in the database.
CONFIGURATION of Produits
Stay in inteface creator to configure the table created.
retur on the top of the page
choose produits in dropdown list and click Change table
Change all names you changed in the database.
The new column created don’t appear at this time, but when you’ll finish modifying new names,
you can go on step 3 and hit refresh installation. Everything will be displayed. You’ll have your complete table.
Now we are going to make configuration of the actual table on what will be diapley on the interface of the table when entering data.
You’ll go to internal table manager. Form the interface creator find configurator link. you’ll find it…
Pour la configuration, choisir un item (nom colonne du tableau), changer le nom d,affichage (Label).
Le nom d’affichage peut être écrit en françcais avec accent et des mots séparés. pas trop long, mais expressif quand même (2 ou 3 mots si nécessaire)
Le field type: garder le même (text pour la plupart)
Centent type: la plupart alphanumérique.
ensuite ce qu’on veut afficher dans recehrche, etc.
Pour avoir des données en dropdown menu, il faut:
Choisir dans le Fild type: Select single
Option to include, les choix séparés par des tildas comme suivant:
~Produits chimie~Produit microbilogie~Produits autres~
un ~ au début et un ~ à la fin
Il y a juste deux choses qui sont particulières:
id et ID_user
Ce sont des données qui vont être générées automatiquement. Alors il faut qu’il soitent bien confgurés.
Je les ai gardés comme tels pour le label (Ils ne doivent pas apparaitre dans le formlaire d’insertion)
Pour Feild type: id (unique_ID) et pour ID_user (ID_user)
Ces deux ne doivent pas apparître dans le formulaire d’insertion, ni dans la mise à jour.
En plus ID_User ne doit pas être dans les recherches et affichage.
Après cela, le premier tabelau est créé et configuré. Il faudra créer les autres en se basant sur ce dernier.
Les étapes:
Copier le tabelau et lui donner un nouveau nom.
les nom des colonnes devraient déja être modifiées, toutefois, il faudra les modifier dans l’application (interface builder)
Creer le fichier php, le modifier et l’inscrire dans config.php
Revenir sur le web et faire l’installation et la modification nom des colonnes et attribus des colonnes.
Après l’installation, il était question de désactiver les modules que je ne veux pas.
Dans un premier temps, je les ai désinstallés. dans l’inteface opérateur. Je pense que j’aurais pu les inactiver sans les désinstaller.
Puis je vais ouvrir le fichier config.php ou je vais mettre des double barres (//) sur toutes les lignes qui sont inserrées pour l’affichage de tous les modules
que je ne veux pas.
Je vais peut-être les enlever de la base de données. J’y tiens, car ça va soulager.
Je les supprimés de la base de données et ça a marché.
SOME POINTS:
The « produits » appears in the list of items at the homepage (localhost/aqualabo), as soon as the config.php has been updated.
CRÉATION ET CONFIGURATION DU TABLEAU ET DU FICHIER DE DOCUMENTS : documents
Ce tableau et le fichier documents.php est légèrement différent des autres du fait qu’il y a un téléchargement de fichier.
Tableau dans la base de données:
Il faut créer un module fichier ayant text comme nature des données.
J’ai ensuite crée d’autres modules comme: type_fichier, auteur, note.
Le fichier document.php.
Il faut plutôt prendre le fichier de document: records.php et le modifier.
La modification consiste à:
1- changer le nom: ligne 13, « records » pour « documents »
2- Ligne 24, changer les paramètres de recherche
Le texte suivant:
// Array of options and values for use with search and sort forms below; format is ‘MySQL table field name’ => ‘Text that appears on webpage’
$option_value = array(‘name’=>’Name/description’, ‘type’=>’Type’, ‘owner’=>’Owner/creator’, ‘experiment’=>’Experiment info.’, ‘comment’=>’Comments’, ‘modified_on’=>’Update date’, ‘added_on’=>’Add date’, ‘modified_by’=>’Updater’, ‘added_by’=>’Adder’);
Pour celui-ci
// Array of options and values for use with search and sort forms below; format is ‘MySQL table field name’ => ‘Text that appears on webpage’ $option_value = array(‘name’=>’Nom du fichier’, ‘classe_groupe’=>’Classe ou groupe’, ‘auteur’=>’Auteur’, ‘type_fichier’=>’Type Fichier’, ‘modified_on’=>’Modifié le’, ‘added_on’=>’Ajouté le’, ‘modified_by’=>’Modifié par’, ‘added_by’=>’Ajouté par’);
Lgne 28: table width: 850
Ligne 34 : modifier le column heading
echo ‘<colgroup><col width= »40″ valign= »top » align= »left » /><col valign= »top » align= »left » /><col valign= »top » align= »left » /><col valign= »top » align= »left » /><col valign= »top » align= »left » /><col valign= »top » width= »190″ align= »left » /></colgroup><tr style= »background-color:’, $heading_color, ‘; » valign= »top »><td></td><td >NOM – FOURNIS – AUTEUR</td><td>TYPE FICHIER</td><td >CLASSÉ DANS</td><td >TÉLÉCHARGER</td><td >INFORMATIONS</td></tr>’;
et aussi les paramètres à afficher dans le tableau on fonction des entêtes des colonnes, de la ligne 35 à 73
Syntaxe pour ajouter le paramètre principal dans le tableau:
echo ‘</td><td>’, htmlspecialchars($row[« nom-du_parametre »]);
Syntaxe pour ajouter un paramètre secondaire dans le tableau inscrit directement end dessous :
if($row[« fournisseur »] != ») { echo ‘<br />PARAMÈTRE SEC : ‘, htmlspecialchars($row[« parametre_sec »]); }
***Un attention particulière aux lignes suivantes (beaucoup de temps avant de régler ces problèmes):
Ligne 53 et ligne 55: file a été changé par « fichier » le nouveau nom donné
Ligne 55: $file = substr($row[« file »], 26);
Le paramètre 26 est lié à la longeur du mot records (nom du fichier de données) et qui sera aussi le nom du sous-repertoire dans lequel les fichiers downloadés vont attérir.
le nouveau nom sera documents qui a 2 lettres de plus que records. Le paramètre sera donc 28 et la ligne 55 s’écrira ainsi: $file = substr($row[« fichier »], 28);
Lignes 56 et 57:
initialement:
if(file_exists(‘../interface_creator/uploads/records/’ . $file)) { echo ‘<a href= »../interface_creator/uploads/records/’, htmlspecialchars($file), ‘ »>’, htmlspecialchars($file), ‘</a><br />’;
deviennent:
if(file_exists(‘../interface_creator/uploads/documents/’ . $file)) { echo ‘<a href= »../interface_creator/uploads/documents/’, htmlspecialchars($file), ‘ »>’, htmlspecialchars($file), ‘</a><br />’;
CONFIGURATION FICHE D’INSERTION ET MODIFICATION
ca se fait dans les fichiers index_short.php et config.php (changer le texte en anglais apparaissant)
Concernant le mot de passe administrateur
Les mot de passe que j’ai essayé ne fonctionnaient pas parce qu’il est nécessaire que le mot de passe soit crypté pour que a marche. Pour se faire, rentrer dans la section administrateur
cher un nouveau compte administrateur: login et mot de passe. Une fois crée, cliquer sur modification. Les détail du compte vont s’afficher.
À gauche du mot de passe, il y a un lien pour crypter.
cliquer sur le lien et une fentre s’ouvrira pour le cryptage.
Rentrer votre mot de passe et cryptez-la. Une fois cela fait, copier le mot de passe crypté et collez-le à la place de votre mot de passe.
Sauvegardez.
Le nouveau compte devrait maintenant être fonctionnel.