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 not empty($sites)} |
---|
16 | <table class="table2"> |
---|
17 | <tr class="throw"> |
---|
18 | <td>{'Local'|@translate} / {'Remote'|@translate}</td> |
---|
19 | <td>{'Actions'|@translate}</td> |
---|
20 | </tr> |
---|
21 | {foreach from=$sites item=site name=site} |
---|
22 | <tr style="text-align:left" class="{if $smarty.foreach.site.index is odd}row1{else}row2{/if}"><td> |
---|
23 | <a href="{$site.NAME}">{$site.NAME}</a><br>({$site.TYPE}, {$site.CATEGORIES} {'Albums'|@translate}, {$pwg->l10n_dec('%d photo','%d photos',$site.IMAGES)}) |
---|
24 | </td><td> |
---|
25 | [<a href="{$site.U_SYNCHRONIZE}" title="{'update the database from files'|@translate}">{'Synchronize'|@translate}</a>] |
---|
26 | {if isset($site.U_DELETE)} |
---|
27 | [<a href="{$site.U_DELETE}" onclick="return confirm('{'Are you sure?'|@translate|escape:'javascript'}');" |
---|
28 | title="{'delete this site and all its attached elements'|@translate}">{'delete'|@translate}</a>] |
---|
29 | {/if} |
---|
30 | {if not empty($site.plugin_links)} |
---|
31 | <br> |
---|
32 | {foreach from=$site.plugin_links item=plugin_link} |
---|
33 | [<a href="{$plugin_link.U_HREF}" title='{$plugin_link.U_HINT}'>{$plugin_link.U_CAPTION}</a>] |
---|
34 | {/foreach} |
---|
35 | {/if} |
---|
36 | </td></tr> |
---|
37 | {/foreach} |
---|
38 | </table> |
---|
39 | {/if} |
---|
40 | |
---|
41 | <form action="{$F_ACTION}" method="post"> |
---|
42 | <p> |
---|
43 | <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}"> |
---|
44 | <label for="galleries_url" >{'Create a new site : (give its URL to create_listing_file.php)'|@translate}</label> |
---|
45 | <input type="text" name="galleries_url" id="galleries_url"> |
---|
46 | </p> |
---|
47 | <p> |
---|
48 | <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}"> |
---|
49 | </p> |
---|
50 | </form> |
---|