|
From: <Yaw...@us...> - 2006-03-11 00:11:59
|
Revision: 15 Author: Yawnster Date: 2006-03-10 16:11:52 -0800 (Fri, 10 Mar 2006) ViewCVS: http://svn.sourceforge.net/opendocumentphp/?rev=15&view=rev Log Message: ----------- - Redo the changes Norman overwrote earlier today. - Added in some HTML for a commit tomorrow which will include inputted document content, instead of just a pre-defined string. Modified Paths: -------------- poc/src/samples/TestInput.php poc/src/samples/TestOutput.php Modified: poc/src/samples/TestInput.php =================================================================== --- poc/src/samples/TestInput.php 2006-03-10 15:08:52 UTC (rev 14) +++ poc/src/samples/TestInput.php 2006-03-11 00:11:52 UTC (rev 15) @@ -4,7 +4,7 @@ * * @copyright GNU General Public License * @author Norman Markgraf <nma...@us...> - * @author Alex Latchford <yan...@us...> + * @author Alex Latchford <yaw...@us...> * @version $Revision$ * @package OpenDocument/Samples * @since 0.4.2 @@ -22,22 +22,26 @@ <legend>Generate a sample OpenDocument:</legend> <fieldset> <legend>Document Type:</legend> - <label for="single">Single </label><input id="single" type="radio" name="SingleDocument" value="true" checked="checked" /> - <label for="package">Package </label><input id="package" type="radio" name="SingleDocument" value="false" /><br /> + <label for="single">Single </label><input type="radio" id="single" name="SingleDocument" value="true" checked="checked" /> + <label for="package">Package </label><input type="radio" id="package" name="SingleDocument" value="false" /><br /> </fieldset> <fieldset> <legend>Metadata:</legend> <table> <tr> <td><label for="author">Author: </label></td> - <td><input id="author" type="text" name="Creator" size="40" maxsize="50" value="Norman Markgraf" /></td> + <td><input type="text" id="author" name="Creator" size="40" maxsize="50" value="Norman Markgraf" /></td> </tr> <tr> <td><label for="title">Title: </label></td> - <td><input id="title" type="text" name="Title" size="80" maxsize="180" value="This is a sample OpenDocument file." /></td> + <td><input type="text" id="title" name="Title" size="80" maxsize="180" value="This is a sample OpenDocument file." /></td> </tr> </table> </fieldset> + <fieldset> + <legend>Document Content:</legend> + <textarea rows="10" cols="50" id="content" name="Content"></textarea> + </fieldset> <legend>Try it:</legend> <input type="submit" value="Submit!" /> </fieldset> Modified: poc/src/samples/TestOutput.php =================================================================== --- poc/src/samples/TestOutput.php 2006-03-10 15:08:52 UTC (rev 14) +++ poc/src/samples/TestOutput.php 2006-03-11 00:11:52 UTC (rev 15) @@ -4,7 +4,7 @@ * * @copyright GNU General Public License * @author Norman Markgraf <nma...@us...> - * @author Alex Latchford <yan...@us...> + * @author Alex Latchford <yaw...@us...> * @version $Revision$ * @package OpenDocument/Samples * @since 0.4.2 @@ -26,19 +26,9 @@ private $logger; function __construct() { - /* ***TO DO *** This raises a warning ... - // $conf = array( "mode" => 0600 ); - $this->logger = &Log_observer::factory( "file", "D:/PHP/OpenDocument.log", "OpenDocument", $conf ); - $this->logger = &Log_observer::factory( "console", "", "OpenDocument" ); - */ - - /* - Console output: - $this->logger = &Log_observer::factory( "console", "", "OpenDocument" ); - - File output: - $this->logger = &Log_observer::factory( "file", "OpenDocument.log", "OpenDocument" ); - */ + $conf = array( "mode" => 0600 ); + $this->logger = &Log::factory( "file", "D:/PHP/OpenDocument.log", "OpenDocument", $conf ); + $this->logger = &Log::factory( "console", "", "OpenDocument" ); } function makeMeta( $meta, $creator="Norman Markgraf", $title="This is a test!", $language="en-EN" ) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |