diff --git a/html/commercial.php b/html/commercial.php
index 0b353877f..ff457fdb3 100644
--- a/html/commercial.php
+++ b/html/commercial.php
@@ -100,6 +100,7 @@ echo ShowItem(array(
array('?p_action=fiche&'.$str_dossier,'Fiche'),
array('?p_action=periode&'.$str_dossier,'Ferm. Periode'),
array('?p_action=central&'.$str_dossier,'Centralisation'),
+ array('?p_action=contact&'.$str_dossier,'Contact'),
array('?p_action=suivi_courrier&'.$str_dossier,'Suivi Courrier'),
),
'H',"mtitle","mtitle","?p_action=$p_action&".$str_dossier,' width="100%"');
@@ -159,12 +160,6 @@ if ( $p_action == 'depense')
require_once("depense.inc.php");
}
//-----------------------------------------------------
-// Administration
-if ( $p_action == 'admin')
-{
- require_once("admin.inc.php");
-}
-//-----------------------------------------------------
// Banque
if ( $p_action == 'bank')
{
diff --git a/include/admin.inc.php b/include/admin.inc.php
deleted file mode 100644
index 833f11892..000000000
--- a/include/admin.inc.php
+++ /dev/null
@@ -1,183 +0,0 @@
-can_request($cn,ADMIN);
-
-/*! \file
- * \brief Called from the module "Gestion" to manage the customer
- */
-
-?>
-
-remove();
- $sub_action="list";
-}
-//-----------------------------------------------------
-// Add card
-if ( $sub_action=="insert" )
-{
- $retour=sprintf('',
- urldecode($_REQUEST['url']));
-
- $admin=new Admin($cn);
- $admin->Save($_REQUEST['fd_id']);
- echo $retour;
- echo "
-
-
-
-
-
-
-';
- echo '
';
- echo $sup->Summary($search);
- echo '
';
- echo '
';
-
-}
-//-----------------------------------------------------
-// Show Detail
-if ( $sub_action == 'detail' )
-{
- $f_id=$_REQUEST['f_id'];
- echo '';
- $sup=new Admin($cn,$f_id);
- $retour=sprintf('
',
- urldecode($_REQUEST['url']));
- echo $retour;
- echo '
';
- echo $retour;
- echo '
';
-}
-html_page_stop();
-?>
diff --git a/include/contact.inc.php b/include/contact.inc.php
deleted file mode 100644
index 2a530a596..000000000
--- a/include/contact.inc.php
+++ /dev/null
@@ -1,220 +0,0 @@
-
',urldecode($_REQUEST['url']));
- $h_url=sprintf('
',urldecode($_REQUEST['url']));
-}
-else
-{
- $retour="";
- $h_url="";
-}
-
-// Menu
-// Remove a card
-if ( isset ($_POST['delete']) )
-{
- $f_id=$_REQUEST['f_id'];
-
- $fiche=new contact($cn,$f_id);
- $fiche->remove();
- $sub_action="list";
-}
-//-----------------------------------------------------
-// Add card
-if ( $sub_action=="insert" )
-{
- $contact=new Contact($cn);
- $contact->Save($_REQUEST['fd_id']);
- echo $retour;
- echo "
";
- echo $contact->Display(true);
- echo "
";
- echo $retour;
-
-}
-
-//-----------------------------------------------------
-// Save modification
-if ( isset ($_POST['mod']))
-{
- // modification is asked
- $f_id=$_REQUEST['f_id'];
-
- $contact=new contact($cn,$f_id);
- $contact->Save();
- $sub_action="list";
-}
-// by default open liste
-if ( $sub_action == "" )
- $sub_action="list";
-//-----------------------------------------------------
-//Display a blank card
-if ( $sub_action=="blank")
-{
- $retour_action=sprintf('
',
- "commercial.php?p_action=contact&$str_dossier");
- echo '
';
-
- echo $retour_action;
- $c=new contact($cn);
- echo '';
- echo $retour_action;
- echo '
';
-}
-//-----------------------------------------------------
-// list
-if ( $sub_action == "list" )
-{
-?>
-
-
-
-
-
-
-
-
-
-
-company=$qcode;
- }
- echo $retour;
- echo '
';
- echo $contact->Summary($search);
- echo '
';
- echo $retour;
-
-
-}
-//-----------------------------------------------------
-// Show Detail
-if ( $sub_action == 'detail' )
-{
- $f_id=$_REQUEST['f_id'];
- echo '
';
- $contact=new contact($cn,$f_id);
- echo $retour;
- echo '
';
- echo $retour;
- echo '
';
-}
-html_page_stop();
-
-