+++ /dev/null
-<?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() {
- }
-}
-
-?>
* 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 $
*
*/
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");
?>
+++ /dev/null
-{***************************************************************************
- * 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: *}
+++ /dev/null
-{***************************************************************************
- * 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 :
- </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 :</td>
- <td>{$valid->titre}</td>
-</tr>
-<tr>
- <td>Prévisualisation du sondage :</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 :</td>
- <td><input type="text" name="alias" value="{$valid->alias}" /> (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: *}