source: trunk/admin/themes/default/template/site_manager.tpl @ 5366

Last change on this file since 5366 was 5292, checked in by plg, 14 years ago

bug fixed: the language keys used end with a whitespace, but it was removed
in the language file.

  • Property svn:eol-style set to LF
File size: 2.9 KB
RevLine 
[2531]1<div class="titrePage">
2  <h2>{'Site manager'|@translate}</h2>
3</div>
4
5{if not empty($remote_output)}
6<div class="remoteOutput">
7  <ul>
8    {foreach from=$remote_output item=remote_line}
9    <li class="{$remote_line.CLASS}">{$remote_line.CONTENT}</li>
10    {/foreach}
11  </ul>
12</div>
13{/if}
14
15{if isset($local_listing)}
[5292]16{'A local listing.xml file has been found for'|@translate} {$local_listing.URL}
[2531]17{if isset($local_listing.CREATE)}
18<form action="{$F_ACTION}" method="post">
[5195]19  <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}" />
[2531]20  <p>
[5021]21    {'Create this site'|@translate}:
[3185]22    <input type="hidden" name="no_check" value="1">
23    <input type="hidden" name="galleries_url" value="{$local_listing.URL}">
24    <input type="submit" name="submit" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED}>
[2531]25  </p>
26</form>
27{/if}
28{if isset($local_listing.U_SYNCHRONIZE)}
[5021]29&nbsp;<a href="{$local_listing.U_SYNCHRONIZE}" title="{'synchronize'|@translate}">{'synchronize'|@translate}</a>
[3185]30<br><br>
[2531]31{/if}
32{/if}
33
34{if not empty($sites)}
35<table class="table2">
36        <tr class="throw">
[5036]37                <td>{'Local'|@translate} / {'Remote'|@translate}</td>
[2531]38                <td>{'Actions'|@translate}</td>
39        </tr>
[2558]40  {foreach from=$sites item=site name=site}
[2540]41  <tr style="text-align:left" class="{if $smarty.foreach.site.index is odd}row1{else}row2{/if}"><td>
[5178]42    <a href="{$site.NAME}">{$site.NAME}</a><br>({$site.TYPE}, {$site.CATEGORIES} {'Categories'|@translate}, {$pwg->l10n_dec('%d image','%d images',$site.IMAGES)})
[2531]43  </td><td>
[5021]44    [<a href="{$site.U_SYNCHRONIZE}" title="{'synchronize'|@translate}">{'synchronize'|@translate}</a>]
[2531]45    {if isset($site.U_DELETE)}
46      [<a href="{$site.U_DELETE}" onclick="return confirm('{'Are you sure?'|@translate|escape:'javascript'}');"
[5021]47                title="{'delete'|@translate}" {$TAG_INPUT_ENABLED}>{'delete'|@translate}</a>]
[2531]48    {/if}
49    {if isset($site.remote)}
[3185]50      <br>
[5021]51      [<a href="{$site.remote.U_TEST}" title="{'test'|@translate}" {$TAG_INPUT_ENABLED}>{'test'|@translate}</a>]
52      [<a href="{$site.remote.U_GENERATE}" title="{'generate listing'|@translate}" {$TAG_INPUT_ENABLED}>{'generate listing'|@translate}</a>]
53      [<a href="{$site.remote.U_CLEAN}" title="{'clean'|@translate}" {$TAG_INPUT_ENABLED}>{'clean'|@translate}</a>]
[2531]54    {/if}
55    {if not empty($site.plugin_links)}
56        <br>
57      {foreach from=$site.plugin_links item=plugin_link}
58        [<a href="{$plugin_link.U_HREF}" title='{$plugin_link.U_HINT}' {$TAG_INPUT_ENABLED}>{$plugin_link.U_CAPTION}</a>]
59      {/foreach}
60    {/if}
61  </td></tr>
62  {/foreach}
63</table>
64{/if}
65
66<form action="{$F_ACTION}" method="post">
[5195]67  <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}" />
[2531]68  <p>
[5021]69    <label for="galleries_url" >{'Create a new site : (give its URL to create_listing_file.php)'|@translate}</label>
[3185]70    <input type="text" name="galleries_url" id="galleries_url">
[2531]71  </p>
72  <p>
[3185]73    <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED}>
[2531]74  </p>
75</form>
Note: See TracBrowser for help on using the repository browser.