]>
src.bluestatic.org Git - isso.git/blob - dev/conditionaltest.php
2 // <if> conditional tests
9 require_once('../kernel.php');
12 $isso->apppath
= $isso->fetch_sourcepath(getcwd());
13 $isso->sourcepath
= $isso->fetch_sourcepath($isso->apppath
. '../');
14 $isso->application
= 'Template Test';
15 $isso->appversion
= '$Id$';
18 $isso->load('template
');
20 // ###################################################################
25 <span style
="float: right; display: inline" class="smallfont">
26 <if condition
="$show[\'edit\']">
27 <if condition
="$show[\'receive\']">
28 <a href
="item.php?do=finishget&id=$iteminfo[itemid]" title
="Remove"><img src
="{$template->templatedir}images/remove_item.png" alt
="Remove Item" border
="0" /></a
>
30 <a href
="item.php?do=edit&id=$iteminfo[itemid]" title
="Edit"><img src
="{$template->templatedir}images/edit_item.png" alt
="Edit Item" border
="0" /></a
>
31 <a href
="item.php?do=got&id=$iteminfo[itemid]" title
="Received"><img src
="{$template->templatedir}images/receive_item.png" alt
="Received Item" border
="0" /></a
>
34 <if condition
="$show[\'purchase\'] OR $show[\'unpurchase\']">
35 <if condition
="$show[\'purchase\']">
36 <a href
="item.php?do=purchase&id=$iteminfo[itemid]" title
="Purchase"><img src
="{$template->templatedir}images/purchase_item.png" alt
="Purchase Item" border
="0" /></a
>
38 <if condition
="$show[\'unpurchase\']">
39 <a href
="item.php?do=unpurchase&id=$iteminfo[itemid]" title
="Un-purchase"><img src
="{$template->templatedir}images/unpurchase_item.png" alt
="Un-purchase Item" border
="0" /></a
>
42 (<a href
="mailto:$iteminfo[email]">$iteminfo[email
]</a
>)
47 <if condition
="$iteminfo[\'url\']"><a href
="$iteminfo[url]" target
="_blank">$iteminfo[name
]</a
><else />$iteminfo[name
]</if>
49 <td
class="alt2">$iteminfo[price
]</td
>
50 <td
class="alt1">$iteminfo[rating
]</td
>
51 <td
class="alt2">$iteminfo[notes
]</td
>
52 <td
class="alt1">$iteminfo[dateline
]</td
>
55 // ###################################################################
57 $parsed = $template->_parse($data);
61 echo '$test = "' . htmlspecialchars($parsed) . '";';
65 eval('$test = "' . $parsed . '";');