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

Last change on this file since 27824 was 27824, checked in by plg, 10 years ago

remove warning on jGrowl CSS on Unix

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