From d14842e37b024915313de5190427e3c6f3c4b86e Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Thu, 2 Sep 2004 20:12:08 +0000 Subject: [PATCH] obsolete --- include/valid_emploi.inc.php | 83 ------------------------------- include/validations.inc.php | 5 +- templates/include/form.valid.emploi.tpl | 56 --------------------- templates/include/form.valid.sondages.tpl | 65 ------------------------ 4 files changed, 2 insertions(+), 207 deletions(-) delete mode 100644 include/valid_emploi.inc.php delete mode 100644 templates/include/form.valid.emploi.tpl delete mode 100644 templates/include/form.valid.sondages.tpl diff --git a/include/valid_emploi.inc.php b/include/valid_emploi.inc.php deleted file mode 100644 index 262d3ff..0000000 --- a/include/valid_emploi.inc.php +++ /dev/null @@ -1,83 +0,0 @@ -Validate(0, false, 'emploi', $_stamp); - $this->entreprise = $_entreprise; - $this->titre = $_titre; - $this->mail = $_mail; - $this->text = wordwrap($_text,78); - } - - function get_unique_request($uid) { - return false; // non unique - } - - function handle_formu() { - if (isset($_POST['submit'])) { - require("tpl.mailer.inc.php"); - $mymail = new TplMailer('valid.emploi.tpl'); - $mymail->assign('entreprise', $this->entreprise); - $mymail->assign('titre', $this->titre); - $mymail->_to = $this->mail; - - if($_REQUEST['submit']=="Accepter") { - require("nntp.inc.php"); # FIXME - require("poster.inc.php"); # FIXME : old includes - $post = new poster( - from_post_emploi(), - to_post_emploi(), - subject_post_emploi($this)) ; - -# Ca c'est pour faire les tests (xorg.test) -# $post = new poster( -# from_post_emploi_test(), -# to_post_emploi_test(), -# subject_post_emploi_test($this)) ; - - $post->setbody( msg_post_emploi($this) ) ; - $post->post(); - $mymail->assign('answer','yes'); - } else { - $mymail->assign('answer','no'); - } - $mymail->send(); - $this->clean(); - return "Mail envoyé"; - } - } - - function formu() { return 'include/form.valid.emploi.tpl'; } - - function commit() { - } -} - -?> diff --git a/include/validations.inc.php b/include/validations.inc.php index c36160e..da71a32 100644 --- a/include/validations.inc.php +++ b/include/validations.inc.php @@ -18,11 +18,11 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: validations.inc.php,v 1.14 2004-09-01 21:36:27 x2000habouzit Exp $ + $Id: validations.inc.php,v 1.15 2004-09-02 20:12:08 x2000habouzit Exp $ ***************************************************************************/ /* vim: set expandtab shiftwidth=4 tabstop=4 softtabstop=4 textwidth=100: - * $Id: validations.inc.php,v 1.14 2004-09-01 21:36:27 x2000habouzit Exp $ + * $Id: validations.inc.php,v 1.15 2004-09-02 20:12:08 x2000habouzit Exp $ * */ @@ -179,7 +179,6 @@ class Validate { require("valid_aliases.inc.php"); require("valid_epouses.inc.php"); require("valid_photos.inc.php"); -require("valid_emploi.inc.php"); require("valid_evts.inc.php"); ?> diff --git a/templates/include/form.valid.emploi.tpl b/templates/include/form.valid.emploi.tpl deleted file mode 100644 index 6a7a999..0000000 --- a/templates/include/form.valid.emploi.tpl +++ /dev/null @@ -1,56 +0,0 @@ -{*************************************************************************** - * Copyright (C) 2003-2004 Polytechnique.org * - * http://opensource.polytechnique.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: form.valid.emploi.tpl,v 1.5 2004-08-31 11:25:40 x2000habouzit Exp $ - ***************************************************************************} - - -
- - - - - - - - - - - - - - - - - - - - - - -
Offre d'emploi
Demandeur{$valid->entreprise} ({$valid->mail})
Titre du post{$valid->titre}
{$valid->text}
- - - - - -
-
- -{* vim:set et sw=2 sts=2 sws=2: *} diff --git a/templates/include/form.valid.sondages.tpl b/templates/include/form.valid.sondages.tpl deleted file mode 100644 index 4238a43..0000000 --- a/templates/include/form.valid.sondages.tpl +++ /dev/null @@ -1,65 +0,0 @@ -{*************************************************************************** - * Copyright (C) 2003-2004 Polytechnique.org * - * http://opensource.polytechnique.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: form.valid.sondages.tpl,v 1.7 2004-08-31 11:25:40 x2000habouzit Exp $ - ***************************************************************************} - - -
- - - - - - - - - - - - - - - - - - - - - -
Demandeur : - username}')"> - {$valid->prenom} {$valid->nom} - {if $valid->old}({$valid->old}){/if} -
Titre du sondage :{$valid->titre}
Prévisualisation du sondage :sid"|url}" onclick="return popup(this)">{$valid->titre} -
Alias du sondage : (ne doit pas contenir le caractère ') -
- - - - -

- -
-

Raison du refus:

- -
-
- -{* vim:set et sw=2 sts=2 sws=2: *} -- 2.1.4