[ Index ]
 

Code source de Dolibarr 2.0.1

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/htdocs/telephonie/config/ -> mail.php (source)

   1  <?PHP
   2  /* Copyright (C) 2004-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
   3   *
   4   * This program is free software; you can redistribute it and/or modify
   5   * it under the terms of the GNU General Public License as published by
   6   * the Free Software Foundation; either version 2 of the License, or
   7   * (at your option) any later version.
   8   *
   9   * This program is distributed in the hope that it will be useful,
  10   * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12   * GNU General Public License for more details.
  13   *
  14   * You should have received a copy of the GNU General Public License
  15   * along with this program; if not, write to the Free Software
  16   * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  17   *
  18   * $Id: mail.php,v 1.1 2005/04/07 12:26:00 rodolphe Exp $
  19   * $Source: /cvsroot/dolibarr/dolibarr/htdocs/telephonie/config/mail.php,v $
  20   */
  21  
  22  /**
  23      \file       htdocs/telephonie/config/index.php
  24      \ingroup    telephonie
  25      \brief      Page configuration telephonie
  26      \version    $Revision: 1.1 $
  27  */
  28  
  29  require ("./pre.inc.php");
  30  
  31  $langs->load("admin");
  32  
  33  if (!$user->admin) accessforbidden();
  34  
  35  if ($_GET["action"] == "set")
  36  {
  37  
  38    dolibarr_set_const($db, 'TELEPHONIE_MAIL_FACTURATION_SUJET', $_POST["sujet"], $type='chaine');
  39  
  40    dolibarr_set_const($db, 'TELEPHONIE_MAIL_FACTURATION_SIGNATURE', $_POST["signature"], $type='texte');
  41  
  42    Header("Location: mail.php");
  43  }
  44  
  45  /*
  46   *
  47   *
  48   *
  49   */
  50  llxHeader('','Téléphonie - Configuration');
  51  print_titre("Configuration du module de Téléphonie");
  52  
  53  print "<br>";
  54  
  55  /*
  56   *
  57   *
  58   */
  59  print_titre("Emails");
  60  print '<form method="post" action="mail.php?action=set">';
  61  print '<table class="noborder" cellpadding="3" cellspacing="0" width="100%">';
  62  print '<tr class="liste_titre">';
  63  print '<td>Nom</td>';
  64  print '<td>Valeur</td><td>&nbsp;</td><td>&nbsp;</td>';
  65  print "</tr>\n";
  66  
  67  print '<tr class="pair"><td>';
  68  print 'Compte de ventilation</td><td>';
  69  print TELEPHONIE_MAIL_FACTURATION_SUJET;
  70  print '</td><td>TELEPHONIE_MAIL_FACTURATION_SUJET</td></tr>';
  71  print '<tr class="impair"><td>';
  72  print 'Compte de ventilation</td><td>';
  73  print nl2br(TELEPHONIE_MAIL_FACTURATION_SIGNATURE);
  74  print '</td><td>TELEPHONIE_MAIL_FACTURATION_SIGNATURE</td></tr>';
  75  
  76  $html = new Form($db);
  77  
  78  print '<tr><td>Sujet</td><td>';
  79  
  80  print '<input type="text" name="sujet" size="30" value="'.TELEPHONIE_MAIL_FACTURATION_SUJET.'"></td></tr>';
  81  
  82  print '<tr><td>Signature</td><td>';
  83  
  84  print '<textarea name="signature" cols="40" rows="10">'.TELEPHONIE_MAIL_FACTURATION_SIGNATURE.'</textarea></td></tr>';
  85  
  86  print '<tr><td colspan="3" align="center"><input type="submit"></td></tr>';
  87  
  88  print '</table>';
  89  print '</form>';
  90  
  91  $db->close();
  92  
  93  llxFooter();
  94  ?>


Généré le : Mon Nov 26 12:29:37 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics