[ Index ]
 

Code source de Phorum 5.1.25

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/templates/default/ -> posting_messageform.tpl (source)

   1  <div class="PhorumStdBlockHeader PhorumNarrowBlock">
   2    <table class="PhorumFormTable" cellspacing="0" border="0">
   3      {! A submit button that will be used to catch users pressing enter }
   4      <script type="text/javascript">
   5        document.write('<input type="submit" name="ignore" style="display:none">');
   6      </script>
   7      {! Author =================================================================== }
   8      <tr>
   9        <td style="white-space: nowrap">{LANG->YourName}:&nbsp;</td>
  10        <td width="100%">
  11          {IF OPTION_ALLOWED->edit_author}
  12            <input type="text" name="author" size="30" value="{POST->author}" />
  13          {ELSE}
  14            {POST->author}
  15          {/IF}
  16        </td>
  17      </tr>
  18      {! Email ==================================================================== }
  19      <tr>
  20        <td style="white-space: nowrap">{LANG->YourEmail}:&nbsp;</td>
  21        <td width="100%">
  22          {IF POST->message_id}
  23            {! Editing a message }
  24            {IF POST->user_id}
  25              {POST->email}
  26            {ELSE}
  27              {IF MODERATOR}
  28                <input type="text" name="email" size="30" value="{POST->email}" />
  29              {ELSE}
  30                <?php echo $PHORUM['user']['email'] ?>
  31              {/IF}
  32            {/IF}
  33          {ELSE}
  34            {! Writing a new message }
  35            {IF LOGGEDIN true}
  36              <?php echo $PHORUM['user']['email'] ?>
  37            {ELSE}
  38              <input type="text" name="email" size="30" value="{POST->email}" />
  39            {/IF}
  40          {/IF}
  41        </td>
  42      </tr>
  43      {! Subject ================================================================== }
  44      <tr>
  45        <td style="white-space: nowrap">{LANG->Subject}:&nbsp;</td>
  46        <td><input type="text" name="subject" id="phorum_subject" size="50" value="{POST->subject}" /></td>
  47      </tr>
  48      {HOOK tpl_editor_after_subject}
  49      {! Moderator only fields ==================================================== }
  50      {IF SHOW_THREADOPTIONS}
  51        <tr>
  52          <td>{LANG->Special}:&nbsp;</td>
  53          <td>
  54            {IF SHOW_SPECIALOPTIONS}
  55              <select name="special">
  56                <option value=""></option>
  57                {IF OPTION_ALLOWED->sticky}
  58                  <option value="sticky"{IF POST->special "sticky"} selected{/IF}>{LANG->MakeSticky}</option>
  59                {/IF}
  60                {IF OPTION_ALLOWED->announcement}
  61                  <option value="announcement" {IF POST->special "announcement"} selected{/IF}>{LANG->MakeAnnouncement}</option>
  62                {/IF}
  63              </select>
  64            {/IF}
  65            {IF OPTION_ALLOWED->allow_reply}
  66              <input type="checkbox" name="allow_reply" value="1" {IF POST->allow_reply} checked="checked"{/IF}> {LANG->AllowReplies}
  67            {/IF}
  68          </td>
  69        </tr>
  70      {/IF}
  71      {! Email notify ============================================================= }
  72      {IF POST->user_id}
  73        {IF EMAILNOTIFY}
  74          <tr>
  75            <td colspan="2">
  76              <input type="checkbox" name="email_notify" value="1" {IF POST->email_notify} checked="checked"{/IF} /> {LANG->EmailReplies}
  77            </td>
  78          </tr>
  79        {/IF}
  80      {/IF}
  81      {! Show signature =========================================================== }
  82      {IF POST->user_id}
  83        <tr>
  84          <td colspan="2">
  85            <input type="checkbox" name="show_signature" value="1" {IF POST->show_signature} checked="checked"{/IF} /> {LANG->AddSig}
  86          </td>
  87        </tr>
  88      {/IF}
  89    </table>
  90  </div>
  91  {! Attachments ============================================================== }
  92  {IF ATTACHMENTS}
  93    {INCLUDE posting_attachments}
  94  {/IF}
  95  {! Body ===================================================================== }
  96  {HOOK tpl_editor_before_textarea}
  97  <div class="PhorumStdBlock PhorumNarrowBlock">
  98    <textarea name="body" id="phorum_textarea" rows="15" cols="50" style="width: 99%">{POST->body}</textarea>
  99    {IF MODERATED}
 100      {LANG->ModeratedForum}<br />
 101    {/IF}
 102  </div>


Généré le : Thu Nov 29 12:22:27 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics