[ Index ]
 

Code source de LifeType 1.2.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/templates/admin/ -> editcomments.template (source)

   1  {include file="$admintemplatepath/header.template"}
   2  {include file="$admintemplatepath/navigation.template" showOpt=editComments title=$locale->tr("editComments")}
   3      <script type="text/javascript" src="js/ui/plogui.js"></script>
   4      <script type="text/javascript">
   5          var errorCommentStatusMsg = '{$locale->tr("error_comment_status")}';
   6          var showMassiveChangeOption = '{$locale->tr("show_massive_change_option")}';
   7          var hideMassiveChangeOption = '{$locale->tr("hide_massive_change_option")}';
   8      </script>
   9      <script type="text/javascript">
  10      {literal}
  11      YAHOO.util.Event.addListener( window, "load", function() {
  12              var t = new Lifetype.UI.TableEffects( "list" );
  13              t.stripe();
  14              t.highlightRows();
  15          });
  16      {/literal}
  17      </script>    
  18          <div id="list_nav_bar">
  19              <div id="list_nav_select">        
  20  
  21                  <form id="showBy" action="admin.php" method="post">
  22                  <fieldset>
  23                  <legend>{$locale->tr("show_by")} {if $post}({$post->getTopic()}){/if}</legend>
  24  
  25                      <div class="list_nav_option">
  26                      <label for="showStatus">{$locale->tr("status")}</label>
  27                      <br />
  28                      <select name="showStatus" id="showStatus">
  29                       {foreach from=$commentstatus key=name item=status}
  30                       <option value="{$status}" {if $currentstatus == $status} selected="selected"{/if}>{$locale->tr($name)}</option>
  31                       {/foreach}
  32                      </select>
  33                      </div>
  34                      
  35                      <div class="list_nav_option">
  36                      <label for="search">{$locale->tr("search_terms")}</label>
  37                      <br />
  38                      <input type="text" name="searchTerms" value="{$searchTerms}" size="15" id="search" />
  39                      </div>                    
  40                      
  41                      <div class="list_nav_option">
  42                      <br />
  43                      <input type="hidden" name="op" value="editComments" />
  44                      <input type="hidden" name="articleId" value="{if $post}{$post->getId()}{else}0{/if}" />
  45                      <input type="submit" name="show" value="{$locale->tr("show")}" class="submit" />
  46                      </div>
  47                  </fieldset>
  48                  </form>
  49              </div>
  50              <br style="clear:both;" />
  51          </div>
  52          
  53          <form id="postCommentsList" action="admin.php" method="post">
  54          {check_perms perm=update_comment}    
  55          <div class="optionIcon">
  56              <a id="optionIconLink" href="#bulkEdit" title="{$locale->tr("show_massive_change_option")}" onclick="switchMassiveOption()">{$locale->tr("show_massive_change_option")}</a>
  57          </div>
  58          {/check_perms}
  59          <div id="list">
  60    {include file="$admintemplatepath/successmessage.template"}
  61    {include file="$admintemplatepath/errormessage.template"}
  62              <table id="list" class="info" summary="{$locale->tr("editComments")}">
  63                  <thead>
  64                      <tr>                    
  65                          <th><input class="checkbox" type="checkbox" name="all" id="all" value="1" onclick="toggleAllChecks('postCommentsList');" /></th>
  66                          <th style="width:25%;">{$locale->tr("topic")}</th>                        
  67                          <th style="width:45%;">{$locale->tr("text")}</th>
  68                          <th style="width:5%;">{$locale->tr("author")}</th>
  69                          <th style="width:5%">{$locale->tr("date")}</th>
  70                          <th style="width:5%">{$locale->tr("status")}</th>
  71                          <th style="width:5%">{$locale->tr("auth")}</th>
  72                          <th style="width:10%">IP</th>
  73                          <th style="width:10%">{$locale->tr("actions")}</th>
  74                      </tr>
  75                  </thead>
  76                  <tbody>
  77                   {foreach from=$comments item=comment}
  78                      <tr>
  79                          <td>
  80                              <input class="checkbox" type="checkbox" name="commentIds[{$comment->getId()}]" id="checks_{$comment->getId()}" value="{$comment->getId()}" />
  81                          </td>
  82                          <td class="col_highlighted">
  83                              {$comment->getTopic()|strip_tags}<br/>
  84                              <span style="font-weight:normal">
  85                              &nbsp;&raquo;
  86                              {assign var=commentPost    value=$comment->getArticle()}
  87                              <a href="{$url->postPermalink($commentPost)}">{$commentPost->getTopic()}</a>
  88                              </span>
  89                          </td>
  90                          <td>
  91                              {$comment->getText()|strip_tags}
  92                          </td>
  93                          <td>
  94                            <a href="mailto:{$comment->getUserEmail()}">
  95                              {$comment->getUsername()}
  96                            </a>
  97                          </td>                        
  98                          <td>
  99                              {assign var=date value=$comment->getDateObject()}
 100                              {$locale->formatDate($date)}
 101                          </td>
 102                          <td>
 103                            {foreach from=$commentstatus key=name item=status}
 104                             {if $comment->getStatus() == $status}{$locale->tr($name)}{/if}
 105                            {/foreach}
 106                          </td>
 107                          <td style="text-align: center;">
 108                              {if $comment->isPosterAuthenticated()}{$locale->tr("yes")}{else}{$locale->tr("no")}{/if}
 109                          </td>
 110                          <td style="text-align: center;">
 111                            {$comment->getClientIp()}
 112                          </td>                        
 113                          <td>
 114                              <div class="list_action_button">
 115                              {check_perms perm=update_comment}    
 116                              <a href="?op=deleteComment&amp;commentId={$comment->getId()}&amp;articleId={if $post}{$post->getId()}{else}0{/if}" title="{$locale->tr("delete")}">
 117                                  <img src="imgs/admin/icon_delete-16.png" alt="{$locale->tr("delete")}" />
 118                              </a>
 119                              {if $bayesian_filter_enabled}
 120                                  {if $comment->getStatus() == 0}
 121                                      <a href="?op=markComment&amp;mode=1&amp;articleId={if $post}{$comment->getArticleId()}{else}0{/if}&amp;commentId={$comment->getId()}" title="{$locale->tr("mark_as_spam")}">
 122                                       <img src="imgs/admin/icon_spam-16.png" alt="{$locale->tr("mark_as_spam")}" />
 123                                      </a>
 124                                  {elseif $comment->getStatus() == 1}
 125                                      <a href="?op=markComment&amp;mode=0&amp;articleId={if $post}{$comment->getArticleId()}{else}0{/if}&amp;commentId={$comment->getId()}" title="{$locale->tr("mark_as_no_spam")}">
 126                                       <img src="imgs/admin/icon_nospam-16.png" alt="{$locale->tr("mark_as_no_spam")}" />
 127                                      </a>
 128                                  {/if}
 129                              {/if}
 130                              {/check_perms}
 131                              {if $comment->getUserUrl()}
 132                                <a href="{$comment->getUserUrl()}" title="{$locale->tr("url")}">
 133                                 <img src="imgs/admin/icon_url-16.png" alt="{$locale->tr("url")}" />
 134                                </a>
 135                              {/if}
 136                              </div>
 137                          </td>
 138                      </tr>
 139                      {/foreach}
 140                  </tbody>
 141              </table>
 142          </div>
 143          <a name="bulkEdit"></a>
 144          <div id="list_action_bar">
 145          {adminpager style=list}
 146              {check_perms perm=update_comment}    
 147              <input type="hidden" name="articleId" value="{if $post}{$post->getId()}{else}0{/if}" />
 148              <input type="button" name="delete" value="{$locale->tr("delete")}" class="submit" onClick="javascript:submitCommentsList('deleteComments');" />
 149              <input type="hidden" name="op" value="" />
 150              {/check_perms}
 151              {check_perms perm=update_comment}
 152              <div id="massiveChangeOption" style="display: none">
 153                  <fieldset>
 154                  <legend>{$locale->tr("massive_change_option")}</legend>            
 155                      <label for="commentStatus">{$locale->tr("status")}</label>
 156                      <select name="commentStatus" id="commentStatus">
 157                        <option value="-1">-{$locale->tr("select")}-</option>
 158                        {foreach from=$commentstatusWithoutAll key=name item=status}
 159                          {if ($status != 0 && $status != 1) || $bayesian_filter_enabled}<option value="{$status}">{$locale->tr($name)}</option>{/if}
 160                        {/foreach}
 161                      </select>
 162                      <input type="button" name="changeCommentsStatus" value="{$locale->tr("change_status")}" class="submit" onClick="javascript:submitCommentsList('changeCommentsStatus');" /> 
 163                  </fieldset>
 164              </div>
 165              {/check_perms} 
 166          </div>
 167          </form>
 168  {include file="$admintemplatepath/footernavigation.template"}
 169  {include file="$admintemplatepath/footer.template"}


Généré le : Mon Nov 26 21:04:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics