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

Last change on this file since 20645 was 20645, checked in by mistic100, 11 years ago

add help file

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