utilizzo questa phat evidenziata in rosso per visualizzare immagini in un percorso specifico
Const strImageUploadPath= "public\Gestione_generale_Img\"
Ora vorrei che questa phat si potesse trasformare in questa maniera evidenziata in (blu)
Const strImageUploadPath= "public\Gestione_generale_Img\Numero_2"
dove però (Numero_2) sta per il campo del record all'interno della tabella "Pippo" in un data-
base Access, qui nasce la complicazione.
l'editor è scritto tutto in VBSCRIPT quindi la domanda è
Posso puntare diretto alla tabella "Pippo" campo "Numero_2" con una nuova phat diretta oppure
no? Altra domanda, devo integrare una connessione al data-base dentro il file RTE_setup.asp ?????
posto lo script intero del file RTE_setup.asp
Mi vanno bene anche spunti di partenza cortesemente con link di puntamento a esempi presistenti o lezioni sull'argomento.
Grazie !!!
script:
<!--#include file="RTE_license.asp" -->
<%
Dim blnAbout
Dim strDisplayLicense
'***** START WARNING - REMOVAL OR MODIFICATION OF THIS CODE WILL VIOLATE THE LICENSE AGREEMENT ******
Const strRTEversion = "4.05"
blnAbout = rteAbout()
If Request.QueryString("about") Then Call rteInfo()
'***** END WARNING - REMOVAL OR MODIFICATION OF THIS CODE WILL VIOLATE THE LICENSE AGREEMENT ******
'The following enables and disables functions of the Rich Text Editor
'Enable and dsiable basic functions of the editor change the following to true of false
'************************************************* **************************
Const blnNew = true
Const blnBold = true
Const blnUnderline = true
Const blnItalic = true
Const blnFontStyle = true
Const blnFontType = true
Const blnFontSize = true
Const blnTextColour = true
Const blnTextBackgroundColour = true
Const blnCut = true
Const blnCopy = true
Const blnPaste = true
Const blnWordPaste = true
Const blnUndo = true
Const blnRedo = true
Const blnLeftJustify = true
Const blnCentre = true
Const blnRightJustify = true
Const blnFullJustify = true
Const blnOrderList = true
Const blnUnOrderList = true
Const blnOutdent = true
Const blnIndent = true
Const blnAddHyperlink = true
Const blnAddImage = true
Const blnInsertTable = true
Const blnEmoticonPopUp = true
Const blnSpecialCharacters = true
Const blnPrint = true
Const blnStrikeThrough = true
Const blnSubscript = true
Const blnSuperscript = true
Const blnHorizontalRule = true
Const blnPreview = true
'************************************************* **************************
'Advanced controls
'************************************************* **************************
Const blnAdvAdddHyperlink = true 'Advanced hyperlink control
Const blnAdvAddImage = true 'Advanced image control requires File System Object (FSO)
Const blnHTMLView = true 'Allows the user to view the HTML code, you may need to dsiable this for extra security
Const blnSpellCheck = true 'Requires IEspell for Ineternet Explorer or SpellBound for Mozilla
Const blnUseCSS = true 'Enable CSS (Cascading Style Sheets) in Mozilla
Const blnNoIEdblLine = true 'Prevent IE's standard double line spacing when the 'ENTER' key is pressed
'************************************************* **************************
'Open and save configuration
'************************************************* **************************
'For security reasons you shouldn't allow users to open/save server side scripting files with .asp, .php, etc. extensions as these could be used to execute malicious code on the server
'Saved files, for security, are only saved in the root folder you set below and not sub folders
Const blnOpenFile = true 'Open server file in editor (ie. open and HTML page in editor), requires File System Object (FSO)
Const strOpenFileFolderPath = "\public\my_documents"
Const strOpenFileTypes = "htm;html" 'Separate file types with ;
Const blnSave = true 'Save editor contents to server, requires File System Object (FSO)
Const strSaveFileFolderPath = "\public\my_documents\my_files"
Const strSaveFileTypes = "htm;html" 'Separate file types with ;
Const blnOverWriteFiles = false 'Set this to true only if you wish the user to overwrite saved files
'************************************************* **************************
'Upload component (uncomment the upload component you require)
'************************************************* **************************
'Select an upload component from the list below if you wish to use image upload and file attachement features
'The upoload component you select MUST be installed on the web server
Const strUploadComponent = "AspUpload" 'Persits AspUpload 3.x or above (includes progess bar) - http://www.aspupload.com
'Const strUploadComponent = "AspUpload2" 'Persits AspUpload - http://www.aspupload.com
'Const strUploadComponent = "Dundas" 'Dundas Upload - http://www.dundas.com
'Const strUploadComponent = "fileUp" 'SA FileUp - http://www.softartisans.com
'Const strUploadComponent = "aspSmart" 'aspSmartUpload - http://www.aspsmart.com
'Const strUploadComponent = "AspSimple" 'AspSimpleUpload - http://www.asphelp.com
'************************************************* **************************
'Upload component configuration
'************************************************* **************************
'For security reasons you shouldn't allow users to upload files that could be used to execute malicious code on the server
'Uploaded files and images, for security, are only saved in the root folder you set below and not sub folders
'File Attachments
Const blnAttachments = true 'Attach files to the editor contents
Const strFileUploadPath = "\public\my_documents\my_files"
Const strFileTypes = "zip;rar;doc;pdf;txt;rtf;htm;html;gif;jpg;jpeg;png ;pptx;pps;ppt;mpg" 'Separate file types with ;
Const intMaxFileSize = 20360 'Use AspUpload 3.x or above for uploads over 4500KB (size in KB)
'Image uploads
Const blnImageUpload = true 'Upload images to the editor
'blnAdvAddImage (advanced image insert popup), also needs to be enabled to upload images as it uses the same pop up window
Const strImageUploadPath = "\public\Gestione_generale_Img"
Const strImageTypes = "jpeg;jpg;gif;png;bmp" 'Separate file types with ;
Const intMaxImageSize = 20360 'Use AspUpload 3.x or above for uploads over 4500KB (size in KB)
Const intPixelsImage = 640 'Larghezza massima della foto caricata. Valore in Pixels
'************************************************* **************************
'Using full URL path for images and links
'************************************************* **************************
'If you are submitting the RTE content to a file outside of the RTE folder you may find that some of the relative
'paths for things like images stored on the server are incorrect (ie. href="my_documents/myPicture.jpg")
'The following can be used to change those relative server paths to full URL's so that if the submitted content is
'displayed on a page out side of the RTE files the paths to images etc. still work
Const blnUseFullURLpath = false
Const strFullURLpathToRTEfiles = "/" 'Type in the full URL to the RTE folder eg. "/"
'************************************************* **************************
'Basic image and CSS file location
'************************************************* **************************
'Path to default images
Const strRTEImagePath = "images-Editor/"
Const strRTECSSfile = "css_styles"
'************************************************* **************************
%>

Rispondi quotando


