home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
66.142.0.142
/
66.142.0.142.tar
/
66.142.0.142
/
tblEventsadd.aspx
< prev
next >
Wrap
Text File
|
2015-05-13
|
7KB
|
157 lines
<%@ Page Language="VB" MasterPageFile="masterpage.master" ValidateRequest="false" AutoEventWireup="false" CodeFile="tblEventsadd.aspx.vb" Inherits="tblEventsadd" CodeFileBaseClass="AspNetMaker7_tfpssnet" %>
<asp:Content ID="Content" ContentPlaceHolderID="Content" runat="server">
<script type="text/javascript">
<!--
// Create page object
var tblEvents_add = new ew_Page("tblEvents_add");
// page properties
tblEvents_add.PageID = "add"; // page ID
var EW_PAGE_ID = tblEvents_add.PageID; // for backward compatibility
// extend page with ValidateForm function
tblEvents_add.ValidateForm = function(fobj) {
if (!this.ValidateRequired)
return true; // ignore validation
if (fobj.a_confirm && fobj.a_confirm.value == "F")
return true;
var i, elm, aelm, infix;
var rowcnt = (fobj.key_count) ? Number(fobj.key_count.value) : 1;
for (i=0; i<rowcnt; i++) {
infix = (fobj.key_count) ? String(i + 1) : "";
elm = fobj.elements["x" + infix + "_evtTierLevel"];
if (elm && !ew_CheckInteger(elm.value))
return ew_OnError(this, elm, "Invalid number - Tier Level");
elm = fobj.elements["x" + infix + "_evtOverTimePriority"];
if (elm && !ew_CheckInteger(elm.value))
return ew_OnError(this, elm, "Invalid number - Overtime Priority Level");
}
return true;
}
<% If EW_CLIENT_VALIDATE Then %>
tblEvents_add.ValidateRequired = true; // uses JavaScript validation
<% Else %>
tblEvents_add.ValidateRequired = false; // no JavaScript validation
<% End If %>
//-->
</script>
<script language="JavaScript" type="text/javascript">
<!--
// Write your client script here, no need to add script tags.
// To include another .js script, use:
// ew_ClientScriptInclude("my_javascript.js");
//-->
</script>
<p><span class="aspnetmaker">Add to TABLE: Events<br /><br />
<a href="<%= tblEvents.ReturnUrl %>">Go Back</a></span></p>
<% tblEvents_add.ShowMessage() %>
<form name="ftblEventsadd" id="ftblEventsadd" method="post" onsubmit="this.action=location.pathname;return tblEvents_add.ValidateForm(this);">
<p />
<input type="hidden" name="t" id="t" value="tblEvents" />
<input type="hidden" name="a_add" id="a_add" value="A" />
<table cellspacing="0" class="ewGrid"><tr><td class="ewGridContent">
<div class="ewGridMiddlePanel">
<table cellspacing="0" class="ewTable">
<% If tblEvents.evtDescription.Visible Then ' evtDescription %>
<tr<%= tblEvents.evtDescription.RowAttributes %>>
<td class="ewTableHeader">Description</td>
<td<%= tblEvents.evtDescription.CellAttributes %>><span id="el_evtDescription">
<input type="text" name="x_evtDescription" id="x_evtDescription" size="30" maxlength="255" value="<%= tblEvents.evtDescription.EditValue %>"<%= tblEvents.evtDescription.EditAttributes %> />
</span><%= tblEvents.evtDescription.CustomMsg %></td>
</tr>
<% End If %>
<% If tblEvents.evtIsActive.Visible Then ' evtIsActive %>
<tr<%= tblEvents.evtIsActive.RowAttributes%>>
<td class="ewTableHeader">Is Active</td>
<td<%= tblEvents.evtIsActive.CellAttributes%>><span id="el_evtIsActive">
<%
If ew_SameStr(tblEvents.evtIsActive.CurrentValue, "1") Then
selwrk = " checked=""checked"""
Else
selwrk = ""
End If
%>
<input type="checkbox" name="x_evtIsActive" id="x_evtIsActive" value="1"<%= selwrk %><%= tblEvents.evtIsActive.EditAttributes%> />
</span><%= tblEvents.evtIsActive.CustomMsg%></td>
</tr>
<% End If %>
<% If tblEvents.evtAllocateBilling.Visible Then ' evtAllocateBilling %>
<tr<%= tblEvents.evtAllocateBilling.RowAttributes%>>
<td class="ewTableHeader">Allocate Billing</td>
<td<%= tblEvents.evtAllocateBilling.CellAttributes%>><span id="el_evtAllocateBilling">
<%
If ew_SameStr(tblEvents.evtAllocateBilling.CurrentValue, "1") Then
selwrk = " checked=""checked"""
Else
selwrk = ""
End If
%>
<input type="checkbox" name="x_evtAllocateBilling" id="x_evtAllocateBilling" value="1"<%= selwrk %><%= tblEvents.evtAllocateBilling.EditAttributes%> />
</span><%= tblEvents.evtAllocateBilling.CustomMsg%></td>
</tr>
<% End If %>
<% If tblEvents.evtBillingNotes.Visible Then ' evtBillingNotes %>
<tr<%= tblEvents.evtBillingNotes.RowAttributes%>>
<td class="ewTableHeader">Notes</td>
<td<%= tblEvents.evtBillingNotes.CellAttributes%>><span id="el_evtBillingNotes">
<textarea name="x_evtBillingNotes" id="x_evtBillingNotes" cols="35" rows="4"<%= tblEvents.evtBillingNotes.EditAttributes%>><%= tblEvents.evtBillingNotes.EditValue%></textarea>
</span><%= tblEvents.evtBillingNotes.CustomMsg%></td>
</tr>
<% End If %>
<% If tblEvents.evtTierLevel.Visible Then ' evtTierLevel %>
<tr<%= tblEvents.evtTierLevel.RowAttributes%>>
<td class="ewTableHeader">Tier Level<span class="ewRequired"> *</span></td>
<td<%= tblEvents.evtTierLevel.CellAttributes%>><span id="el_evtTierLevel">
<select id="x_evtTierLevel" name="x_evtTierLevel"<%= tblEvents.evtTierLevel.EditAttributes%>>
<%
emptywrk = True
If ew_IsArrayList(tblEvents.evtTierLevel.EditValue) Then
arwrk = tblEvents.evtTierLevel.EditValue
For rowcntwrk As Integer = 0 To arwrk.Count - 1
If ew_SameStr(arwrk(rowcntwrk)(0), tblEvents.evtTierLevel.CurrentValue) Then
selwrk = " selected=""selected"""
emptywrk = False
Else
selwrk = ""
End If
%>
<option value="<%= ew_HtmlEncode(arwrk(rowcntwrk)(0)) %>"<%= selwrk %>>
<%= arwrk(rowcntwrk)(1) %>
</option>
<%
Next
End If
%>
</select>
</span><%= tblEvents.evtTierLevel.CustomMsg%></td>
</tr>
<% End If %>
<% If tblEvents.evtOverTimePriority.Visible Then ' evtOverTimePriority %>
<tr<%= tblEvents.evtOverTimePriority.RowAttributes%>>
<td class="ewTableHeader">Overtime Priority</td>
<td<%= tblEvents.evtOverTimePriority.CellAttributes%>><span id="el_evtOverTimePriority">
<input type="text" name="x_evtOverTimePriority" id="x_evtOverTimePriority" size="30" maxlength="255" value="<%= tblEvents.evtOverTimePriority.EditValue%>"<%= tblEvents.evtOverTimePriority.EditAttributes%> />
</span><%= tblEvents.evtOverTimePriority.CustomMsg%></td>
</tr>
<% End If %>
</table>
</div>
</td></tr></table>
<p />
<input type="submit" name="btnAction" id="btnAction" value=" Add " />
</form>
<script language="JavaScript" type="text/javascript">
<!--
// Write your table-specific startup script here
// document.write("page loaded");
//-->
document.all('x_evtDescription').focus();
</script>
</asp:Content>