By: albertos
Date: 2006-07-17
Time: 16:08
|
  thing
hi. i'm having some progs with the thing when inserting in some templates.
it's being set in a nested table and the result is breaking up the parent table.
any ideas?
sample
Desired Thing (simplified)!
<table>
<tr>
<td>some thing here....</td>
</tr>
<tr>
<td>
<table><tr><td> </td></tr></table>
</td>
</tr>
</table>
|
Result
<table>
<tr>
<td>some thing here....</td>
</tr>
<tr>
<td>
<table><tr><td> </td></tr></table>
|
|
By: albertos
Date: 2006-07-17
Time: 16:09
|
Re:   thing
the nested template is...
<table cellpadding="3" cellspacing="2" id="adminTableDetails">
<tr>
<th colspan="2">Λεπτομέρειες Χρήστη</th>
</tr>
<tr>
<td width="100" nowrap="nowrap" class="even">Όνομα Χρήστη:</td>
<td>[blk2.urealname]</td>
</tr>
<tr>
<td width="100" nowrap="nowrap" class="even">Login:</td>
<td>[blk2.ulogin]</td>
</tr>
<tr>
<td width="100" nowrap="nowrap" class="even">Επίπεδο:</td>
<td>[blk2.ulevel]</td>
</tr>
<tr><td colspan="2"> </td></tr>
<tr>
<td><input type="button" name="back" value="Επιστροφή" onclick="location.href='mng_users.php'" /></td>
<td></td>
</tr>
</table>
|
|
By: TomH
Date: 2006-07-17
Time: 16:47
|
Re:   thing
|
By: albertos
Date: 2006-07-17
Time: 17:42
|
Re:   thing
nope the same... seems that the ; makes the difference... :-(
|
By: Skrol29
Date: 2006-07-17
Time: 20:39
|
Re:   thing
Hello, in fact I dont understand your problem. Can you give more details ?
|
By: TomH
Date: 2006-07-17
Time: 21:07
|
Re:   thing
The code you show as "the nested template" renders correctly for me
(shows " " in "Show source")
on WinXP / Apache / Seamonkey and MSIE
HTH
|
By: albertos
Date: 2006-07-17
Time: 23:34
|
Re:   thing
i'll post the original code and some screenshot... but 2morrow (kinda tooooo tired now...)
|
By: albertos
Date: 2006-07-23
Time: 21:04
|
Re:   thing
found what it wrong (in a way....) my template look like this:
<[var.op; if <[val]>==home; then
'<[var.ProjectTabPage;htmlconv=no;]>';
if <[val]>==tasks; then '
<table>
<tr>
<td colspan="6"><input type="button" name="netask" value="Νέο Task" onclick="location.href='mng_project.php?id=<[var.pid]>&op=tasksnew'" /></td>
</tr>
<tr>
<td>Num</td>
<td>User</td>
<td>Date Start</td>
<td>Date Fin</td>
<td>Task Name</td>
<td>Actions</td>
</tr>
<tr>
<td><[blk.#;block=tr]></td>
<td>-</td>
<td>Date Start</td>
<td>Date Fin</td>
<td><[blk.tname]></td>
<td>View - Del</td>
</tr>
<tr>
<td colspan="6"><[blk;block=tr;nodata]>No Items</td>
</tr>
</table>' ]>
....
|
i'm using <[ and ]> as tags.I noticed that when i apply after then single quotes and a TBS var, then everything is ok, but when no var is to set i get wrong results. Further more if i set single quotes everything is working, but the TBS outputs the single quotes.
i'm using php5.1.4 on IIS (as cgi) and i tries the same on a 5.0.4 Apache system. the results are the same.
If anyone knows something, please let me know. thanks 4 this great class.
|
|
Posting in progress.
Please wait...
|