"Fossies" - the Fresh Open Source Software Archive

Member "metadot/metadot/Metadot/templates/subscribable/add_subscribers.tt2" (6 Jun 2005, 3640 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 Subscribers to $display_name" -%]
    3 <!-- BEGIN subscribable/add_subscribers -->
    4 <h3>Subscribe users to: [% self.name %]</h3><hr/>
    5 <div style="padding-top: 5px"><a class="text_button" href="index.pl?iid=[% self.id %]&amp;isa=Discussion&amp;op=view_subscribers">Back to subscriber list</a></div>
    6 <br/>
    7 
    8 <form name="user_search" method="post" action="index.pl">
    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 either email address or user name
   16        </td>
   17      </tr>
   18      <tr height="35">
   19        <td width="150" >
   20          <input type="text" name="email">
   21        </td>
   22        <td>
   23          <input type="submit" name="submit" class="text_button" value="Search">
   24        </td>
   25      </tr>
   26    </table>
   27 </form>
   28 
   29 <!-- Results below -->
   30 [%
   31    IF form.email != "";
   32       results = self.search_user_names(form.email);
   33       IF results.size;
   34 %]
   35          <form name="results" method="get" action="index.pl">
   36             <input type="hidden" name="op" value="update_subscribers">
   37             <input type="hidden" name="iid" value="[% form.iid %]">
   38             <input type="hidden" name="isa" value="[% form.isa %]">
   39             <input type="hidden" name="do" value="1">
   40             <table width="100%" cellspacing="2" cellpadding="0" border="0" style="border: 1px solid #ccc">
   41               <tr bgcolor="#cccccc">
   42                 <td width="30" nowrap align="center">
   43                   Subscribe
   44                 </td>
   45                 <td width="150" nowrap>
   46                   Name
   47                 </td>
   48                 <td width="120" nowap>
   49                   Medium (Optional)
   50                 </td>
   51                 <td width="200" nowrap>
   52                   Email Notification Frequency
   53                 </td>
   54               </tr>
   55          [%
   56            count = 0;
   57            FOREACH list = results;
   58              list = list.split(',');
   59          %]
   60               <tr>
   61                 <td width="30" nowrap align="center">
   62                   <input type="checkbox" name="uid[% count %]" value="[% list.0 %]">
   63                 </td>
   64                 <td width="150" nowap>
   65                   [% list.1 %] ( [% list.2 %] )
   66                 </td>
   67                 <td width="120" nowrap>
   68                   <input type="checkbox" name="pager[% list.0 %]" value="pager">Pager
   69                   <input type="checkbox" name="icq[% list.0 %]" value="icq">ICQ
   70                 </td>
   71                 <td width="200" nowrap>
   72                   <input type="radio" name="freq[% list.0 %]" value="onceaday">Daily
   73                   <input type="radio" name="freq[% list.0 %]" value="onceaweek">Weekly
   74                   <input type="radio" name="freq[% list.0 %]" value="all" checked>ASAP
   75                 </td>
   76               </tr>
   77           [%
   78               count = count + 1;
   79               END;
   80           %]
   81               <tr height="65">
   82         <td colspan="4" style="padding-left: 5px">
   83                     <input type="submit" name="subscribe" class="text_button" value="Subscribe" name="submit_new_subscriptions" /><br /><br />
   84                     <div>Note: User will be automatically subscribed to receive emails</div>
   85                 </td>
   86               </tr>
   87        [% ELSE %]
   88           <div>No results found!</div>
   89        [% END %]
   90          </table>
   91       </form>
   92    [% END %]
   93 <!-- END subscribable/add_subscribers -->
   94 [% END   #WRAPPER %]