Code
function themeindex ($_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $info, $links, $preformat) {
$tipath = pnConfigGetVar('tipath'); // path to topic image
echo "<table width=\"90%\" border=\"0\" cellspacing=\"5\" cellpadding=\"0\">
<tr>
<td>$preformat[catandtitle]</td></tr><tr><td>\n";
if (pnSecAuthAction(0, 'Stories::Story', "$info[aid]:$info[cattitle]:$info[sid]", ACCESS_EDIT)) {
echo "<span class=\"pn-sub\">[ <a href=\"admin.php?module=NS-AddStory&op=EditStory&sid=$info[sid]\">"._EDIT."</a>";
if (pnSecAuthAction(0, 'Stories::Story', "$info[aid]:$info[cattitle]:$info[sid]", ACCESS_DELETE)) {
echo " | <a href=\"admin.php?module=NS-AddStory&op=RemoveStory&sid=$info[sid]\">"._DELETE."</a> ]";
} else { echo " ]";
}
echo "</span></td></tr><tr><td>\n";
}
echo"<div class=\"pn-normal\"><a href=\"$links[searchtopic]\">
<img class=\"TopicImgLeft\" src=\"$tipath$info[topicimage]\" border=\"0\" alt=\"$info[topictext]\" align=\"left\" hspace=\"5\" vspace=\"5\"></a>\n";
echo $preformat['hometext']."</div></td></tr><tr><td>\n"; // $preformat[searchtopic]
// To change picture from left to right, change class=\"TopicImgLeft\" to class=\"TopicImgRight\"
if ($preformat['notes']){
echo "<div class=\"pn-sub\">$preformat[notes]</div></td></tr>\n";
}
echo "<tr><td><div class=\"pn-sub\">
"._PUBLISHED." ".$info['briefdatetime']."<br />
".$preformat['more']."</div>
</td>
</tr>
</table><p></p><hr width=\"90%\" size=\"3\">\n";
}
$tipath = pnConfigGetVar('tipath'); // path to topic image
echo "<table width=\"90%\" border=\"0\" cellspacing=\"5\" cellpadding=\"0\">
<tr>
<td>$preformat[catandtitle]</td></tr><tr><td>\n";
if (pnSecAuthAction(0, 'Stories::Story', "$info[aid]:$info[cattitle]:$info[sid]", ACCESS_EDIT)) {
echo "<span class=\"pn-sub\">[ <a href=\"admin.php?module=NS-AddStory&op=EditStory&sid=$info[sid]\">"._EDIT."</a>";
if (pnSecAuthAction(0, 'Stories::Story', "$info[aid]:$info[cattitle]:$info[sid]", ACCESS_DELETE)) {
echo " | <a href=\"admin.php?module=NS-AddStory&op=RemoveStory&sid=$info[sid]\">"._DELETE."</a> ]";
} else { echo " ]";
}
echo "</span></td></tr><tr><td>\n";
}
echo"<div class=\"pn-normal\"><a href=\"$links[searchtopic]\">
<img class=\"TopicImgLeft\" src=\"$tipath$info[topicimage]\" border=\"0\" alt=\"$info[topictext]\" align=\"left\" hspace=\"5\" vspace=\"5\"></a>\n";
echo $preformat['hometext']."</div></td></tr><tr><td>\n"; // $preformat[searchtopic]
// To change picture from left to right, change class=\"TopicImgLeft\" to class=\"TopicImgRight\"
if ($preformat['notes']){
echo "<div class=\"pn-sub\">$preformat[notes]</div></td></tr>\n";
}
echo "<tr><td><div class=\"pn-sub\">
"._PUBLISHED." ".$info['briefdatetime']."<br />
".$preformat['more']."</div>
</td>
</tr>
</table><p></p><hr width=\"90%\" size=\"3\">\n";
}
Anyone have any suggestions on how I could maybe make the page look a little better? I'm new to working with PHP but I understand what it's doing (I'm a CS grad from Boston College so I've programmed quite a bit)
Thanks, any suggestions would be appreciated.
