12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="calendar.aspx.cs" Inherits="OA2014.users.calendar" %>
- <!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 id="Head1" runat="server">
- <title>日历预览</title>
- <link href="../css/all.css" rel="stylesheet" type="text/css" />
- <link href="../css/calendars.css" rel="stylesheet" type="text/css" />
- </head>
- <body style="margin: auto; width:55%;height: 500px;">
- <form id="form1" runat="server">
- <div>
- <div class="ps">
- <table class="ps" cellpadding="0" cellspacing="0" >
- <tr>
- <td class="ps_font">
- <asp:DropDownList ID="ddlYear" AutoPostBack="true" runat="server" Width="55" OnTextChanged="ddlYear_TextChanged" />
- 年
- <asp:DropDownList ID="ddlMonth" AutoPostBack="true" runat="server" Width="40" ontextchanged="ddlMonth_TextChanged" >
- <asp:ListItem Text="1" Value="1" />
- <asp:ListItem Text="2" Value="2" />
- <asp:ListItem Text="3" Value="3" />
- <asp:ListItem Text="4" Value="4" />
- <asp:ListItem Text="5" Value="5" />
- <asp:ListItem Text="6" Value="6" />
- <asp:ListItem Text="7" Value="7" />
- <asp:ListItem Text="8" Value="8" />
- <asp:ListItem Text="9" Value="9" />
- <asp:ListItem Text="10" Value="10" />
- <asp:ListItem Text="11" Value="11" />
- <asp:ListItem Text="12" Value="12" />
- </asp:DropDownList>
- 月
- </td>
- <td class="ps_select">
- </td>
- <td class="ps_add">
- <asp:Button ID="btnSetCalendar" runat="server" Text="设 置" OnClick="btnSetCalendar_Click"
- CssClass="btn" Style="width: 45px;" />
- </td>
- </tr>
- </table>
- </div>
- <div class="title">
- </div>
- <div class="list">
- <div class="calendars">
- <asp:Calendar ID="calendars" runat="server" OnDayRender="calendars_DayRender" Width="700"
- Height="350" TitleFormat="MonthYear" BorderColor="#4577a5" SelectionMode="None"
- DayHeaderStyle-BackColor="#e5e5e5" TitleStyle-BackColor="#168ec7" DayHeaderStyle-Font-Bold="false"
- TitleStyle-Height="25" TitleStyle-ForeColor="white" NextPrevFormat="FullMonth"
- onvisiblemonthchanged="calendars_VisibleMonthChanged">
- <DayHeaderStyle BackColor="#E5E5E5" Font-Bold="False" HorizontalAlign="Center"></DayHeaderStyle>
- <DayStyle HorizontalAlign="Center" VerticalAlign="Middle" />
- <NextPrevStyle ForeColor="White" HorizontalAlign="Left" />
- <OtherMonthDayStyle ForeColor="White" HorizontalAlign="Center" VerticalAlign="Middle" />
- <SelectedDayStyle HorizontalAlign="Center" VerticalAlign="Middle" />
- <SelectorStyle HorizontalAlign="Center" />
- <TitleStyle BackColor="#4577a5" ForeColor="White" Height="25px" HorizontalAlign="Center">
- </TitleStyle>
- <TodayDayStyle HorizontalAlign="Center" BackColor="#4577a5" ForeColor="White" />
- <WeekendDayStyle HorizontalAlign="Center" />
- </asp:Calendar>
- </div>
- </div>
- </div>
- </form>
- </body>
- </html>
|