ASP.NET----实现绑定及MyDate97应用

ASP.NET----实现绑定及MyDate97应用

代码:

<head runat="server">

    <title></title>

    <style type="text/css">

        #Select1

        {

            width: 111px;

        }

        #Select2

        {

            width: 116px;

        }

    </style>

    <script src="My97DatePicker/WdatePicker.js" type="text/javascript"></script>

</head>

<body>

    <%

        XL.Dal.BrandDal brandDal = new XL.Dal.BrandDal(); 

    %>

    <div id="fathetdiv">

        <%

            System.Collections.Generic.List<XL.Model.BusType> busTypeList = new XL.Dal.BusTypeDal().GetPage(0, 5);

            foreach (XL.Model.BusType busType in busTypeList)

            {

        %>

        <div id="busimage" >

            <a href='buscontentpage.aspx?id=<%=busType.ID.ToString() %>'>

                <img alt="" src='<%=busType.PictureUrl.Trim() %>' class="part_l1_c_t_picarea_pic" />

            </a>

        </div>

        <div id="brand" style="border-bottom: 1px solid #e7e7e7; position: relative; width: 287px;

            height: 20px; margin: 0px auto; top: 0px; left: 0px;">

            车辆品牌:<%=brandDal.GetByID(busType.BrandID)[0].Name.Trim() %></div>

        <div id="type" style="border-bottom: 1px solid #e7e7e7; position: relative; width: 287px;

            height: 20px; margin: 0px auto; top: 0px; left: 0px;">

            车辆类型:<%=busType.Level.Trim() %></div>

        <div id="seat" style="border-bottom: 1px solid #e7e7e7; position: relative; width: 287px;

            height: 20px; margin: 0px auto; top: 0px; left: 0px;">

            车辆座位:<%=busType.SeatNumber.ToString() %></div>

        <div id="class">

        </div>

        <div style="">

            <span style="font-family: 宋体; font-size: 14px; line-height: 42px; padding-left: 20px;">

                发车时间:</span>

            <input type="text" readonly="readonly" style="position: relative; width: 100px; margin-left: 20px;"

                class="Wdate" onclick="WdatePicker({minDate:'%y-%M-%d',doubleCalendar:true,dateFmt:'yyyy/MM/dd'})"

                id="jjfwtime" />

            <select id="jjfwtime2">

                <option value="06">6点</option>

                <option value="07">7点</option>

                <option value="08">8点</option>

                <option value="09">9点</option>

                <option value="10">10点</option>

                <option value="11">11点</option>

                <option value="12">12点</option>

                <option value="13">13点</option>

                <option value="14">14点</option>

                <option value="15">15点</option>

                <option value="16">16点</option>

                <option value="17">17点</option>

                <option value="18">18点</option>

                <option value="19">19点</option>

                <option value="20">20点</option>

                <option value="21">21点</option>

                <option value="22">22点</option>

                <option value="23">23点</option>

            </select>

            <div id="chufaplace" style="font-family: 宋体; font-size: 14px; line-height: 42px; padding-left: 20px;">

                出发地:<select id="Select1" name="D1" style="position: relative; width: 100px; margin-left: 20px;">

                    <%

                        System.Collections.Generic.List<XL.Model.Address> addressList = new XL.Dal.AddressDal().GetClient("无锡地区");

                        System.Collections.Generic.List<XL.Model.Airdrome> airdromeList = new XL.Dal.AirdromeDal().GetClientAll();

                        foreach (XL.Model.Airdrome airdromeJJ in airdromeList)

                        {

                    %>

                    <option value='<%=airdromeJJ.Name.Trim() %>'>

                        <%=airdromeJJ.Name.Trim()%></option>

                    <%

                        }

                    %>

                </select>

            </div>

            <div id="Destionplace" style="font-family: 宋体; font-size: 14px; line-height: 42px; padding-left: 20px;">

                目的地:<select id="Select2" name="D2" style="position: relative; width: 100px; margin-left: 20px;">

                    <%

                        foreach (XL.Model.Address addressJJ in addressList)

                        {

                    %>

                    <option value='<%=addressJJ.Name.Trim() %>'>

                        <%=addressJJ.Name.Trim()%></option>

                    <%

                        }

                    %>

                </select>

            </div>

            <%

                  }

            %>

        </div>

    </div>

    <div>

        <a href="../x_RentalProcess.aspx" target=_blank;hover="color:black";>开始预订</a>

    </div>

</body>

  

你可能感兴趣的:(asp.net)