Pradinis
Pagalba
Užsisakyk!
- Reklamą
- Hostingą
- El. pašto dėžutę
Užsisakyk!
Įrankiai
Pasidalink
- Visos temos
Forumas | PHP-Fusion, WordPress, Shopify, PHP ir MySQL (PROGRAMAVIMAS) | Žaliems |
Autorius: ignisss123 | Peržiūrų: 638 |
ignisss123 Narys Patrankų mėsa Pranešimai: 1 Įstojęs: 2011 Spa. 28 19:10:50 | |
Ikeliau dizaina i tinklapi ir kai ienu pavyzdziu i siuntinius viestiek rodo naujienas kaip tai galima pakeisti Themes kodas: <?php if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; } require_once INCLUDES."theme_functions_include.php"; // theme settings $body_text = "#555555"; $body_bg = "#006600"; $theme_width = "978"; $theme_width_l = "221"; $theme_width_r = "221"; function render_header($header_content) { global $theme_width, $db_prefix; echo "<table id='Table_01' width='978' height='361' border='0' cellpadding='0' cellspacing='0' align='center'> <tr> <td colspan='2' rowspan='2'> <img src='".THEME."images/cs_01.png' width='375' height='208' alt=''></td> <td colspan='9'> <img src='".THEME."images/cs_02.png' width='603' height='153' alt=''></td> </tr> <tr> <td> <a href='".BASEDIR."index.php'><img src='".THEME."images/cs_03.png' width='113' height='55' alt=''></td> <td colspan='2'> <a href='".BASEDIR."index.php'><img src='".THEME."images/cs_04.png' width='90' height='55' alt=''></a></td> <td> <a href='".BASEDIR."index.php'><img src='".THEME."images/cs_05.png' width='106' height='55' alt=''></a></td> <td> <a href='".BASEDIR."index.php'><img src='".THEME."images/cs_06.png' width='66' height='55' alt=''></a></td> <td colspan='2'> <a href='".BASEDIR."index.php'><img src='".THEME."images/cs_07.png' width='93' height='55' alt=''></a></td> <td colspan='2'> <a href='".BASEDIR."index.php'><img src='".THEME."images/cs_08.png' width='135' height='55' alt=''></a></td> </tr> <tr> <td rowspan='2'> <img src='".THEME."images/cs_09.png' width='22' height='152' alt=''></td> <td colspan='3' background='".THEME."images/cs_10.png' width='540' height='136'> <a href='http://cs-bboy.huh.lt'><img src='".THEME."images/banner.gif' align='center' valign='middle' /></a> </td> <td colspan='4' rowspan='2' background='".THEME."images/cs_11.png' width='200' height='152'>"; $result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,8"); if (dbrows($result) != 0) { echo "<table width='100%' cellpadding='0' cellspacing='0' >"; while ($data = dbarray($result)) { $itemsubject = trimlink($data['download_title'], 19); echo "<tr><td class='small'> <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='header'><b>$itemsubject</b></a></td> <td align='right'><span style='color: #ffffff'><b>".$data['download_count']."<b></span></td></tr>"; } echo "</table>"; } else { echo "<div style='text-align:center'>".$locale['004']."</div>\n"; } echo "</td>"; echo "</td> <td colspan='2' rowspan='2' background='".THEME."images/cs_12.png' width='199' height='152'>"; $result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,8"); if (dbrows($result) != 0) { echo "<table width='100%' cellpadding='0' cellspacing='0' >"; while ($data = dbarray($result)) { $itemsubject = trimlink($data['download_title'], 19); echo "<tr><td class='small'> <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='header'><b>$itemsubject</b></a></td> <td align='right' style='padding-right: 15px;'><span style='color: #ffffff'><b>".$data['download_count']."<b></span></td></tr>"; } echo "</table>"; } else { echo "<div style='text-align:center'>".$locale['004']."</div>\n"; } echo "</td>"; echo "<td rowspan='2'> <img src='".THEME."images/cs_13.png' width='17' height='152' alt=''></td> </tr> <tr> <td colspan='3'> <img src='".THEME."images/cs_14.png' width='540' height='16' alt=''></td> </tr> <tr> <td> <img src='".THEME."images/spacer.gif' width='22' height='1' alt=''></td> <td> <img src='".THEME."images/spacer.gif' width='353' height='1' alt=''></td> <td> <img src='".THEME."images/spacer.gif' width='113' height='1' alt=''></td> <td> <img src='".THEME."images/spacer.gif' width='74' height='1' alt=''></td> <td> <img src='".THEME."images/spacer.gif' width='16' height='1' alt=''></td> <td> <img src='".THEME."images/spacer.gif' width='106' height='1' alt=''></td> <td> <img src='".THEME."images/spacer.gif' width='66' height='1' alt=''></td> <td> <img src='".THEME."images/spacer.gif' width='12' height='1' alt=''></td> <td> <img src='".THEME."images/spacer.gif' width='81' height='1' alt=''></td> <td> <img src='".THEME."images/spacer.gif' width='118' height='1' alt=''></td> <td> <img src='".THEME."images/spacer.gif' width='17' height='1' alt=''></td> </tr> </table>\n"; echo "<table cellpadding='0' cellspacing='0' width='$theme_width' align='center'>\n<tr>\n"; } function render_footer($license=false) { global $theme_width,$settings; echo "</tr>\n</table>\n"; echo "<table cellpadding='0' cellspacing='0' width='$theme_width' height='74' align='center' class='them-footer'> <tr> <td style='padding-left: 30px;'> <span style='color: #323232;'>Programavimas:</span> <a href='http://cs-bboy.huh.lt'><span style='color: #ffffff;'>cs-bboy.huh.lt</span></a><br> </td> </tr> </table> <table cellpadding='0' cellspacing='0' width='988' align='center'> <tr> </tr> </table>\n"; } function render_news($subject, $news, $info) { echo "<table cellpadding='0' cellspacing='0' width='100%' align='center'> <tr> <td class='capmain'>$subject</td> </tr> <tr> <td class='main-body'>$news</td> </tr> <tr> <td align='center' class='news-footer'>\n"; if (!isset($_GET['readmore'])) { echo "<a href='".BASEDIR."news.php?readmore=".$info['news_id']."' style='text-decoration: none'>Siustis/Placiau</a></td>"; } else { echo "<a href='".BASEDIR."news.php' style='text-decoration: none'>Sugrižti atgal</a>"; } echo "</td> </tr> </table>\n"; } function render_article($subject, $article, $info) { echo "<table width='100%' cellpadding='0' cellspacing='0' align='center'> <tr> <td class='capmain'>$subject</td> </tr> <tr> <td class='main-body'> ".($info['article_breaks'] == "y" ? nl2br($article) : $article)." </td> </tr> <tr> <td align='center' class='news-footer'>\n"; echo openform("A",$info['article_id']).articleposter($info," ·").articleopts($info,"·").closeform("A",$info['article_id']); echo "</td> </tr> </table>\n"; } function opentable($title) { echo "<table cellpadding='0' cellspacing='0' width='100%' align='center'> <tr> <td class='capmain'>$title</td> </tr> <tr> <td class='main-body'>\n"; } function closetable() { echo "</td> </tr> </table>\n"; } function openside($title) { echo "<table cellpadding='0' cellspacing='0' width='100%' class='border' align='center'> <tr> <td class='scapmain'><center>$title</center></td> </tr> <tr> <td class='side-body'>\n"; } function closeside() { echo "</td> </tr> <tr> <td class='scapmain-bottom'> </td> </tr> </table>\n"; tablebreak(); } function opensidex($title,$state="on") { $boxname = str_replace(" ", "", $title); echo "<table cellpadding='0' cellspacing='0' width='100%' class='border' align='center'> <tr> <td class='scapmain'>$title</td> <td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td> </tr> <tr> <td colspan='2' class='side-body'> <div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n"; } function closesidex() { echo "</div> </td> </tr> </table>\n"; tablebreak(); } function tablebreak() { echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n"; } ?> ----------------------------------------------------------------------------------------------------------------------------------- Prasyciau padeti labai reikia |
|
skrstv Narys Margas Pranešimai: 83 Įstojęs: 2011 Rugp. 16 22:08:11 | |
visur vietoj index.php pakeisk į tą nuorodą, į kurią norėtum kad perkeltu, pavizdžiui downloads.php |
Peršokti į forumą: |