[26180] | 1 | {combine_css path=$FLICKR_PATH|cat:'admin/template/style.css'} |
---|
[16063] | 2 | |
---|
[25789] | 3 | {include file='include/colorbox.inc.tpl'} |
---|
| 4 | {include file='include/add_album.inc.tpl'} |
---|
[26180] | 5 | {combine_script id='common' load='footer' path='admin/themes/default/js/common.js'} |
---|
[25789] | 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 | |
---|
[16063] | 10 | <div class="titrePage"> |
---|
| 11 | <h2>Flickr2Piwigo</h2> |
---|
| 12 | </div> |
---|
| 13 | |
---|
[16071] | 14 | {* <!-- LOGIN --> *} |
---|
[16063] | 15 | {if $ACTION == 'init_login'} |
---|
[26180] | 16 | <p><input type="submit" onclick="javascript:window.location.href ='{$flickr_login}';" value="{'Login'|translate}"></p> |
---|
[16063] | 17 | |
---|
[16071] | 18 | {* <!-- MAIN MENU --> *} |
---|
[26180] | 19 | {else if $ACTION == 'main'} |
---|
| 20 | |
---|
| 21 | {footer_script} |
---|
[16071] | 22 | jQuery('input[type="submit"]').click(function() { |
---|
| 23 | window.location.href = $(this).attr("data"); |
---|
| 24 | }); |
---|
| 25 | jQuery('.load').click(function() { |
---|
| 26 | $("#loader_import").fadeIn(); |
---|
| 27 | }); |
---|
[26180] | 28 | {/footer_script} |
---|
[16071] | 29 | |
---|
[16063] | 30 | <p> |
---|
[26180] | 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}"> |
---|
[16063] | 33 | </p> |
---|
[16064] | 34 | <br> |
---|
| 35 | <p> |
---|
[26180] | 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}"> |
---|
[16071] | 38 | <br> |
---|
[26180] | 39 | <span id="loader_import" style="display:none;"><img src="admin/themes/default/images/ajax-loader.gif"> <i>{'Processing...'|translate}</i></span> |
---|
[16064] | 40 | </p> |
---|
[16063] | 41 | |
---|
[16071] | 42 | {* <!-- ALBUMS LIST --> *} |
---|
[26180] | 43 | {else if $ACTION == 'list_albums'} |
---|
| 44 | |
---|
| 45 | {footer_script} |
---|
[16071] | 46 | jQuery('.load').click(function() { |
---|
| 47 | $("#loader_import").fadeIn(); |
---|
| 48 | }); |
---|
[26180] | 49 | {/footer_script} |
---|
[16071] | 50 | |
---|
[26180] | 51 | <h3>{'%d albums'|translate:$total_albums}</h3> |
---|
[16064] | 52 | <ul id="albumsList"> |
---|
[16063] | 53 | {foreach from=$albums item=album} |
---|
[16064] | 54 | <li {if $album.id == "not_in_set"}class="not_in_set"{/if}> |
---|
[26180] | 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} |
---|
[16063] | 57 | </li> |
---|
| 58 | {/foreach} |
---|
| 59 | </ul> |
---|
[26180] | 60 | <span id="loader_import" style="display:none;"><img src="admin/themes/default/images/ajax-loader.gif"> <i>{'Processing...'|translate}</i></span> |
---|
[16063] | 61 | |
---|
[16071] | 62 | {* <!-- PHOTOS LIST --> *} |
---|
[26180] | 63 | {else if $ACTION == 'list_photos'} |
---|
| 64 | {include file=$FLICKR_ABS_PATH|cat:'admin/template/import.list_photos.tpl'} |
---|
[16063] | 65 | |
---|
[16071] | 66 | {* <!-- IMPORT ALL --> *} |
---|
[26180] | 67 | {else if $ACTION == 'list_all'} |
---|
| 68 | {include file=$FLICKR_ABS_PATH|cat:'admin/template/import.list_all.tpl'} |
---|
[16063] | 69 | |
---|
| 70 | {/if} |
---|