|
<%@ Page Language="vb" AutoEventWireup="false" src="demo2.aspx.vb" Codebehind="demo2.aspx.vb" Inherits="demo2" %>
<%@ Register TagPrefix="cc1" Namespace="rw" Assembly="schedule" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>demo2</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<link href="css/demo2.css" type="text/css" rel="stylesheet">
</HEAD>
<body xmlns:cc1="urn:http://www.rekenwonder.com/schedule">
<form id="Form1" method="post" runat="server">
<cc1:ScheduleGeneral id="Schedule1" runat="server" GridLines="Both" SeparateDateHeader="True"
DataRangeStartField="BeginTime" DataRangeEndField="EndTime" TitleField="Name" StartOfTimeScale="8:00"
EndOfTimeScale="18:00" TimeScaleInterval="60" Layout="Horizontal" CellSpacing="0"
ShowValueMarks="True" EnableEmptySlotClick="True"
OnEmptySlotClick="Schedule1_EmptySlotClick">
<TitleTemplate>
<%# Container.DataItem %>
</TitleTemplate>
<AlternatingItemStyle CssClass="normal2"></AlternatingItemStyle>
<RangeHeaderTemplate>
<%# CDate(Container.DataItem).ToString("t") %>
</RangeHeaderTemplate>
<DateHeaderTemplate>
<%# CDate(Container.DataItem).ToString("dddd M/d/yyyy") %>
</DateHeaderTemplate>
<TitleStyle CssClass="heading"></TitleStyle>
<ItemStyle CssClass="normal"></ItemStyle>
<ItemTemplate>
<asp:LinkButton Text='<%# DataBinder.Eval(Container.DataItem,"Task") %>' runat="server" CommandName="Edit" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"ID") %>' />
</ItemTemplate>
<RangeHeaderStyle CssClass="heading"></RangeHeaderStyle>
<BackgroundStyle CssClass="empty"></BackgroundStyle>
</cc1:ScheduleGeneral>
<br>
<table width="600">
<tbody>
<tr>
<td valign="top" width="50%">
<fieldset>
<legend>
Properties</legend>
<asp:CheckBox id="cbDateColumn" runat="server" Checked="True" AutoPostBack="True" Text="Header column for date"></asp:CheckBox>
<br>
<asp:RadioButtonList id="RadioButtonList1" runat="server" AutoPostBack="True" RepeatColumns="2" RepeatLayout="Flow"
RepeatDirection="Horizontal">
<asp:ListItem Value="Horizontal" Selected="True">Horizontal</asp:ListItem>
<asp:ListItem Value="Vertical">Vertical</asp:ListItem>
</asp:RadioButtonList>
<br>
<asp:CheckBox id="cbTimeScale" runat="server" AutoPostBack="True" Text="Full time scale"></asp:CheckBox>
<br>
Time scale interval:
<asp:TextBox id="tbInterval" runat="server" Width="53px">60</asp:TextBox>
minutes
<asp:Button id="btnApply" runat="server" Text="Apply" Enabled="False"></asp:Button>
<br>
<span style="WIDTH: 120px">Start of time scale:</span>
<asp:TextBox id="tbStartTS" runat="server" Width="53px">8:00</asp:TextBox>
<br>
<span style="WIDTH: 120px">End of time scale:</span>
<asp:TextBox id="tbEndTS" runat="server" Width="53px">18:00</asp:TextBox>
<br>
<asp:CheckBox id="cbIncludeEnd" runat="server" AutoPostBack="True" Text="Include End Time"></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 valign="top" width="50%">
<fieldset id="fsEdit" runat="Server" visible="False">
<legend>
Edit item</legend>
<span style="WIDTH: 80px">Start time: </span>
<asp:TextBox id="tbStart" runat="server"></asp:TextBox>
<br>
<span style="WIDTH: 80px">End time: </span>
<asp:TextBox id="tbEnd" runat="server"></asp:TextBox>
<br>
<span style="WIDTH: 80px">Name: </span>
<asp:TextBox id="tbName" runat="server"></asp:TextBox>
<br>
<span style="WIDTH: 80px">Task: </span>
<asp:TextBox id="tbTask" runat="server"></asp:TextBox>
<br>
<asp:Button id="btnUpdate" runat="server" Text="Add event"></asp:Button>
<asp:Button id="btnDelete" runat="server" Text="Delete"></asp:Button>
<asp:Button id="btnCancel" runat="server" Text="Cancel"></asp:Button>
</fieldset>
<asp:LinkButton id="lbAdd" runat="server">add new event</asp:LinkButton>
</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.