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