From 710a1e40de2c29260187499befbb07d9fe6815d9 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 2 Aug 2005 04:46:24 +0000 Subject: [PATCH] Created a conditional testing system --- dev/conditionaltest.php | 67 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 dev/conditionaltest.php diff --git a/dev/conditionaltest.php b/dev/conditionaltest.php new file mode 100644 index 0000000..3615e35 --- /dev/null +++ b/dev/conditionaltest.php @@ -0,0 +1,67 @@ + conditional tests +// $Id$ +// $Author$ +// $Revision$ +// $Date$ +// $HeadURL$ + +require_once('../kernel.php'); +$isso =& $_isso; + +$isso->apppath = $isso->fetch_sourcepath(getcwd()); +$isso->sourcepath = $isso->fetch_sourcepath($isso->apppath . '../'); +$isso->application = 'Template Test'; +$isso->appversion = '$Id$'; +$isso->debug = true; + +$isso->load('template'); + +// ################################################################### + +$data = ' + + + + + + Remove Item + + Edit Item + Received Item + + + + + Purchase Item + + + Un-purchase Item + + + ($iteminfo[email]) + + + + + $iteminfo[name]$iteminfo[name] + + $iteminfo[price] + $iteminfo[rating] + $iteminfo[notes] + $iteminfo[dateline] +'; + +// ################################################################### + +$parsed = $template->_parse($data); + +echo '
';
+
+echo '$test = "' . htmlspecialchars($parsed) . '";';
+
+echo '
'; + +eval('$test = "' . $parsed . '";'); + +?> \ No newline at end of file -- 2.43.5