begin to work on edit/editer.php
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Mon, 25 Apr 2005 16:13:12 +0000 (16:13 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:28:45 +0000 (23:28 +0200)
git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-591

htdocs.net/groupe/edit.php [new file with mode: 0644]
templates/xnet/groupe/edit.tpl [new file with mode: 0644]

diff --git a/htdocs.net/groupe/edit.php b/htdocs.net/groupe/edit.php
new file mode 100644 (file)
index 0000000..c2a7969
--- /dev/null
@@ -0,0 +1,17 @@
+<?php
+
+require 'xnet.inc.php';
+
+new_groupadmin_page('xnet/groupe/edit.tpl');
+
+// Sélection de toutes les associations ayant la même catégorie et le même domaine que l'activité sélectionnée
+$gps = $globals->xdb->iterator(
+        "SELECT  diminutif, nom
+           FROM  groupex.asso
+          WHERE  cat = {?} AND  dom = {?}
+       ORDER BY  nom", $globals->asso('cat'), $globals->asso('dom'));
+$page->assign('gps', $gps);
+
+$page->run();
+
+?>
diff --git a/templates/xnet/groupe/edit.tpl b/templates/xnet/groupe/edit.tpl
new file mode 100644 (file)
index 0000000..c8c0665
--- /dev/null
@@ -0,0 +1,89 @@
+{***************************************************************************
+ *  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                *
+ ***************************************************************************}
+
+<img src='getlogo.php' alt="LOGO" style="float: right;" />
+
+<h1>{$asso.nom} : Éditer l'accueil</h1>
+
+<table cellpadding="0" cellspacing="0">
+  <tr>
+    <td class="titre">
+      Logo:
+    </td>
+    <td>
+      <input type="file" name="logo" />
+    </td>
+  </tr>
+
+  <tr>
+    <td class="titre">
+      Site Web:
+    </td>
+    <td>
+      <input type="text" value="{$asso.site}" name="site" />
+    </td>
+  </tr>
+
+  <tr>
+    <td class="titre">
+      Contact:
+    </td>
+    <td>
+      <input type="text" name="resp" value="{$asso.resp}" />
+    </td>
+  </tr>
+
+  <tr>
+    <td class="titre">
+      Adresse mail:
+    </td>
+    <td>
+      <input type="text" name="mail" value="{$asso.mail}" />
+    </td>
+  </tr>
+
+  <tr>
+    <td class="titre">
+      Forum:
+    </td>
+    <td>
+      <input type="text" name="forum" value="{$asso.forum}" />
+    </td>
+  </tr>
+
+  <tr>
+    <td class="titre">
+      <strong>TODO: INSCRIPTION</strong>
+    </td>
+  </tr>
+
+  <tr>
+    <td class="titre center" colspan="2">
+      <input type="checkbox" value="1" name="ax" {if $asso.ax}checked="checked"{/if} />
+      groupe agréé par l'AX
+    </td>
+  </tr>
+</table>
+
+<br />
+
+<textarea name="descr" cols="70" rows="15" >{$asso.descr}</textarea>
+
+{* vim:set et sw=2 sts=2 sws=2: *}