source: extensions/Google2Piwigo/admin/template/import.tpl @ 17475

Revision 17475, 1.9 KB checked in by mistic100, 7 years ago (diff)

new extension: Google2Piwigo

Line 
1{combine_css path=$PICASA_WA_PATH|@cat:"admin/template/style.css"}
2
3<div class="titrePage">
4        <h2>Google2Piwigo</h2>
5</div>
6
7{* <!-- LOGIN --> *}
8{if $ACTION == 'login'}
9<p><input type="submit" onClick="javascript:window.location.href ='{$picasa_login}';" value="{'Login'|@translate}"></p>
10
11{* <!-- MAIN MENU --> *}
12{elseif $ACTION == 'main'}
13{footer_script}{literal}
14jQuery('input[type="submit"]').click(function() {
15  window.location.href = $(this).attr("data");
16});
17jQuery('.load').click(function() {
18  $("#loader_import").fadeIn();
19});
20{/literal}{/footer_script}
21
22<p>
23  <input type="submit" data="{$logout_url}" value="{'Logout'|@translate}">
24</p>
25<br>
26<p>
27  <input type="submit" data="{$list_albums_url}" class="load" value="{'List my albums'|@translate}">
28  <input type="submit" data="{$import_all_url}" class="load" value="{'Import all my pictures'|@translate}">
29  <br>
30  <span id="loader_import" style="display:none;"><img src="admin/themes/default/images/ajax-loader.gif"> <i>{'Processing...'|@translate}</i></span>
31</p>
32
33{* <!-- ALBUMS LIST --> *}
34{elseif $ACTION == 'list_albums'}
35{footer_script}{literal}
36jQuery('.load').click(function() {
37  $("#loader_import").fadeIn();
38});
39{/literal}{/footer_script}
40
41<h3>{'%d albums'|@translate|@sprintf:$total_albums}</h3>
42<ul id="albumsList">
43{foreach from=$albums item=album}
44  <li>
45    <b><a href="{$album.U_LIST}" class="load">{$album.title}</a></b> <i>{'(%d photos)'|@translate|@sprintf:$album.photos}</i>
46    {if $album.description}- {$album.description|@truncate:100}{/if}
47  </li>
48{/foreach}
49</ul>
50<span id="loader_import" style="display:none;"><img src="admin/themes/default/images/ajax-loader.gif"> <i>{'Processing...'|@translate}</i></span>
51
52{* <!-- PHOTOS LIST --> *}
53{elseif $ACTION == 'list_photos'}
54{include file=$PICASA_WA_ABS_PATH|@cat:'admin/template/import.list_photos.tpl'}
55
56{* <!-- IMPORT ALL --> *}
57{elseif $ACTION == 'list_all'}
58{include file=$PICASA_WA_ABS_PATH|@cat:'admin/template/import.list_all.tpl'}
59
60{/if}
Note: See TracBrowser for help on using the repository browser.