<!-- begin add_screen.tmpl -->

<!-- tmpl_include list_type_switch_widget.tmpl -->

<p>
 Manage Subscribers (<!-- tmpl_var type_title -->)
&#187;
 <strong>Add</strong>
&#187;
 Verify
&#187;
 Subscribe/Invite
</p>

<!-- tmpl_if list_type_isa_list -->
	
	<!-- tmpl_if use_subscription_quota -->
		
		<!-- tmpl_if subscription_quota_reached -->
			
			<p class="error">
			 Warning! You are at or above the number of 
			 subscribers allowed (<!-- tmpl_var subscription_quota -->)! 
			 You cannot add anymore subscribers.
			</p>
			
		<!--tmpl_else-->
			
			<p class="error">
			 You have a limit of <!-- tmpl_var subscription_quota -->
			 subscriber(s) maximum allowed onto this list. You currently have 
			 <!-- tmpl_var num_subscribers --> subscriber(s).
			</p>
			
		<!--/tmpl_if-->
		
	<!--/tmpl_if-->
	
<!--/tmpl_if-->

<p>
	

<fieldset> 
	
	<legend>
		 <a href="#" onclick="toggleDisplay('add_one');return false;">
		+/- 
	</a>
		Add Just One Subscriber
	</legend>
<div id ="add_one" style="display:none"> 
	
	<form name="via_add_one"  action="<!-- tmpl_var S_PROGRAM_URL -->" method="post">
	
	 <input type="hidden" name="f"    id="f" value="add" />
	 <input type="hidden" name="type" value="<!-- tmpl_var type -->" />
	 <input type="hidden" name="process" value="1" />
	 <input type="hidden" name="rand_string" id="rand_string" value="<!-- tmpl_var rand_string -->" />

	<input type="hidden" name="method" value="via_add_one" /> 

	 <p>
	     <label for="email" style="width: 7em;float: left;text-align: right;margin-right: 0.5em;display: block">
	      Email Address:
	     </label>
	    <input type="text" name="email" id="email" value=""  />
	    </p>
	
		
	<!-- tmpl_loop fields --> 
	    <p>
	     <label for="<!-- tmpl_var name escape=HTML -->" style="width: 7em;float: left;text-align: right;margin-right: 0.5em;display: block">
	      <!-- tmpl_var name escape=HTML -->: 
	     </label>
	    <input type="text" name="<!-- tmpl_var name escape=HTML -->" id="<!-- tmpl_var name escape=HTML -->" value="<!-- tmpl_var value escape=HTML -->"  />
	    </p>
	<!--/tmpl_loop-->


	 <div class="buttonfloat">
	  <input type="reset"  class="cautionary" value="Clear Changes" />
	  <input type="submit" class="processing" value="Verify Subscriber..." />
	 </div>
	 <div class="floatclear"></div>

</form> 
	
		
</div> 

</fieldset> 

<fieldset style="background:#e6e6e6">
	<legend>Add a Bunch of Subscribers</legend>

    <p>
      <label for="new_emails">
            Enter
     </label> 
     new subscribers (one subscriber per line) in the following <strong>CSV format</strong>: </p> 
     
     <p><code>Email Address<!-- tmpl_loop fields -->, <!-- tmpl_var name --><!-- /tmpl_loop --></code></p>



<fieldset> 
	<legend>Paste Addresses Below:</legend>

<form name="paste_addresses"  action="<!-- tmpl_var S_PROGRAM_URL -->" method="post">
 <input type="hidden" name="f"    id="f" value="add" />
 <input type="hidden" name="type" value="<!-- tmpl_var type -->" />
 <input type="hidden" name="process" value="1" />
 <input type="hidden" name="rand_string" id="rand_string" value="<!-- tmpl_var rand_string -->" />

<input type="hidden" name="method" value="via_textarea" /> 



 <p>
  <textarea name="new_emails" id="new_emails" rows="5" cols="40"></textarea>
 </p>


 <div class="buttonfloat">
  <input type="reset"  class="cautionary" value="Clear Changes" />
  <input type="submit" class="processing" value="Verify Subscribers..." />
 </div>
 <div class="floatclear"></div>
</form>




</fieldset> 


<fieldset> 
	<legend>Upload From File</legend>



 <p>
  Alternatively,  
  <label for="new_email_file">
   upload
  </label>
  a text file in the same <strong>CSV format</strong> mentioned above.
 </p>

<form name="default_form" enctype="multipart/form-data" action="<!-- tmpl_var S_PROGRAM_URL -->" method="post" onSubmit="enable_check();">

	<div id="statusbar" style="width:1px solid black"></div>
	<div class="floatclear"></div>

<input type="hidden" name="f"    id="f" value="add" />
<input type="hidden" name="type" value="<!-- tmpl_var type -->" />
<input type="file"   name="new_email_file" id="new_email_file" />
<input type="hidden" name="process" value="1" />
<input type="hidden" name="rand_string" id="rand_string" value="<!-- tmpl_var rand_string -->" />
<input type="hidden" name="method" value="via_file_upload" /> 



    <script language="Javascript"> 
        var check = 0; 
        function enable_check() { 

                check = 1;
                do_check_status();
        }

        function do_check_status(){ 
            if(check == 1){
                external(['f__check_status', 'rand_string', 'new_email_file', 'f__add'], ['statusbar']);
            }
        }


        setInterval("do_check_status();",'1000')
    </script> 




 <div class="buttonfloat">
  <input type="reset"  class="cautionary" value="Clear Changes" />
  <input type="submit" class="processing" value="Verify Subscribers..." />
 </div>
 <div class="floatclear"></div>
</form>


</fieldset> 

    


 </fieldset>


<!-- tmpl_include help_link_widget.tmpl --> 

<!-- end add_screen.tmpl -->
