Categories > TinyButStrong general >

help me condition

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
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 '&lt;b&gt;[blk.key]&lt;/b&gt;' ; else [blk.key] ] </td>
    <td>[blk.val]</td>
  </tr>
  <tr>
    <td> [blk;block=tr;nodata]There is no data. </td>
    <td>&nbsp;</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]
By: thuc
Date: 2006-02-10
Time: 08:14

Re: help me condition

Well, I have some wrong, my problem have solved...
Thank you TBS...