[16591] | 1 | {combine_css path=$USER_COLLEC_PATH|@cat:"template/style.css"} |
---|
| 2 | |
---|
| 3 | {footer_script require='jquery'} |
---|
| 4 | jQuery(".save_col").click(function() {ldelim} |
---|
| 5 | var name = prompt("{'Collection name:'|@translate}"); |
---|
[16597] | 6 | if (name != null) {ldelim} |
---|
| 7 | $(this).attr("href", $(this).attr("href") +"&name="+ name); |
---|
| 8 | return true; |
---|
| 9 | } else {ldelim} |
---|
| 10 | return false; |
---|
| 11 | } |
---|
[16591] | 12 | }); |
---|
| 13 | {/footer_script} |
---|
| 14 | |
---|
[16658] | 15 | {if $themeconf.name == "clear"} |
---|
| 16 | {html_head}{literal} |
---|
| 17 | <style type="text/css">.collecList a { color:#eee; }</style> |
---|
| 18 | {/literal}{/html_head} |
---|
| 19 | {/if} |
---|
| 20 | |
---|
[16625] | 21 | {if $themeconf.name != "stripped" and $themeconf.parent != "stripped" and $themeconf.name != "simple-grey" and $themeconf.parent != "simple"} |
---|
| 22 | {$MENUBAR} |
---|
| 23 | {else} |
---|
| 24 | {assign var="intern_menu" value="true"} |
---|
| 25 | {/if} |
---|
| 26 | <div id="content" class="content{if isset($MENUBAR)} contentWithMenu{/if}"> |
---|
| 27 | {if $intern_menu}{$MENUBAR}{/if} |
---|
[16591] | 28 | |
---|
[16658] | 29 | |
---|
[16591] | 30 | <div class="titrePage"> |
---|
| 31 | <ul class="categoryActions"></ul> |
---|
| 32 | <h2>{$TITLE}</h2> |
---|
| 33 | </div>{* <!-- titrePage --> *} |
---|
| 34 | |
---|
| 35 | {if isset($errors) or not empty($infos)} |
---|
| 36 | {include file='infos_errors.tpl'} |
---|
| 37 | {/if} |
---|
| 38 | |
---|
[16658] | 39 | |
---|
[16591] | 40 | <p style="text-align:left;font-weight:bold;margin:20px;"><a href="{$U_CREATE}" class="save_col">{'Create a new collection'|@translate}</a></p> |
---|
| 41 | |
---|
[16658] | 42 | |
---|
[16591] | 43 | {if $temp_col} |
---|
| 44 | <fieldset> |
---|
| 45 | <legend>{'Unsaved collections'|@translate}</legend> |
---|
| 46 | |
---|
| 47 | <ul class="collecList"> |
---|
| 48 | {foreach from=$temp_col item=col} |
---|
| 49 | <li {if $col.active}class="active"{/if}> |
---|
| 50 | <p class="collecTitle"> |
---|
[16608] | 51 | <a href="{$col.U_EDIT}" rel="nofollow"><b>{$col.name}</b></a> |
---|
| 52 | <i>{'%d photos'|@translate|@sprintf:$col.nb_images}</i> |
---|
[16591] | 53 | </p> |
---|
| 54 | <p class="collecActions"> |
---|
[16625] | 55 | <a href="{$col.U_EDIT}" rel="nofollow">{'Edit'|@translate}</a> |
---|
| 56 | | <a href="{$col.U_SAVE}" class="save_col" rel="nofollow">{'save'|@translate}</a> |
---|
| 57 | {if $col.U_DOWNLOAD}| <a href="{$col.U_DOWNLOAD}" rel="nofollow">{'download'|@translate}</a>{/if} |
---|
[16688] | 58 | | <a href="{$col.U_DELETE}" onClick="return confirm('{'Are you sure?'|@translate}');" rel="nofollow">{'Delete'|@translate}</a> |
---|
[16591] | 59 | {if not $col.active}| <a href="{$col.U_ACTIVE}" rel="nofollow">{'set active'|@translate}</a>{/if} |
---|
| 60 | </p> |
---|
| 61 | </li> |
---|
| 62 | {/foreach} |
---|
| 63 | </ul> |
---|
| 64 | </fieldset> |
---|
| 65 | {/if} |
---|
| 66 | |
---|
[16658] | 67 | |
---|
[16591] | 68 | {if $collections} |
---|
| 69 | <fieldset> |
---|
| 70 | <legend>{'Saved collections'|@translate}</legend> |
---|
| 71 | |
---|
| 72 | <ul class="collecList"> |
---|
| 73 | {foreach from=$collections item=col} |
---|
| 74 | <li {if $col.active}class="active"{/if}> |
---|
| 75 | <p class="collecDate"> |
---|
| 76 | {'created on %s'|@translate|@sprintf:$col.date_creation} |
---|
| 77 | </p> |
---|
| 78 | <p class="collecTitle"> |
---|
[16608] | 79 | <a href="{$col.U_EDIT}" rel="nofollow"><b>{$col.name}</b></a> |
---|
| 80 | <i>{'%d photos'|@translate|@sprintf:$col.nb_images}</i> |
---|
[16591] | 81 | </p> |
---|
| 82 | <p class="collecActions"> |
---|
[16625] | 83 | <a href="{$col.U_EDIT}" rel="nofollow">{'Edit'|@translate}</a> |
---|
| 84 | {if $col.U_DOWNLOAD}| <a href="{$col.U_DOWNLOAD}" rel="nofollow">{'download'|@translate}</a>{/if} |
---|
[16688] | 85 | | <a href="{$col.U_DELETE}" onClick="return confirm('{'Are you sure?'|@translate}');" rel="nofollow">{'Delete'|@translate}</a> |
---|
[16591] | 86 | {if not $col.active}| <a href="{$col.U_ACTIVE}" rel="nofollow">{'set active'|@translate}</a>{/if} |
---|
| 87 | </p> |
---|
| 88 | </li> |
---|
| 89 | {/foreach} |
---|
| 90 | </ul> |
---|
| 91 | </fieldset> |
---|
| 92 | {/if} |
---|
| 93 | |
---|
[16658] | 94 | |
---|
| 95 | </div>{* <!-- content --> *} |
---|