﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Reserve_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Reserve</title>
     <LINK href="../Style.css" type="text/css" rel="stylesheet">
<script language=javascript>
    function Button1_onclick(location) {
    //window.open("Reserve/Reserve.aspx?HotelID="+location,"","toolbar=no,menubar=no,location=no,status=no,width=650,scrollbars=yes")
        window.open("http://irtravelmarketing.com/Hotel/reserve.aspx?HotelID="+location,"","toolbar=no,menubar=no,location=no,status=yes,width=668,scrollbars=yes")
}


</script>
</head>
<body background="bg.gif" style="text-align: center" >
    <form id="form1" runat="server">
        <table id="Table_01" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td colspan="3" dir="ltr" height="100%" style="text-align: center">
                    <asp:Panel ID="pSearch" runat="server" BackColor="AliceBlue" BorderColor="DodgerBlue"
                        BorderStyle="Solid" BorderWidth="1px" Direction="RightToLeft" Width="400px">
                        <strong>جستجوي اتاق در هتل</strong><table cellpadding="3" cellspacing="3" style="width: 100%">
                            <tr>
                                <td style="width: 87px; text-align: right">
                                    شهر:</td>
                                <td style="text-align: right">
                                    <asp:DropDownList ID="dlsourceCityName" runat="server" Font-Names="Tahoma" Font-Size="8pt">
                                    </asp:DropDownList></td>
                                <td style="text-align: right">
                                </td>
                                <td style="text-align: right">
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 87px; text-align: right">
                                    تعداد اتاق:</td>
                                <td style="text-align: right">
                                    <asp:DropDownList ID="DropDownList1" runat="server" Font-Names="Tahoma" Font-Size="8pt">
                                    </asp:DropDownList></td>
                                <td style="text-align: right">
                                    تعداد اتاق:</td>
                                <td style="text-align: right">
                                    <asp:DropDownList ID="dlDay1" runat="server" Font-Names="Tahoma" Font-Size="8pt">
                                    </asp:DropDownList></td>
                            </tr>
                            <tr>
                                <td style="width: 87px; text-align: right">
                                    شبهای اقامت:</td>
                                <td style="text-align: right">
                                    <asp:DropDownList ID="dlDay2" runat="server" Font-Names="Tahoma" Font-Size="8pt">
                                    </asp:DropDownList></td>
                                <td style="text-align: right">
                                    تاريخ:</td>
                                <td style="text-align: right">
                                </td>
                            </tr>
                        </table>
                        <table cellpadding="3" cellspacing="3" style="width: 100%">
                            <tr>
                                <td style="text-align: left">
                                    <asp:Button ID="butOk" runat="server" Font-Names="Tahoma" Font-Size="8pt" Text="تائيد"
                                        Width="60px" /></td>
                            </tr>
                        </table>
                    </asp:Panel>
                    <br />
                    &nbsp;
                    <asp:Label ID="lblMessage" runat="server"></asp:Label>
                    <asp:Label ID="lblMessages" runat="server" ForeColor="Red"></asp:Label><br />
                    &nbsp; &nbsp;&nbsp;
                </td>
            </tr>
            <tr>
                <td colspan="3" dir="ltr" height="100%" style="text-align: right">
                    <asp:Label ID="lblRecordNo" runat="server" Visible="False"></asp:Label>
                    <table dir="rtl" style="margin-top: 5px; width: 98%; text-align: center">
                        <tr>
                            <td>
                            </td>
                            <td style="width: 120px; text-align: right">
                                <asp:Label ID="lblTitle" runat="server"></asp:Label></td>
                            <td style="width: 70px; text-align: left">
                                تعداد موارد:</td>
                            <td>
                                <asp:Label ID="lblTotalRecords" runat="server"></asp:Label></td>
                            <td style="width: 16px">
                                <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/images/nav_right_blue.png"
                                    OnClick="ImageButton2_Click" /></td>
                            <td style="width: 70px; text-align: left">
                                شماره صفحه :</td>
                            <td style="width: 35px; text-align: right">
                                <asp:DropDownList ID="dlPageN" runat="server" AutoPostBack="True" OnSelectedIndexChanged="dlPageN_SelectedIndexChanged">
                                    <asp:ListItem>1</asp:ListItem>
                                </asp:DropDownList></td>
                            <td style="width: 19px">
                                <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/images/nav_left_blue.png"
                                    OnClick="ImageButton1_Click" /></td>
                        </tr>
                    </table>
                    <asp:DataList ID="DataList1" runat="server" OnItemCommand="DataList1_ItemCommand">
                        <ItemTemplate>
                            <table id="Table2" border="0" cellpadding="0" cellspacing="0" style="width: 423px; height: 62px">
                                <tr>
                                    <td colspan="3" style="height: 10px">
                                        </td>
                                </tr>
                                <tr>
                                    <td rowspan="1">
                                    </td>
                                    <td dir="rtl" height="42">
                                        <table cellpadding="1" cellspacing="0">
                                            <tr>
                                                <td style="width: 57px; height: 16px; text-align: left">
                                                    <span style="color: #000099">نام:</span></td>
                                                <td style="width: 134px; height: 16px; text-align: right">
                                                    <asp:Label ID="lblName" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "clientName") %>'></asp:Label></td>
                                                <td style="width: 35px; text-align: left">
                                                    <span style="color: #000099"></span></td>
                                                <td dir="ltr" style="width: 150px">
                                                    <asp:HyperLink ID="website" runat="server" NavigateUrl='<%# "http://" + DataBinder.Eval(Container.DataItem, "webSite") %>'
                                                        Target="_blank" Text='<%# DataBinder.Eval(Container.DataItem, "webSite") %>' Visible="False"></asp:HyperLink>
                                                    <asp:Label ID="lblTels" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "tels") %>' Visible="False"></asp:Label></td>
                                            </tr>
                                        </table>
                                        <table cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td style="width: 50px; text-align: left">
                                                    <span style="color: #000099">آدرس:</span></td>
                                                <td style="width: 350px">
                                                    <asp:Label ID="lblAddress" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "address") %>'></asp:Label>
                                                </td>
                                                <td style="width: 55px; text-align: center">
                                                    <input id="Button2" onclick="return Button1_onclick('<%# DataBinder.Eval(Container.DataItem, "ID") %>')"
                                                        style="width: 50px" type="button" value="رزرو" /></td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td rowspan="1">
                                    </td>
                                </tr>
                            </table>
                            <hr />
                        </ItemTemplate>
                    </asp:DataList>
                                <asp:Label ID="lblclientType" runat="server" Visible="False"></asp:Label></td>
            </tr>
        </table>
    </form>
</body>
</html>
