home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
66.142.0.142
/
66.142.0.142.tar
/
66.142.0.142
/
viewScheduleupdate.aspx
< prev
next >
Wrap
Text File
|
2010-08-24
|
4KB
|
113 lines
<%@ Page Language="VB" MasterPageFile="masterpage.master" ValidateRequest="false" AutoEventWireup="false" CodeFile="viewScheduleupdate.aspx.vb" Inherits="viewScheduleupdate" CodeFileBaseClass="AspNetMaker7_tfpssnet" %>
<asp:Content ID="Content" ContentPlaceHolderID="Content" runat="server">
<script type="text/javascript">
<!--
// Create page object
var viewSchedule_update = new ew_Page("viewSchedule_update");
// page properties
viewSchedule_update.PageID = "update"; // page ID
var EW_PAGE_ID = viewSchedule_update.PageID; // for backward compatibility
// extend page with ValidateForm function
viewSchedule_update.ValidateForm = function(fobj) {
if (!this.ValidateRequired)
return true; // ignore validation
if (fobj.a_confirm && fobj.a_confirm.value == "F")
return true;
if (!ew_UpdateSelected(fobj)) {
alert('No field selected for update');
return false;
}
var uelm;
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 + "_schStatus"];
uelm = fobj.elements["u" + infix + "_schStatus"];
if (uelm && uelm.checked) {
if (elm && !ew_HasValue(elm))
return ew_OnError(this, elm, "Please enter required field - Status");
}
}
return true;
}
viewSchedule_update.SelectAllKey = function(elem) {
ew_SelectAll(elem);
}
<% If EW_CLIENT_VALIDATE Then %>
viewSchedule_update.ValidateRequired = true; // uses JavaScript validation
<% Else %>
viewSchedule_update.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">Update CUSTOM VIEW: Schedule<br /><br />
<a href="<%= viewSchedule.ReturnUrl %>">Back to List</a></span></p>
<% viewSchedule_update.ShowMessage() %>
<form name="fviewScheduleupdate" id="fviewScheduleupdate" method="post" onsubmit="this.action=location.pathname;return viewSchedule_update.ValidateForm(this);">
<p />
<input type="hidden" name="t" id="t" value="viewSchedule" />
<input type="hidden" name="a_update" id="a_update" value="U" />
<% For i As Integer = 0 to viewSchedule_update.arRecKeys.GetUpperBound(0) %>
<input type="hidden" name="k<%= i+1 %>_key" id="key<%= i+1 %>" value="<%= Server.HtmlEncode(viewSchedule_update.arRecKeys(i)) %>" />
<% Next %>
<table cellspacing="0" class="ewGrid"><tr><td class="ewGridContent">
<div class="ewGridMiddlePanel">
<table cellspacing="0" class="ewTable">
<tr class="ewTableHeader">
<td>Update<input type="checkbox" name="u" id="u" onclick="ew_SelectAll(this);" /></td>
<td>Field Name</td>
<td>New Value</td>
</tr>
<% If viewSchedule.schStatus.Visible Then ' schStatus %>
<tr<%= viewSchedule.schStatus.RowAttributes %>>
<td<%= viewSchedule.schStatus.CellAttributes %>>
<input type="checkbox" name="u_schStatus" id="u_schStatus" value="1"<% If viewSchedule.schStatus.MultiUpdate = "1" Then Response.Write(" checked=""checked""") %> />
</td>
<td<%= viewSchedule.schStatus.CellAttributes %>>Status</td>
<td<%= viewSchedule.schStatus.CellAttributes %>><span id="el_schStatus">
<select id="x_schStatus" name="x_schStatus"<%= viewSchedule.schStatus.EditAttributes %>>
<%
emptywrk = True
If ew_IsArrayList(viewSchedule.schStatus.EditValue) Then
arwrk = viewSchedule.schStatus.EditValue
For rowcntwrk As Integer = 0 To arwrk.Count - 1
If ew_SameStr(arwrk(rowcntwrk)(0), viewSchedule.schStatus.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><%= viewSchedule.schStatus.CustomMsg %></td>
</tr>
<% End If %>
</table>
</div>
</td></tr></table>
<p />
<input type="submit" name="btnAction" id="btnAction" value=" Update " />
</form>
<script language="JavaScript" type="text/javascript">
<!--
// Write your table-specific startup script here
// document.write("page loaded");
//-->
</script>
</asp:Content>