Count Lines in Pages

Contents of Page: mmConfigEdit.Asp Number of Lines: 75 Last Modified: 8/22/2018 1:32:52 PM
0001: <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
0002: 
0003: 
0004: <!--#include file="include/constants.inc"-->
0005: <!--#include FILE="include/adovbs.inc" -->
0006: 
0007: <%
0008: 	ID = Trim(Request.QueryString("id"))
0009: 	If ID = "" Then Response.Redirect("mmConfig_Maint.asp")
0010: 	
0011: 	If ID = 0 Then
0012: 		action = "Add"	
0013: 		nodeName = ""
0014: 		parentID = ""
0015: 		typeValue = "R"
0016: 		link = ""
0017: 	Else
0018: 		action = "Edit"
0019: 		Set rs = Server.CreateObject("ADODB.Recordset")
0020: 		sqlString = "SELECT * FROM mmConfig WHERE ID = " & ID
0021: 		rs.Open sqlString, Conn, adOpenDynamic, adLockOptimistic, adCmdText
0022: 
0023: 		wcElement = rs("Element").Value
0024: 		wcValue = rs("Value").Value
0025: 		wcDescription = rs("Description").Value
0026: 			
0027: 		rs.Close	
0028: 	End If
0029: %>
0030: 
0031: <html>
0032: <head>
0033: <title>Untitled Document</title>
0034: 	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
0035: 	<link href="mm.css" rel="stylesheet" type="text/css">
0036: 
0037: </head>
0038: 
0039: <body bgcolor="#FFFFFF" onLoad="document.node.NodeID.select()">
0040: 
0041: 	<form method="post" action="mmConfigUpdate.asp" name="node" onSubmit="return editNode()">
0042: 		<input type="hidden" name="action" value="<%= action %>">
0043: 		<input type="hidden" name="ID" value="<%= ID %>">
0044: 		<table border="0" cellpadding="2" cellspacing="1" width="300">
0045: 	
0046: 			<tr>
0047: 				<td class="norm" bgcolor="#f8f8f8" width="40%" align="right">
0048: 					Element:</td>
0049: 				<td class="normbold" bgcolor="#f8f8f8" width="60%">
0050: 					<input type="text" name="Element" value="<%= wcElement %>" style="width:200px" class="norm" size="50"></td>
0051: 			</tr>
0052: 
0053: 			<tr>
0054: 				<td class="normbold" align="right" >Value:</td>
0055: 				<td class="normbold" >
0056: 					<input type="text" name="Value" value="<%= wcValue %>" style="width:380; height:21" class="norm" size="100"></td>
0057: 			</tr>
0058: 			<tr>
0059: 				<td class="normbold" align="right" >Description:</td>
0060: 				<td class="normbold" >
0061: 					<input type="text" name="Description" value="<%= wcDescription %>" style="width:380; height:21" class="norm" size="100"></td>
0062: 			</tr>
0063:  
0064: 		<tr>
0065: <td></td>
0066: 				<td class="norm" colspan="2">
0067: 					<input type="submit" value="Update Config Entry" class="norm">
0068: 					<input type="button" value="Cancel" class="norm" onClick="history.back(-1)"></td>
0069: 			</tr>
0070: 		</table>
0071: 		</div>
0072: 	</form>
0073: 
0074: </body>
0075: </html>