Files
Piwigo/admin/themes/default/template/site_manager.tpl
T
rvelices 8495df013d remove remote sites feature
git-svn-id: http://piwigo.org/svn/trunk@13488 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-03-06 20:27:41 +00:00

51 lines
1.8 KiB
Smarty

<div class="titrePage">
<h2>{'Site manager'|@translate}</h2>
</div>
{if not empty($remote_output)}
<div class="remoteOutput">
<ul>
{foreach from=$remote_output item=remote_line}
<li class="{$remote_line.CLASS}">{$remote_line.CONTENT}</li>
{/foreach}
</ul>
</div>
{/if}
{if not empty($sites)}
<table class="table2">
<tr class="throw">
<td>{'Local'|@translate} / {'Remote'|@translate}</td>
<td>{'Actions'|@translate}</td>
</tr>
{foreach from=$sites item=site name=site}
<tr style="text-align:left" class="{if $smarty.foreach.site.index is odd}row1{else}row2{/if}"><td>
<a href="{$site.NAME}">{$site.NAME}</a><br>({$site.TYPE}, {$site.CATEGORIES} {'Albums'|@translate}, {$pwg->l10n_dec('%d photo','%d photos',$site.IMAGES)})
</td><td>
[<a href="{$site.U_SYNCHRONIZE}" title="{'update the database from files'|@translate}">{'Synchronize'|@translate}</a>]
{if isset($site.U_DELETE)}
[<a href="{$site.U_DELETE}" onclick="return confirm('{'Are you sure?'|@translate|escape:'javascript'}');"
title="{'delete this site and all its attached elements'|@translate}">{'delete'|@translate}</a>]
{/if}
{if not empty($site.plugin_links)}
<br>
{foreach from=$site.plugin_links item=plugin_link}
[<a href="{$plugin_link.U_HREF}" title='{$plugin_link.U_HINT}'>{$plugin_link.U_CAPTION}</a>]
{/foreach}
{/if}
</td></tr>
{/foreach}
</table>
{/if}
<form action="{$F_ACTION}" method="post">
<p>
<input type="hidden" name="pwg_token" value="{$PWG_TOKEN}">
<label for="galleries_url" >{'Create a new site : (give its URL to create_listing_file.php)'|@translate}</label>
<input type="text" name="galleries_url" id="galleries_url">
</p>
<p>
<input class="submit" type="submit" name="submit" value="{'Submit'|@translate}">
</p>
</form>