mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-20 16:31:51 +01:00
161 lines
4.6 KiB
PHP
161 lines
4.6 KiB
PHP
<?PHP
|
|
/* Copyright (C) 2004-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*
|
|
* $Id$
|
|
* $Source$
|
|
*/
|
|
|
|
/**
|
|
\file htdocs/telephonie/config/index.php
|
|
\ingroup telephonie
|
|
\brief Page configuration telephonie
|
|
\version $Revision$
|
|
*/
|
|
|
|
require("./pre.inc.php");
|
|
|
|
$langs->load("admin");
|
|
|
|
if (!$user->admin) accessforbidden();
|
|
|
|
if ($_GET["action"] == "set")
|
|
{
|
|
for ($i = 1 ; $i < 2 ; $i++)
|
|
{
|
|
dolibarr_set_const($db, $_POST["nom$i"], $_POST["value$i"], $type='chaine');
|
|
}
|
|
|
|
Header("Location: index.php");
|
|
}
|
|
|
|
/*
|
|
*
|
|
*
|
|
*
|
|
*/
|
|
llxHeader('','Téléphonie - Configuration');
|
|
print_titre("Configuration du module de Téléphonie");
|
|
|
|
print "<br>";
|
|
|
|
/*
|
|
*
|
|
*
|
|
*/
|
|
print_titre("Emails");
|
|
print '<form method="post" action="index.php?action=set">';
|
|
print '<table class="noborder" cellpadding="3" cellspacing="0" width="100%">';
|
|
print '<tr class="liste_titre">';
|
|
print '<td>Nom</td>';
|
|
print '<td>Valeur</td><td> </td><td> </td>';
|
|
print "</tr>\n";
|
|
|
|
|
|
print '<tr class="pair"><td>';
|
|
print 'Marge minimale</td><td align="center">';
|
|
print '<input type="hidden" name="nom1" value="TELEPHONIE_MARGE_MINI">';
|
|
print '<input type="text" name="value1" value="'.TELEPHONIE_MARGE_MINI.'" size="3" >';
|
|
|
|
print '</td><td><input type="submit"></td></tr>';
|
|
|
|
print '<tr class="pair"><td>';
|
|
print 'Compte de ventilation</td><td align="center">';
|
|
print TELEPHONIE_COMPTE_VENTILATION;
|
|
print '</td><td>-</td><td>TELEPHONIE_EMAIL_FACTURATION_EMAIL</td></tr>';
|
|
|
|
print '<tr class="pair"><td>';
|
|
print 'Email facturation FROM</td><td align="center">';
|
|
print TELEPHONIE_EMAIL_FACTURATION_EMAIL;
|
|
print '</td><td>-</td><td>TELEPHONIE_EMAIL_FACTURATION_EMAIL</td></tr>';
|
|
|
|
|
|
print '<tr class="impair"><td>';
|
|
print 'Email facturation BCC</td><td align="center">';
|
|
print TELEPHONIE_LIGNE_COMMANDE_EMAIL_BCC;
|
|
print '</td><td>-</td><td>TELEPHONIE_LIGNE_COMMANDE_EMAIL_BCC</td></tr>';
|
|
|
|
|
|
print '<tr class="pair"><td>Module ADSL</td>';
|
|
print '<td align="center">';
|
|
if (TELEPHONIE_MODULE_ADSL == 1)
|
|
{
|
|
print 'oui</td><td><a href="index.php?action=set&name=TELEPHONIE_MODULE_ADSL&value=0">Changer</a>';
|
|
}
|
|
else
|
|
{
|
|
print 'non</td><td><a href="index.php?action=set&name=TELEPHONIE_MODULE_ADSL&value=1">Changer</a>';
|
|
}
|
|
print '</td><td>TELEPHONIE_MODULE_ADSL</td></tr>';
|
|
|
|
|
|
print '<tr class="pair"><td>Module SIMULATION</td>';
|
|
print '<td align="center">';
|
|
if (TELEPHONIE_MODULE_SIMULATION == 1)
|
|
{
|
|
print 'oui</td><td><a href="index.php?action=set&name=TELEPHONIE_MODULE_SIMULATION&value=0">Changer</a>';
|
|
}
|
|
else
|
|
{
|
|
print 'non</td><td><a href="index.php?action=set&name=TELEPHONIE_MODULE_SIMULATION&value=1">Changer</a>';
|
|
}
|
|
print '</td><td>TELEPHONIE_MODULE_SIMULATION</td></tr>';
|
|
|
|
|
|
print '<tr class="pair"><td>Module GROUPES</td>';
|
|
print '<td align="center">';
|
|
if (TELEPHONIE_MODULE_GROUPES == 1)
|
|
{
|
|
print 'oui</td><td><a href="index.php?action=set&name=TELEPHONIE_MODULE_GROUPES&value=0">Changer</a>';
|
|
}
|
|
else
|
|
{
|
|
print 'non</td><td><a href="index.php?action=set&name=TELEPHONIE_MODULE_GROUPES&value=1">Changer</a>';
|
|
}
|
|
print '</td><td>TELEPHONIE_MODULE_GROUPES</td></tr>';
|
|
|
|
/* ***************************************** */
|
|
|
|
print '<tr class="pair"><td>Module NUMDATA</td>';
|
|
print '<td align="center">';
|
|
if (TELEPHONIE_MODULE_NUMDATA == 1)
|
|
{
|
|
print 'oui</td><td><a href="index.php?action=set&name=TELEPHONIE_MODULE_NUMDATA&value=0">Changer</a>';
|
|
}
|
|
else
|
|
{
|
|
print 'non</td><td><a href="index.php?action=set&name=TELEPHONIE_MODULE_NUMDATA&value=1">Changer</a>';
|
|
}
|
|
print '</td><td>TELEPHONIE_MODULE_NUMDATA</td></tr>';
|
|
|
|
/* ***************************************** */
|
|
|
|
print '<tr class="pair"><td>Id Groupes des commerciaux</td>';
|
|
print '<td align="center">';
|
|
|
|
print TELEPHONIE_GROUPE_COMMERCIAUX_ID.'</td><td>-';
|
|
print '</td><td>TELEPHONIE_GROUPE_COMMERCIAUX_ID</td></tr>';
|
|
|
|
/* ***************************************** */
|
|
|
|
print '</table>';
|
|
print '</form>';
|
|
|
|
$db->close();
|
|
|
|
llxFooter();
|
|
?>
|