Modificare il file:
\iwgallery\admin\inc_configuration.asp
<% If LCase(Request.Cookies("IWGalleryAccess")) <> "amministratore" Then Response.Redirect("logout.asp?reason=Accesso negato") %> <!--#include virtual="/iwgallery/Connections/connIWGallery.asp" --> <% ' *** Edit Operations: declare variables Dim MM_editAction Dim MM_abortEdit Dim MM_editQuery Dim MM_editCmd Dim MM_editConnection Dim MM_editTable Dim MM_editRedirectUrl Dim MM_editColumn Dim MM_recordId Dim MM_fieldsStr Dim MM_columnsStr Dim MM_fields Dim MM_columns Dim MM_typeArray Dim MM_formVal Dim MM_delim Dim MM_altVal Dim MM_emptyVal Dim MM_i MM_editAction = CStr(Request.ServerVariables("SCRIPT_NAME")) If (Request.QueryString <> "") Then MM_editAction = MM_editAction & "?" & Server.HTMLEncode(Request.QueryString) End If ' boolean to abort record edit MM_abortEdit = false ' query string to execute MM_editQuery = "" %> <% ' *** Update Record: set variables If (CStr(Request("MM_update")) = "form1" And CStr(Request("MM_recordId")) <> "") Then MM_editConnection = MM_connIWGallery_STRING MM_editTable = "CONFIGURATION" MM_editColumn = "CON_ID" MM_recordId = "" + Request.Form("MM_recordId") + "" MM_editRedirectUrl = "configuration.asp?s=1" MM_fieldsStr = "CON_TITLE|value|CON_URL|value|CON_ADMIN_EMAIL|value|CON_DESCRIPTION|value|CON_KEYWORDS|value|CON_PAGE_SIZE|value|CON_LEFT_SIZE|value|CON_ALIGN|value|CON_THEME|value|CON_IMG_FULL_WIDTH|value|CON_IMG_FULL_HEIGHT|value|CON_IMG_THUMB|value|CON_IMG_QUALITY|value|CON_ROWS|value|CON_COLS|value|CON_PRIVATE|value|CON_REGISTER|value|CON_APPROVE|value|EDITOR|value|CON_FOOTER|value|CON_ZIP|value" MM_columnsStr = "CON_TITLE|',none,''|CON_URL|',none,''|CON_ADMIN_EMAIL|',none,''|CON_DESCRIPTION|',none,''|CON_KEYWORDS|',none,''|CON_PAGE_SIZE|',none,''|CON_LEFT_SIZE|',none,''|CON_ALIGN|',none,''|CON_THEME|',none,''|CON_IMG_FULL_WIDTH|',none,''|CON_IMG_FULL_HEIGHT|',none,''|CON_IMG_THUMB|',none,''|CON_IMG_QUALITY|',none,''|CON_ROWS|none,none,NULL|CON_COLS|none,none,NULL|CON_PRIVATE|none,none,NULL|CON_REGISTER|none,1,0|CON_APPROVE|none,1,0|CON_TERMS|',none,''|CON_FOOTER|',none,''|CON_ZIP|none,1,0" ' create the MM_fields and MM_columns arrays MM_fields = Split(MM_fieldsStr, "|") MM_columns = Split(MM_columnsStr, "|") ' set the form values For MM_i = LBound(MM_fields) To UBound(MM_fields) Step 2 MM_fields(MM_i+1) = CStr(Request.Form(MM_fields(MM_i))) Next ' append the query string to the redirect URL If (MM_editRedirectUrl <> "" And Request.QueryString <> "") Then If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0 And Request.QueryString <> "") Then MM_editRedirectUrl = MM_editRedirectUrl & "?" & Request.QueryString Else MM_editRedirectUrl = MM_editRedirectUrl & "&" & Request.QueryString End If End If End If %> <% ' *** Update Record: construct a sql update statement and execute it If (CStr(Request("MM_update")) <> "" And CStr(Request("MM_recordId")) <> "") Then ' create the sql update statement MM_editQuery = "update " & MM_editTable & " set " For MM_i = LBound(MM_fields) To UBound(MM_fields) Step 2 MM_formVal = MM_fields(MM_i+1) MM_typeArray = Split(MM_columns(MM_i+1),",") MM_delim = MM_typeArray(0) If (MM_delim = "none") Then MM_delim = "" MM_altVal = MM_typeArray(1) If (MM_altVal = "none") Then MM_altVal = "" MM_emptyVal = MM_typeArray(2) If (MM_emptyVal = "none") Then MM_emptyVal = "" If (MM_formVal = "") Then MM_formVal = MM_emptyVal Else If (MM_altVal <> "") Then MM_formVal = MM_altVal ElseIf (MM_delim = "'") Then ' escape quotes MM_formVal = "'" & Replace(MM_formVal,"'","''") & "'" Else MM_formVal = MM_delim + MM_formVal + MM_delim End If End If If (MM_i <> LBound(MM_fields)) Then MM_editQuery = MM_editQuery & "," End If MM_editQuery = MM_editQuery & MM_columns(MM_i) & " = " & MM_formVal Next MM_editQuery = MM_editQuery & " where " & MM_editColumn & " = " & MM_recordId If (Not MM_abortEdit) Then ' execute the update Set 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 <> "") Then Response.Redirect(MM_editRedirectUrl) End If End If End If %> <% Set rsConfiguration = Server.CreateObject("ADODB.Recordset") rsConfiguration.ActiveConnection = MM_connIWGallery_STRING rsConfiguration.Source = "SELECT * FROM CONFIGURATION" rsConfiguration.CursorType = 0 rsConfiguration.CursorLocation = 2 rsConfiguration.LockType = 1 rsConfiguration.Open() %> <script type="text/JavaScript"> <!-- function WAtrimIt(theString,leaveLeft,leaveRight) { if (!leaveLeft) { while (theString.charAt(0) == " ") theString = theString.substring(1); } if (!leaveRight) { while (theString.charAt(theString.length-1) == " ") theString = theString.substring(0,theString.length-1); } return theString; } function WAAddError(formElement,errorMsg,focusIt,stopIt) { if (document.WAFV_Error) { document.WAFV_Error += "\n" + errorMsg; } else { document.WAFV_Error = errorMsg; } if (!document.WAFV_InvalidArray) { document.WAFV_InvalidArray = new Array(); } document.WAFV_InvalidArray[document.WAFV_InvalidArray.length] = formElement; if (focusIt && !document.WAFV_Focus) { document.WAFV_Focus = focusIt; } if (stopIt == 1) { document.WAFV_Stop = true; } else if (stopIt == 2) { formElement.WAFV_Continue = true; } else if (stopIt == 3) { formElement.WAFV_Stop = true; formElement.WAFV_Continue = false; } } function WAValidateRQ(formElement,errorMsg,focusIt,stopIt,trimWhite,inputType) { var isValid = true; if (!document.WAFV_Stop && !formElement.WAFV_Stop) { if (inputType == "select") { if (formElement.selectedIndex == -1) { isValid = false; } else if (!formElement.options[formElement.selectedIndex].value || formElement.options[formElement.selectedIndex].value == "") { isValid = false; } } else if (inputType == "checkbox") { if (formElement.length) { isValid = false; focusIt = false; for (var x=0; x<formElement.length ; x++) { if (formElement[x].checked && formElement[x].value!="") { isValid = true; break; } } } else if (!formElement.checked) isValid = false; } else if (inputType == "radio") { isValid = false; if (formElement.checked) isValid = true; } else if (inputType == "radiogroup") { isValid = false; for (var x=0; x<formElement.length; x++) { if (formElement[x].checked && formElement[x].value!="") { isValid = true; break; } } formElement = formElement[0]; } else { var value = formElement.value; if (trimWhite) { value = WAtrimIt(value); } if (value == "") { isValid = false; } } } if (!isValid) { WAAddError(formElement,errorMsg,focusIt,stopIt); } } function WAValidateUR(formElement,value,errorMsg,force,reformat,focusIt,stopIt,required) { var isValid = true; if ((!document.WAFV_Stop && !formElement.WAFV_Stop) && !(!required && value=="")) { if (force.toLowerCase() == "none") { if (value.indexOf(":")>=0) isValid = false; } if (value.indexOf("?")!=value.lastIndexOf("?") || value.indexOf(" ") >= 0) { isValid = false; } if (isValid) { var valURL = value; if (valURL.indexOf(":")>=0) { valURL = valURL.substring(valURL.indexOf(":")+1); } if (valURL.indexOf("?")>0) { valURL = valURL.substring(0,valURL.indexOf("?")); } if (valURL.indexOf(";") >= 0 || valURL.indexOf(":") >= 0 || valURL.indexOf("&") >= 0 || valURL.indexOf("=") >= 0 || valURL.indexOf(",") >= 0) { isValid = false; } } if (force.toLowerCase() != "false" && force.toLowerCase() != "none" && isValid) { force = force.replace(/\s*,\s*/g,","); force = force.split(","); isValid = false; for (var x=0; x<force.length && !isValid; x++) { if (value.toLowerCase().indexOf(force[x].toLowerCase())==0) isValid = true; } } } if (required && value=="") isValid = false; if (!isValid) { WAAddError(formElement,errorMsg,focusIt,stopIt); } else { if (reformat!="none" && String(reformat).toLowerCase() != "false") { if (value.indexOf(reformat)!=0) { if (value.indexOf(":")>=0) { value = value.substring(value.indexOf(":")+1); while (value.charAt(0)=="/") value = value.substring(1); } formElement.value = reformat+value; } } else if (String(reformat).toLowerCase()=="false") { if (value.indexOf(":")>=0) { value = value.substring(value.indexOf(":")+1); while (value.charAt(0)=="/") value = value.substring(1); formElement.value = value; } } } } function WAValidateEM(formElement,value,errorMsg,focusIt,stopIt,required) { var isValid = true; if ((!document.WAFV_Stop && !formElement.WAFV_Stop) && !(!required && value=="")) { var knownDomsPat = /^(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum)$/; var emailPat = /^(.+)@(.+)$/; var accepted = "\[^\\s\\(\\)><@,;:\\\\\\\"\\.\\[\\]\]+"; var quotedUser = "(\"[^\"]*\")"; var ipDomainPat = /^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/; var section = "(" + accepted + "|" + quotedUser + ")"; var userPat = new RegExp("^" + section + "(\\." + section + ")*$"); var domainPat = new RegExp("^" + accepted + "(\\." + accepted +")*$"); var theMatch = value.match(emailPat); var acceptedPat = new RegExp("^" + accepted + "$"); var userName = ""; var domainName = ""; if (theMatch==null) { isValid = false; } else { userName = theMatch[1]; domainName = theMatch[2]; var domArr = domainName.split("."); var IPArray = domainName.match(ipDomainPat); for (x=0; x < userName.length; x++) { if (userName.charCodeAt(x) > 127) { isValid = false; } } for (x=0; x < domainName.length; x++) { if (domainName.charCodeAt(x) > 127) { isValid = false; } } if (userName.match(userPat) == null) { isValid = false; } if (IPArray != null) { for (var x=1; x<=4; x++) { if (IPArray[x] > 255) { isValid = false; } } } for (x=0; x < domArr.length; x++) { if (domArr[x].search(acceptedPat) == -1 || domArr[x].length == 0) { isValid = false; } } if (domArr[domArr.length-1].length !=2 && domArr[domArr.length-1].search(knownDomsPat) == -1) { isValid = false; } if (domArr.length < 2) { isValid = false; } } } if (!isValid) { WAAddError(formElement,errorMsg,focusIt,stopIt); } } function WAValidateAN(formElement,value,errorMsg,allowUpper,allowLower,allowNumbers,allowSpace,extraChars,focusIt,stopIt,required) { var isValid = true; extraChars = extraChars.replace(/"/g,'"'); if ((!document.WAFV_Stop && !formElement.WAFV_Stop) || formElement.WAFV_Continue) { for (var x=0; x<value.length; x++) { var charGood = false; var nextChar = value.charAt(x); var charCode = value.charCodeAt(x); if (allowLower) { if (charCode >= 97 && charCode <= 122) { charGood = true; } } if (allowUpper) { if (charCode >= 65 && charCode <= 90) { charGood = true; } } if (allowNumbers) { if (charCode >= 48 && charCode <= 57) { charGood = true; } } if (allowSpace) { if (nextChar == " ") { charGood = true; } } if (extraChars) { if (unescape(extraChars).indexOf(nextChar) >= 0) { charGood = true; } } if (!charGood) { isValid = false; x = value.length; } } if (required && value=="") isValid = false; } if (!isValid) { WAAddError(formElement,errorMsg,focusIt,stopIt); } } function WAValidateNM(formElement,errorMsg,minLength,maxLength,allowDecimals,roundDecimals,reformatDecimals,punctuationMarks,focusIt,stopIt,required) { var isValid = true; var theThousand = punctuationMarks.charAt(0); var theDecimal = punctuationMarks.charAt(1); var theCheck = 11/10; var trueDecimal = (String(theCheck).charAt(1)); var value = formElement.value; var decimalIndex = value.length; if (punctuationMarks.indexOf(trueDecimal)<0 && value.indexOf(trueDecimal)>=0) { isValid = false; } if (value.lastIndexOf(theDecimal)>=0) { decimalIndex = value.lastIndexOf(theDecimal); } while (value.indexOf(theThousand)>=0) { decimalIndex = value.length; if (value.lastIndexOf(theDecimal)>=0) { decimalIndex = value.lastIndexOf(theDecimal); } if ((decimalIndex-(value.lastIndexOf(theThousand)+1))%3 != 0) isValid = false; value = value.substring(0,value.lastIndexOf(theThousand)) + value.substring(value.lastIndexOf(theThousand)+1); } if (trueDecimal != theDecimal) { while (value.indexOf(theDecimal)>=0) { value = value.substring(0,value.indexOf(theDecimal)) + trueDecimal + value.substring(value.indexOf(theDecimal)+1); } } if ((!document.WAFV_Stop && !formElement.WAFV_Stop) && !(!required && value=="")) { for (var x=0; x<value.length; x++) { if ((value.charAt(x)<0 || value.charAt(x) > 9) && (value.charAt(x) != " " && value.charAt(x) != "," && value.charAt(x) != ".")) { isValid = false; } } if (value == "") { isValid = false; } var oldVal = String(value); if (oldVal.indexOf(trueDecimal)>=0) { while (oldVal.charAt(oldVal.length-1)=="0" || oldVal.charAt(oldVal.length-1) == trueDecimal) { if (oldVal.charAt(oldVal.length-1) == trueDecimal) { oldVal = oldVal.substring(0,oldVal.length-1); break; } else oldVal = oldVal.substring(0,oldVal.length-1); } if (oldVal.indexOf(trueDecimal)==0) oldVal = "0" + oldVal; } if (String(allowDecimals) !="" ) { if (String(value).indexOf(".") > 0 && ((String(value).indexOf(".") + allowDecimals + 2 <= String(value).length) || allowDecimals == 0)) { isValid = false; } } value = parseFloat(value); if (isNaN(value)) { isValid = false; } else if (String(value).length!=String(oldVal).length && String(oldVal).substring(String(value).length+1).search(/^\.?0*$/) == -1 ) { isValid = false; } else if ((minLength != "" && minLength > value) || (maxLength != "" && maxLength < value)) { isValid = false; } } if (!isValid) { WAAddError(formElement,errorMsg,focusIt,stopIt); } else { if (value != "") { if (roundDecimals != "") { value = Math.round(value*roundDecimals)/roundDecimals; } if (reformatDecimals != "") { value = String(value); if (value.indexOf(trueDecimal)<0) value += trueDecimal; if (value.indexOf(trueDecimal) < value.length - reformatDecimals) { value = value.substring(0,value.indexOf(trueDecimal) + reformatDecimals + 1); } else { while (value.indexOf(trueDecimal) > value.length - reformatDecimals - 1) { value += "0"; } } } } if (trueDecimal != theDecimal) { value = String(value); while (value.indexOf(trueDecimal)>=0) { value = value.substring(0,value.indexOf(trueDecimal)) + theDecimal + value.substring(value.indexOf(trueDecimal)+1); } } if (roundDecimals != "" || reformatDecimals != "") formElement.value = value; } } function WAAlertErrors(errorHead,errorFoot,setFocus,submitForm) { if (!document.WAFV_StopAlert) { document.WAFV_StopAlert = true; if (document.WAFV_InvalidArray) { document.WAFV_Stop = true; var errorMsg = document.WAFV_Error; if (errorHead!="") errorMsg = errorHead + "\n" + errorMsg; if (errorFoot!="") errorMsg += "\n" + errorFoot; document.MM_returnValue = false; if (document.WAFV_Error!="") alert(errorMsg.replace(/"/g,'"')); else if (submitForm) submitForm.submit(); if (setFocus && document.WAFV_Focus) { document.tempFocus = document.WAFV_Focus; setTimeout("document.tempFocus.focus();setTimeout('document.WAFV_Stop = false;document.WAFV_StopAlert = false;',1)",1); } else { document.WAFV_Stop = false; document.WAFV_StopAlert = false; } for (var x=0; x<document.WAFV_InvalidArray.length; x++) { document.WAFV_InvalidArray[x].WAFV_Stop = false; } } else { document.WAFV_Stop = false; document.WAFV_StopAlert = false; if (submitForm) { submitForm.submit(); } document.MM_returnValue = true; } document.WAFV_Focus = false; document.WAFV_Error = false; document.WAFV_InvalidArray = false; } } //--> </script> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="box"> <tr> <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="1" align="left" class="box-header"><img src="../themes/<%= strTheme %>/box-header-left.jpg"></td> <td width="100%" class="box-header">Configurazione</td> <td width="1" align="right" class="box-header"><img src="../themes/<%= strTheme %>/box-header-right.jpg"></td> </tr> </table></td> </tr> <tr> <td align="left" valign="top" class="box-main"> <form method="POST" action="<%=MM_editAction%>" name="form1" onsubmit="FckEditorUpdateValue('EDITOR');WAValidateRQ(document.form1.CON_TITLE,'* Il campo Titolo è obbligatorio',document.form1.CON_TITLE,0,true,'text');WAValidateUR(document.form1.CON_URL,document.form1.CON_URL.value,'* Il campo URL è obbligatorio e deve inizare con http:// o https://','http://, https://','none',document.form1.CON_URL,0,true);WAValidateEM(document.form1.CON_ADMIN_EMAIL,document.form1.CON_ADMIN_EMAIL.value,'* Il campo Admin E-mail è obbligatorio e deve contenere un indirizzo valido',document.form1.CON_ADMIN_EMAIL,0,true);WAValidateAN(document.form1.CON_PAGE_SIZE,document.form1.CON_PAGE_SIZE.value,'* Il campo Dimensione Pagina è obbligatorio',false,false,true,false,'%',document.form1.CON_PAGE_SIZE,0,true);WAValidateAN(document.form1.CON_LEFT_SIZE,document.form1.CON_LEFT_SIZE.value,'* Il campo Larghezza Sinistra è obbligatorio',false,false,true,false,'%',document.form1.CON_LEFT_SIZE,0,true);WAValidateNM(document.form1.CON_IMG_FULL_WIDTH,'* Il campo Larghezza Immagini è obbligatorio e deve contenere un numero intero compreso tra 100 e 1600',100,1600,0,'','',' ,',document.form1.CON_IMG_FULL_WIDTH,0,true);WAValidateNM(document.form1.CON_IMG_FULL_HEIGHT,'* Il campo Altezza Immagini è obbligatorio e deve contenere un numero intero compreso tra 100 e 1600',100,1600,0,'','',' ,',document.form1.CON_IMG_FULL_HEIGHT,0,true);WAValidateNM(document.form1.CON_IMG_THUMB,'* Il campo Miniature è obbligatorio e deve contenere un numero intero compreso tra 60 e 180',60,180,0,'','',' ,',document.form1.CON_IMG_THUMB,0,true);WAValidateNM(document.form1.CON_IMG_QUALITY,'* Il campo Qualità è obbligatorio e deve contenere un numero intero compreso tra 10 e 100',10,100,0,'','',' ,',document.form1.CON_IMG_QUALITY,0,true);WAAlertErrors('','',true,false);return document.MM_returnValue"> <table width="540" border="0" align="center" cellpadding="0" cellspacing="1" class="content"> <tr valign="baseline"> <td width="120" align="right" nowrap> </td> <td><% If Request.QueryString("s").Count > 0 Then %> <span class="evidence">Modifiche salvate (<%= Request.QueryString("s").Count %>)</span> <% End If %> </td> </tr> <tr valign="baseline"> <td nowrap align="right">*Titolo:</td> <td><input type="text" name="CON_TITLE" value="<%=(rsConfiguration.Fields.Item("CON_TITLE").Value)%>" size="32"> </td> </tr> <tr valign="baseline"> <td nowrap align="right">*URL:</td> <td><input type="text" name="CON_URL" value="<%=(rsConfiguration.Fields.Item("CON_URL").Value)%>" size="32"> / </td> </tr> <tr valign="baseline"> <td nowrap align="right">*Admin E-Mail:</td> <td><input type="text" name="CON_ADMIN_EMAIL" value="<%=(rsConfiguration.Fields.Item("CON_ADMIN_EMAIL").Value)%>" size="32"> </td> </tr> <tr valign="baseline"> <td nowrap align="right">Descrizione:</td> <td><input type="text" name="CON_DESCRIPTION" value="<%=(rsConfiguration.Fields.Item("CON_DESCRIPTION").Value)%>" size="32"> </td> </tr> <tr> <td nowrap align="right" valign="top">Parole Chiave:</td> <td valign="baseline"><textarea name="CON_KEYWORDS" cols="50" rows="5"><%=(rsConfiguration.Fields.Item("CON_KEYWORDS").Value)%></textarea> </td> </tr> <tr valign="baseline"> <td nowrap align="right">*Dimensione Pagina:</td> <td><input type="text" name="CON_PAGE_SIZE" value="<%=(rsConfiguration.Fields.Item("CON_PAGE_SIZE").Value)%>" size="4"> [è possibile usare valori percentuali] </td> </tr> <tr valign="baseline"> <td nowrap align="right">*Larghezza Sinistra:</td> <td><input type="text" name="CON_LEFT_SIZE" value="<%=(rsConfiguration.Fields.Item("CON_LEFT_SIZE").Value)%>" size="4"> [è possibile usare valori percentuali] </td> </tr> <tr valign="baseline"> <td nowrap align="right">Allineamento:</td> <td><select name="CON_ALIGN"> <option value="left" <%If (Not isNull(rsConfiguration.Fields.Item("CON_ALIGN").Value)) Then If ("left" = CStr(rsConfiguration.Fields.Item("CON_ALIGN").Value)) Then Response.Write("SELECTED") : Response.Write("")%>>A sinistra</option> <option value="center" <%If (Not isNull(rsConfiguration.Fields.Item("CON_ALIGN").Value)) Then If ("center" = CStr(rsConfiguration.Fields.Item("CON_ALIGN").Value)) Then Response.Write("SELECTED") : Response.Write("")%>>Al centro</option> <option value="right" <%If (Not isNull(rsConfiguration.Fields.Item("CON_ALIGN").Value)) Then If ("right" = CStr(rsConfiguration.Fields.Item("CON_ALIGN").Value)) Then Response.Write("SELECTED") : Response.Write("")%>>A destra</option> </select> </td> </tr> <tr valign="baseline"> <td nowrap align="right">Tema:</td> <td> <select name="CON_THEME" id="CON_THEME"> <% Set objFSO = Server.CreateObject("Scripting.FileSystemObject") Set Themes = objFSO.GetFolder(Server.MapPath("/iwgallery/themes/")) For Each objItem In Themes.SubFolders %> <option value="<%= objItem.Name %>" <%If (Not isNull(strTheme)) Then If (objItem.Name = CStr(strTheme)) Then Response.Write("SELECTED") : Response.Write("")%>><%= objItem.Name %></option> <% Next Set objFSO = Nothing %> </select> </td> </tr> <tr valign="baseline"> <td nowrap align="right">*Larghezza Immagini:</td> <td><input name="CON_IMG_FULL_WIDTH" type="text" value="<%=(rsConfiguration.Fields.Item("CON_IMG_FULL_WIDTH").Value)%>" size="4" maxlength="4"> px Max </td> </tr> <tr valign="baseline"> <td nowrap align="right">*Altezza Immagini:</td> <td><input name="CON_IMG_FULL_HEIGHT" type="text" value="<%=(rsConfiguration.Fields.Item("CON_IMG_FULL_HEIGHT").Value)%>" size="4" maxlength="4"> px Max </td> </tr> <tr valign="baseline"> <td nowrap align="right">*Miniature:</td> <td><input name="CON_IMG_THUMB" type="text" value="<%=(rsConfiguration.Fields.Item("CON_IMG_THUMB").Value)%>" size="4" maxlength="3"> px Max </td> </tr> <tr valign="baseline"> <td nowrap align="right">*Qualità:</td> <td><input name="CON_IMG_QUALITY" type="text" id="CON_IMG_QUALITY" value="<%=(rsConfiguration.Fields.Item("CON_IMG_QUALITY").Value)%>" size="4" maxlength="3"> %</td> </tr> <tr valign="baseline"> <td nowrap align="right">Righe per pagina:</td> <td><select name="CON_ROWS"> <option value="1" <%If (Not isNull((rsConfiguration.Fields.Item("CON_ROWS").Value))) Then If ("1" = CStr((rsConfiguration.Fields.Item("CON_ROWS").Value))) Then Response.Write("SELECTED") : Response.Write("")%>>1</option> <option value="2" <%If (Not isNull((rsConfiguration.Fields.Item("CON_ROWS").Value))) Then If ("2" = CStr((rsConfiguration.Fields.Item("CON_ROWS").Value))) Then Response.Write("SELECTED") : Response.Write("")%>>2</option> <option value="3" <%If (Not isNull((rsConfiguration.Fields.Item("CON_ROWS").Value))) Then If ("3" = CStr((rsConfiguration.Fields.Item("CON_ROWS").Value))) Then Response.Write("SELECTED") : Response.Write("")%>>3</option> <option value="4" <%If (Not isNull((rsConfiguration.Fields.Item("CON_ROWS").Value))) Then If ("4" = CStr((rsConfiguration.Fields.Item("CON_ROWS").Value))) Then Response.Write("SELECTED") : Response.Write("")%>>4</option> <option value="5" <%If (Not isNull((rsConfiguration.Fields.Item("CON_ROWS").Value))) Then If ("5" = CStr((rsConfiguration.Fields.Item("CON_ROWS").Value))) Then Response.Write("SELECTED") : Response.Write("")%>>5</option> </select> </td> </tr> <tr valign="baseline"> <td nowrap align="right">Colonne per pagina:</td> <td><select name="CON_COLS"> <option value="2" <%If (Not isNull((rsConfiguration.Fields.Item("CON_COLS").Value))) Then If ("2" = CStr((rsConfiguration.Fields.Item("CON_COLS").Value))) Then Response.Write("SELECTED") : Response.Write("")%>>2</option> <option value="3" <%If (Not isNull((rsConfiguration.Fields.Item("CON_COLS").Value))) Then If ("3" = CStr((rsConfiguration.Fields.Item("CON_COLS").Value))) Then Response.Write("SELECTED") : Response.Write("")%>>3</option> <option value="4" <%If (Not isNull((rsConfiguration.Fields.Item("CON_COLS").Value))) Then If ("4" = CStr((rsConfiguration.Fields.Item("CON_COLS").Value))) Then Response.Write("SELECTED") : Response.Write("")%>>4</option> </select> </td> </tr> <tr> <td nowrap align="right">Accesso consentito a:</td> <td><label> <input <%If (CStr((rsConfiguration.Fields.Item("CON_PRIVATE").Value)) = CStr("0")) Then Response.Write("CHECKED") : Response.Write("")%> type="radio" name="CON_PRIVATE" value="0" onClick="document.form1.CON_REGISTER.checked=false"> Tutti gli utenti</label> | <label> <input <%If (CStr((rsConfiguration.Fields.Item("CON_PRIVATE").Value)) = CStr("1")) Then Response.Write("CHECKED") : Response.Write("")%> type="radio" name="CON_PRIVATE" value="1" onClick="document.form1.CON_REGISTER.checked=true"> Solo utenti registrati</label> </td> </tr> <tr> <td align="right" valign="top" nowrap> <input <%If (CStr((rsConfiguration.Fields.Item("CON_REGISTER").Value)) = CStr("1")) Then Response.Write("checked") : Response.Write("")%> name="CON_REGISTER" type="checkbox" id="CON_REGISTER" value="1"></td> <td>Mostra il modulo di registrazione, per proporre l'upload di nuove immagini?<br> (<strong>Nota</strong>: è necessario selezionare la casella se l'accesso è riservato) </td> </tr> <tr> <td align="right" valign="top" nowrap><input <%If (CStr((rsConfiguration.Fields.Item("CON_APPROVE").Value)) = CStr("1")) Then Response.Write("checked") : Response.Write("")%> name="CON_APPROVE" type="checkbox" id="CON_APPROVE" value="1"></td> <td>È richiesta l'approvazione dell'Admin per registrare un nuovo Utente? </td> </tr> <tr> <td nowrap align="right" valign="top">Termini di utilizzo:</td> <td valign="baseline"> <% strEditor = (rsConfiguration.Fields.Item("CON_TERMS").Value) %> <!--#include virtual="/iwgallery/editor/inc_editor_light.asp" --> </td> </tr> <tr valign="baseline"> <td align="right" valign="top" nowrap>Footer:</td> <td><textarea name="CON_FOOTER" cols="50" rows="5"><%=(rsConfiguration.Fields.Item("CON_FOOTER").Value)%></textarea> </td> </tr> <% If IsComponentInstalled("XStandard.Zip") Then %> <tr> <td nowrap align="right"> </td> <td><span class="evidence">XZip è installato sul server</span> ¬</td> </tr> <tr> <td nowrap align="right"><input <%If (CStr((rsConfiguration.Fields.Item("CON_ZIP").Value)) = CStr("1")) Then Response.Write("checked") : Response.Write("")%> name="CON_ZIP" type="checkbox" id="CON_ZIP" value="1"></td> <td>Permetti il download multiplo di immagini, in formato .zip</td> </tr> <% End If %> <tr valign="baseline"> <td nowrap align="right"> </td> <td><input name="Submit" type="submit" id="Submit" value="Salva modifiche" class="button"> <% If NOT IsComponentInstalled("XStandard.Zip") Then %><input name="CON_ZIP" type="hidden" id="CON_ZIP" value="0"><% End If %> </td> </tr> </table> <input type="hidden" name="MM_update" value="form1"> <input type="hidden" name="MM_recordId" value="<%= rsConfiguration.Fields.Item("CON_ID").Value %>"> </form> </td> </tr> <tr> <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="1" align="left" class="box-bottom"><img src="../themes/<%= strTheme %>/box-bottom-left.jpg"></td> <td width="100%" class="box-bottom"><img src="../images/shim.gif" width="1" height="1"></td> <td width="1" align="right" class="box-bottom"><img src="../themes/<%= strTheme %>/box-bottom-right.jpg"></td> </tr> </table></td> </tr> </table> <% rsConfiguration.Close() Set rsConfiguration = Nothing %>
[
Íàçàä
]