Ticket #1593: 1593_5.patch
File 1593_5.patch, 11.5 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 border="1" cellspacing="0" id="outputSample"> 37 <colgroup><col width="80"><col></colgroup> 38 <thead> 39 <tr> 40 <th>Field Name</th> 41 <th>Value</th> 42 </tr> 43 </thead> 41 44 <% 42 45 lcForm=REQUEST.Form() 43 46 lcForm=STRTRAN(lcForm,"&",CHR(13)+CHR(10)) … … 51 54 lcWert=STRTRAN(lcWert,"<","<") 52 55 lcWert=STRTRAN(lcWert,">",">") && ... if wanted remove/translate HTML Chars ... 53 56 54 ? [<tr><t d>]+lcVariable+[ =</td><td>]+lcWert+[</td></tr>]57 ? [<tr><th>]+lcVariable+[ =</th><td><pre>]+lcWert+[</pre></td></tr>] 55 58 ENDIF 56 59 NEXT 57 60 %> -
_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 border="1" cellspacing="0" id="outputSample"> 38 <colgroup><col width="80"><col></colgroup> 39 <thead> 40 <tr> 41 <th>Field Name</th> 42 <th>Value</th> 43 </tr> 44 </thead> 42 45 <% 43 46 Dim sForm 44 47 For Each sForm in Request.Form 45 48 %> 46 49 <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>50 <th><%=sForm%></th> 51 <td><pre><%=Server.HTMLEncode( Request.Form(sForm) )%></pre></td> 49 52 </tr> 50 53 <% Next %> 51 54 </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 border="1" cellspacing="0" id="outputSample"> 42 <colgroup><col width="80"><col></colgroup> 43 <thead> 44 <tr> 45 <th>Field Name</th> 46 <th>Value</th> 47 </tr> 48 </thead> 47 49 <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> 50 <th>FieldNames</th> 52 51 <td>#FORM.fieldNames#</td> 53 52 </tr> 54 53 <cfloop list="#FORM.fieldnames#" index="key"> 55 54 <tr> 56 <t d valign="top" bgcolor="lightskyblue">#key#</td>57 <td style="white-space:pre">#HTMLEditFormat( evaluate( "FORM.#key#" ) )#</td>55 <th>#key#</th> 56 <td><pre>#HTMLEditFormat( evaluate( "FORM.#key#" ) )#</pre></td> 58 57 </tr> 59 58 </cfloop> 60 59 </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 border="1" cellspacing="0" id="outputSample"> 38 <colgroup><col width="80"><col></colgroup> 39 <thead> 40 <tr> 41 <th>Field Name</th> 42 <th>Value</th> 43 </tr> 44 </thead> 42 45 [iterate(client_postparams, local('this'))] 43 46 <tr> 44 <t d valign="top" nowrap><b>[#this->first]</b></td>45 <td width="100%" style="white-space:pre">[#this->second]</td>47 <th>[#this->first]</th> 48 <td><pre>[#this->second]</pre></td> 46 49 </tr> 47 50 [/iterate] 48 51 </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 border="1" cellspacing="0" id="outputSample"> 85 <colgroup><col width="80"><col></colgroup> 86 <thead> 87 <tr> 88 <th>Field Name</th> 89 <th>Value</th> 90 </tr> 91 </thead> 90 92 _HTML_TAG_ 91 93 92 94 foreach $key (keys %FORM) { 93 95 $postedValue = &specialchar_cnv($FORM{$key}); 94 96 print <<"_HTML_TAG_"; 95 97 <tr> 96 <t d valign="top" nowrap><b>$key</b></td>97 <td width="100%" style="white-space:pre">$postedValue</td>98 <th>$key</th> 99 <td><pre>$postedValue</pre></td> 98 100 </tr> 99 101 _HTML_TAG_ 100 102 } -
_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 border="1" cellspacing="0" id="outputSample"> 38 <colgroup><col width="80"><col></colgroup> 39 <thead> 40 <tr> 41 <th>Field Name</th> 42 <th>Value</th> 43 </tr> 44 </thead> 42 45 <?php 43 46 44 47 if ( isset( $_POST ) ) … … 55 58 56 59 ?> 57 60 <tr> 58 <t d valign="top" nowrap><b><?=$sForm?></b></td>59 <td width="100%" style="white-space:pre"><?=$postedValue?></td>61 <th><?php echo $sForm?></th> 62 <td><pre><?php echo $postedValue?></pre></td> 60 63 </tr> 61 64 <?php 62 65 } -
_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 border="1" cellspacing="0" id="outputSample"> 57 <colgroup><col width="80"><col></colgroup> 58 <thead> 59 <tr> 60 <th>Field Name</th> 61 <th>Value</th> 62 </tr> 63 </thead> 61 64 """ 62 65 for key in form.keys(): 63 66 try: 64 67 value = form[key].value 65 68 print """ 66 69 <tr> 67 <t d valign="top" nowrap><b>%s</b></td>68 <td width="100%%" style="white-space:pre">%s</td>70 <th>%s</th> 71 <td><pre>%s</pre></td> 69 72 </tr> 70 73 """ % (key, value) 71 74 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; … … 36 36 37 37 form 38 38 { 39 margin: 0 px 0px 0px 0px;40 padding: 0 px 0px 0px 0px;39 margin: 0; 40 padding: 0; 41 41 } 42 42 43 #outputSample 44 { 45 table-layout:fixed; 46 } 47 43 48 pre 44 49 { 45 margin:0px; 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+ */ 50 margin: 0; 51 padding: 0; 52 53 white-space: pre; /* CSS2 */ 54 white-space: -moz-pre-wrap; /* Mozilla*/ 55 white-space: -o-pre-wrap; /* Opera 7 */ 56 white-space: pre-wrap; /* CSS 2.1 */ 57 white-space: pre-line; /* CSS 3 (and 2.1 as well, actually) */ 58 word-wrap: break-word; /* IE */ 50 59 } 60 61 #outputSample thead th 62 { 63 color: #dddddd; 64 background-color: #999999; 65 padding: 4px; 66 white-space: nowrap; 67 } 68 69 #outputSample tbody th 70 { 71 vertical-align: top; 72 text-align: left; 73 } 74 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> 111 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2239">#2239</a>] The Samplepostdata.php has been 112 changed from "<?=" to "<? echo".</li> 109 113 </ul> 110 114 <h3> 111 115 Version 2.6</h3>