<%set set_focus = 'myform.reg_number'%>
<%set book_mark = 'misc_options'%>
<%include include_header.html%>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" height="82%">
  <tr>
    <td rowspan="2" bgcolor="#008000" height="100%" width="1"><img src="<%image_url%>/pics/1pixel.gif" width="1" height="1"></td>
    <td colspan="3" height="3%" bgcolor="#E8EAD0" valign="top"><%include admin_setup_include_menu.html%></td>
    <td rowspan="2" bgcolor="#008000" height="100%" width="1"><img src="<%image_url%>/pics/1pixel.gif" width="1" height="1"></td>
  </tr>
  <tr>
    <td height="97%" colspan="3" valign="top">
      <table width="99%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">
        <tr>
          <td><img src="<%image_url%>/pics/1pixel.gif" width="1" height="3"></td>
        </tr>
        <tr>
            <td class="body" align="center">
            <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#336600" style="border: 1px solid #C5E1A3">
              <tr class="bold_white">
                <td height="20"><img src="<%image_url%>/icons/options.gif" hspace="2" vspace="0" align="texttop">Misc Options</td>
                <td align="right"><img src="<%image_url%>/icons/close.gif" width="17" height="16" border=0></td>
              </tr>
            </table><br/>
            <%if msg%><%msg%><%else%>These are other options that you can change:<%endif%><br /> <br />
            <form name=myform action="glist.cgi" method=post>
              <table cellspacing="1" cellpadding="2" align=center width=600>
                <tr><td colspan=2 class=body>Template set to use</td></tr>
                <tr>
                  <td class="body" width=20%><b>template_set</b></td>
                  <td><%GList::Tools::_template_dir_select('template_set')%></td>
                </tr>
                <tr><td colspan=2 class=body>Create backup templates (.bak)</td></tr>
                <tr>
                  <td class="body" width=20%><b>template_backups</b></td>
                  <td>
                    <select name="template_backups" class="object">
                      <option value="1" <%if template_backups%>selected<%endif%>>Yes</option>
                      <option value="0" <%ifnot template_backups%>selected<%endif%>>No</option>
                     </select>
                  </td>
                </tr>
                <tr><td colspan=2 class=body>Registration Number</td></tr>
                <tr>
                  <td class="body" width=20%><b>reg_number</b></td>
                  <td><input class=object name="reg_number" type=text value="<%if cfg_reg_number%><%cfg_reg_number%><%endif%>" size=<%if is_ie or is_mozilla%>50<%else%>30<%endif%> /></td>
                </tr>
                <tr><td colspan=2 class=body>Mail setup. If your server has sendmail, you should set mail_path to the path to sendmail.  If you do not have sendmail (typically, Windows servers do not) or do not wish to use it, set smtp_server to the name of your SMTP server.  <b>Only one should be set!</b></td></tr>
                <tr>
                  <td class="body"><b>smtp_server</b></td>
                  <td><input class=object name="smtp_server" type=text value="<%if cfg_smtp_server%><%cfg_smtp_server%><%endif%>" size=<%if is_ie or is_mozilla%>50<%else%>30<%endif%> /></td>
                </tr>
                <tr>
                  <td class="body"><b>mail_path</b></td>
                  <td><input class=object name="mail_path" type=text value="<%if cfg_mail_path%><%cfg_mail_path%><%endif%>" size=<%if is_ie or is_mozilla%>50<%else%>30<%endif%> /></td>
                </tr>
                <tr><td colspan=2 class=body>Allowed size for attachments, in KB</td></tr>
                <tr>
                  <td class="body"><b>max_attachments_size</b></td>
                  <td><input class=object name="max_attachments_size" type=text value="<%if cfg_max_attachments_size%><%cfg_max_attachments_size%><%endif%>" size=<%if is_ie or is_mozilla%>50<%else%>30<%endif%> /></td>
                </tr>
                <tr><td colspan=2 class=body>The number bounced emails in POP account that you can check from the web.</td></tr>
                <tr>
                  <td class="body"><b>max_bounced_emails</b></td>
                  <td><input class=object name="max_bounced_emails" type=text value="<%if cfg_max_bounced_emails%><%cfg_max_bounced_emails%><%endif%>" size=<%if is_ie or is_mozilla%>50<%else%>30<%endif%> /></td>
                </tr>
                <tr><td colspan=2 class=body>Mailing Lists Debug Level. This will display debug information into the error logs, and also show debug information on any fatal error.</td></tr>
                <tr>
                  <td class="body"><b>debug_level</b></td>
                  <td>
                    <select name="debug_level" class="object">
                      <option value="0" <%ifnot cfg_debug_level%>selected<%endif%>>disabled</option>
                      <option value="1" <%if cfg_debug_level%>selected<%endif%>>enabled</option>
                    </select>
                  </td>
                </tr>
                <tr class=body>
                  <td colspan=2 class=body>
                    Choose whether or not to generate a session_id. If this is set to "No", users will have to configure their browsers to allow cookies to view the database.
                  </td></tr>
                <tr class="body">
                  <td class="body"><b>user_session</b></td>
                  <td class="body">
                    <select name="user_session" class="object">
                      <option value="0" <%ifnot cfg_user_session%>selected<%endif%>>No</option>
                      <option value="1" <%if cfg_user_session%>selected<%endif%>>Yes</option>
                    </select>
                  </td>
                </tr>
                <tr><td colspan=2 class=body>Session expiry time, in hours</td></tr>
                <tr>
                  <td class="body"><b>session_exp</b></td>
                  <td><input class=object name="session_exp" type=text value="<%if cfg_session_exp%><%cfg_session_exp%><%endif%>" size='3' maxlength="3" /></td>
                </tr>
                <tr><td colspan=2 class=body>Highlight Color </td></tr>
                <tr>
                  <td class="body"><b>highlight_color</b></td>
                  <td class="body">
                    <select name="highlight_color" class="object">
                      <option value="0" <%ifnot cfg_highlight_color%>selected<%endif%>>No</option>
                      <option value="1" <%if cfg_highlight_color%>selected<%endif%>>Yes</option>
                    </select>
                  </td>
                </tr>
                <tr><td colspan=2 class=body>Display the limit bar</td></tr>
                <tr>
                  <td class="body"><b>display_limit_bar</b></td>
                  <td class="body">
                    <select name="display_limit_bar" class="object">
                      <option value="0" <%ifnot cfg_display_limit_bar%>selected<%endif%>>No</option>
                      <option value="1" <%if cfg_display_limit_bar%>selected<%endif%>>Yes</option>
                    </select>
                  </td>
                </tr>
                <tr><td colspan=2 class=body>Use IFRAME for Open Message tracking</td></tr>
                <tr>
                  <td class="body"><b>iframe_tracking</b></td>
                  <td class="body">
                    <select name="iframe_tracking" class="object">
                      <option value="0" <%ifnot cfg_iframe_tracking%>selected<%endif%>>No</option>
                      <option value="1" <%if cfg_iframe_tracking%>selected<%endif%>>Yes</option>
                    </select>
                  </td>
                </tr>
                <tr><td colspan=2 class=body>Custom Error Handler. Mailing Lists will display the following HTML on any error message that is generated. If left blank, the default error will be shown. You can only use two template tags in this: &lt;%error%&gt; for the error message, and &lt;%environment%&gt; for a complete debug message.</td></tr>
                <tr>
                  <td class="body"><b>error_message</b></td>
                  <td><textarea class=object name="error_message" cols=<%if is_ie or is_mozilla%>50<%else%>30<%endif%> rows=3><%if cfg_error_message%><%cfg_error_message%><%endif%></textarea></td>
                </tr>
                <tr><td colspan=2 class=body>This should be HTML code, you can add the code below to your website to get new subscribers on the list.</td></tr>
                <tr>
                  <td class="body"><b>html_code</b></td>
                  <td><textarea class=object name="html_code" cols=<%if is_ie or is_mozilla%>50<%else%>30<%endif%> rows=5><%if cfg_html_code%><%cfg_html_code%><%endif%></textarea></td>
                </tr>
              </table>
              <p align=center>
              <input type="submit" name="bsubmit" value=" Submit Changes " class=button />
              <input type="submit" name="brestore" value="Restore System Defaults" class=button />
              <br /><BR /></p>
                <input name=do type=hidden value="admin_setup" />
                <input name=pg type=hidden value="admin_setup_misc.html" />
                <input name=misc type=hidden value="1" />
                <%hidden_objects%>
                </form>
            </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<%include include_footer.html%>
