[phpwebapp-commits] CVS: documentation/webobjects/displaytxt displaytxt.php,1.1,1.2 displaytxt.html,
Brought to you by:
dashohoxha
From: Dashamir H. <das...@us...> - 2003-08-20 07:55:49
|
Update of /cvsroot/phpwebapp/documentation/webobjects/displaytxt In directory sc8-pr-cvs1:/tmp/cvs-serv10107/webobjects/displaytxt Modified Files: displaytxt.php displaytxt.html displaytxt.css Log Message: tabs converted to spaces, improvments in templates and stylesheets Index: displaytxt.php =================================================================== RCS file: /cvsroot/phpwebapp/documentation/webobjects/displaytxt/displaytxt.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** displaytxt.php 23 Feb 2003 14:42:40 -0000 1.1 --- displaytxt.php 20 Aug 2003 07:31:54 -0000 1.2 *************** *** 11,29 **** $file = $this->getSVar("file"); if (!file_exists($file)) ! { ! $msg = "displaytxt: file '$file' does not exist."; ! print WebApp::error_msg($msg); ! return; ! } $lines = file($file); $rs = new EditableRS("lines"); for ($i=0; $i < sizeof($lines); $i++) ! { ! $line = chop($lines[$i]); ! $line = htmlentities($line); ! $rec = array("line" => $line); ! $rs->addRec($rec); ! } global $webPage; $webPage->addRecordset($rs); --- 11,31 ---- $file = $this->getSVar("file"); if (!file_exists($file)) ! { ! $msg = "displaytxt: file '$file' does not exist."; ! print WebApp::error_msg($msg); ! return; ! } $lines = file($file); $rs = new EditableRS("lines"); for ($i=0; $i < sizeof($lines); $i++) ! { ! $line = chop($lines[$i]); ! $line = htmlentities($line); ! $line = str_replace("\t", " ", $line); ! $line = str_replace(" ", " ", $line); ! $rec = array("line" => $line); ! $rs->addRec($rec); ! } global $webPage; $webPage->addRecordset($rs); Index: displaytxt.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/webobjects/displaytxt/displaytxt.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** displaytxt.html 23 Feb 2003 14:42:40 -0000 1.1 --- displaytxt.html 20 Aug 2003 07:31:54 -0000 1.2 *************** *** 1,9 **** <WebBox ID="displaytxt"> <div class="txtlines"> - <pre> <Repeat rs="lines"> ! {{line}} </Repeat> - </pre> </div> </WebBox> --- 1,7 ---- <WebBox ID="displaytxt"> <div class="txtlines"> <Repeat rs="lines"> ! <span class="txtline"> {{line}}</span><br> </Repeat> </div> </WebBox> Index: displaytxt.css =================================================================== RCS file: /cvsroot/phpwebapp/documentation/webobjects/displaytxt/displaytxt.css,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** displaytxt.css 23 Feb 2003 14:42:40 -0000 1.1 --- displaytxt.css 20 Aug 2003 07:31:54 -0000 1.2 *************** *** 4,5 **** --- 4,11 ---- color: #000099 } + + .txtline + { + font-family: monospace, sans-se, courier; + white-space: pre; + } |