source: extensions/Subscribe_to_comments/template/subscribtions_page.tpl @ 15648

Last change on this file since 15648 was 15648, checked in by mistic100, 12 years ago

check email validity before subscribe

File size: 4.8 KB
Line 
1{combine_css path=$SUBSCRIBE_TO_PATH|@cat:'template/style.css'}
2
3{if $themeconf.name != "stripped" and $themeconf.parent != "stripped" and $themeconf.name != "simple-grey" and $themeconf.parent != "simple"}
4  {$MENUBAR}
5{else}
6  {assign var="intern_menu" value="true"}
7{/if}
8<div id="content" class="content{if isset($MENUBAR)} contentWithMenu{/if}">
9{if $intern_menu}{$MENUBAR}{/if}
10
11<div class="titrePage">
12  <h2>{'Subscriptions of'|@translate} <i>{$EMAIL}</i></h2>
13</div>
14
15{include file='infos_errors.tpl'}
16 
17{if $IN_VALIDATE or $IN_UNSUBSCRIBE}
18<p>
19  {if !empty($element)}<a href="{$element.url}" title="{$element.name}">{'Return to item page'|@translate}</a><br>{/if}
20  <a href="{$MANAGE_LINK}">{'Manage my subscriptions'|@translate}</a>
21</p>
22{/if}
23 
24<form action="{$MANAGE_LINK}" method="post">
25  {if !empty($global_subscriptions)}
26  <fieldset>
27    <legend>{'Global subscriptions'|@translate}</legend>
28    <table class="subscriptions_list">
29      {foreach from=$global_subscriptions item=sub name=subs_loop}
30      <tr class="{if $smarty.foreach.subs_loop.index is odd}row1{else}row2{/if}">
31        <td>
32          {if $sub.type == 'all-images'}
33            <img src="{$SUBSCRIBE_TO_PATH}template/image.png"> {'You are currently subscribed to comments on all pictures of the gallery.'|@translate}
34          {else $sub.type == 'all-albums'}
35            <img src="{$SUBSCRIBE_TO_PATH}template/album.png"> {'You are currently subscribed to comments on all albums of the gallery.'|@translate}
36          {/if}
37        </td>
38        <td style="white-space:nowrap;">
39          <a href="{$MANAGE_LINK}&amp;unsubscribe={$sub.id}">{'Unsubscribe'|@translate}</a>
40          {if $sub.validated == 'false'}<br> <a href="{$MANAGE_LINK}&amp;validate={$sub.id}">{'Validate'|@translate}</a>{/if}
41        </td>
42        <td style="white-space:nowrap;">
43          <i>{$sub.registration_date}</i>
44        </td>
45      </tr>
46      {/foreach}
47    </table>
48  </fieldset>
49  {/if}
50 
51  {if !empty($subscriptions)}
52  <fieldset>
53    <legend>{'Manage my subscriptions'|@translate}</legend>
54    <table class="subscriptions_list">
55      <tr class="header">
56        <th class="chkb"><input type="checkbox" id="check_all"></th>
57        <th colspan="2" class="info">{'Subject'|@translate}</th>
58        <th class="date">{'Followed on'|@translate}</th>
59      </tr>
60     
61      {foreach from=$subscriptions item=sub name=subs_loop}
62      <tr class="{if $smarty.foreach.subs_loop.index is odd}row1{else}row2{/if} {if $sub.validated == 'false'}not-validated{/if}">
63        <td class="chkb"><input type="checkbox" name="selected[]" value="{$sub.id}"></td>
64        <td class="thumb"><img src="{$sub.infos.thumbnail}" alt="{$sub.infos.name}" class="thumbnail"></td>
65        <td class="info">
66          <img src="{$SUBSCRIBE_TO_PATH}template/{$sub.type}.png">
67          <a href="{$sub.infos.url}">{$sub.infos.name}</a>
68
69          <div class="actions">
70            <a href="{$MANAGE_LINK}&amp;unsubscribe={$sub.id}">{'Unsubscribe'|@translate}</a>
71            {if $sub.validated == 'false'}| <a href="{$MANAGE_LINK}&amp;validate={$sub.id}">{'Validate'|@translate}</a>{/if}
72          </div>
73        </td>
74        <td class="date">
75          <i>{$sub.registration_date}</i>
76        </td>
77      </tr>
78      {/foreach}
79     
80      <tr class="footer {if $smarty.foreach.subs_loop.index is odd}row1{else}row2{/if}"><td colspan="4">
81        <select name="action">
82          <option value="-1">{'Choose an action'|@translate}</option>
83          <option value="unsubscribe">{'Unsubscribe'|@translate}</option>
84          <option value="validate">{'Validate'|@translate}</option>
85        </select>
86        <input type="submit" name="apply_bulk" value="{'Apply action'|@translate}">
87      </td></tr>
88    </table>
89   
90    <p>
91      <b>Legend :</b>
92      <img src="{$SUBSCRIBE_TO_PATH}template/image.png"> {'comments on a picture'|@translate}.
93      <img src="{$SUBSCRIBE_TO_PATH}template/album-images.png"> {'comments on all pictures of an album'|@translate}.
94      {if $COA_ACTIVATED}<img src="{$SUBSCRIBE_TO_PATH}template/album.png"> {'comments on an album'|@translate}.{/if}
95    </p>
96  </fieldset>
97  {/if}
98 
99  {if !empty($global_subscriptions) or !empty($subscriptions)}
100    <p>
101      <label><input type="checkbox" name="unsubscribe_all_check" value="1"> {'Unsubscribe from all email notifications'|@translate}</label>
102      <input type="submit" name="unsubscribe_all" value="{'Submit'|@translate}">
103  {/if}
104</form>
105
106{footer_script require="jquery"}{literal}
107jQuery("#check_all").change(function() {
108  if ($(this).is(":checked"))
109    $("input[name^='selected']").attr('checked', 'checked');
110  else
111    $("input[name^='selected']").removeAttr('checked');
112});
113{/literal}{/footer_script}
114
115</div> <!-- content -->
Note: See TracBrowser for help on using the repository browser.