[ Index ]
 

Code source de Serendipity 1.2

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/templates/default/admin/ -> media_pane.tpl (source)

   1  <script type="text/javascript" language="javascript">
   2          function showFilters()  {ldelim}
   3              s = document.getElementById('moreFilter').style;
   4              if (s.display == 'none') {ldelim}
   5                  s.display = 'block';
   6              {rdelim} else {ldelim}
   7                  s.display = 'none';
   8              {rdelim}
   9          {rdelim}
  10  
  11          function AddKeyword(keyword)  {ldelim}
  12              s = document.getElementById('keyword_input').value;
  13              document.getElementById('keyword_input').value = (s != '' ? s + ';' : '') + keyword;
  14          {rdelim}
  15  </script>
  16  
  17  <form style="display: inline; margin: 0px; padding: 0px;" method="get" action="?">
  18      {$media.token}
  19      {$media.form_hidden}
  20      <table class="serendipity_admin_filters" width="100%">
  21          <colgroup>
  22              <col width="13%" />
  23              <col width="20%" />
  24  
  25              <col width="13%" />
  26              <col width="20%" />
  27  
  28              <col width="13%" />
  29              <col width="20%" />
  30          </colgroup>
  31          <tr>
  32              <td class="serendipity_admin_filters_headline" colspan="6"><strong>{$CONST.FILTERS}</strong> - {$CONST.FIND_MEDIA}</td>
  33          </tr>
  34          <tr>
  35              <td>{$CONST.FILTER_DIRECTORY}</td>
  36              <td><select name="serendipity[only_path]">
  37                      <option value="">{if NOT $media.limit_path}{$CONST.ALL_DIRECTORIES}{else}{$media.blimit_path}{/if}</option>
  38                      {foreach from=$media.paths item="folder"}
  39                      <option {if ($media.only_path == $media.limit_path|cat:$folder.relpath)}selected="selected"{/if} value="{$folder.relpath}">{'&nbsp;'|str_repeat:$folder.depth*2}{$folder.name}</option>
  40                      {/foreach}
  41                  </select>
  42              </td>
  43              <td>{$CONST.SORT_ORDER_NAME}</td>
  44              <td><input class="input_textbox" type="text" name="serendipity[only_filename]" value="{$media.only_filename|@escape}" /></td>
  45              <td colspan="2"><a href="#" class="serendipityPrettyButton input_button" onclick="showFilters(); return false">&raquo; {$CONST.FILTERS}</a></td>
  46          </tr>
  47          <tr>
  48              <td colspan="6">
  49                  <div class="serendipity_pluginlist_section" style="height: auto; padding: 1px; margin-top: 5px; display: none" id="moreFilter">
  50                      <table width="100%" cellpadding="5" cellspacing="0" border="0">
  51                          <tr>
  52                              <td valign="top"><span style="white-space: nowrap">{$CONST.MEDIA_KEYWORDS}</span></td>
  53                              <td><input class="input_textbox" id="keyword_input" type="text" name="serendipity[keywords]" value="{$media.keywords_selected|@escape}" /></td>
  54                              <td width="98%">
  55                              {foreach from=$media.keywords item="keyword"}
  56                              <a href="#" onclick="AddKeyword('{$keyword|@escape}'); return false">{$keyword|@escape}</a>
  57                              {/foreach}
  58                              </td>
  59                          </tr>
  60                          {foreach from=$media.sort_order item="so_val" key="so_key"}
  61                          <tr>
  62                              <td valign="top"><span style="white-space: nowrap">{$so_val.desc}</span></td>
  63                              {if $so_val.type == 'date'}
  64                                  {if $media.filter[$so_key].from != '' OR $media.filter[$so_key].to != ''}{assign var="show_filter" value=$media.filter[$so_key]}{/if}
  65                              <td>
  66                                  <input class="input_textbox" type="text" name="serendipity[filter][{$so_key}][from]" value="{$media.filter[$so_key].from|@escape}" />
  67                              </td>
  68                              <td>
  69                                  - <input class="input_textbox" type="text" name="serendipity[filter][{$so_key}][to]" value="{$media.filter[$so_key].to|@escape}" /> (DD.MM.YYYY | YYYY-MM-DD | MM/DD/YYYY)
  70                              </td>
  71                              {elseif $so_val.type == 'intrange'}
  72                                  {if $media.filter[$so_key].from != '' OR $media.filter[$so_key].to != ''}{assign var="show_filter" value=$media.filter[$so_key]}{/if}
  73                              <td>
  74                                  <input class="input_textbox" type="text" name="serendipity[filter][{$so_key}][from]" value="{$media.filter[$so_key].from|@escape}" />
  75                              </td>
  76                              <td>
  77                                  - <input class="input_textbox" type="text" name="serendipity[filter][{$so_key}][to]" value="{$media.filter[$so_key].to|@escape}" />
  78                              </td>
  79                              {elseif $so_val.type == 'authors'}
  80                                  {if $media.filter[$so_key] != ''}{assign var="show_filter" value=$media.filter[$so_key]}{/if}
  81                              <td>
  82                                  <select name="serendipity[filter][{$so_key}]">
  83                                  <option value="">{$CONST.ALL_AUTHORS}</option>
  84                                  {foreach from=$media.authors item="media_author"}
  85                                  <option value="{$media_author.authorid}" {if $media.filter[$so_key] == $media_author.authorid}selected="selected"{/if}>{$media_author.realname|@escape}</option>
  86                                  {/foreach}
  87                                  </select>
  88                              </td>
  89                              {else}
  90                                  {if $media.filter[$so_key] != ''}{assign var="show_filter" value=$media.filter[$so_key]}{/if}
  91                              <td>
  92                                  <input class="input_textbox" type="text" name="serendipity[filter][{$so_key}]" value="{$media.filter[$so_key]|@escape}" />
  93                              </td>
  94                              <td>&nbsp;</td>
  95                              {/if}
  96                              </td>
  97                          </tr>
  98                          {/foreach}
  99                      </table>
 100                  </div>
 101                  <script type="text/javascript" language="javascript">
 102                  {if $media.keywords_selected != '' OR $show_filter}showFilters();{/if}
 103                  // {$show_filter}
 104                  </script>
 105              </td>
 106          </tr>
 107  
 108          <tr>
 109              <td class="serendipity_admin_filters_headline" colspan="6"><strong>{$CONST.SORT_ORDER}</strong></td>
 110          </tr>
 111          <tr>
 112              <td>{$CONST.SORT_BY}</td>
 113              <td>
 114                  <select name="serendipity[sortorder][order]">
 115                  {foreach from=$media.sort_order item="so_val" key="so_key"}
 116                      <option value="{$so_key}" {if $media.sortorder.order == $so_key}selected="selected"{/if}>{$so_val.desc}</option>
 117                  {/foreach}
 118                  </select>
 119              </td>
 120              <td>{$CONST.SORT_ORDER}</td>
 121              <td><select name="serendipity[sortorder][ordermode]">
 122                      <option value="DESC" {if $media.sortorder.ordermode == 'DESC'}selected="selected"{/if}>{$CONST.SORT_ORDER_DESC}</option>
 123                      <option value="ASC"  {if $media.sortorder.ordermode == 'ASC'}selected="selected"{/if}>{$CONST.SORT_ORDER_ASC }</option>
 124                  </select>
 125              </td>
 126              <td>{$CONST.FILES_PER_PAGE}</td>
 127              <td>
 128                  <select name="serendipity[sortorder][perpage]">
 129                  {foreach from=$media.sort_row_interval item="so_val"}
 130                  <option value="{$so_val}" {if $media.perPage == $so_val}selected="selected"{/if}>{$so_val}</option>
 131                  {/foreach}
 132                  </select>
 133              </td>
 134          </tr>
 135          <tr>
 136              <td align="right" colspan="6">
 137              {if $media.show_upload}
 138                  <input type="button" value="{$CONST.ADD_MEDIA|@escape}" onclick="location.href='{$media.url}&amp;serendipity[adminAction]=addSelect&amp;serendipity[only_path]={$media.only_path|escape:url}'; return false" class="serendipityPrettyButton input_button" />
 139              {/if}
 140                  <input type="submit" name="go" value=" - {$CONST.GO} - " class="serendipityPrettyButton input_button" />
 141              </td>
 142          </tr>
 143  </table>
 144  </form>
 145  
 146  {if $media.nr_files < 1}
 147      <div align="center">- {$CONST.NO_IMAGES_FOUND} -</div>
 148  {else}
 149  <table border="0" width="100%">
 150      <tr>
 151          <td colspan="{$media.lineBreak}">
 152              <table width="100%">
 153                  <tr>
 154                      <td>
 155                      {if $media.page != 1 AND $media.page <= $media.pages}
 156                          <a href="{$media.linkPrevious}" class="serendipityIconLink"><img src="{$media.prevIMG}"" />{$CONST.PREVIOUS}</a>
 157                      {/if}
 158                      </td>
 159                      <td align="right">
 160                      {if $media.page != $media.pages}
 161                          <a href="{$media.linkNext}" class="serendipityIconLinkRight">{$CONST.NEXT}<img src="{$media.nextIMG}" /></a>
 162                      {/if}
 163                      </td>
 164                  </tr>
 165              </table>
 166          </td>
 167      </tr>
 168  
 169      <tr>
 170      {$MEDIA_ITEMS}
 171      </tr>
 172  
 173      <tr>
 174          <td colspan="{$media.lineBreak}">
 175              <table width="100%">
 176                  <tr>
 177                      <td>
 178                      {if $media.page != 1 AND $media.page <= $media.pages}
 179                          <a href="{$media.linkPrevious}" class="serendipityIconLink"><img src="{$media.prevIMG}"" />{$CONST.PREVIOUS}</a>
 180                      {/if}
 181                      </td>
 182                      <td align="right">
 183                      {if $media.page != $media.pages}
 184                          <a href="{$media.linkNext}" class="serendipityIconLinkRight">{$CONST.NEXT}<img src="{$media.nextIMG}" /></a>
 185                      {/if}
 186                      </td>
 187                  </tr>
 188              </table>
 189          </td>
 190      </tr>
 191  </table>
 192  {/if}


Généré le : Sat Nov 24 09:00:37 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics