home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
66.142.0.142
/
66.142.0.142.tar
/
66.142.0.142
/
tblMessageadd.aspx
< prev
next >
Wrap
Text File
|
2010-08-24
|
5KB
|
110 lines
<%@ Page Language="VB" MasterPageFile="masterpage.master" ValidateRequest="false" AutoEventWireup="false" CodeFile="tblMessageadd.aspx.vb" Inherits="tblMessageadd" CodeFileBaseClass="AspNetMaker7_tfpssnet" %>
<asp:Content ID="Content" ContentPlaceHolderID="Content" runat="server">
<script type="text/javascript">
<!--
// Create page object
var tblMessage_add = new ew_Page("tblMessage_add");
// page properties
tblMessage_add.PageID = "add"; // page ID
var EW_PAGE_ID = tblMessage_add.PageID; // for backward compatibility
// extend page with ValidateForm function
tblMessage_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 + "_msgStartDate"];
if (elm && !ew_CheckUSDate(elm.value))
return ew_OnError(this, elm, "Incorrect date, format = mm/dd/yyyy - Start Date");
elm = fobj.elements["x" + infix + "_msgEndDate"];
if (elm && !ew_CheckUSDate(elm.value))
return ew_OnError(this, elm, "Incorrect date, format = mm/dd/yyyy - End Date");
}
return true;
}
<% If EW_CLIENT_VALIDATE Then %>
tblMessage_add.ValidateRequired = true; // uses JavaScript validation
<% Else %>
tblMessage_add.ValidateRequired = false; // no JavaScript validation
<% End If %>
//-->
</script>
<link rel="stylesheet" type="text/css" media="all" href="calendar/calendar-win2k-1.css" title="win2k-1" />
<script type="text/javascript" src="calendar/calendar.js"></script>
<script type="text/javascript" src="calendar/lang/calendar-en.js"></script>
<script type="text/javascript" src="calendar/calendar-setup.js"></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: Message<br /><br />
<a href="<%= tblMessage.ReturnUrl %>">Go Back</a></span></p>
<% tblMessage_add.ShowMessage() %>
<form name="ftblMessageadd" id="ftblMessageadd" method="post" onsubmit="this.action=location.pathname;return tblMessage_add.ValidateForm(this);">
<p />
<input type="hidden" name="t" id="t" value="tblMessage" />
<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 tblMessage.msgText.Visible Then ' msgText %>
<tr<%= tblMessage.msgText.RowAttributes %>>
<td class="ewTableHeader">Text</td>
<td<%= tblMessage.msgText.CellAttributes %>><span id="el_msgText">
<input type="text" name="x_msgText" id="x_msgText" size="30" maxlength="255" value="<%= tblMessage.msgText.EditValue %>"<%= tblMessage.msgText.EditAttributes %> />
</span><%= tblMessage.msgText.CustomMsg %></td>
</tr>
<% End If %>
<% If tblMessage.msgStartDate.Visible Then ' msgStartDate %>
<tr<%= tblMessage.msgStartDate.RowAttributes %>>
<td class="ewTableHeader">Start Date</td>
<td<%= tblMessage.msgStartDate.CellAttributes %>><span id="el_msgStartDate">
<input type="text" name="x_msgStartDate" id="x_msgStartDate" value="<%= tblMessage.msgStartDate.EditValue %>"<%= tblMessage.msgStartDate.EditAttributes %> />
<img src="images/calendar.png" id="cal_x_msgStartDate" name="cal_x_msgStartDate" alt="Pick a date" style="cursor:pointer;cursor:hand;" />
<script type="text/javascript">
Calendar.setup({
inputField : "x_msgStartDate", // ID of the input field
ifFormat : "%m/%d/%Y", // the date format
button : "cal_x_msgStartDate" // ID of the button
});
</script>
</span><%= tblMessage.msgStartDate.CustomMsg %></td>
</tr>
<% End If %>
<% If tblMessage.msgEndDate.Visible Then ' msgEndDate %>
<tr<%= tblMessage.msgEndDate.RowAttributes %>>
<td class="ewTableHeader">End Date</td>
<td<%= tblMessage.msgEndDate.CellAttributes %>><span id="el_msgEndDate">
<input type="text" name="x_msgEndDate" id="x_msgEndDate" value="<%= tblMessage.msgEndDate.EditValue %>"<%= tblMessage.msgEndDate.EditAttributes %> />
<img src="images/calendar.png" id="cal_x_msgEndDate" name="cal_x_msgEndDate" alt="Pick a date" style="cursor:pointer;cursor:hand;" />
<script type="text/javascript">
Calendar.setup({
inputField : "x_msgEndDate", // ID of the input field
ifFormat : "%m/%d/%Y", // the date format
button : "cal_x_msgEndDate" // ID of the button
});
</script>
</span><%= tblMessage.msgEndDate.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");
//-->
</script>
</asp:Content>