<%set book_mark = 'search_mailing'%>
<%include include_header.html%>
<script>
  function del_confirm() {
    if (confirm("Do you want to delete the schedule of mailing '<%mli_id%>'?")) {
      document.myform.mod_action.value = 'delete';
      document.myform.submit();
    }
  }
</script>
<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 mli_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%" width="20%" valign="top"><%include mli_include_nav.html%></td>
    <td bgcolor="#008000" height="97%" width="1" valign="top"><img src="<%image_url%>/pics/1pixel.gif" width="1" height="1"></td>
    <td height="97%" width="80%" valign="top">
      <table width="99%" border="0" cellspacing="0" cellpadding="0" align="center">
        <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="1" cellpadding="1">
              <tr class="bold_white">
                <td bgcolor="#336600">
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td height="20" class="bold_white"><img src="<%image_url%>/icons/search.gif" width="16" align="texttop" hspace="2" vspace="0">Modify Scheduled Mailing</td>
                      <td align="right"  class="body">
                        <%set separator = '&nbsp;<img src="'%>
                        <%set separator .= $image_url%>
                        <%set separator .= '/pics/bul_white.gif" width="5" height="8" style="position: relative; top: -1px">&nbsp; '%>
                        <a href="glist.cgi?do=mli_schedule_modify;mli_id=<%mli_id%><%if lookup%>;lu=<%lookup%><%endif%><%if fd%>;fd=<%fd%><%endif%><%if id%>;id=<%id%><%endif%><%if url%>;<%url%><%endif%><%hidden_query%>"><font color="#FFFFFF"><b>Edit Schedule</b></font></a> <%separator%>
                        <a href="javascript:rs('Details','glist.cgi?do=mli_home&p=1&mli_id=<%mli_id%><%if users%>&users=1<%endif%>;d=1<%hidden_query%>',550,650,0,20,'Yes')" title="Preview Mailing"><font color="#FFFFFF">Preview</font></a>&nbsp;&nbsp;
                        <a href="glist.cgi?do=mli_home&<%if id%>id=<%id%><%endif%><%if fd%>&fd=<%fd%><%endif%><%if url%>;url<%endif%><%hidden_query%>"><img src="<%image_url%>/icons/close.gif" width="17" height="16" border=0 alt="Close" align="absmiddle"></a>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
            <form name=myform action="glist.cgi" method="post">
            <table width="100%" border="0" bgcolor="#FFFFFF"  cellspacing="0" cellpadding="0" align=center>
              <tr>
                  <td class="body">
                  <blockquote>
                    <br/><%msg%><br><br>
                    &nbsp;Mailing ID: <b><%mli_id%> - <%mli_subject%></b><br><br>
                    <%include mli_include_schedule_mailing.html%>
                    <br />
                </blockquote>
                <input type="hidden" name="do" value="mli_schedule_modify" />
                <input type="hidden" name="mli_id" value="<%mli_id%>" />
                <input type="hidden" name="mod_action" value="" />
                <input name='fd' value="<%if fd%><%fd%><%endif%>" type=hidden />
                <input name='cd' value="<%if cd%><%cd%><%endif%>" type=hidden />
                <input name='cs' value="<%if cs%><%cs%><%endif%>" type=hidden />
                <input name='ca' value="<%if ca%><%ca%><%endif%>" type=hidden />
                <%hidden_objects%>
                </td>
              </tr>
              <tr>
                <td>
                  <blockquote>
                  <input type="submit" name="bmodify" value="Modify The Schedule" class="button">
                  <input type="button" name="bdelete" value="Delete The Schedule" class="button" onclick="del_confirm()">
                  <input type="submit" name="bcancel" value="Cancel" class="button">
                  </blockquote>
                </td>
              </form>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<%include include_footer.html%>
