PLUS DE MENU DE LOCATION et +

Les suggestions et améliorations que vous voudriez voir apportées dans SMI
Répondre
titeuf
Membre
Messages : 38
Enregistré le : lun. déc. 29, 2008 2:04 pm
Contact :

PLUS DE MENU DE LOCATION et +

Message par titeuf »

Salut galawa voilà je propose encore une petite modif de mon cru.
Menu remis à jour sans menu de location.
La fonction location est encore présente mais n'est plus afficher dans tout les mode admin/age/technicien/client...
Puis je me suis permis de modifier l'accès à la liste des intervention en cours pour qu'elle s'affiche par date de RDV et nom qu'elle les classe par Code Ascendant.
Plus pratique quand on ouvre les intervention elles sont automatiquement dans l'ordre des interventions à faire.
Fichier smi/jscript/menus/menu.js.php
Sinon voici les modif :
ligne 442
Supprimer:
oCMenu.makeMenu('top21','','<?PHP echo $mnu_location; ?>','','','<?PHP echo cal_width($mnu_location,12); ?>')
oCMenu.makeMenu('subt210','top21','<?PHP echo $mnu_gestion; ?>','coloc_lst.php?ord=DES&tri=Code','')
oCMenu.makeMenu('subt211','top21','<?PHP echo $mnu_loc_age; ?>','age_lst.php','')
oCMenu.makeMenu('subt212','top21','<?PHP echo $mnu_loc_st; ?>','st_lst.php','')
oCMenu.makeMenu('sub1213','top21','<?PHP echo $mnu_loc_teca; ?>','tec_lst.php?td=loc&tl=1')
oCMenu.makeMenu('sub1214','top21','<?PHP echo $mnu_loc_tecs; ?>','tec_lst.php?td=loc&tl=3')
oCMenu.makeMenu('subt215','top21','<?PHP echo $mnu_loc_art; ?>','pdtloc_lst.php?ta=m&tri=Code','')
oCMenu.makeMenu('subt216','top21','<?PHP echo $mnu_loc_lieuxstockage; ?>','dloc_lst.php','')
oCMenu.makeMenu('subt217','top21','<?PHP echo $mnu_prm; ?>','','')
oCMenu.makeMenu('subt2170','subt217','<?PHP echo $mnu_loc_penloc; ?>','pen_lst.php?ta=m','')
oCMenu.makeMenu('subt2171','subt217','<?PHP echo $mnu_loc_perloc; ?>','perloc_lst.php?ta=m','')

ligne 655
Supprimer:
oCMenu.makeMenu('top21','','<?PHP echo $mnu_location; ?>','','','<?PHP echo cal_width($mnu_location,12); ?>')
oCMenu.makeMenu('subt210','top21','<?PHP echo $mnu_gestion; ?>','coloc_lst.php?ord=DES&tri=Code','')
oCMenu.makeMenu('subt211','top21','<?PHP echo $mnu_loc_age; ?>','age_lst.php','')
oCMenu.makeMenu('subt212','top21','<?PHP echo $mnu_loc_st; ?>','st_lst.php','')
oCMenu.makeMenu('sub1213','top21','<?PHP echo $mnu_loc_teca; ?>','tec_lst.php?td=loc&tl=1')
oCMenu.makeMenu('sub1214','top21','<?PHP echo $mnu_loc_tecs; ?>','tec_lst.php?td=loc&tl=3')
oCMenu.makeMenu('subt215','top21','<?PHP echo $mnu_loc_art; ?>','pdtloc_lst.php?ta=m&tri=Code','')
oCMenu.makeMenu('subt216','top21','<?PHP echo $mnu_loc_lieuxstockage; ?>','dloc_lst.php','')
oCMenu.makeMenu('subt217','top21','<?PHP echo $mnu_prm; ?>','','')
oCMenu.makeMenu('subt2170','subt217','<?PHP echo $mnu_loc_penloc; ?>','pen_lst.php?ta=m','')
oCMenu.makeMenu('subt2171','subt217','<?PHP echo $mnu_loc_perloc; ?>','perloc_lst.php?ta=m','')

