Logiciel Labstore Installation et configuration
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
After creating account. Password need to be crypted before it works.
Register a user also with login name and password
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 ont 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 database has been copied in aqualabo and you’ll se the new name of the database in the list of databases.
You don’t need create a the table aqualabo.dadabik_produits. It will be created later by it’s self.
For configurating database
We want to change some names of colons and attibutes of the table created for our need.
So click on the database 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 ‘
‘;
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 ‘
Syntaxe pour ajouter un paramËtre secondaire dans le tableau inscrit directement end dessous :
if($row[« fournisseur »] != ») { echo ‘
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 ‘‘, htmlspecialchars($file), ‘
‘;
deviennent:
if(file_exists(‘../interface_creator/uploads/documents/’ . $file)) { echo ‘‘, htmlspecialchars($file), ‘
‘;
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 fenêtre 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.