Revision
14597
Author
voipmaster
Date
2009-08-22 12:56:48 -0500 (Sat, 22 Aug 2009)

Log Message

Some modification to users interface

Modified Paths

Diff

Modified: freeswitch/trunk/contrib/DelphiWorld/Easyroute_manager/global/config.php (14596 => 14597)


--- freeswitch/trunk/contrib/DelphiWorld/Easyroute_manager/global/config.php	2009-08-22 15:26:12 UTC (rev 14596)
+++ freeswitch/trunk/contrib/DelphiWorld/Easyroute_manager/global/config.php	2009-08-22 17:56:48 UTC (rev 14597)
@@ -3,7 +3,7 @@
   define('SQL_DSN',      'localhost');
     define('SQL_USERNAME', 'root'     );
     define('SQL_PASSWORD', 'root'  );
-    define('SQL_BDD',      'easyroute'  );
+    define('SQL_BDD',      'fs2bill'  );
 
     // Chemins à utiliser pour accéder aux vues/modeles/librairies
     $module = empty($module) ? !empty($_GET['module']) ? $_GET['module'] : 'accueil' : $module;

Modified: freeswitch/trunk/contrib/DelphiWorld/Easyroute_manager/modules/gateway/ajouter.php (14596 => 14597)


--- freeswitch/trunk/contrib/DelphiWorld/Easyroute_manager/modules/gateway/ajouter.php	2009-08-22 15:26:12 UTC (rev 14596)
+++ freeswitch/trunk/contrib/DelphiWorld/Easyroute_manager/modules/gateway/ajouter.php	2009-08-22 17:56:48 UTC (rev 14597)
@@ -1,58 +1,58 @@
-<?php
-    /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-                                easyroute
-
-    Derniere mise a jour  :  22 aout  09
-    Auteur                : InSiDe
-    Dev 0.1
-    ------------------------------------------------------------------------------*/
-
-
-    include CHEMIN_MODELE. 'gateway.class.php';
-
-
-    if (!empty($_POST['uniqid']))
-    {
-
-        if(empty($_POST['gateway_ip']) )
-            $erreurs[] = "gateway_ip est vide.";
-
-        if(empty($_POST['group']) )
-            $erreurs[] = "group est vide.";
-
-        if(empty($_POST['limit']) )
-            $erreurs[] = "limit est vide.";
-
-        if(empty($_POST['techprofile']) )
-            $erreurs[] = "limit est vide.";
-
-        if(empty($erreurs))
-        {
-            $ip          = htmlspecialchars($_POST['gateway_ip'], ENT_COMPAT, 'UTF-8');
-            $ip          = mysql_real_escape_string($ip);
-
-            $group       = htmlspecialchars($_POST['group'], ENT_COMPAT, 'UTF-8');
-            $group       = mysql_real_escape_string($group);
-
-            $limit       = htmlspecialchars($_POST['limit'], ENT_COMPAT, 'UTF-8');
-            $limit       = mysql_real_escape_string($limit);
-
-            $techprofile = htmlspecialchars($_POST['techprofile'], ENT_COMPAT, 'UTF-8');
-            $techprofile = mysql_real_escape_string($techprofile);
-
-            // Instanciation de la classe Commentaires
-            $gateway = new Gateway();
-
-            if($gateway->addGateway($ip, $group, $limit, $techprofile))
-                header('location:./index.php?module=gateway&action=liste_gateways');
-            else
-                trigger_error("Erreur SQL impossible d'ajouter un nouv. gateway", E_USER_ERROR);
-
-
-        }
-    }
-
-    // Affichage
-    include CHEMIN_VUE. 'formulalre_ajouter_gateway.tpl.php';
-
+<?php
+    /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+                                easyroute
+
+    Derniere mise a jour  :  22 aout  09
+    Auteur                : InSiDe
+    Dev 0.1
+    ------------------------------------------------------------------------------*/
+
+
+    include CHEMIN_MODELE. 'gateway.class.php';
+
+
+    if (!empty($_POST['uniqid']))
+    {
+
+        if(empty($_POST['gateway_ip']) )
+            $erreurs[] = "gateway_ip est vide.";
+
+        if(empty($_POST['group']) )
+            $erreurs[] = "group est vide.";
+
+        if(empty($_POST['limit']) )
+            $erreurs[] = "limit est vide.";
+
+        if(empty($_POST['techprofile']) )
+            $erreurs[] = "Techprofile est vide.";
+
+        if(empty($erreurs))
+        {
+            $ip          = htmlspecialchars($_POST['gateway_ip'], ENT_COMPAT, 'UTF-8');
+            $ip          = mysql_real_escape_string($ip);
+
+            $group       = htmlspecialchars($_POST['group'], ENT_COMPAT, 'UTF-8');
+            $group       = mysql_real_escape_string($group);
+
+            $limit       = htmlspecialchars($_POST['limit'], ENT_COMPAT, 'UTF-8');
+            $limit       = mysql_real_escape_string($limit);
+
+            $techprofile = htmlspecialchars($_POST['techprofile'], ENT_COMPAT, 'UTF-8');
+            $techprofile = mysql_real_escape_string($techprofile);
+
+            // Instanciation de la classe Commentaires
+            $gateway = new Gateway();
+
+            if($gateway->addGateway($ip, $group, $limit, $techprofile))
+                header('location:./index.php?module=gateway&action=liste_gateways');
+            else
+                trigger_error("Erreur SQL impossible d'ajouter un nouv. gateway", E_USER_ERROR);
+
+
+        }
+    }
+
+    // Affichage
+    include CHEMIN_VUE. 'formulalre_ajouter_gateway.tpl.php';
+
 ?>
