Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Panele

Parašė Tehkilla· 2013 Vas. 20 12:02:34
#1

Sveiki, iskylo problema kaip perdaryti daleiskim sita panele kad dasidedu i eile dar viena panele tai naujausi straipsniai:




    echo "<table width='100%'>
    <tr>
    <td width='50%'>";
    openside("Naujausi Siuntiniai");
    $result = dbquery(
    "SELECT td.*,tdc.* FROM ".$db_prefix."downloads td
    INNER JOIN ".$db_prefix."download_cats tdc ON td.download_cat=tdc.download_cat_id
    WHERE ".groupaccess('download_cat_access')." ORDER BY download_datestamp DESC LIMIT 0,10"
    );
    if (dbrows($result) != 0) {
    while($data = dbarray($result)) {
    $itemsubject = trimlink($data['download_title'], 23);
    echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>$itemsubject</a><br>\n";
    }
    } else {
    echo "<center>Nėra siuntinių</center>\n";
    }
    closeside();
    echo "</td>
    <td width='50%'>";
    openside("Top 10");
    $result = dbquery(
    "SELECT td.*,tdc.* FROM ".$db_prefix."downloads td
    INNER JOIN ".$db_prefix."download_cats tdc ON td.download_cat=tdc.download_cat_id
    WHERE ".groupaccess('download_cat_access')." ORDER BY download_count DESC LIMIT 0,10"
    );
    if (dbrows($result) != 0) {
    while($data = dbarray($result)) {
    $itemsubject = trimlink($data['download_title'], 23);
    echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>$itemsubject</a><br>\n";
    }
    } else {
    echo "<center>Nėra siuntinių</center>\n";
    }
    closeside();
    echo "</tr>
    </table>"; 


Tam kode yra Naujausi siuntiniai|Populiariausi siuntiniai|(reikia dar naujausiu straipsniu|

Parašė Wasiulis· 2013 Vas. 20 15:02:38
#2


    echo "<table width='100%'><tr>
    <td width='33%'>";
    openside("Naujausi Siuntiniai");
    $result = dbquery("SELECT td.*,tdc.* FROM ".$db_prefix."downloads td INNER JOIN ".$db_prefix."download_cats tdc ON td.download_cat=tdc.download_cat_id WHERE ".groupaccess('download_cat_access')." ORDER BY download_datestamp DESC LIMIT 0,10");
 
    if (dbrows($result) != 0) {
    while($data = dbarray($result)) {
    $itemsubject = trimlink($data['download_title'], 23);
    echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>$itemsubject</a><br>\n";
    }
    } else {
    echo "<center>Nėra siuntinių</center>\n";
    }
    closeside();
 
    echo "</td>
    <td width='33%'>";
 
    openside("Top 10");
    $result = dbquery("SELECT td.*,tdc.* FROM ".$db_prefix."downloads td INNER JOIN ".$db_prefix."download_cats tdc ON td.download_cat=tdc.download_cat_id WHERE ".groupaccess('download_cat_access')." ORDER BY download_count DESC LIMIT 0,10");
 
    if (dbrows($result) != 0) {
    while($data = dbarray($result)) {
    $itemsubject = trimlink($data['download_title'], 23);
    echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>$itemsubject</a><br>\n";
    }
    } else {
    echo "<center>Nėra siuntinių</center>\n";
    }
    closeside();
 
	echo "</td>
    <td width='33%'>";
 
	openside("Naujausi straipsniai");
$result = dbquery("SELECT ta.article_id, ta.article_subject, tac.article_cat_id, tac.article_cat_access FROM ".DB_ARTICLES." ta INNER JOIN ".DB_ARTICLE_CATS." tac ON ta.article_cat=tac.article_cat_id ".(iSUPERADMIN ? "" : "WHERE ".groupaccess('article_cat_access'))." AND article_draft='0' ORDER BY article_datestamp DESC LIMIT 0,5"
);
if (dbrows($result)) {
	while($data = dbarray($result)) {
	$itemsubject = trimlink($data['article_subject'], 28);
	echo THEME_BULLET." <a href='".BASEDIR."articles.php?article_id=".$data['article_id']."' class='side' title='".$data['article_subject']."'>$itemsubject</a><br />\n";
	}
} else {
	echo "<div style='text-align:center'>".$locale['global_031']."</div>\n";
}
closeside();
 
    echo "</tr>
    </table>"; 

Parašė Tehkilla· 2013 Vas. 20 17:02:53
#3

viskas veikia dekui, o gal zinai kaip backgrounda dar uzdeti pilkos spalvos daleiskim?

Parašė Wasiulis· 2013 Vas. 20 17:02:26
#4

ten kur:

<td width='33%'>";

Pakeiti į:

<td width='33%' style='color:#ff0000;'>";

Čia raudoną kaip pvz uždėjau. čia daugiau kodų http://www.hey.lt/colors.html

Parašė Pakartoti slaptažodį· 2013 Vas. 20 17:02:11
#5

Wasiulis parašė:
ten kur:

<td width='33%'>";

Pakeiti į:

<td width='33%' style='color:#ff0000;'>";

Čia raudoną kaip pvz uždėjau. čia daugiau kodų http://www.hey.lt/colors.html

Jei norima fono, tai ne color o background.

Redagavo Pakartoti slaptažodį· 2013 Vas. 20 17:02:19