I dette særtema ser vi på, hvordan cloud og AI bliver fundamentet for virksomhedernes digitale forretning, og hvordan de nye muligheder for automatisering og forretningsværdi kan udnyttes uden at miste overblik, sikkerhed og menneskelig kontrol.
// set the form action variable var MM_editAction = Request.ServerVariables("SCRIPT_NAME"); if (Request.QueryString) { MM_editAction += "?" + Request.QueryString; }
// boolean to abort record edit var MM_abortEdit = false;
// query string to execute var MM_editQuery = ""; %> <% // *** Insert Record: set variables tekst = Replace(Request.form("textfield"),vbCRLf,"<br>") if (String(Request("MM_insert")) == "form3") {
var MM_editConnection = MM_Login_STRING; var MM_editTable = "forum_thread"; var MM_editRedirectUrl = "/login/Forum/Thread.asp"; var MM_fieldsStr = "textfield|value|hiddenField|value|hiddenField2|value"; var MM_columnsStr = "Message|',none,''|Author_ID|none,none,NULL|Topic_ID|none,none,NULL";
// create the MM_fields and MM_columns arrays var MM_fields = MM_fieldsStr.split("|"); var MM_columns = MM_columnsStr.split("|");
// set the form values for (var i=0; i+1 < MM_fields.length; i+=2) { MM_fields[i+1] = String(Request.Form(MM_fields[i])); }
// append the query string to the redirect URL if (MM_editRedirectUrl && Request.QueryString && Request.QueryString.Count > 0) { MM_editRedirectUrl += ((MM_editRedirectUrl.indexOf('?') == -1)?"?":"&") + Request.QueryString; } } %> <% // *** Insert Record: construct a sql insert statement and execute it
if (String(Request("MM_insert")) != "undefined") {
if (!MM_abortEdit) { // execute the insert var MM_editCmd = Server.CreateObject('ADODB.Command'); MM_editCmd.ActiveConnection = MM_editConnection; MM_editCmd.CommandText = MM_editQuery; MM_editCmd.Execute(); MM_editCmd.ActiveConnection.Close();
if (MM_editRedirectUrl) { Response.Redirect(MM_editRedirectUrl); } }
} %> <% var Thread__MMColParam = "1"; if (String(Request.QueryString("Topic_ID")) != "undefined" && String(Request.QueryString("Topic_ID")) != "") { Thread__MMColParam = String(Request.QueryString("Topic_ID")); } %> <% var Thread = Server.CreateObject("ADODB.Recordset"); Thread.ActiveConnection = MM_Login_STRING; Thread.Source = "SELECT * FROM forum_thread WHERE Topic_ID = "+ Thread__MMColParam.replace(/'/g, "''") + " ORDER BY Thread_ID DESC"; Thread.CursorType = 0; Thread.CursorLocation = 2; Thread.LockType = 1; Thread.Open(); var Thread_numRows = 0; %> <% var Logo = Server.CreateObject("ADODB.Recordset"); Logo.ActiveConnection = MM_Login_STRING; Logo.Source = "SELECT * FROM Firma_Logo"; Logo.CursorType = 0; Logo.CursorLocation = 2; Logo.LockType = 1; Logo.Open(); var Logo_numRows = 0; %> <% var Status123__MMColParam = "1"; if (String(Request.QueryString("Topic_ID")) != "undefined" && String(Request.QueryString("Topic_ID")) != "") { Status123__MMColParam = String(Request.QueryString("Topic_ID")); } %> <% var Status123 = Server.CreateObject("ADODB.Recordset"); Status123.ActiveConnection = MM_Login_STRING; Status123.Source = "SELECT * FROM Status_test WHERE Topic_ID = "+ Status123__MMColParam.replace(/'/g, "''") + " ORDER BY Thread_ID DESC"; Status123.CursorType = 0; Status123.CursorLocation = 2; Status123.LockType = 1; Status123.Open(); var Status123_numRows = 0; %> <% var Me__MMColParam = "1"; if (String(Session("MM_username")) != "undefined" && String(Session("MM_username")) != "") { Me__MMColParam = String(Session("MM_username")); } %> <% var Me = Server.CreateObject("ADODB.Recordset"); Me.ActiveConnection = MM_Login_STRING; Me.Source = "SELECT * FROM Login_test WHERE Username = '"+ Me__MMColParam.replace(/'/g, "''") + "'"; Me.CursorType = 0; Me.CursorLocation = 2; Me.LockType = 1; Me.Open(); var Me_numRows = 0; %> <% var Repeat1__numRows = 10; var Repeat1__index = 0; Status123_numRows += Repeat1__numRows; %> <% var MM_paramName = ""; %>
<% // *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters
// create the list of parameters which should not be maintained var MM_removeList = "&index="; if (MM_paramName != "") MM_removeList += "&" + MM_paramName.toLowerCase() + "="; var MM_keepURL="",MM_keepForm="",MM_keepBoth="",MM_keepNone="";
// add the URL parameters to the MM_keepURL string for (var items=new Enumerator(Request.QueryString); !items.atEnd(); items.moveNext()) { var nextItem = "&" + items.item().toLowerCase() + "="; if (MM_removeList.indexOf(nextItem) == -1) { MM_keepURL += "&" + items.item() + "=" + Server.URLencode(Request.QueryString(items.item())); } }
// add the Form variables to the MM_keepForm string for (var items=new Enumerator(Request.Form); !items.atEnd(); items.moveNext()) { var nextItem = "&" + items.item().toLowerCase() + "="; if (MM_removeList.indexOf(nextItem) == -1) { MM_keepForm += "&" + items.item() + "=" + Server.URLencode(Request.Form(items.item())); } }
// create the Form + URL string and remove the intial '&' from each of the strings MM_keepBoth = MM_keepURL + MM_keepForm; if (MM_keepBoth.length > 0) MM_keepBoth = MM_keepBoth.substring(1); if (MM_keepURL.length > 0) MM_keepURL = MM_keepURL.substring(1); if (MM_keepForm.length > 0) MM_keepForm = MM_keepForm.substring(1); %> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- @import url("Css/Repeat.css"); @import url("Css/Tables.css"); --> </style> <style type="text/css"> <!-- @import url("/Forum/Css/Tabel2.css"); --> </style> <link href="/Forum/Css/linket.css" rel="stylesheet" type="text/css"> </head> <body> <p align="center"><font color="#0066FF" size="+7"><strong> <input name="imageField5" type="image" src="%5Cbilleder%5C<%=(Logo.Fields.Item("Link").Value)%>" border="0"> </strong></font></p> <form name="form1" method="post" action="">
og i andre for også lidt point som tak for hjælpen...
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.