By: thuc
Date: 2006-02-10
Time: 05:30
|
help me condition
---------------html--------------------------------------
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<table width="200" border="1">
<tr>
<td>[blk.key;block=tr;htmlconv=no; if [blk.val] = 'dir' ; then '<b>[blk.key]</b>' ; else [blk.key] ] </td>
<td>[blk.val]</td>
</tr>
<tr>
<td> [blk;block=tr;nodata]There is no data. </td>
<td> </td>
</tr>
</table>
</body>
</html>
---------------php--------------------------------------
<?
include_once('tbs_class.php') ;
$list=array(
'dir 1'=>'dir',
'dir 2'=>'dir',
'file 1'=>'file',
'file 2'=>'file',
);
$TBS = new clsTinyButStrong ;
$TBS->LoadTemplate('browser.htm') ;
$TBS->MergeBlock('blk',$list);
$TBS->Show();
/*
*/
?>
---------------and this is result------------------------------------
+--------------+-----+
|<b>dir 1</b> |dir |
+--------------+-----+
|<b>dir 2</b> |dir |
+--------------+-----+
|file 1 |file |
+--------------+-----+
|file 2 |file |
+--------------+-----+
--------------------------------------
help me I like it [b]bond[/b]
|