\ No newline at end of file

Modified: freeswitch/trunk/contrib/DelphiWorld/Easyroute_manager/modules/gateway/liste_gateways.php (14596 => 14597)


--- freeswitch/trunk/contrib/DelphiWorld/Easyroute_manager/modules/gateway/liste_gateways.php	2009-08-22 15:26:12 UTC (rev 14596)
+++ freeswitch/trunk/contrib/DelphiWorld/Easyroute_manager/modules/gateway/liste_gateways.php	2009-08-22 17:56:48 UTC (rev 14597)
@@ -25,5 +25,9 @@
         include CHEMIN_VUE. 'colonne_gateway.tpl.php';
 
     include CHEMIN_VUE. 'bas_liste_gateways.tpl.php';
+if  (!$gateway->countGateways()){
+echo ('<ul><li>no gateway to display</li></ul>');
+};
 
+
 ?>
\ No newline at end of file

Modified: freeswitch/trunk/contrib/DelphiWorld/Easyroute_manager/modules/numbers/liste_numbers.php (14596 => 14597)


--- freeswitch/trunk/contrib/DelphiWorld/Easyroute_manager/modules/numbers/liste_numbers.php	2009-08-22 15:26:12 UTC (rev 14596)
+++ freeswitch/trunk/contrib/DelphiWorld/Easyroute_manager/modules/numbers/liste_numbers.php	2009-08-22 17:56:48 UTC (rev 14597)
@@ -1,38 +1,39 @@
-<?php
-    /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-                                easyroute
-
-    Derniere mise a jour  :  22 aout  09
-    Auteur                : InSiDe
-    Dev 0.1
-    ------------------------------------------------------------------------------*/
-
-
-    require CHEMIN_LIB.    'fonction.paigner.php';
-    include CHEMIN_MODELE. 'number.class.php';
-
-    $head['titre'] = 'Liste des "Numbers".';
-
-    // Instanciation de la classe Commentaires
-    $number = new Number();
-
-    // Récupération du nombre de commentaires
-    $nombre_numbers = $number->countNumbers();
-
-    // Préparation de la paignation
-    $lien_paignation = ' <a href="./index.php?module=numbers&action=liste_numbers&page=%d"> %1$d </a> ';
-    $paignation = paigner($nombre_numbers, NUMBERS_PAR_PAGE, $page, $lien_paignation);
-
-    // Récupération des commentaires
-    $premiereNumber = ($page -1) * NUMBERS_PAR_PAGE;
-    $requete = $number->getAllNumbers($premiereNumber, NUMBERS_PAR_PAGE);
-
-    // Affichage
-    include CHEMIN_VUE. 'en-tete_liste_numbers.tpl.php';
-
-    while($data = mysql_fetch_assoc($requete))
-        include CHEMIN_VUE. 'colonne_number.tpl.php';
-
-    include CHEMIN_VUE. 'bas_liste_numbers.tpl.php';
-
+<?php
+    /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+                                easyroute
+
+    Derniere mise a jour  :  22 aout  09
+    Auteur                : InSiDe
+    Dev 0.1
+    ------------------------------------------------------------------------------*/
+
+
+    require CHEMIN_LIB.    'fonction.paigner.php';
+    include CHEMIN_MODELE. 'number.class.php';
+
+    $head['titre'] = 'Manage Numbers';
+
+    // Instanciation de la classe Commentaires
+    $number = new Number();
+
+    // Récupération du nombre de commentaires
+    $nombre_numbers = $number->countNumbers();
+
+    // Préparation de la paignation
+    $lien_paignation = ' <a href="./index.php?module=numbers&action=liste_numbers&page=%d"> %1$d </a> ';
+    $paignation = paigner($nombre_numbers, NUMBERS_PAR_PAGE, $page, $lien_paignation);
+
+    // Récupération des commentaires
+    $premiereNumber = ($page -1) * NUMBERS_PAR_PAGE;
+    $requete = $number->getAllNumbers($premiereNumber, NUMBERS_PAR_PAGE);
+
+    // Affichage
+    include CHEMIN_VUE. 'en-tete_liste_numbers.tpl.php';
+
+    while($data = mysql_fetch_assoc($requete))
+        include CHEMIN_VUE. 'colonne_number.tpl.php';
+    include CHEMIN_VUE. 'bas_liste_numbers.tpl.php';
+if  (!$number->countNumbers()){
+echo ('<ul><li>no number to display</li></ul>');
+};
 ?>
\ No newline at end of file