2006 => 2007 Happy New Year\!
[platal.git] / include / validations / paiements.inc.php
index 4bb591b..89f9002 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2006 Polytechnique.org                              *
+ *  Copyright (C) 2003-2007 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -69,7 +69,7 @@ class PayReq extends Validate
 
     // }}}
   // {{{ function same_event()
-    function same_event($evt, $asso_id)
+    static function same_event($evt, $asso_id)
     {
         $wevt = 's:3:"evt";s:'.strlen($evt+"").':"'.$evt.'"';
         $wassoid = 's:7:"asso_id";s:'.strlen($asso_id + "").':"'.$asso_id.'"';
@@ -94,6 +94,28 @@ class PayReq extends Validate
     { return 'include/form.valid.paiements.tpl'; }
 
     // }}}
+    // {{{ function editor()
+
+    function editor()
+    {
+        return 'include/form.valid.edit-paiements.tpl';
+    }
+
+    // }}}
+    // {{{ function handle_editor()
+
+    function handle_editor()
+    {
+        $this->titre       = Env::v('pay_titre');
+        $this->site        = Env::v('pay_site');
+        $this->montant     = Env::i('pay_montant');
+        $this->montant_min = Env::i('pay_montant_min');
+        $this->montant_max = Env::i('pay_montant_max');
+        $this->msg_reponse = Env::v('pay_msg_reponse');
+        return true;
+    }
+
+    // }}}
     // {{{ function _mail_subj
 
     function _mail_subj()