1 | {footer_script}{literal} |
---|
2 | jQuery(document).ready(function(){ |
---|
3 | jQuery("#showCreateSite a").click(function(){ |
---|
4 | jQuery("#showCreateSite").hide(); |
---|
5 | jQuery("#createSite").show(); |
---|
6 | }); |
---|
7 | }); |
---|
8 | {/literal}{/footer_script} |
---|
9 | |
---|
10 | |
---|
11 | <div class="titrePage"> |
---|
12 | <h2>{'Site manager'|@translate}</h2> |
---|
13 | </div> |
---|
14 | |
---|
15 | {if not empty($remote_output)} |
---|
16 | <div class="remoteOutput"> |
---|
17 | <ul> |
---|
18 | {foreach from=$remote_output item=remote_line} |
---|
19 | <li class="{$remote_line.CLASS}">{$remote_line.CONTENT}</li> |
---|
20 | {/foreach} |
---|
21 | </ul> |
---|
22 | </div> |
---|
23 | {/if} |
---|
24 | |
---|
25 | {if not empty($sites)} |
---|
26 | <table class="table2"> |
---|
27 | <tr class="throw"> |
---|
28 | <td>{'Directory'|@translate}</td> |
---|
29 | <td>{'Actions'|@translate}</td> |
---|
30 | </tr> |
---|
31 | {foreach from=$sites item=site name=site} |
---|
32 | <tr style="text-align:left" class="{if $smarty.foreach.site.index is odd}row1{else}row2{/if}"><td> |
---|
33 | <a href="{$site.NAME}">{$site.NAME}</a><br>({$site.TYPE}, {$site.CATEGORIES} {'Albums'|@translate}, {$pwg->l10n_dec('%d photo','%d photos',$site.IMAGES)}) |
---|
34 | </td><td> |
---|
35 | [<a href="{$site.U_SYNCHRONIZE}" title="{'update the database from files'|@translate}">{'Synchronize'|@translate}</a>] |
---|
36 | {if isset($site.U_DELETE)} |
---|
37 | [<a href="{$site.U_DELETE}" onclick="return confirm('{'Are you sure?'|@translate|escape:'javascript'}');" |
---|
38 | title="{'delete this site and all its attached elements'|@translate}">{'delete'|@translate}</a>] |
---|
39 | {/if} |
---|
40 | {if not empty($site.plugin_links)} |
---|
41 | <br> |
---|
42 | {foreach from=$site.plugin_links item=plugin_link} |
---|
43 | [<a href="{$plugin_link.U_HREF}" title='{$plugin_link.U_HINT}'>{$plugin_link.U_CAPTION}</a>] |
---|
44 | {/foreach} |
---|
45 | {/if} |
---|
46 | </td></tr> |
---|
47 | {/foreach} |
---|
48 | </table> |
---|
49 | {/if} |
---|
50 | |
---|
51 | <p id="showCreateSite" style="text-align:left;margin-left:1em;"> |
---|
52 | <a href="#">{'create a new site'|@translate}</a> |
---|
53 | </p> |
---|
54 | |
---|
55 | <form action="{$F_ACTION}" method="post" id="createSite" style="display:none"> |
---|
56 | <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}"> |
---|
57 | <fieldset> |
---|
58 | <legend>{'create a new site'|@translate}</legend> |
---|
59 | |
---|
60 | <p style="margin-top:0;"><strong>{'Directory'|@translate}</strong> |
---|
61 | <br><input type="text" name="galleries_url" id="galleries_url"> |
---|
62 | </p> |
---|
63 | |
---|
64 | <p class="actionButtons"> |
---|
65 | <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}"> |
---|
66 | </p> |
---|
67 | </form> |
---|