| | 1 | <?php use_helper('sfBB') ?> |
|---|
| | 2 | <div id="threads"> |
|---|
| | 3 | <table cellpadding="4" cellspacing="2"> |
|---|
| | 4 | <tr> |
|---|
| | 5 | <th style="width: 150px">Author</th> |
|---|
| | 6 | <th style="width: 848px">Message</th> |
|---|
| | 7 | </tr> |
|---|
| | 8 | <tr> |
|---|
| | 9 | <td> |
|---|
| | 10 | <?php echo $thread->getsfGuardUser() ?> |
|---|
| | 11 | </td> |
|---|
| | 12 | <td> |
|---|
| | 13 | Posted: <?php echo $thread->getCreatedAt() ?>, Post subject: <?php echo $thread->getTitle() ?> |
|---|
| | 14 | <hr /> |
|---|
| | 15 | <?php echo $thread->getContent() ?> |
|---|
| | 16 | </td> |
|---|
| | 17 | </tr> |
|---|
| | 18 | <?php foreach ($thread->getReplies() as $reply): ?> |
|---|
| | 19 | <tr> |
|---|
| | 20 | <td> |
|---|
| | 21 | <?php echo $reply->getsfGuardUser() ?> |
|---|
| | 22 | </td> |
|---|
| | 23 | <td> |
|---|
| | 24 | Posted: <?php echo $reply->getCreatedAt() ?>, Post subject: <?php echo $reply->getTitle() ?> |
|---|
| | 25 | <hr /> |
|---|
| | 26 | <?php echo $reply->getContent() ?> |
|---|
| | 27 | </td> |
|---|
| | 28 | </tr> |
|---|
| | 29 | <?php endforeach ?> |
|---|
| | 30 | </table> |
|---|
| | 31 | </div> |
|---|