
 <link rel="stylesheet" href="/Style-sheets/page-formatting.css" type="text/css">
<script language="JavaScript">
<!--

<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
//-->
</script>
<link rel="stylesheet" href="/Style-sheets/headline.css" type="text/css">
<link rel="stylesheet" href="/Style-sheets/headline-large.css" type="text/css">
<link rel="stylesheet" href="/Style-sheets/standard-input-form.css" type="text/css">
<link rel="stylesheet" href="/Style-sheets/headline-large.css" type="text/css">
<link rel="stylesheet" href="/Style-sheets/atrraction-set.css" type="text/css">
<link rel="stylesheet" href="/Style-sheets/attraction-set.css" type="text/css">
<link rel="stylesheet" href="/Style-sheets/emagineering.css" type="text/css">
<link rel="stylesheet" href="/Style-sheets/galley-text-indent.css" type="text/css">
<link rel="stylesheet" href="/Style-sheets/Lodging-display.css" type="text/css">
<link rel="stylesheet" href="/Style-sheets/input-form-small.css" type="text/css">
<link rel="stylesheet" href="/Style-sheets/page-formatting.css" type="text/css">
<link rel="stylesheet" href="/Style-sheets/standard-input-form.css" type="text/css">
<link rel="stylesheet" href="/Style-sheets/Profile-layout.css" type="text/css">

  <table width="200" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
    <tr>
      <td width="2" bgcolor="#2A2F88" height="71"><img src="/images/shim.gif" width="2" height="1"></td>
      <td height="71" width="196"> 
        <table width="196" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td valign="top" height="52" bgcolor="#FFFFFF"> 
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr> 
                  <td colspan="2" class="planner-hotel-name" > </td>
                </tr>
                <tr align="center" bgcolor="#FFFFFF"> 
                  <td class="planner-instructions-bold" colspan="2">My Saved Itineraries</td>
                </tr>
                <tr bgcolor="#2A2F88"> 
                  <td class="headline-ffffff-small" width="64%" align="left">&nbsp;Name</td>
                  <td class="headline-ffffff-small" width="36%" align="center"> 
                    Created</td>
                </tr>
              </table>
              <%
        Dim SQLSaved
        Set RSSaved = Server.CreateObject("ADODB.Recordset")
        SQLSaved = "Select * From Itinerary I Where I.Contact_ID = '" & Session("UserID") & "' And not exists(Select * From Transactions T Where T.Itinerary_ID = I.Itinerary_ID)"
        RSSaved.Open SQLSaved, Conn
        
        
        On Error Resume Next
        If RSSaved.EOF Or Not IsNumeric(Session("UserID")) Or Session("UserID") = False Then%>
              <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
                <tr bgcolor="#FFFFFF"> 
                  <td width="79%" class="planner-hotel-name">
                    <div align="center">Currently you don't have any Saved Itineraries! 
                      Create, Name &amp; Save your Itinerary for later Purchase! 
                      To create an Itinerary, look for the &quot;Add to My Planner&quot; 
                      Button.</div>
                  </td>
                </tr>
              </table>
        
        <%Else
			Do While Not RSSaved.EOF
        %>
              <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
                <tr bgcolor="#FFFFFF"> 
                  <td width="79%" class="planner-hotel-name"><span class="planner-saved" style="{cursor:hand}" onClick="location.href='main-itinerary-edit.asp?Itinerary_ID=<%=RSSaved("Itinerary_ID")%>'"> 
                    <%If Not Trim(RSSaved("Name")) = "" Then 
            Response.Write RSSaved("Name")
            Else
            Response.Write RSSaved("Itinerary_ID")
            End If%>
                    </span><br>
                  </td>
                  <td width="21%" class="planner-saved"><%=FormatDateTime(RSSaved("Create_Date"), 2)%></td>
                </tr>
              </table>
              <hr width="95%" color="#FFA218" size="1" noshade align="center">
              <%RSSaved.MoveNext()
        Loop
        End If
        On Error Goto 0
        %>
              <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
                <tr> 
                  <td class="planner-instructions-bold" align="center" height="3" bgcolor="#FFFFFF">Click 
                    Name To View/Edit</td>
                </tr>
              </table>
            
          </td>
        </tr>
      </table>
    </td>
      <td width="2" bgcolor="#2A2F88" height="71"><img src="/images/shim.gif" width="2" height="1"></td>
  </tr>
   <tr> 
    <td colspan="3"><img src="/images/planner-footer.gif" width="200" height="7"></td>
  </tr>
</table>

