PHP expert |
|
op het forum laat ik de topics dmv onderstaande code zien:
<div class='t'>
<div class='m' style='border: 1px #c4c7ce solid; width: 832px'>
Title: <?= $arr['title'] ?><br />
By: <?= users($arr['author']) ?><br />
Date: <?= date("d-m-Y", $arr['time']) ?>
</div>
<div class='l' style='border: 1px #c4c7ce solid; border-top: 0px; width: 116px; height: 100%'><?= $marr['rank'] ?><br /><br />Posts: <?= $marr['forum_posts'] ?></div>
<div class='r' style='border: 1px #c4c7ce solid; border-left: 0px; border-top: 0px; width: 710; padding-left: 1px; height: 100%'><?= nl2br(stripslashes($arr['message'])) ?></div>
<div class="tbot"> </div>
</div>
<?php
if($marr['level'] >= 3 || $marr['userid'] == $_SESSION['userid'])
{
?>
<div class='t' style='border: 1px #c4c7ce solid; border-top: 0px; width: 832px'>
<div class='m' style='text-align: left; margin-left: 10px'>
<a href='?page=forum/edit&type=topic&topicid=<?= $_GET['topicid'] ?>&catid=<?= $_GET['catid'] ?>'>Edit</a>
</div>
</div>
<?php
}
else
{
?>
<div class='t' style='border: 1px #c4c7ce solid; border-top: 0px; width: 832px'>
<div class='m'> </div>
</div>
<?php
}
?>
<div class='t'> <div class='m' style='border: 1px #c4c7ce solid; width: 832px'> Title: <?= $arr['title'] ?><br /> By: <?= users($arr['author']) ?><br /> Date: <?= date("d-m-Y", $arr['time']) ?> </div> <div class='l' style='border: 1px #c4c7ce solid; border-top: 0px; width: 116px; height: 100%'><?= $marr['rank'] ?><br /><br />Posts: <?= $marr['forum_posts'] ?></div> <div class='r' style='border: 1px #c4c7ce solid; border-left: 0px; border-top: 0px; width: 710; padding-left: 1px; height: 100%'> <?= nl2br(stripslashes($arr['message'])) ?></div> <div class="tbot"> </div> </div> <?php if($marr['level'] >= 3 || $marr['userid'] == $_SESSION['userid']) { ?> <div class='t' style='border: 1px #c4c7ce solid; border-top: 0px; width: 832px'> <div class='m' style='text-align: left; margin-left: 10px'> <a href='?page=forum/edit&type=topic&topicid=<?= $_GET['topicid'] ?>&catid=<?= $_GET['catid'] ?>'>Edit</a> </div> </div> <?php } else { ?> <div class='t' style='border: 1px #c4c7ce solid; border-top: 0px; width: 832px'> <div class='m'> </div> </div> <?php } ?>
maar op het moment is er 1 regel in de message dus is de linker kolom stuk langer dan de rechter, hoe kan ik dit gelijk trekken want nu ziet het er niet uit, ik druk alles straks wel in een class maar wilde het eerst even werkend krijgen.
gaat dus echt dat dit stuk
<div class='l' style='border: 1px #c4c7ce solid; border-top: 0px; width: 116px; height: 100%'><?= $marr['rank'] ?><br /><br />Posts: <?= $marr['forum_posts'] ?></div>
<div class='r' style='border: 1px #c4c7ce solid; border-left: 0px; border-top: 0px; width: 710; padding-left: 1px; height: 100%'><?= nl2br(stripslashes($arr['message'])) ?></div>
<div class='l' style='border: 1px #c4c7ce solid; border-top: 0px; width: 116px; height: 100%'><?= $marr['rank'] ?><br /><br />Posts: <?= $marr['forum_posts'] ?></div> <div class='r' style='border: 1px #c4c7ce solid; border-left: 0px; border-top: 0px; width: 710; padding-left: 1px; height: 100%'> <?= nl2br(stripslashes($arr['message'])) ?></div>
niet aansluit op de code die in de if else staat
|