Ticket #1593: 1593_4.patch
File 1593_4.patch, 10.9 KB (added by , 15 years ago) |
---|
-
_samples/afp/sampleposteddata.afp
27 27 <title>FCKeditor - AFP - Samples - Posted Data</title> 28 28 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 29 29 <meta name="robots" content="noindex, nofollow"> 30 <link href="../sample.css" rel="stylesheet" type="text/css" />30 <link href="../sample.css" rel="stylesheet" type="text/css"> 31 31 </head> 32 32 <body> 33 33 <h1>FCKeditor - Samples - Posted Data</h1> 34 34 This page lists all data posted by the form. 35 35 <hr> 36 <table width="100%" border="1" cellspacing="0" bordercolor="#999999"> 37 <tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999"> 38 <td nowrap>Field Name </td> 39 <td>Value</td> 40 </tr> 36 <table width="100%" border="1" cellspacing="0" id="outputSample"> 37 <thead> 38 <tr> 39 <th>Field Name</th> 40 <th>Value</th> 41 </tr> 42 </thead> 41 43 <% 42 44 lcForm=REQUEST.Form() 43 45 lcForm=STRTRAN(lcForm,"&",CHR(13)+CHR(10)) … … 51 53 lcWert=STRTRAN(lcWert,"<","<") 52 54 lcWert=STRTRAN(lcWert,">",">") && ... if wanted remove/translate HTML Chars ... 53 55 54 ? [<tr><t d>]+lcVariable+[ =</td><td>]+lcWert+[</td></tr>]56 ? [<tr><th>]+lcVariable+[ =</th><td><pre>]+lcWert+[</pre></td></tr>] 55 57 ENDIF 56 58 NEXT 57 59 %> -
_samples/asp/sampleposteddata.asp
28 28 <title>FCKeditor - Samples - Posted Data</title> 29 29 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 30 30 <meta name="robots" content="noindex, nofollow"> 31 <link href="../sample.css" rel="stylesheet" type="text/css" />31 <link href="../sample.css" rel="stylesheet" type="text/css" > 32 32 </head> 33 33 <body> 34 34 <h1>FCKeditor - Samples - Posted Data</h1> 35 35 This page lists all data posted by the form. 36 36 <hr> 37 <table width="100%" border="1" cellspacing="0" bordercolor="#999999"> 38 <tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999"> 39 <td noWrap>Field Name </td> 40 <td>Value</td> 41 </tr> 37 <table width="100%" border="1" cellspacing="0" id="outputSample"> 38 <thead> 39 <tr> 40 <th>Field Name</th> 41 <th>Value</th> 42 </tr> 43 </thead> 42 44 <% 43 45 Dim sForm 44 46 For Each sForm in Request.Form 45 47 %> 46 48 <tr> 47 <t d valign="top" nowrap><b><%=sForm%></b></td>48 <td width="100%" style="white-space:pre"><%=Server.HTMLEncode( Request.Form(sForm) )%></td>49 <th><%=sForm%></th> 50 <td><pre><%=Server.HTMLEncode( Request.Form(sForm) )%></pre></td> 49 51 </tr> 50 52 <% Next %> 51 53 </table> -
_samples/cfm/sampleposteddata.cfm
38 38 <cfif isDefined( 'FORM.fieldnames' )> 39 39 <cfoutput> 40 40 <hr /> 41 <style> 42 <!-- 43 td, th { font: 11px Verdana, Arial, Helv, Helvetica, sans-serif; } 44 --> 45 </style> 46 <table border="1" cellspacing="0" cellpadding="2" bordercolor="darkblue" bordercolordark="darkblue" bordercolorlight="darkblue"> 41 <table width="100%" border="1" cellspacing="0" id="outputSample"> 42 <thead> 43 <tr> 44 <th>Field Name</th> 45 <th>Value</th> 46 </tr> 47 </thead> 47 48 <tr> 48 <th colspan="2" bgcolor="darkblue"><font color="white"><strong>Dump of FORM Variables</strong></font></th> 49 </tr> 50 <tr> 51 <td bgcolor="lightskyblue">FieldNames</td> 49 <th>FieldNames</th> 52 50 <td>#FORM.fieldNames#</td> 53 51 </tr> 54 52 <cfloop list="#FORM.fieldnames#" index="key"> 55 53 <tr> 56 <t d valign="top" bgcolor="lightskyblue">#key#</td>57 <td style="white-space:pre">#HTMLEditFormat( evaluate( "FORM.#key#" ) )#</td>54 <th>#key#</th> 55 <td><pre>#HTMLEditFormat( evaluate( "FORM.#key#" ) )#</pre></td> 58 56 </tr> 59 57 </cfloop> 60 58 </table> -
_samples/lasso/sampleposteddata.lasso
28 28 <title>FCKeditor - Samples - Posted Data</title> 29 29 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 30 30 <meta name="robots" content="noindex, nofollow"> 31 <link href="../sample.css" rel="stylesheet" type="text/css" />31 <link href="../sample.css" rel="stylesheet" type="text/css"> 32 32 </head> 33 33 <body> 34 34 <h1>FCKeditor - Samples - Posted Data</h1> 35 35 This page lists all data posted by the form. 36 36 <hr> 37 <table width="100%" border="1" cellspacing="0" bordercolor="#999999"> 38 <tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999"> 39 <td nowrap>Field Name </td> 40 <td>Value</td> 41 </tr> 37 <table width="100%" border="1" cellspacing="0" id="outputSample"> 38 <thead> 39 <tr> 40 <th>Field Name</th> 41 <th>Value</th> 42 </tr> 43 </thead> 42 44 [iterate(client_postparams, local('this'))] 43 45 <tr> 44 <t d valign="top" nowrap><b>[#this->first]</b></td>45 <td width="100%" style="white-space:pre">[#this->second]</td>46 <th>[#this->first]</th> 47 <td><pre>[#this->second]</pre></td> 46 48 </tr> 47 49 [/iterate] 48 50 </table> -
_samples/perl/sampleposteddata.cgi
70 70 print "Content-type: text/html\n\n"; 71 71 print <<"_HTML_TAG_"; 72 72 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 73 74 73 <html> 75 74 <head> 76 75 <title>FCKeditor - Samples - Posted Data</title> 77 76 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 78 77 <meta name="robots" content="noindex, nofollow"> 79 <link href="../sample.css" rel="stylesheet" type="text/css" />78 <link href="../sample.css" rel="stylesheet" type="text/css" > 80 79 </head> 81 80 <body> 82 81 <h1>FCKeditor - Samples - Posted Data</h1> 83 82 This page lists all data posted by the form. 84 83 <hr> 85 <table width="100%" border="1" cellspacing="0" bordercolor="#999999"> 86 <tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999"> 87 <td nowrap>Field Name </td> 88 <td>Value</td> 89 </tr> 84 <table width="100%" border="1" cellspacing="0" id="outputSample"> 85 <thead> 86 <tr> 87 <th>Field Name</th> 88 <th>Value</th> 89 </tr> 90 </thead> 90 91 _HTML_TAG_ 91 92 92 93 foreach $key (keys %FORM) { 93 94 $postedValue = &specialchar_cnv($FORM{$key}); 94 95 print <<"_HTML_TAG_"; 95 96 <tr> 96 <t d valign="top" nowrap><b>$key</b></td>97 <td width="100%" style="white-space:pre">$postedValue</td>97 <th>$key</th> 98 <td><pre>$postedValue</pre></td> 98 99 </tr> 99 100 _HTML_TAG_ 100 101 } -
_samples/php/sampleposteddata.php
28 28 <title>FCKeditor - Samples - Posted Data</title> 29 29 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 30 30 <meta name="robots" content="noindex, nofollow"> 31 <link href="../sample.css" rel="stylesheet" type="text/css" />31 <link href="../sample.css" rel="stylesheet" type="text/css" > 32 32 </head> 33 33 <body> 34 34 <h1>FCKeditor - Samples - Posted Data</h1> 35 35 This page lists all data posted by the form. 36 36 <hr> 37 <table width="100%" border="1" cellspacing="0" bordercolor="#999999"> 38 <tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999"> 39 <td nowrap>Field Name </td> 40 <td>Value</td> 41 </tr> 37 <table width="100%" border="1" cellspacing="0" id="outputSample"> 38 <thead> 39 <tr> 40 <th>Field Name</th> 41 <th>Value</th> 42 </tr> 43 </thead> 42 44 <?php 43 45 44 46 if ( isset( $_POST ) ) … … 55 57 56 58 ?> 57 59 <tr> 58 <t d valign="top" nowrap><b><?=$sForm?></b></td>59 <td width="100%" style="white-space:pre"><?=$postedValue?></td>60 <th><?php echo $sForm?></th> 61 <td><pre><?php echo $postedValue?></pre></td> 60 62 </tr> 61 63 <?php 62 64 } -
_samples/py/sampleposteddata.py
53 53 <h1>FCKeditor - Samples - Posted Data</h1> 54 54 This page lists all data posted by the form. 55 55 <hr> 56 <table width="100%" border="1" cellspacing="0" bordercolor="#999999"> 57 <tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999"> 58 <td nowrap>Field Name </td> 59 <td>Value</td> 60 </tr> 56 <table width="100%" border="1" cellspacing="0" id="outputSample"> 57 <thead> 58 <tr> 59 <th>Field Name</th> 60 <th>Value</th> 61 </tr> 62 </thead> 61 63 """ 62 64 for key in form.keys(): 63 65 try: 64 66 value = form[key].value 65 67 print """ 66 68 <tr> 67 <t d valign="top" nowrap><b>%s</b></td>68 <td width="100%%" style="white-space:pre">%s</td>69 <th>%s</th> 70 <td><pre>%s</pre></td> 69 71 </tr> 70 72 """ % (key, value) 71 73 except Exception, e: -
_samples/sample.css
21 21 * Styles used in the samples pages. 22 22 */ 23 23 24 body, td, input, select, textarea24 body, td, th, input, select, textarea 25 25 { 26 26 font-size: 12px; 27 27 font-family: Arial, Verdana, Sans-Serif; … … 44 44 { 45 45 margin:0px; 46 46 padding:0px; 47 white-space: pre-wrap; /* css-3 */ 48 white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ 49 word-wrap: break-word; /* Internet Explorer 5.5+ */ 47 48 white-space: pre; /* CSS2 */ 49 white-space: -moz-pre-wrap; /* Mozilla*/ 50 white-space: -o-pre-wrap; /* Opera 7 */ 51 white-space: pre-wrap; /* CSS 2.1 */ 52 white-space: pre-line; /* CSS 3 (and 2.1 as well, actually) */ 53 word-wrap: break-word; /* IE */ 50 54 } 55 56 thead th { 57 color: #dddddd; 58 background-color: #999999; 59 padding: 4px; 60 white-space: nowrap; 61 } 62 No newline at end of file -
_whatsnew.html
106 106 are applied in the image preview dialog.</li> 107 107 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2056">#2056</a>] Fixed several validation 108 108 errors in the dialogs.</li> 109 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1593">#1593</a>] Samplepostdata will now 110 properly wrap the text.</li> 109 111 </ul> 110 112 <h3> 111 113 Version 2.6</h3>