Witam. Mam takie pytanie, korzystam z thems'a http://themes.php...eme_id=321 i chciałbym żeby zamiast:
- Latest Links
- Latest News
- Latest Downloads
na tym czarnym polu przed footerem były zwykłe img obok siebie.
Tak wygląda kod odpowiedzialny za tą część
i nie mam pojęcia jakimi zasadami to się kieruje jeśli chodzi o pliki php
bo chyba nie moge poprostu wstawić img src ...
echo "<div id='sidebar'>\n";
echo "<ul>\n";
echo "<li>\n";
echo "<h2><a href='".BASEDIR."weblinks.php'>Latest Links</a></h2>\n";
echo "<ul>\n";
$result = dbquery(
"SELECT tw.weblink_id, tw.weblink_name, twc.weblink_cat_id FROM ".DB_WEBLINKS." tw
INNER JOIN ".DB_WEBLINK_CATS." twc ON tw.weblink_cat=twc.weblink_cat_id
".(iSUPERADMIN ? "" : "WHERE ".groupaccess('weblink_cat_access'))." ORDER BY weblink_datestamp DESC LIMIT 0,7"
);
if (dbrows($result)) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['weblink_name'], 23);
echo "<li><a href='".BASEDIR."weblinks.php?cat_id=".$data['weblink_cat_id']."&weblink_id=".$data['weblink_id']."' title='".$data['weblink_name']."'>$itemsubject</a></li>\n";
}
} else {
echo "<li>No Links available</li>\n";
}
echo "</ul>\n";
echo "</li>\n";
echo "<li>\n";
echo "<h2><a href='".BASEDIR."articles.php'>Latest Articles</a></h2>\n";
echo "<ul>\n";
$result = dbquery(
"SELECT ta.article_id, ta.article_subject, tac.article_cat_id FROM ".DB_ARTICLES." ta
INNER JOIN ".DB_ARTICLE_CATS." tac ON ta.article_cat=tac.article_cat_id
".(iSUPERADMIN ? "WHERE" : "WHERE ".groupaccess('article_cat_access')." AND")." article_draft='0' ORDER BY article_datestamp DESC LIMIT 0,7"
);
if (dbrows($result)) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['article_subject'], 23);
echo "<li><a href='".BASEDIR."articles.php?article_id=".$data['article_id']."' title='".$data['article_subject']."'>$itemsubject</a></li>\n";
}
} else {
echo "<li>".$locale['global_031']."</li>\n";
}
echo "</ul>\n";
echo "</li>\n";
echo "<li>\n";
echo "<h2><a href='".BASEDIR."news.php'>Latest News</a></h2>\n";
echo "<ul>\n";
$result = dbquery(
"SELECT tn.news_id, tn.news_subject FROM ".DB_NEWS." tn
".(iSUPERADMIN ? "WHERE" : "WHERE ".groupaccess('news_visibility')." AND")." news_draft='0' ORDER BY news_datestamp DESC LIMIT 0,7"
);
if (dbrows($result)) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['news_subject'], 23);
echo "<li><a href='".BASEDIR."news.php?readmore=".$data['news_id']."' title='".$data['news_subject']."'>$itemsubject</a></li>\n";
}
} else {
echo "<li>No News available</li>\n";
}
echo "</ul>\n";
echo "</li>\n";
echo "<li>\n";
echo "<h2><a href='".BASEDIR."downloads.php'>Latest Downloads</a></h2>\n";
echo "<ul>\n";
$result = dbquery(
"SELECT ta.download_id, ta.download_title, tac.download_cat_id FROM ".DB_DOWNLOADS." ta
INNER JOIN ".DB_DOWNLOAD_CATS." tac ON ta.download_cat=tac.download_cat_id
".(iSUPERADMIN ? "" : "WHERE ".groupaccess('download_cat_access'))." ORDER BY download_datestamp DESC LIMIT 0,7"
);
if (dbrows($result)) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 23);
echo "<li><a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat_id']."&download_id=".$data['download_id']."' title='".$data['download_title']."'>$itemsubject</a></li>\n";
}
} else {
echo "<li>No Downloads available</li>\n";
}
echo "</ul>\n";
echo "</li>\n";
echo "</ul>\n";
echo "<div style='clear: both;'> </div>\n";
echo "</div>\n";
echo "<!-- end sidebar -->\n";
Edytowane przez Pieka dnia 17.11.2010 13:10:44
|