<%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 lst_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="100%" 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 bgcolor="#C5E1A3">
          <td>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
              <tr bgcolor="#C5E1A3">
                <td>
                  <table width="100%" border="0" cellspacing="1" cellpadding="1">
                    <tr class="bold_white">
                      <td bgcolor="#336600">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td class="bold_white" height="20"><img src="<%image_url%>/icons/list.gif" hspace="2" vspace="0">Import Subscribers</td>
                            <td class="body" align="right">
                              <%set mn_subscriber = 1%>
                              <%set isub_search = 1%>
                              <%set isub_add = 1%>
                              <%set iremove_sub = 1%>
                              <%set iclose = 1%>
                              <%include lst_include_icons.html%>
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr>
                <td bgcolor="#FFFFFF"><br />
                  <table width="500" border="0" cellspacing="0" cellpadding="0" align=center>
                    <tr class="body">
                      <td align="left" colspan="2">
                        <b>Import results:</b><br />
                        <%loop import_results%>
                          - <b><%list_name%></b>:
                            <%if overlimit%><font color='red'>Over subscriber limit.</font>
                            <%else%>
                              <br />
                              <ul><font color="<%if successful%>green<%else%>red<%endif%>"><%if declined != hits%><b><%hits - $declined%></b> out of<%endif%> <b><%hits%></b> email addresses imported</font><br />
                              <%if invalid%><font color="red"><b><%invalid%></b> invalid email addresses</font><br /><%endif%>
                              <%if duplicate%><b><%duplicate%></b> duplicate email addresses<br /><%endif%>
                              </ul>
                            <%endif%>
                        <%endloop%>
                      </td>
                    </tr>
                  </table><br />
                  <center>
                  <div style="position: relative; width:600px; height:300px; overflow:auto;">
                    <table border="0" cellspacing="1" cellpadding="2" width="95%">
                      <%loop import_results%>
                        <%loop results%>
                          <tr class=body>
                            <td><%sub_email%><nobr></td>
                            <td><%list_name%><nobr></td>
                            <td><nobr>&nbsp;[ <%if status%><%status%><%else%><font color="green"><b>Imported</b></font><%endif%> ]</td>
                          </tr>
                        <%endloop%>
                      <%endloop%>
                    </table>
                  </div>
                  </center>
                  <br />
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<%include include_footer.html%>
