source: extensions/flickr2piwigo/admin/template/import.tpl @ 26180

Revision 26180, 2.5 KB checked in by mistic100, 6 years ago (diff)

update for piwigo 2.6

Line 
1{combine_css path=$FLICKR_PATH|cat:'admin/template/style.css'}
2
3{include file='include/colorbox.inc.tpl'}
4{include file='include/add_album.inc.tpl'}
5{combine_script id='common' load='footer' path='admin/themes/default/js/common.js'}
6{combine_script id='jquery.ajaxmanager' load='footer' path='themes/default/js/plugins/jquery.ajaxmanager.js'}
7{combine_script id='jquery.jgrowl' load='footer' require='jquery' path='themes/default/js/plugins/jquery.jgrowl_minimized.js'}
8{combine_css path="themes/default/js/plugins/jquery.jGrowl.css"}
9
10<div class="titrePage">
11        <h2>Flickr2Piwigo</h2>
12</div>
13
14{* <!-- LOGIN --> *}
15{if $ACTION == 'init_login'}
16<p><input type="submit" onclick="javascript:window.location.href ='{$flickr_login}';" value="{'Login'|translate}"></p>
17
18{* <!-- MAIN MENU --> *}
19{else if $ACTION == 'main'}
20
21{footer_script}
22jQuery('input[type="submit"]').click(function() {
23  window.location.href = $(this).attr("data");
24});
25jQuery('.load').click(function() {
26  $("#loader_import").fadeIn();
27});
28{/footer_script}
29
30<p>
31  <b>{'Logged in as'|translate}</b> : <a href="{$profile_url}" target="_blank">{$username}</a><br><br>
32  <input type="submit" data="{$logout_url}" value="{'Logout'|translate}">
33</p>
34<br>
35<p>
36  <input type="submit" data="{$list_albums_url}" class="load" value="{'List my albums'|translate}">
37  <input type="submit" data="{$import_all_url}" class="load" value="{'Import all my pictures'|translate}">
38  <br>
39  <span id="loader_import" style="display:none;"><img src="admin/themes/default/images/ajax-loader.gif"> <i>{'Processing...'|translate}</i></span>
40</p>
41
42{* <!-- ALBUMS LIST --> *}
43{else if $ACTION == 'list_albums'}
44
45{footer_script}
46jQuery('.load').click(function() {
47  $("#loader_import").fadeIn();
48});
49{/footer_script}
50
51<h3>{'%d albums'|translate:$total_albums}</h3>
52<ul id="albumsList">
53{foreach from=$albums item=album}
54  <li {if $album.id == "not_in_set"}class="not_in_set"{/if}>
55    <b><a href="{$album.U_LIST}" class="load">{$album.title}</a></b> <i>{'(%d photos)'|translate:$album.photos}</i>
56    {if $album.description}- {$album.description|truncate:100}{/if}
57  </li>
58{/foreach}
59</ul>
60<span id="loader_import" style="display:none;"><img src="admin/themes/default/images/ajax-loader.gif"> <i>{'Processing...'|translate}</i></span>
61
62{* <!-- PHOTOS LIST --> *}
63{else if $ACTION == 'list_photos'}
64{include file=$FLICKR_ABS_PATH|cat:'admin/template/import.list_photos.tpl'}
65
66{* <!-- IMPORT ALL --> *}
67{else if $ACTION == 'list_all'}
68{include file=$FLICKR_ABS_PATH|cat:'admin/template/import.list_all.tpl'}
69
70{/if}
Note: See TracBrowser for help on using the repository browser.