obsolete
authorx2000habouzit <x2000habouzit>
Thu, 2 Sep 2004 20:12:08 +0000 (20:12 +0000)
committerx2000habouzit <x2000habouzit>
Thu, 2 Sep 2004 20:12:08 +0000 (20:12 +0000)
include/valid_emploi.inc.php [deleted file]
include/validations.inc.php
templates/include/form.valid.emploi.tpl [deleted file]
templates/include/form.valid.sondages.tpl [deleted file]

diff --git a/include/valid_emploi.inc.php b/include/valid_emploi.inc.php
deleted file mode 100644 (file)
index 262d3ff..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-<?php
-/***************************************************************************
- *  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: valid_emploi.inc.php,v 1.10 2004-08-31 11:16:48 x2000habouzit Exp $
- ***************************************************************************/
-
-
-class EmploiReq extends Validate {
-    var $entreprise;
-    var $titre;
-    var $mail;
-    var $text;
-
-    function EmploiReq($_entreprise,$_titre,$_mail,$_text,$_stamp=0) {
-        $this->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() {
-    }
-}
-
-?>
index c36160e..da71a32 100644 (file)
  *  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 (file)
index 6a7a999..0000000
+++ /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 $
- ***************************************************************************}
-
-
-<form action="{$smarty.server.PHP_SELF}" method="post">
-  <table class="bicol" cellpadding="4" summary="Annonce emploi">
-    <thead>
-      <tr>
-        <th colspan="2">Offre d'emploi</th>
-      </tr>
-    </thead>
-    <tbody>
-      <tr>
-        <td>Demandeur</td>
-        <td>{$valid->entreprise} ({$valid->mail})</td>
-      </tr>
-      <tr>
-        <td>Titre du post</td>
-        <td>{$valid->titre}</td>
-      </tr>
-      <tr>
-        <td colspan="2"><pre>{$valid->text}</pre></td>
-      </tr>
-      <tr>
-        <td class="center" colspan="2">
-          <input type="hidden" name="uid" value="{$valid->uid}" />
-          <input type="hidden" name="type" value="{$valid->type}" />
-          <input type="hidden" name="stamp" value="{$valid->stamp}" />
-          <input type="submit" name="submit" value="Accepter" />
-          <input type="submit" name="submit" value="Refuser" />
-        </td>
-      </tr>
-    </tbody>
-  </table>
-</form>
-
-{* 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 (file)
index 4238a43..0000000
+++ /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 $
- ***************************************************************************}
-
-
-<form action="{$smarty.server.PHP_SELF}" method="post">
-<table class="bicol" cellpadding="4" summary="Sondage">
-<tr>
-  <td>Demandeur&nbsp;:
-  </td>
-  <td><a href="javascript:x()" onclick="popWin('{"fiche.php"|url}?user={$valid->username}')">
-      {$valid->prenom} {$valid->nom}</a>
-    {if $valid->old}({$valid->old}){/if}
-  </td>
-</tr>
-<tr>
-  <td>Titre du sondage&nbsp;:</td>
-  <td>{$valid->titre}</td>
-</tr>
-<tr>
-  <td>Prévisualisation du sondage&nbsp;:</td>
-  <td><a href="{"sondages/questionnaire.php?SID=$valid->sid"|url}" onclick="return popup(this)">{$valid->titre}</a>
-  </td>
-</tr>
-<tr>
-  <td>Alias du sondage&nbsp;:</td>
-  <td><input type="text" name="alias" value="{$valid->alias}" />&nbsp;(ne doit pas contenir le caractère ')
-  </td>
-</tr>
-<tr>
-  <td class="middle">
-    <input type="hidden" name="uid" value="{$valid->uid}" />
-    <input type="hidden" name="type" value="{$valid->type}" />
-    <input type="hidden" name="stamp" value="{$valid->stamp}" />
-      <input type="submit" name="submit" value="Accepter" />
-      <br /><br />
-      <input type="submit" name="submit" value="Refuser" />
-  </td>
-  <td>
-      <p>Raison du refus:</p>
-      <textarea rows="5" cols="74" name=motif></textarea>
-  </td>
-</tr>
-</table>
-</form>
-
-{* vim:set et sw=2 sts=2 sws=2: *}