Categories > TinyButStrong general >

Hi, Mr SCroll29, Help me

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: thuc 101
Date: 2006-04-07
Time: 06:59

Hi, Mr SCroll29, Help me

What is Problem, why the right column dispear!!!!
----------------------------
index.php
----------------------------
<table width="100%"  border="1">
  <tr>
    <td colspan="2">logo</td>
  </tr>
  <tr>
    <td width="26%">
    <?
    include('menu.php');
    ?>    </td>
    <td width="74%">web main web main web main web main web main web main web main web main web main web main web main web main web main web main web main web main web main web main web main web main web main web main web main web main web main web main web main web main web main web main web main web main web main web main web main web main web main </td>
  </tr>
</table>
----------------------------
file template: menu.htm
----------------------------
<table width="170"  border="1">
  <tr>
    <td background="images/link_1.gif"><div align="center"><strong>[blk.ten;block=tr]</strong></div></td>
  </tr>
  <tr>
    <td>[blk;block=tr;nodata]There is no data.</td>
  </tr>
</table>
<br>
----------------------------
File php:menu.php
----------------------------
<?
include_once('../lib/tbs_class.php') ;
$menu=array(
);
for($i=0;$i<10;$i++){
    array_push($menu,array('id'=>$i,'ten'=>'menu '.$i));
}
$TBS = new clsTinyButStrong ;
$TBS->LoadTemplate('menu.htm') ;
$TBS->MergeBlock('blk',$menu) ;
$TBS->Show() ;
unset($TBS);
?>
----------------------------
By: Skrol29
Date: 2006-04-07
Time: 10:31

Re: Hi, Mr SCroll29, Help me

Hello, Thuc,

You should not choose such a title for your problem, because it doesn't help to figure out what it is about before to read.

What happens in your application is normal. By default, the Show() method exits the script immediatly. You should add a parameter to ask it to display without quit.
$TBS->Show(TBS_OUTPUT);
By: thuc 101
Date: 2006-04-08
Time: 05:20

parameter of Show() function

Thank you, Mr Scroll29