Brak ikony edytuj przy newsach
|
danX |
Dodany dnia 14.04.2008 16:44:48
|
Początkujący
Postów: 106 Pomógł: 5 Ostrzeżeń: 1
Data rejestracji: 23.02.2008 08:14
|
Z niewiadomego mi powody zniknęła mi ikona z linkiem edytuj przy newsach, drukuj pozostało. Jeśli potraficie pomóżcie mi! |
|
|
|
Wścibski Gość |
Dodany dnia 15.11.2024 05:54:49
|
Pan Kontekstualny
Postów: n^x
Data rejestracji: Zawsze
|
|
IP: localhost |
|
|
piotrek199214 |
Dodany dnia 14.04.2008 17:59:13
|
Bywalec
Postów: 977 Pomógł: 168
v7.01.05 Data rejestracji: 17.12.2007 21:05
|
Pewnie dlatego że zmieniłeś thema. Bo nie we wszystkich jest.
Wstaw kod w plik theme.php w sekcji:
function render_news($subject, $news, $info) {
global $locale,$userdata,$aidlink;
a oto kod:
if (checkrights("N") || $userdata['user_level'] >= 102) {
echo "<form name='editnews".$info['news_id']."' method='post' action='".ADMIN."news.php".$aidlink."&news_id=".$info['news_id']."'>
<input type='hidden' name='edit' value='edit'><a href='javascript:document.editnews".$info['news_id'].".submit();'><img src='".IMAGES."edit.gif' alt='".$locale['048']."' title='".$locale['048']."' style='vertical-align:middle;border:0px;'></div></a></span>\n</form>\n";
}
Edytowane przez piotrek199214 dnia 14.04.2008 18:00:22
Pomogłem Ci? Wystarczy podziękować i oznaczyć post jako pomocny
Tanie tworzenie wtyczek, masz problem napisz.
|
|
|
|
bartek124 |
Dodany dnia 14.04.2008 17:59:20
|
Weteran
Postów: 3264 Pomógł: 236
v7.02.06 Data rejestracji: 26.05.2007 12:25
|
Zmieniłeś thema? Co zrobiłeś, bo samo się nie stało .
Nie pomagam na komunikatorach oraz PW!
|
|
|
|
danX |
Dodany dnia 14.04.2008 18:07:05
|
Początkujący
Postów: 106 Pomógł: 5 Ostrzeżeń: 1
Data rejestracji: 23.02.2008 08:14
|
Działa. Szkoda tylko że nie wyświetla się koło przycisku do drukowania
|
|
|
|
piotrek199214 |
Dodany dnia 14.04.2008 18:08:55
|
Bywalec
Postów: 977 Pomógł: 168
v7.01.05 Data rejestracji: 17.12.2007 21:05
|
Pokaż zawartość pliku theme.php
Pomogłem Ci? Wystarczy podziękować i oznaczyć post jako pomocny
Tanie tworzenie wtyczek, masz problem napisz.
|
|
|
|
danX |
Dodany dnia 14.04.2008 18:11:17
|
Początkujący
Postów: 106 Pomógł: 5 Ostrzeżeń: 1
Data rejestracji: 23.02.2008 08:14
|
<?
$body_text = "#B8E8F2";
$body_bg = "#2C2C2C";
$theme_width = "100%";
$theme_width_l = "207";
$theme_width_r = "207";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0'>
<tr>
<td class='lefter'><img width='45' src='".THEME."images/lefter.gif' height='1' alt=''></td>
<td class='mbody' align='right'><table width='100%' cellpacing='0' cellpadding='0' border='0'><tr><td class='toplogo'><img src='".THEME."images/logo.jpg' alt=''></td></tr></table>
<table width='100%' cellspacing='0' cellpadding='0' border='0'>
<tr>
<td class='menuss'>\n";
$separator = " </td><td class='sep'></td><td class='menuss'> ";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
echo "\n";
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " $separator \n"; } else { echo "\n"; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<a href='".$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td><td class='sep'></td><td width='30%' class='pustka'> </td>
</td><td class='sep'></td>
<td class='menus' align='right'>".ucwords(showdate($settings['subheaderdate'], time()))."</td>
</tr>
</table>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0' align='center'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td class='footer' align='center'>".stripslashes($settings['footer'])."<br><br>Powered by: <b><a href='http://www.php-fusion.co.uk'>PHP-Fusion</a> v". sprintf("%.2f", $settings['version'])."</b> <br> <b>gt-cs</b> theme by: <b><a href='http://webmer.pl' target='_blank'>sonar</a></b> and <b><a href='http://www.cierpieta.yoyo.pl' target='_blank'>Dan X</a></td>
</tr>
</table>
</td>
<td class='righter'><img width='45' src='".THEME."images/righter.gif' height='1' alt=''></td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
global $locale,$userdata,$aidlink;
if (checkrights("N") || $userdata['user_level'] >= 102) {
echo "<form name='editnews".$info['news_id']."' method='post' action='".ADMIN."news.php".$aidlink."&news_id=".$info['news_id']."'>
<input type='hidden' name='edit' value='edit'><a href='javascript:document.editnews".$info['news_id'].".submit();'><img src='".IMAGES."edit.gif' alt='".$locale['048']."' title='".$locale['048']."' style='vertical-align:middle;border:0px;'></div></a></span>\n</form>\n";
}
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td class='tresc01'></td>
<td colspan='3' class='tresc02'></td>
<td class='tresc03'></td>
</tr>
<tr>
<td class='tresc04'></td>
<td colspan='3' class='tresc05'>$subject</td>
<td class='tresc06'></td>
</tr>
<tr>
<td class='tresc07'></td>
<td colspan='3' class='tresc08'></td>
<td class='tresc09'></td>
</tr>
<tr>
<td class='tresc10'></td>
<td colspan='3' class='tresc11'>$news<br><br>
<img src='".THEME."images/bullet.gif' width='10' height='10' alt='' > ".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ".$locale['041'].showdate("longdate", $info['news_date'])."
<br><img src='".THEME."images/bullet.gif' width='10' height='10' alt='' > ".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."
<a href='news.php?readmore=".$info['news_id']."'>".$locale['043']."</a> [ ".$info['news_comments']." ] · [ ".$info['news_reads']." ] ".$locale['044']." <a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0'></a></td>
<td class='tresc12'></td>
</tr>
<tr>
<td class='tresc13'><img src='".THEME."images/tresc/tresc_13.gif' width='4' height='29' alt=''></td>
<td class='tresc14'><img src='".THEME."images/tresc/tresc_14.gif' width='22' height='29' alt=''></td>
<td class='tresc15' width='100%'></td>
<td class='tresc16'><img src='".THEME."images/tresc/tresc_16.gif' width='22' height='29' alt=''></td>
<td class='tresc17'><img src='".THEME."images/tresc/tresc_17.gif' width='4' height='29' alt=''></td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td class='tresc01'></td>
<td colspan='3' class='tresc02'></td>
<td class='tresc03'></td>
</tr>
<tr>
<td class='tresc04'></td>
<td colspan='3' class='tresc05'>$subject</td>
<td class='tresc06'></td>
</tr>
<tr>
<td class='tresc07'></td>
<td colspan='3' class='tresc08'></td>
<td class='tresc09'></td>
</tr>
<tr>
<td class='tresc10'></td>
<td colspan='3' class='tresc11'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
<br>
<br><img src='".THEME."images/bullet.gif' width='10' height='10' alt='' > ".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['article_date'])."<br><img src='".THEME."images/bullet.gif' width='10' height='10' alt='' > <a href='articlecomments.php?article_id=".$info['article_id']."'>".$locale['043']."</a> [ ".$info['article_comments']." ] · [ ".$info['article_reads']." ] ".$locale['044']." <a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' ></a></td>
<td class='tresc12'></td>
</tr>
<tr>
<td class='tresc13'><img src='".THEME."images/tresc/tresc_13.gif' width='4' height='29' alt=''></td>
<td class='tresc14'><img src='".THEME."images/tresc/tresc_14.gif' width='22' height='29' alt=''></td>
<td class='tresc15' width='100%'></td>
<td class='tresc16'><img src='".THEME."images/tresc/tresc_16.gif' width='22' height='29' alt=''></td>
<td class='tresc17'><img src='".THEME."images/tresc/tresc_17.gif' width='4' height='29' alt=''></td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td class='tresc01'></td>
<td colspan='3' class='tresc02'></td>
<td class='tresc03'></td>
</tr>
<tr>
<td class='tresc04'></td>
<td colspan='3' class='tresc05'>$title</td>
<td class='tresc06'></td>
</tr>
<tr>
<td class='tresc07'></td>
<td colspan='3' class='tresc08'></td>
<td class='tresc09'></td>
</tr>
<tr>
<td class='tresc10'></td>
<td colspan='3' class='tresc11'>\n";
}
function closetable() {
echo "</td>
<td class='tresc12'></td>
</tr>
<tr>
<td class='tresc13'><img src='".THEME."images/tresc/tresc_13.gif' width='4' height='29' alt=''></td>
<td class='tresc14'><img src='".THEME."images/tresc/tresc_14.gif' width='22' height='29' alt=''></td>
<td class='tresc15' width='100%'></td>
<td class='tresc16'><img src='".THEME."images/tresc/tresc_16.gif' width='22' height='29' alt=''></td>
<td class='tresc17'><img src='".THEME."images/tresc/tresc_17.gif' width='4' height='29' alt=''></td>
</tr>
</table>\n";
}
function openside($title) {
global $p_data;
echo "<table width='207' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td class='bok01'></td>
<td colspan='2' class='bok02'></td>
<td class='bok03'></td>
</tr>
<tr>
<td class='bok04'></td>
<td colspan='2' class='bok05'>$title</td>
<td class='bok06'></td>
</tr>
<tr>
<td class='bok07'></td>
<td colspan='2' class='bok08'></td>
<td class='bok09'></td>
</tr>
<tr>
<td class='bok10'></td>
<td colspan='2' class='bok11'>\n";
}
function closeside() {
global $p_data;
if ($p_data['panel_side'] == 1) {
echo "</td>
<td class='bok12'></td>
</tr>
<tr>
<td class='bok13'></td>
<td class='bok14'></td>
<td class='bok15'></td>
<td class='bok16'></td>
</tr>
</table>"; }
else {
echo "</td>
<td class='bok12'></td>
</tr>
<tr>
<td class='bok13'></td>
<td class='bok17'></td>
<td class='bok14'></td>
<td class='bok16'></td>
</tr>
</table>\n";
}
tablebreak();
}
function opensidex($title,$open="on") {
global $p_data;
$box_img = ($open=="on" ? "off" : "on");
echo "<table width='207' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td class='bok01'></td>
<td colspan='2' class='bok02'></td>
<td class='bok03'></td>
</tr>
<tr>
<td class='bok04'></td>
<td colspan='2' class='bok05'>$title <img onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'><br><div id='box_$title'".($open=="off" ? "style='display:none'" : "")."></td>
<td class='bok06'></td>
</tr>
<tr>
<td class='bok07'></td>
<td colspan='2' class='bok08'></td>
<td class='bok09'></td>
</tr>
<tr>
<td class='bok10'></td>
<td colspan='2' class='bok11'>\n";
}
function closesidex() {
global $p_data;
if ($p_data['panel_side'] == 1) {
echo "</div>
</td>
<td class='bok12'></td>
</tr>
<tr>
<td class='bok13'></td>
<td class='bok14'></td>
<td class='bok15'></td>
<td class='bok16'></td>
</tr>
</table>\n"; }
else {
echo "</div>
</td>
<td class='bok12'></td>
</tr>
<tr>
<td class='bok13'></td>
<td class='bok17'></td>
<td class='bok14'></td>
<td class='bok16'></td>
</tr>
</table>\n"; }
tablebreak();
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td height='2'></td>
</tr>
</table>\n";
}
?>
Edytowane przez danX dnia 14.04.2008 18:11:34
|
|
|
|
piotrek199214 |
Dodany dnia 14.04.2008 18:13:19
|
Bywalec
Postów: 977 Pomógł: 168
v7.01.05 Data rejestracji: 17.12.2007 21:05
|
Sprawdź tak:
<?
$body_text = "#B8E8F2";
$body_bg = "#2C2C2C";
$theme_width = "100%";
$theme_width_l = "207";
$theme_width_r = "207";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0'>
<tr>
<td class='lefter'><img width='45' src='".THEME."images/lefter.gif' height='1' alt=''></td>
<td class='mbody' align='right'><table width='100%' cellpacing='0' cellpadding='0' border='0'><tr><td class='toplogo'><img src='".THEME."images/logo.jpg' alt=''></td></tr></table>
<table width='100%' cellspacing='0' cellpadding='0' border='0'>
<tr>
<td class='menuss'>\n";
$separator = " </td><td class='sep'></td><td class='menuss'> ";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
echo "\n";
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " $separator \n"; } else { echo "\n"; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<a href='".$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td><td class='sep'></td><td width='30%' class='pustka'> </td>
</td><td class='sep'></td>
<td class='menus' align='right'>".ucwords(showdate($settings['subheaderdate'], time()))."</td>
</tr>
</table>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0' align='center'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td class='footer' align='center'>".stripslashes($settings['footer'])."<br><br>Powered by: <b><a href='http://www.php-fusion.co.uk'>PHP-Fusion</a> v". sprintf("%.2f", $settings['version'])."</b> <br> <b>gt-cs</b> theme by: <b><a href='http://webmer.pl' target='_blank'>sonar</a></b> and <b><a href='http://www.cierpieta.yoyo.pl' target='_blank'>Dan X</a></td>
</tr>
</table>
</td>
<td class='righter'><img width='45' src='".THEME."images/righter.gif' height='1' alt=''></td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
global $locale,$userdata,$aidlink;
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td class='tresc01'></td>
<td colspan='3' class='tresc02'></td>
<td class='tresc03'></td>
</tr>
<tr>
<td class='tresc04'></td>
<td colspan='3' class='tresc05'>$subject</td>
<td class='tresc06'></td>
</tr>
<tr>
<td class='tresc07'></td>
<td colspan='3' class='tresc08'></td>
<td class='tresc09'></td>
</tr>
<tr>
<td class='tresc10'></td>
<td colspan='3' class='tresc11'>$news<br><br>
<img src='".THEME."images/bullet.gif' width='10' height='10' alt='' > ".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ".$locale['041'].showdate("longdate", $info['news_date'])."
<br><img src='".THEME."images/bullet.gif' width='10' height='10' alt='' > ".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."
<a href='news.php?readmore=".$info['news_id']."'>".$locale['043']."</a> [ ".$info['news_comments']." ] · [ ".$info['news_reads']." ] ".$locale['044']." <a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0'></a></td>[color=red]";
if (checkrights("N") || $userdata['user_level'] >= 102) {
echo "<form name='editnews".$info['news_id']."' method='post' action='".ADMIN."news.php".$aidlink."&news_id=".$info['news_id']."'>
<input type='hidden' name='edit' value='edit'><a href='javascript:document.editnews".$info['news_id'].".submit();'><img src='".IMAGES."edit.gif' alt='".$locale['048']."' title='".$locale['048']."' style='vertical-align:middle;border:0px;'></div></a></span>\n</form>\n";
}
echo "[/color]<td class='tresc12'></td>
</tr>
<tr>
<td class='tresc13'><img src='".THEME."images/tresc/tresc_13.gif' width='4' height='29' alt=''></td>
<td class='tresc14'><img src='".THEME."images/tresc/tresc_14.gif' width='22' height='29' alt=''></td>
<td class='tresc15' width='100%'></td>
<td class='tresc16'><img src='".THEME."images/tresc/tresc_16.gif' width='22' height='29' alt=''></td>
<td class='tresc17'><img src='".THEME."images/tresc/tresc_17.gif' width='4' height='29' alt=''></td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td class='tresc01'></td>
<td colspan='3' class='tresc02'></td>
<td class='tresc03'></td>
</tr>
<tr>
<td class='tresc04'></td>
<td colspan='3' class='tresc05'>$subject</td>
<td class='tresc06'></td>
</tr>
<tr>
<td class='tresc07'></td>
<td colspan='3' class='tresc08'></td>
<td class='tresc09'></td>
</tr>
<tr>
<td class='tresc10'></td>
<td colspan='3' class='tresc11'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
<br>
<br><img src='".THEME."images/bullet.gif' width='10' height='10' alt='' > ".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['article_date'])."<br><img src='".THEME."images/bullet.gif' width='10' height='10' alt='' > <a href='articlecomments.php?article_id=".$info['article_id']."'>".$locale['043']."</a> [ ".$info['article_comments']." ] · [ ".$info['article_reads']." ] ".$locale['044']." <a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' ></a></td>
<td class='tresc12'></td>
</tr>
<tr>
<td class='tresc13'><img src='".THEME."images/tresc/tresc_13.gif' width='4' height='29' alt=''></td>
<td class='tresc14'><img src='".THEME."images/tresc/tresc_14.gif' width='22' height='29' alt=''></td>
<td class='tresc15' width='100%'></td>
<td class='tresc16'><img src='".THEME."images/tresc/tresc_16.gif' width='22' height='29' alt=''></td>
<td class='tresc17'><img src='".THEME."images/tresc/tresc_17.gif' width='4' height='29' alt=''></td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td class='tresc01'></td>
<td colspan='3' class='tresc02'></td>
<td class='tresc03'></td>
</tr>
<tr>
<td class='tresc04'></td>
<td colspan='3' class='tresc05'>$title</td>
<td class='tresc06'></td>
</tr>
<tr>
<td class='tresc07'></td>
<td colspan='3' class='tresc08'></td>
<td class='tresc09'></td>
</tr>
<tr>
<td class='tresc10'></td>
<td colspan='3' class='tresc11'>\n";
}
function closetable() {
echo "</td>
<td class='tresc12'></td>
</tr>
<tr>
<td class='tresc13'><img src='".THEME."images/tresc/tresc_13.gif' width='4' height='29' alt=''></td>
<td class='tresc14'><img src='".THEME."images/tresc/tresc_14.gif' width='22' height='29' alt=''></td>
<td class='tresc15' width='100%'></td>
<td class='tresc16'><img src='".THEME."images/tresc/tresc_16.gif' width='22' height='29' alt=''></td>
<td class='tresc17'><img src='".THEME."images/tresc/tresc_17.gif' width='4' height='29' alt=''></td>
</tr>
</table>\n";
}
function openside($title) {
global $p_data;
echo "<table width='207' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td class='bok01'></td>
<td colspan='2' class='bok02'></td>
<td class='bok03'></td>
</tr>
<tr>
<td class='bok04'></td>
<td colspan='2' class='bok05'>$title</td>
<td class='bok06'></td>
</tr>
<tr>
<td class='bok07'></td>
<td colspan='2' class='bok08'></td>
<td class='bok09'></td>
</tr>
<tr>
<td class='bok10'></td>
<td colspan='2' class='bok11'>\n";
}
function closeside() {
global $p_data;
if ($p_data['panel_side'] == 1) {
echo "</td>
<td class='bok12'></td>
</tr>
<tr>
<td class='bok13'></td>
<td class='bok14'></td>
<td class='bok15'></td>
<td class='bok16'></td>
</tr>
</table>"; }
else {
echo "</td>
<td class='bok12'></td>
</tr>
<tr>
<td class='bok13'></td>
<td class='bok17'></td>
<td class='bok14'></td>
<td class='bok16'></td>
</tr>
</table>\n";
}
tablebreak();
}
function opensidex($title,$open="on") {
global $p_data;
$box_img = ($open=="on" ? "off" : "on");
echo "<table width='207' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td class='bok01'></td>
<td colspan='2' class='bok02'></td>
<td class='bok03'></td>
</tr>
<tr>
<td class='bok04'></td>
<td colspan='2' class='bok05'>$title <img onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'><br><div id='box_$title'".($open=="off" ? "style='display:none'" : "")."></td>
<td class='bok06'></td>
</tr>
<tr>
<td class='bok07'></td>
<td colspan='2' class='bok08'></td>
<td class='bok09'></td>
</tr>
<tr>
<td class='bok10'></td>
<td colspan='2' class='bok11'>\n";
}
function closesidex() {
global $p_data;
if ($p_data['panel_side'] == 1) {
echo "</div>
</td>
<td class='bok12'></td>
</tr>
<tr>
<td class='bok13'></td>
<td class='bok14'></td>
<td class='bok15'></td>
<td class='bok16'></td>
</tr>
</table>\n"; }
else {
echo "</div>
</td>
<td class='bok12'></td>
</tr>
<tr>
<td class='bok13'></td>
<td class='bok17'></td>
<td class='bok14'></td>
<td class='bok16'></td>
</tr>
</table>\n"; }
tablebreak();
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td height='2'></td>
</tr>
</table>\n";
}
?>
Pomogłem Ci? Wystarczy podziękować i oznaczyć post jako pomocny
Tanie tworzenie wtyczek, masz problem napisz.
|
|
|
|
danX |
Dodany dnia 14.04.2008 18:17:09
|
Początkujący
Postów: 106 Pomógł: 5 Ostrzeżeń: 1
Data rejestracji: 23.02.2008 08:14
|
Dalej w tym samym miejscu. Jakoś sie obędzie. Dzięki za przywrócenie (co najważniejsze!) Masz ode mnie Pomógł!
Co do wcześniejszego pytania, to tchema ostatnio nic nie zmieniałem!
Edytowane przez danX dnia 14.04.2008 18:20:15
|
|
|
|
piotrek199214 |
Dodany dnia 14.04.2008 18:24:35
|
Bywalec
Postów: 977 Pomógł: 168
v7.01.05 Data rejestracji: 17.12.2007 21:05
|
Spr teraz:
function render_news($subject, $news, $info) {
global $locale,$userdata,$aidlink;
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td class='tresc01'></td>
<td colspan='3' class='tresc02'></td>
<td class='tresc03'></td>
</tr>
<tr>
<td class='tresc04'></td>
<td colspan='3' class='tresc05'>$subject</td>
<td class='tresc06'></td>
</tr>
<tr>
<td class='tresc07'></td>
<td colspan='3' class='tresc08'></td>
<td class='tresc09'></td>
</tr>
<tr>
<td class='tresc10'></td>
<td colspan='3' class='tresc11'>$news<br><br>
<img src='".THEME."images/bullet.gif' width='10' height='10' alt='' > ".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ".$locale['041'].showdate("longdate", $info['news_date'])."
<br><img src='".THEME."images/bullet.gif' width='10' height='10' alt='' > ".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."
<a href='news.php?readmore=".$info['news_id']."'>".$locale['043']."</a> [ ".$info['news_comments']." ] · [ ".$info['news_reads']." ] ";
if (checkrights("N") || $userdata['user_level'] >= 102) {
echo "<form name='editnews".$info['news_id']."' method='post' action='".ADMIN."news.php".$aidlink."&news_id=".$info['news_id']."'>
<input type='hidden' name='edit' value='edit'><a href='javascript:document.editnews".$info['news_id'].".submit();'><img src='".IMAGES."edit.gif' alt='".$locale['048']."' title='".$locale['048']."' style='vertical-align:middle;border:0px;'></a></span>\n</form>\n";
}
echo "".$locale['044']." <a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0'></a></td>
<td class='tresc12'></td>
</tr>
<tr>
<td class='tresc13'><img src='".THEME."images/tresc/tresc_13.gif' width='4' height='29' alt=''></td>
<td class='tresc14'><img src='".THEME."images/tresc/tresc_14.gif' width='22' height='29' alt=''></td>
<td class='tresc15' width='100%'></td>
<td class='tresc16'><img src='".THEME."images/tresc/tresc_16.gif' width='22' height='29' alt=''></td>
<td class='tresc17'><img src='".THEME."images/tresc/tresc_17.gif' width='4' height='29' alt=''></td>
</tr>
</table>\n";
}
Pomogłem Ci? Wystarczy podziękować i oznaczyć post jako pomocny
Tanie tworzenie wtyczek, masz problem napisz.
|
|
|