suspend_request.tt2 2.83 KB
Newer Older
1
2
3
4
<!-- $Id: suspend_request.tt2 5973 2009-07-20 10:29:53Z jourdan $ -->

<div class="block">

5
  <h2>[%|loc%]Manage your subscriptions[%END%]<a class="input" href="[%path_cgi %]/help/suspend">[%|loc%]Help[%END%]</a></h2>
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  <br />
  <form class="noborder" action="[% path_cgi %]" method="post" name="suspend_request">

	<table summary="[%|loc%]Lists[%END%]" class="listOfItems">
      <tr>
	<th>[%|loc%]Lists[%END%]</th>
	<th>[%|loc%]Reception[%END%]</th>   
	<th>[%|loc%]Suspended[%END%]</th>
      </tr>

      [% IF user.email %]
        [% IF suspend_list %]
          [% FOREACH sub = suspend_list %]
            <tr class="color0">
20
              <td><input id="listname.[% sub.listname %]" type="checkbox" checked="checked" name="listname" value="[% sub.listname %]" /> <label for="listname.[% sub.listname %]">[% hidden_head %][% sub.listname %][% hidden_end %]&nbsp;</label></td>
21
22
	      [% IF sub.listsuspend %]
	        <td></td>
23
	        <td>&nbsp;[%|loc%]Suspended from[% END %] [% sub.liststartdate %] [%|loc%]to[% END %] [% IF sub.listenddate %][% sub.listenddate %][% ELSE %][%|loc%]indefinite end date[% END %][% END %]</td>	        
24
25
	      [% ELSE %]
	      <td>
26
		 [%|optdesc('reception')%][% sub.listreception %][% END %]
27
28
29
30
31
32
33
34
35
36
37
38
39
40
	      </td>
	      <td></td>
	      [% END %]
            </tr>
	  [% END %]
	[% ELSE %]
          <p>[%|loc%]No subscription.[% END %]</p>
        [% END %]
      [% END %]
    </table>
    <input class="MainMenuLinks" type="button" value="[%|loc%]Toogle selection[%END%]" onclick="toggle_selection(document.suspend_request.listname)" />

    <br /><br />

41
      <h3>[%|loc%]Suspend / Resume the selected lists[%END%]</h3>
42
	<p><b>
43
44
 	  [%|loc%]From:[%END%] <noscript>(dd-mm-yyyy)</noscript><input type="text" id="date_deb" name="date_deb" maxlength="10" size="10" value="[% d_day %]" onfocus="visuCal(this,param_ddeb);" onblur="masqueCal(this);" >
          [%|loc%]To:[%END%] <noscript>(dd-mm-yyyy)</noscript><input type="text" id="date_fin" name="date_fin" maxlength="10" size="10" onfocus="visuCal(this,param_dfin)" onblur="masqueCal(this)" >      
45
      	</b>
46
	<input id="indefinite" type="checkbox" name="indefinite" /> <label for="indefinite">[%|loc%]Check this box if you want to suspend your subscription indefinitely.[%END%]</label>
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
	<br />
	<input type="hidden" name="action" value="suspend_request_action"/>
	<input class="MainMenuLinks" type="submit" name="sub_action_suspendsave" value="[%|loc%]Suspend my subscriptions[%END%]"/>
	[% IF sub.display == 1 %]
        	<input class="MainMenuLinks" type="submit" name="sub_action_suspendstop" value="[%|loc%]Resume my subscriptions[%END%]"/>
        [% END %]
	</p>

      <h3>[%|loc%]Unsubscribe selected lists[%END%]</h3>
	<p>
	  <input class="MainMenuLinks" type="submit" name="sub_action_signoff" value="[%|loc%]Unsubscribe[%END%]"/>
	</p>
  </form>
	<br />
</div>
62
<!-- end suspend_request.tt2 -->