calendar.aspx 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="calendar.aspx.cs" Inherits="OA2014.users.calendar" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head id="Head1" runat="server">
  5. <title>日历预览</title>
  6. <link href="../css/all.css" rel="stylesheet" type="text/css" />
  7. <link href="../css/calendars.css" rel="stylesheet" type="text/css" />
  8. </head>
  9. <body style="margin: auto; width:55%;height: 500px;">
  10. <form id="form1" runat="server">
  11. <div>
  12. <div class="ps">
  13. <table class="ps" cellpadding="0" cellspacing="0" >
  14. <tr>
  15. <td class="ps_font">
  16. <asp:DropDownList ID="ddlYear" AutoPostBack="true" runat="server" Width="55" OnTextChanged="ddlYear_TextChanged" />
  17. <asp:DropDownList ID="ddlMonth" AutoPostBack="true" runat="server" Width="40" ontextchanged="ddlMonth_TextChanged" >
  18. <asp:ListItem Text="1" Value="1" />
  19. <asp:ListItem Text="2" Value="2" />
  20. <asp:ListItem Text="3" Value="3" />
  21. <asp:ListItem Text="4" Value="4" />
  22. <asp:ListItem Text="5" Value="5" />
  23. <asp:ListItem Text="6" Value="6" />
  24. <asp:ListItem Text="7" Value="7" />
  25. <asp:ListItem Text="8" Value="8" />
  26. <asp:ListItem Text="9" Value="9" />
  27. <asp:ListItem Text="10" Value="10" />
  28. <asp:ListItem Text="11" Value="11" />
  29. <asp:ListItem Text="12" Value="12" />
  30. </asp:DropDownList>
  31. </td>
  32. <td class="ps_select">
  33. </td>
  34. <td class="ps_add">
  35. <asp:Button ID="btnSetCalendar" runat="server" Text="设 置" OnClick="btnSetCalendar_Click"
  36. CssClass="btn" Style="width: 45px;" />
  37. </td>
  38. </tr>
  39. </table>
  40. </div>
  41. <div class="title">
  42. </div>
  43. <div class="list">
  44. <div class="calendars">
  45. <asp:Calendar ID="calendars" runat="server" OnDayRender="calendars_DayRender" Width="700"
  46. Height="350" TitleFormat="MonthYear" BorderColor="#4577a5" SelectionMode="None"
  47. DayHeaderStyle-BackColor="#e5e5e5" TitleStyle-BackColor="#168ec7" DayHeaderStyle-Font-Bold="false"
  48. TitleStyle-Height="25" TitleStyle-ForeColor="white" NextPrevFormat="FullMonth"
  49. onvisiblemonthchanged="calendars_VisibleMonthChanged">
  50. <DayHeaderStyle BackColor="#E5E5E5" Font-Bold="False" HorizontalAlign="Center"></DayHeaderStyle>
  51. <DayStyle HorizontalAlign="Center" VerticalAlign="Middle" />
  52. <NextPrevStyle ForeColor="White" HorizontalAlign="Left" />
  53. <OtherMonthDayStyle ForeColor="White" HorizontalAlign="Center" VerticalAlign="Middle" />
  54. <SelectedDayStyle HorizontalAlign="Center" VerticalAlign="Middle" />
  55. <SelectorStyle HorizontalAlign="Center" />
  56. <TitleStyle BackColor="#4577a5" ForeColor="White" Height="25px" HorizontalAlign="Center">
  57. </TitleStyle>
  58. <TodayDayStyle HorizontalAlign="Center" BackColor="#4577a5" ForeColor="White" />
  59. <WeekendDayStyle HorizontalAlign="Center" />
  60. </asp:Calendar>
  61. </div>
  62. </div>
  63. </div>
  64. </form>
  65. </body>
  66. </html>