Changeset 325 for trunk/app/views/forums
- Timestamp:
- 03/19/08 16:27:43 (9 months ago)
- Files:
-
- 1 modified
-
trunk/app/views/forums/display.ctp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/forums/display.ctp
r323 r325 5 5 echo '<div style="padding:6px;border:1px dotted gray;margin:15px 0 15px 0">'; 6 6 echo '<div style="padding:6px;border:1px solid orange;font-size:17pt;color:orange;font-weight:bold">'.$data["Forum"]["title"].'</div>'; 7 echo '<span ="font-size:pt">'. $data["Forum"]["description"] . "</span>";8 echo '<div style="width:100px;margin-top:15px">';9 echo $html->link($html->image('static/new_post.gif', array("alt"=>"Add new topic", "title"=>"Add new topic")),7 echo '<span ="font-size:pt">'. $data["Forum"]["description"] . "</span>"; 8 echo '<div style="width:100px;margin-top:15px">'; 9 echo $html->link($html->image('static/new_post.gif', array("alt"=>"Add new topic", "title"=>"Add new topic")), 10 10 '/topics/add/'.$blog["User"]["username"].'/'.$data["Forum"]["id"], 11 11 null, null, false); 12 echo '</div>';12 echo '</div>'; 13 13 14 //Topics15 echo '<table style="border-collapse:collapse;width:100%">';16 if ( count($data["Topic"]) == 0)17 {14 //Topics 15 echo '<table style="border-collapse:collapse;width:100%">'; 16 if ( count($data["Topic"]) == 0) 17 { 18 18 echo '<tr><td colspan="6"><br /><h4>There is not topic on this forum yet</h4></td></tr>'; 19 }20 else21 {19 } 20 else 21 { 22 22 $th = array('Read', 'Topics', 'Replies', 'Author', 'Views', 'Last Post'); 23 23 echo $html->tableHeaders($th); 24 }25 //die(print_r($data["Topic"]));24 } 25 //die(print_r($data["Topic"])); 26 26 27 foreach ($data["Topic"] as $val) 28 { 29 if ($val['level'] == 0) 30 { 31 $tr = array ( 27 foreach ($data["Topic"] as $val) 28 { 29 $tr = array ( 32 30 $html->image('static/folder.gif'), 33 31 $html->link($val['subject'], '/topics/display/'.$data['Forum']['user_id'].'/'.$val['forum_id'].'/'.$val['id']), … … 40 38 echo $html->tableCells($tr, array("style"=>"border:1px solid gray;padding:6px;background-color:#e8f6fe"), 41 39 array("style"=>"border:1px solid gray;padding:6px;background-color:#c0c0c0")); 42 }43 }40 41 } 44 42 45 echo '</table>'; 46 47 echo '</div>'; 43 echo '</table>'; 44 echo '</div>'; 48 45 49 46