ligne 750
Supprimer:
oCMenu.makeMenu('top21','','<?PHP echo $mnu_location; ?>','','','<?PHP echo cal_width($mnu_location,12); ?>')
oCMenu.makeMenu('subt210','top21','<?PHP echo $mnu_gestion; ?>','coloc_lst.php?ord=DES&tri=Code','')
oCMenu.makeMenu('subt211','top21','<?PHP echo $mnu_loc_age; ?>','age_lst.php','')
oCMenu.makeMenu('subt212','top21','<?PHP echo $mnu_loc_st; ?>','st_lst.php','')
oCMenu.makeMenu('sub1213','top21','<?PHP echo $mnu_loc_teca; ?>','tec_lst.php?td=loc&tl=1')
oCMenu.makeMenu('sub1214','top21','<?PHP echo $mnu_loc_tecs; ?>','tec_lst.php?td=loc&tl=3')
oCMenu.makeMenu('subt215','top21','<?PHP echo $mnu_loc_art; ?>','pdtloc_lst.php?ta=m&tri=Code','')
ligne 810
Supprimer:
oCMenu.makeMenu('top21','','<?PHP echo $mnu_location; ?>','','','<?PHP echo cal_width($mnu_location,12); ?>')
oCMenu.makeMenu('subt210','top21','<?PHP echo $mnu_gestion; ?>','coloc_lst.php?ord=DES&tri=Code','')
oCMenu.makeMenu('subt211','top21','<?PHP echo $mnu_loc_age; ?>','age_lst.php','')
oCMenu.makeMenu('subt212','top21','<?PHP echo $mnu_loc_st; ?>','st_lst.php','')
oCMenu.makeMenu('sub1213','top21','<?PHP echo $mnu_loc_teca; ?>','tec_lst.php?td=loc&tl=1')
oCMenu.makeMenu('sub1214','top21','<?PHP echo $mnu_loc_tecs; ?>','tec_lst.php?td=loc&tl=3')
oCMenu.makeMenu('subt215','top21','<?PHP echo $mnu_loc_art; ?>','pdtloc_lst.php?ta=m&tri=Code','')
ligne 886
Supprimer:
oCMenu.makeMenu('top5','','<?PHP echo $mnu_location; ?>','coloc_lst.php?ord=DES&tri=Code','','<?PHP echo cal_width($mnu_location,12)

Et voilà le menu location n'existe plus...
--------------------------------------------------------------------------------------------------
Pour afficher les interventions dans l'ordre des RDV et n'afficher que les intervention à faire:
Ligne 462
Remplacer:
oCMenu.makeMenu('subt440','top4','<?PHP echo $mnu_gestion; ?>','int_lst.php?page=1&ord=DES&tri=Code')
par:
oCMenu.makeMenu('subt440','top4','<?PHP echo $mnu_gestion; ?>','int_lst.php?page=1&ord=DES&tri=RDV&fi=1')
Ligne 507
Remplacer:

oCMenu.makeMenu('sub50','top5','<?PHP echo $mnu_gestion; ?>','int_lst.php?page=1&ord=DES&tri=Code')
par:

oCMenu.makeMenu('sub50','top5','<?PHP echo $mnu_gestion; ?>','int_lst.php?page=1&ord=DES&tri=RDV&fi=1')
Ligne 530
Remplacer:
oCMenu.makeMenu('sub40','top4','<?PHP echo $mnu_gestion; ?>','int_lst.php?page=1&ord=DES&tri=Code')
par
oCMenu.makeMenu('sub40','top4','<?PHP echo $mnu_gestion; ?>','int_lst.php?page=1&ord=DES&tri=RDV&fi=1')
ligne 675
Remplacer:
oCMenu.makeMenu('subt440','top4','<?PHP echo $mnu_gestion; ?>','int_lst.php?page=1&ord=DES&tri=Code')
par
oCMenu.makeMenu('subt440','top4','<?PHP echo $mnu_gestion; ?>','int_lst.php?page=1&ord=DES&tri=RDV&fi=1')
ligne 766
Remplacer:
oCMenu.makeMenu('sub40','top4','<?PHP echo $mnu_gestion; ?>','int_lst.php?page=1&ord=DES&tri=Code')
Par:
oCMenu.makeMenu('sub40','top4','<?PHP echo $mnu_gestion; ?>','int_lst.php?page=1&ord=DES&tri=RDV&fi=1')
Ligne 824
Remplacer:
oCMenu.makeMenu('sub50','top5','<?PHP echo $mnu_gestion; ?>','int_lst.php?page=1&ord=DES&tri=Code')
Par:
oCMenu.makeMenu('sub50','top5','<?PHP echo $mnu_gestion; ?>','int_lst.php?page=1&ord=DES&tri=RDV&fi=1')
Ligne 870
Remplacer
oCMenu.makeMenu('top2','','<?PHP echo $mnu_interventions; ?>','int_lst.php?page=1&ord=DES&tri=Code','','<?PHP echo cal_width($mnu_interventions,12); ?>')
Par
oCMenu.makeMenu('top2','','<?PHP echo $mnu_interventions; ?>','int_lst.php?page=1&ord=DES&tri=RDV&fi=1','','<?PHP echo cal_width($mnu_interventions,12); ?>')

Et voilà une petite suggestion... Bien pratique pour ma part car elle évite de perdre du temps ou d'afficher des intervention déjà classer et bien rangé par SMI.
Le principe est simple pour l'affichage
ord=DES ou ASC dans l'ordre croissant ou décroissant
tri=Code ou autre colonne
fi=1 ou petit menu de classement

J'ai fait pareil pour les client que je trie par ordre alphabétique à l'affichage client.
Je suis encore en train d'apporter quelques modif je vous tiens au courant.
!!PEACE!!

Répondre