wibble
authorx2000habouzit <x2000habouzit>
Sat, 16 Oct 2004 17:52:27 +0000 (17:52 +0000)
committerx2000habouzit <x2000habouzit>
Sat, 16 Oct 2004 17:52:27 +0000 (17:52 +0000)
htdocs/newsletter/submit.php
templates/newsletter/submit.tpl

index 9a5eb36..fcfb24b 100644 (file)
@@ -18,7 +18,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: submit.php,v 1.1 2004-10-16 17:49:37 x2000habouzit Exp $
+        $Id: submit.php,v 1.2 2004-10-16 17:53:40 x2000habouzit Exp $
  ***************************************************************************/
 
 require("auto.prepend.inc.php");
@@ -28,7 +28,7 @@ require("newsletter.inc.php");
 if(isset($_POST['see'])) {
     $art = new NLArticle($_POST['title'], $_POST['body'], $_POST['append']);
     $page->assign('art', $art);
-} elseif($_POST['valid']) {
+} elseif(isset($_POST['valid'])) {
     $nl = new Newsletter();
     $art = new NLArticle($_POST['title'], $_POST['body'], $_POST['append']);
     $nl->saveArticle($art);
index 7c3f171..d68fef3 100644 (file)
@@ -17,7 +17,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: submit.tpl,v 1.1 2004-10-16 17:49:39 x2000habouzit Exp $
+        $Id: submit.tpl,v 1.2 2004-10-16 17:52:27 x2000habouzit Exp $
  ***************************************************************************}
 
 
@@ -90,6 +90,14 @@ il faut te limiter 
 
 {/if}
 
+<p>
+Il faut absolument que ton article fasse moins de 8 lignes (non vides) de 68 caractères.
+</p>
+
+<p>
+Les contacts, prix, adresses mail utiles, liens web, ...  sont en sus, et sont à placer dans la case "Ajouts"
+</p>
+
 <form action="{$smarty.server.PHP_SELF}" method='post'>
   <table class="bicol" cellpadding="3" cellspacing="0" summary="liste des NL">
     <tr>
@@ -107,13 +115,13 @@ il faut te limiter 
         <textarea cols="68" rows="10" name='body'>{if $art}{$art->body()}{/if}</textarea>
       </td>
     </tr>
-    <tr class="pair">
-      <td class='titre'>Ajouts (emails,contacts,tarifs,site web, ...)</td>
+    <tr class="impair">
+      <td class='titre'>Ajouts (emails, contacts, tarifs, site web, ...)</td>
       <td>
         <textarea cols="68" rows="6" name='append'>{if $art}{$art->append()}{/if}</textarea>
       </td>
     </tr>
-    <tr class='impair'>
+    <tr class='pair'>
       <td colspan='2' class='center'>
         <input type='submit' name='see' value='visualiser' />
       </td>