Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: paneles in themes.php
Parašė Lordcraft· 2008 Vas. 7 20:02:10
#1
daleiskim turiu tokia panele;
echo "<table width='100%'>
<tr>
<td width='25%'>";
openside("<center>Naujienos</center>");
echo "<div class='side-label'><b>Naujienos</b></div>\n";
$result = dbquery("SELECT * FROM ".$db_prefix."news WHERE ".groupaccess('news_visibility')." AND (news_start='0'||news_start<=".time().") AND (news_end='0'||news_end>=".time().") ORDER BY news_datestamp DESC LIMIT 0,5");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while ($data = dbarray($result)) {
echo "<tr>
<td class='small'>
<img src='".THEME."images/bullet.gif'>
<a href='".BASEDIR."news.php?readmore=".$data['news_id']."' title='".$data['news_subject']."' class='side'>".trimlink($data['news_subject'], 23)."</a>
</td>
<td align='right'>".$data['news_reads']."</td>
</tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}
echo "";
closeside();
echo "</td>
<td width='25%'>";
openside("<center>Naujausi siuntiniai</center>");
echo "<div class='side-label'><b>Nauji siuntiniai</b></div>\n";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,5");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while ($data = dbarray($result)) {
echo "<tr>
<td class='small'>
<img src='".THEME."images/bullet.gif'>
<a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>".trimlink($data['download_title'], 23)."</a>
</td>
<td align='right'>".$data['download_count']."</td>
</tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}
echo "";
closeside();
echo "</td>
<td width='25%'>";
openside("<center>Naujausi siuntiniai</center>");
echo "<div class='side-label'><b>Nauji siuntiniai</b></div>\n";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,5");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while ($data = dbarray($result)) {
echo "<tr>
<td class='small'>
<img src='".THEME."images/bullet.gif'>
<a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>".trimlink($data['download_title'], 23)."</a>
</td>
<td align='right'>".$data['download_count']."</td>
</tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}
echo "";
closeside();
echo "</td>
<td width='25%'>";
openside("<center>Naujausios nuorodos</center>");
$result = dbquery("SELECT * FROM ".$db_prefix."weblinks ORDER BY weblink_datestamp DESC LIMIT 0,5");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while ($data = dbarray($result)) {
echo "<tr>
<td class='small'>
<img src='".THEME."images/bullet.gif'>
<a href='".BASEDIR."weblinks.php?cat_id=".$data['weblink_cat']."&weblink_id=".$data['weblink_id']."' target='_blank'>".$data['weblink_name']."</a>
</td>
<td align='right'>".$data['weblink_count']."</td>
</tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}
echo "";
closeside();
echo "</td>
</table>";
ir reikia kad man ja rodytu po baneriu bet per include nelabai gaunas...
Parašė Toonis· 2008 Vas. 7 20:02:39
#2
Pasiimk emotive.in shabby theme ir žiūrėk, naudok kaip pavyzdį.
Parašė Lordcraft· 2008 Vas. 7 20:02:01
#3
Toonis parašė:
Pasiimk emotive.in shabby theme ir žiūrėk, naudok kaip pavyzdį.
tai kad tos themes nesutaps nei biski ir nei pritaikyti beto tas saitas neveikia.
kas nors dar help ? :s
Parašė Lordcraft· 2008 Vas. 8 17:02:05
#4
nu vo pasinaudojau ta emotive tema ir idejau paneles i thmes.php baneriu paneles gerai viekia o va tos kur papostinau pirmam poste neveikia, nenuskanuoja info is db:
http://img262.imageshack.us/img2...dfgxo4.png
Parašė bad_user· 2008 Vas. 8 17:02:14
#5
Nu ir baisus dizainas :o
Parašė Donatis07· 2008 Vas. 8 17:02:34
#6
SoNG parašė:
Nu ir baisus dizainas :o
pritariu. tikrink lenteles.
Parašė Lordcraft· 2008 Vas. 8 17:02:31
#7
gal galit is man svarbios temos nedaryti off topic?