home *** CD-ROM | disk | FTP | other *** search
Wrap
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>EKtron WYSIWYG Editor</title> <meta name="keywords" content="ecommerce, electronic commerce, web design, software engineering"> <meta name="Author" content="EKtron, Inc."> </head> <CFQUERY NAME="getimages" DATASOURCE="editor"> Select image_title, image_location From images Order by image_title </CFQUERY> <cfwddx action="CFML2WDDX" input="#getimages#" output="ImageWDDXPacket"> <CFQUERY NAME="gethyperlinks" DATASOURCE="editor"> Select hyperlink_title, hyperlink_location From hyperlink Order by hyperlink_title </CFQUERY> <cfwddx action="CFML2WDDX" input="#gethyperlinks#" output="HyperlinkWDDXPacket"> <CFQUERY NAME="getfonts" DATASOURCE="editor"> Select FONT_FACE From fonts Order by FONT_FACE </CFQUERY> <cfwddx action="CFML2WDDX" input="#getfonts#" output="FontWDDXPacket"> <body bgcolor="white"> <table width="700" cellpadding="0" cellspacing="0" border="0"> <tr> <td width="113" height="35" valign="TOP" bgcolor="#639C63"><a href="http://www.ektron.com"><img src="EKlogo.gif" width=113 height=35 alt="" border=0></a></td> <td width="575" align="CENTER" valign="BOTTOM" bgcolor="#639C63"></td> </tr> <tr> <td align="CENTER" valign="TOP" bgcolor="#639C63"><img src="http://www.ektron.com/images/space.gif" width=1 height=400 alt="" border="0"></td> <td align="CENTER"> <cfif IsDefined("edit_id")> <!--- Which record in the database to edit ---> <cfquery datasource="editor" name="q_editor"> select edit_title, edit_html, edit_id from WYSIWYG where edit_id = #edit_id# </cfquery> <cfform action="index.cfm" method="POST" name="frmMain" enctype="multipart/form-data"> <table width="90%"> <tr> <td><font size="2" face="verdana, arial, helvetica">Title:</font></td> <td><cfinput type="Text" name="edit_title" value="#q_editor.edit_title#" message="Title is required to continue." required="Yes" size="62" maxlength="255"></td> </tr> <tr> <td valign="top"><font size="2" face="verdana, arial, helvetica">Text:</font></td> <td> <!--- CF_WebEditor: codebase=path to the directory, If left blank then local path version=Version number needs to agree with CAB file version numberl license= If you run your browser on the local server the editor will work 127.0.0.1 means your local machine, we also test for C: and no license is required license2= Support 2 license key for the production server and test server. font= We globaly set the Font width= Width of the Editor Control height= Height of the Editor Conrol htmlcode=When the editor starts, what is written to this field will show up in the editor. editorsinform=the number of editors in the form) editornumber=the number of the current editor in the form form="frmMain" The control will need to be in a form so when you post the form the returnfield is posted as a hidden field button="Button"> The name="XXXXX" of the Button used to submit the form. Note that the CF_WebEditor needs to be placed between Form tags.. ---> <cf_webeditor codebase="" version="2,3,0,0" license="127.0.0.1?650630331830908" License2="localhost?850330421323576" font="Arial" width="565" height="400" htmlcode="#q_editor.edit_html#" form="frmMain" EditorNumber="1" EditorsInForm="1" button="Button" AllowCustomize="True" ButtonsEdit="True" ButtonsFontSize="True" ButtonsFontStyle="True" ButtonsFontColor="True" ButtonsBullets="True" ButtonsIndent="True" ButtonsAlign="True" ButtonsHyperlink="True" ButtonsPicture="True" ButtonsAbout="True" FTPServer="ftp.idontknow.com/ewebedit/images" FTPUsername="username" FTPPassword="encryptedpassword" ImagesPath="../images" WDDX="#ImageWDDXPacket# #HyperlinkWDDXPacket# #FontWDDXPacket#" > </td> </tr> <tr> <td colspan="2" align="center"> <input type="Submit" name="Button" value="Save"> <input type="hidden" name="action" value="edit"> <cfoutput><input type="hidden" name="edit_id" value="#edit_id#"></cfoutput> </td> </tr> </table> </cfform> </cfif> </td> </tr> <tr> <td bgcolor="#639C63" align="center" valign="middle"></td> <td height="25" align="center"><a href="javascript:history.back();"><font size="2" face="verdana, arial, helvetica">Back</font></a></td> </tr> </table> </body> </html>