|
<%@ Page Language="vb" AutoEventWireup="false" src="demo4.aspx.vb" Codebehind="demo4.aspx.vb" Inherits="demo4" %>
<%@ Register TagPrefix="cc1" Namespace="rw" Assembly="schedule" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>demo4</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<LINK href="css/demo1.css" type="text/css" rel="stylesheet">
</HEAD>
<body xmlns:cc1="urn:http://www.rekenwonder.com/schedule">
<form id="Form1" method="post" runat="server">
<cc1:ScheduleCalendar id="Schedule1" runat="server" CellPadding="1" TimeFieldsContainDate="True" OnItemCommand="Schedule1_ItemCommand"
Weeks="2" GridLines="Both" Layout="Vertical" EndTimeField="EndTime" StartTimeField="StartTime" BorderColor="Gray"
EndOfTimeScale="1.00:00:00" StartOfTimeScale="08:00:00" StartDate="2005-04-04" ShowValueMarks="True" >
<DateTemplate>
<%# Helper(Container.DataItem) %>
</DateTemplate>
<TimeTemplate>
<%# Container.DataItem.ToShortTimeString() %>
</TimeTemplate>
<DateStyle CssClass="title"></DateStyle>
<ItemStyle CssClass="item"></ItemStyle>
<TimeStyle CssClass="rangeheader"></TimeStyle>
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem,"Task") %>
<asp:LinkButton id=LinkButton1 runat="Server" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"ID") %>' CommandName="Delete">x</asp:LinkButton>
</ItemTemplate>
<BackgroundStyle CssClass="bground"></BackgroundStyle>
</cc1:ScheduleCalendar>
<table width="600">
<tbody>
<tr>
<td vAlign="top" width="50%">
<fieldset><legend>Properties</legend><asp:textbox id="txtWeeks" runat="server" Width="41px">2</asp:textbox><asp:button id="btnWeeks" onclick="btnWeeks_Click" runat="server" Text="Set weeks"></asp:button><br>
<asp:radiobuttonlist id="RadioButtonList1" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow"
RepeatColumns="2" OnSelectedIndexChanged="RadioButtonList1_SelectedIndexChanged" AutoPostBack="True">
<asp:ListItem Value="Horizontal">Horizontal</asp:ListItem>
<asp:ListItem Value="Vertical" Selected="True">Vertical</asp:ListItem>
</asp:radiobuttonlist><br>
<asp:checkbox id="cbTimeScale" runat="server" Text="Full time scale" AutoPostBack="True" OnCheckedChanged="cbTimeScale_CheckedChanged"></asp:checkbox><br>
Time scale interval:
<asp:textbox id="tbInterval" runat="server" Width="53px">60</asp:textbox> minutes
<asp:button id="btnApply" onclick="btnApply_Click" runat="server" Text="Apply" Enabled="False"></asp:button><br>
<span style="WIDTH: 120px">Start of time scale:</span>
<asp:textbox id="tbStart" runat="server" Width="53px">8:00</asp:textbox><br>
<span style="WIDTH: 120px">End of time scale:</span>
<asp:textbox id="tbEnd" runat="server" Width="53px">1.00:00</asp:textbox><br>
<span style="WIDTH: 80px">Start date:</span>
<asp:textbox id="tbStartDate" runat="server" Width="100px"></asp:textbox><asp:button id="btnDate" onclick="btnDate_Click" runat="server" Text="Set date"></asp:button>
<br>
<asp:checkbox id="cbIncludeEnd" runat="server" Text="Include end time" AutoPostBack="True" OnCheckedChanged="cbIncludeEnd_CheckedChanged"></asp:checkbox>
<br>
<asp:CheckBox id="cbShowValueMarks" runat="server" Checked="True" Text="Show value marks" AutoPostBack="True" OnCheckedChanged="cbShowValueMarks_CheckedChanged"></asp:CheckBox>
</fieldset>
</td>
<td width="50%">
<fieldset><legend>Items</legend>
<span style="WIDTH: 120px">Start date and time: </span>
<asp:textbox id="txtStart" runat="server"></asp:textbox><br>
<span style="WIDTH: 120px">End date and time: </span>
<asp:textbox id="txtEnd" runat="server"></asp:textbox><br>
<span style="WIDTH: 120px">Task: </span>
<asp:textbox id="txtTask" runat="server"></asp:textbox><br>
<asp:button id="btnAdd" onclick="btnAdd_Click" runat="server" Text="Add event"></asp:button>
</fieldset>
</td>
</tr>
</tbody>
</table>
</form>
</body>
</HTML>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.