Ticket #1593: 1593_5.patch

File 1593_5.patch, 11.5 KB (added by Alfonso Martínez de Lizarrondo, 16 years ago)

Revised patch

  • _samples/afp/sampleposteddata.afp

     
    2727                <title>FCKeditor - AFP - Samples - Posted Data</title>
    2828                <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    2929                <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">
    3131        </head>
    3232        <body>
    3333                <h1>FCKeditor - Samples - Posted Data</h1>
    3434                This page lists all data posted by the form.
    3535                <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&nbsp;&nbsp;</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>
    4144<%
    4245                lcForm=REQUEST.Form()
    4346                lcForm=STRTRAN(lcForm,"&",CHR(13)+CHR(10))
     
    5154                                lcWert=STRTRAN(lcWert,"<","&lt;")
    5255                                lcWert=STRTRAN(lcWert,">","&gt;")       && ... if wanted remove/translate HTML Chars ...
    5356
    54                                 ? [<tr><td>]+lcVariable+[ =</td><td>]+lcWert+[</td></tr>]
     57                                ? [<tr><th>]+lcVariable+[ =</th><td><pre>]+lcWert+[</pre></td></tr>]
    5558                        ENDIF
    5659                NEXT
    5760%>
  • _samples/asp/sampleposteddata.asp

     
    2828                <title>FCKeditor - Samples - Posted Data</title>
    2929                <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    3030                <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" >
    3232        </head>
    3333        <body>
    3434                <h1>FCKeditor - Samples - Posted Data</h1>
    3535                This page lists all data posted by the form.
    3636                <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&nbsp;&nbsp;</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>
    4245                        <%
    4346                        Dim sForm
    4447                        For Each sForm in Request.Form
    4548                        %>
    4649                        <tr>
    47                                 <td 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>
    4952                        </tr>
    5053                        <% Next %>
    5154                </table>
  • _samples/cfm/sampleposteddata.cfm

     
    3838        <cfif isDefined( 'FORM.fieldnames' )>
    3939                <cfoutput>
    4040                <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>
    4749                <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>
    5251                        <td>#FORM.fieldNames#</td>
    5352                </tr>
    5453                <cfloop list="#FORM.fieldnames#" index="key">
    5554                <tr>
    56                         <td 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>
    5857                </tr>
    5958                </cfloop>
    6059                </table>
  • _samples/lasso/sampleposteddata.lasso

     
    2828                <title>FCKeditor - Samples - Posted Data</title>
    2929                <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    3030                <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">
    3232        </head>
    3333        <body>
    3434                <h1>FCKeditor - Samples - Posted Data</h1>
    3535                This page lists all data posted by the form.
    3636                <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&nbsp;&nbsp;</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>
    4245[iterate(client_postparams, local('this'))]
    4346                        <tr>
    44                                 <td 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>
    4649                        </tr>
    4750[/iterate]
    4851                </table>
  • _samples/perl/sampleposteddata.cgi

     
    7070        print "Content-type: text/html\n\n";
    7171        print <<"_HTML_TAG_";
    7272<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    73 
    7473<html>
    7574        <head>
    7675                <title>FCKeditor - Samples - Posted Data</title>
    7776                <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    7877                <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" >
    8079        </head>
    8180        <body>
    8281                <h1>FCKeditor - Samples - Posted Data</h1>
    8382                This page lists all data posted by the form.
    8483                <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&nbsp;&nbsp;</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>
    9092_HTML_TAG_
    9193
    9294        foreach $key (keys %FORM) {
    9395                $postedValue = &specialchar_cnv($FORM{$key});
    9496                print <<"_HTML_TAG_";
    9597                        <tr>
    96                                 <td 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>
    98100                        </tr>
    99101_HTML_TAG_
    100102        }
  • _samples/php/sampleposteddata.php

     
    2828                <title>FCKeditor - Samples - Posted Data</title>
    2929                <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    3030                <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" >
    3232        </head>
    3333        <body>
    3434                <h1>FCKeditor - Samples - Posted Data</h1>
    3535                This page lists all data posted by the form.
    3636                <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&nbsp;&nbsp;</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>
    4245<?php
    4346
    4447if ( isset( $_POST ) )
     
    5558
    5659?>
    5760                        <tr>
    58                                 <td 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>
    6063                        </tr>
    6164<?php
    6265}
  • _samples/py/sampleposteddata.py

     
    5353                <h1>FCKeditor - Samples - Posted Data</h1>
    5454                This page lists all data posted by the form.
    5555                <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&nbsp;&nbsp;</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>
    6164"""
    6265for key in form.keys():
    6366        try:
    6467                value = form[key].value
    6568                print """
    6669                                <tr>
    67                                         <td 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>
    6972                                </tr>
    7073                        """ % (key, value)
    7174        except Exception, e:
  • _samples/sample.css

     
    2121 * Styles used in the samples pages.
    2222 */
    2323
    24 body, td, input, select, textarea
     24body, td, th, input, select, textarea
    2525{
    2626        font-size: 12px;
    2727        font-family: Arial, Verdana, Sans-Serif;
     
    3636
    3737form
    3838{
    39         margin: 0px 0px 0px 0px;
    40         padding: 0px 0px 0px 0px;
     39        margin: 0;
     40        padding: 0;
    4141}
    4242
     43#outputSample
     44{
     45        table-layout:fixed;
     46}
     47
    4348pre
    4449{
    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 */
    5059}
     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

     
    106106                        are applied in the image preview dialog.</li>
    107107                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2056">#2056</a>] Fixed several validation
    108108                        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 "&lt;?=" to "&lt;? echo".</li>
    109113        </ul>
    110114        <h3>
    111115                Version 2.6</h3>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy