Changeset 163 for trunk/app/views/forums
- Timestamp:
- 09/26/07 16:03:52 (14 months ago)
- Location:
- trunk/app/views/forums
- Files:
-
- 2 modified
-
display.thtml (modified) (3 diffs)
-
view.thtml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/forums/display.thtml
r124 r163 1 1 <?php 2 //die(print_r($Element));3 2 //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>';3 echo '<p>Foro: '. $html->link($data["Catforum"]["title"], '/catforums/display/'.$blog["User"]["username"].'/'.$blog["User"]["id"].'/'.$data["Catforum"]["id"]) . '</p>'; 5 4 6 5 echo '<div style="padding:6px;border:1px dotted gray;margin:15px 0 15px 0">'; 7 6 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"]; 9 8 echo '</div>'; 10 echo '<span ="font-size:pt">'. $data[ 0]["Forum"]["description"] . "</span>";9 echo '<span ="font-size:pt">'. $data["Forum"]["description"] . "</span>"; 11 10 12 11 echo '<div style="width:100px;margin-top:15px">'; 13 12 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); 15 14 echo '</div>'; 16 15 … … 18 17 echo '<table style="border-collapse:collapse;width:100%">'; 19 18 20 if ( count($data[ 0]["Topic"]) == 0)19 if ( count($data["Topic"]) == 0) 21 20 { 22 21 echo '<tr><td colspan="6"><br /><h4>There is not topic on this forum yet</h4></td></tr>'; … … 27 26 echo $html->tableHeaders($th); 28 27 } 29 //die(print_r($data[ 0]["Topic"]));28 //die(print_r($data["Topic"])); 30 29 31 foreach ($data[ 0]["Topic"] as $val)30 foreach ($data["Topic"] as $val) 32 31 { 33 32 $tr = array ( 34 33 $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"]), 37 36 $val["User"]["username"], 38 37 $val['views'], -
trunk/app/views/forums/view.thtml
r60 r163 1 1 <div style="font-size:18pt;padding:5px;boder:1px solid #c0c0c0">Forums</div> 2 2 <?php 3 die(print_r($data));3 //die(print_r($data)); 4 4 5 5 foreach ($data as $val)
