"Fossies" - the Fresh Open Source Software Archive

Member "metadot/metadot/Metadot/templates/subscribable/add_subscriber_groups.tt2" (6 Jun 2005, 3357 Bytes) of package /linux/www/old/Metadot6.4.5.4.tar.gz:


The requested HTML page contains a <FORM> tag that is unusable on "Fossies" in "automatic" (rendered) mode so that page is shown as HTML source code (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 [% display_name = self.get_gizmo_name %]
    2 [%- WRAPPER portal_chooser.tt2 page_title = "Add Group Subscribers to $display_name" -%]
    3 <!-- BEGIN subscribable/add_subscriber_groups -->
    4 <h3>Subscribe groups to: [% self.name %]</h3><hr/>
    5 <div style="padding-top: 5px"><a class="text_button" href="index.pl?iid=[% self.iid %]&amp;isa=[% self.is_a %]&amp;op=view_subscribers">Back to subscriber list</a></div>
    6 <br/>
    7 
    8 <form name="user_search" method="get">
    9    <input type="hidden" name="op" value="[% form.op %]">
   10    <input type="hidden" name="iid" value="[% form.iid %]">
   11    <input type="hidden" name="isa" value="[% form.isa %]">
   12    <table width="95%" cellspacing="2" cellpadding="0" border="0">
   13      <tr>
   14        <td colspan="2">
   15          Enter some part of the group name
   16        </td>
   17      </tr>
   18      <tr height="35">
   19        <td width="150" >
   20          <input type="text" name="search_query" value="[% form.search_query %]">
   21        </td>
   22        <td>
   23          <input type="submit" name="submit_search" value="Search">
   24        </td>
   25      </tr>
   26    </table>
   27 </form>
   28 
   29 <!-- Results below -->
   30 [%
   31    IF form.search_query != "";
   32       groups = self.search_groups(form.search_query);
   33       IF groups.size;
   34 %]
   35 <form action='index.pl' method='post' name='group_subscriptions'>
   36   <input type="hidden" name="op" value="update_subscriber_groups">
   37   <input type="hidden" name="iid" value="[% self.iid %]">
   38   <table border='0' width='100%' style="border: 1px solid #ccc">
   39     <thead>
   40       <tr bgcolor='#cccccc' >
   41         <td>Group</td>
   42         <td>Email Notification Frequency</td>
   43         <td align='center'>Allow opt-out?</td>
   44       </tr>
   45     </thead>
   46     <tbody>
   47     [% FOREACH group = groups; INCLUDE group_row; END %]
   48     </tbody>
   49     <tfoot>
   50       <tr>
   51         <td colspan='2'>
   52           <input class='text_button' type='submit' name='submit_add_subscriber_groups' value='Update group subscriptions'>
   53         </td>
   54       </tr>
   55     </tfoot>
   56     <tr>
   57   </table>
   58 </form>
   59   [% ELSE %]
   60 <div style="font-style: italic">- No groups matched your search -</div>
   61   [% END   # groups.size > 0 %]
   62 [% END   # if form.search_query %]
   63 <!-- BEGIN subscribable/add_subscriber_groups -->
   64 [% END   # wrapper %]
   65 
   66 
   67 
   68 
   69 
   70 [% BLOCK group_row %]
   71 <tr style='border: #ccc 1px solid'>
   72 <td>
   73   <input type='hidden' name='grp_id' value='[% group.grp_id %]'>
   74   [% group.group_name %]
   75 </td>
   76 <td>
   77   [% INCLUDE radio_button button_name='freq.' _ group.grp_id button_value='none' button_label='None' check_value=group.frequency %]
   78   &nbsp;&nbsp;&nbsp;
   79   [% INCLUDE radio_button button_name='freq.' _ group.grp_id button_value='onceaday' button_label='Daily' check_value=group.frequency %]
   80   &nbsp;&nbsp;&nbsp;
   81   [% INCLUDE radio_button button_name='freq.' _ group.grp_id button_value='onceaweek' button_label='Weekly' check_value=group.frequency %]
   82   &nbsp;&nbsp;&nbsp;
   83   [% INCLUDE radio_button button_name='freq.' _ group.grp_id button_value='all' button_label='ASAP' check_value=group.frequency %]
   84 </td>
   85 <td align='center'>
   86   <input type="checkbox" name='optional.[% group.grp_id %]' [% IF group.optional %]checked[% END %] value='1'/>
   87 </td>
   88 </tr>
   89 [% END   # block group_row %]
   90 
   91 [% BLOCK radio_button %]
   92 <input type='radio'
   93      name='[% button_name %]'
   94      value='[% button_value %]'
   95      [% IF button_value == check_value %] checked[% END %]
   96      />&nbsp;[% button_label %]
   97 [% END   # block radio_button %]
   98