Changeset 163 for trunk/app/views/forums

Show
Ignore:
Timestamp:
09/26/07 16:03:52 (14 months ago)
Author:
aarkerio
Message:

Treasure hunt

Location:
trunk/app/views/forums
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/forums/display.thtml

    r124 r163  
    11<?php 
    2 //die(print_r($Element)); 
    32//die(print_r($data)); 
    4 echo '<p>Foro: '. $html->link($data[0]["Catforum"]["title"], '/catforums/display/'.$blog[0]["User"]["username"].'/'.$blog[0]["User"]["id"].'/'.$data[0]["Catforum"]["id"]) . '</p>'; 
     3echo '<p>Foro: '. $html->link($data["Catforum"]["title"], '/catforums/display/'.$blog["User"]["username"].'/'.$blog["User"]["id"].'/'.$data["Catforum"]["id"]) . '</p>'; 
    54 
    65  echo '<div style="padding:6px;border:1px dotted gray;margin:15px 0 15px 0">'; 
    76         echo '<div style="padding:6px;border:1px solid orange;font-size:17pt;color:orange;font-weight:bold">'; 
    8                 echo $data[0]["Forum"]["title"]; 
     7                echo $data["Forum"]["title"]; 
    98         echo '</div>'; 
    10          echo '<span ="font-size:pt">'. $data[0]["Forum"]["description"] . "</span>"; 
     9         echo '<span ="font-size:pt">'. $data["Forum"]["description"] . "</span>"; 
    1110          
    1211         echo '<div style="width:100px;margin-top:15px">'; 
    1312         echo $html->link($html->image('static/new_post.gif', array("alt"=>"Add new topic", "title"=>"Add new topic")),  
    14                       '/topics/add/'.$blog[0]["User"]["username"].'/'.$data[0]["Forum"]["title"].'/'.$data[0]["Forum"]["id"].'/'.$data[0]["Forum"]["user_id"], null, null, false); 
     13                      '/topics/add/'.$blog["User"]["username"].'/'.$data["Forum"]["title"].'/'.$data["Forum"]["id"].'/'.$data["Forum"]["user_id"], null, null, false); 
    1514         echo '</div>'; 
    1615          
     
    1817         echo '<table style="border-collapse:collapse;width:100%">'; 
    1918             
    20             if ( count($data[0]["Topic"]) == 0) 
     19            if ( count($data["Topic"]) == 0) 
    2120            { 
    2221                 echo '<tr><td colspan="6"><br /><h4>There is not topic on this forum yet</h4></td></tr>'; 
     
    2726                echo $html->tableHeaders($th); 
    2827            } 
    29             //die(print_r($data[0]["Topic"])); 
     28            //die(print_r($data["Topic"])); 
    3029             
    31             foreach ($data[0]["Topic"] as $val) 
     30            foreach ($data["Topic"] as $val) 
    3231            { 
    3332             $tr = array ( 
    3433                   $html->image('static/folder.gif'), 
    35                    $html->link($val['subject'], '/topics/display/'.$Element[0]["User"]["username"].'/'.$Element[0]["User"]["id"].'/'.$data[0]["Forum"]["id"].'/'.$val['id']), 
    36                    count($data[0]["Topic"]), 
     34                   $html->link($val['subject'], '/topics/display/'.$Element[0]["User"]["username"].'/'.$Element[0]["User"]["id"].'/'.$data["Forum"]["id"].'/'.$val['id']), 
     35                   count($data["Topic"]), 
    3736                   $val["User"]["username"], 
    3837                   $val['views'], 
  • trunk/app/views/forums/view.thtml

    r60 r163  
    11<div style="font-size:18pt;padding:5px;boder:1px solid #c0c0c0">Forums</div> 
    22<?php 
    3 die(print_r($data)); 
     3//die(print_r($data)); 
    44 
    55foreach ($data as $val)