با سلام
من يه تم دارم كه لوگوي ديفالتش چند تكه هست ومن يه لوگو براش طراحي كردم ولي چون لوگوي اصلش چندتكه هست نمي تونم جايگزينش كنم وبه مشكل برخوردم تروخدايكي پيدانمي شه بمن كمك كنه واين كدروعوض كنه طوري كه لوگوش يك تكه بشه ومن فقط بخواهم جاي اسم لوگو روتغيير بدم ...من خيلي عجله دارم آبروم درخطره ...كمممممممممممك
[align=left:3a3de658ef]<?php
$lnkcolor = "#336699";
$bgcolor1 = "#ffffff";
$bgcolor2 = "#D1DFEF";
$bgcolor3 = "#B1CBD9";
$textcolor1 = "#000000";
$textcolor2 = "#000000";
$theme_home = "Web_Links";
$hr = 1; # 1 to have horizonal rule in comments instead of table bgcolor
function OpenTable() {
global $bgcolor1, $bgcolor2;
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\"><tr><td>\n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}
function OpenTable2() {
global $bgcolor1, $bgcolor2;
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n";
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}
function CloseTable() {
echo "</td></tr></table></td></tr></table>\n";
}
function CloseTable2() {
echo "</td></tr></table></td></tr></table>\n";
}
function FormatStory($thetext, $notes, $aid, $informant) {
global $anonymous;
if ($notes != "") {
$notes = ""._NOTE."$notes\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
echo "<font size=\"2\">$thetext<br>$notes</font>\n";
} else {
if($informant != "") {
$boxstuff = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$informant\">$informant</a> ";
} else {
$boxstuff = "$anonymous ";
}
$boxstuff .= ""._WRITES." \"$thetext\"$notes\n";
echo "<font size=\"2\">$boxstuff</font>\n";
}
}
function themeheader() {
global $prefix, $db, $user, $cookie, $bgcolor1, $bgcolor2, $bgcolor3, $banners, $sitename, $anonymous, $user;
echo "<body bgcolor=\"$bgcolor1\" topmargin=\"1\" leftmargin=\"1\">";
if (is_user($user)) {
cookiedecode($user);
$username = $cookie[1];
$bienvenida = ""._HELLOMEM." $username [ <a href=\"modules.php?name=Your_Account&amp;op=logout\">"._LOGOUT."</a> ]";
} else {
$bienvenida = "<a href=\"modules.php?name=Your_Account&amp;op=new_user\">"._MEMBERSHIP."</a>";
}
$topics_list = "<select name=\"topic\" onChange='submit()'>\n";
$topics_list .= "<option value=\"\">"._ALLTOPICS."</option>\n";
$toplist = $db->sql_query("select topicid, topictext from $prefix"._topics." order by topictext");
while(list($topicid, $topics) = $db->sql_fetchrow($toplist)) {
$topicid = intval($topicid);
if ($topicid==$topic) { $sel = "selected "; }
$topics_list .= "<option $sel value=\"$topicid\">$topics</option>\n";
$sel = "";
}
echo"<TABLE WIDTH=\"100%\" BORDER=0 CELLPADDING=0 CELLSPACING=0 background=\"themes/ip/images/headbg.gif\">"
. " <TR>"
. " <TD>"
. "<IMG SRC=\"themes/ip/images/top_01.gif\" WIDTH=239 HEIGHT=25></TD>"
. " <TD align=\"right\">"
. " <map name=\"FPMap0\">"
. " <area href=\"index.php\" shape=\"rect\" coords=\"467, 4, 509, 15\">"
. " <area href=\"modules.php?name=Contact\" shape=\"rect\" coords=\"400, 4, 443, 15\">"
. " <area target=\"_blank\" href=\"http://www.yourname.com/modules.php?name=Downloads\" shape=\"rect\" coords=\"321, 3, 369, 15\">"
. " <area target=\"_blank\" href=\"http://www.yourname.com/sales/cgi-bin/client.cgi\" shape=\"rect\" coords=\"247, 3, 302, 16\">"
. " <area href=\"modules.php?name=Topics\" shape=\"rect\" coords=\"184, 4, 226, 15\">"
. " <area href=\"modules.php?name=Forums\" shape=\"rect\" coords=\"93, 3, 165, 15\">"
. " <area href=\"modules.php?name=Submit_News\" shape=\"rect\" coords=\"31, 4, 81, 17\">"
. " </map>"
. "<IMG SRC=\"themes/ip/images/top_02.gif\" WIDTH=536 HEIGHT=25 usemap=\"#FPMap0\" border=\"0\"></TD>"
. "</TR>"
. "<TR bgcolor=#ffffff>"
. "<TD align=\"left\" valign=\"top\">"
. "<a href=\"index.php\"><IMG SRC=\"themes/ip/images/top_03.gif\" WIDTH=239 HEIGHT=75 ALT=\"Home Page\" border=\"0\"></a></TD>"
. "<td align=\"right\" valign=\"bottom\">";
echo"<table border=\"0\" width=\"470\" cellpadding=\"2\">"
. "<tr align=\"right\" valign=\"bottom\">"
. "<td height=\"62\">";
if ($banners) {
include("banners.php");
}
echo"&nbsp;</td></tr></table>";
echo "</td></TR></TABLE>";
echo"<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" border=\"0\" align=\"center\" bgcolor=\"$bgcolor1\"><tr><td align=\"center\">"
."</td></tr></table>"
."<br>"
."<table border=\"0 cellpadding=\"4\" cellspacing=\"0\" width=\"100%\" align=\"center\" dir=\"rtl\">\n"
."<tr><td background=\"themes/ip/images/header_bg.gif\" height=\"55\" align=\"right\" width=\"50%\">"
."<form action=\"modules.php?name=Search\" method=\"post\">"
."<font class=\"content\">"._SEARCH2." <input type=\"text\" size=\"15\" name=\"query\">&nbsp;&nbsp;"._ON2."&nbsp;&nbsp;$topics_list</font>"
."</select>"
."</form></td>"
."<td background=\"themes/ip/images/header_bg.gif\" height=\"55\" align=\"right\" width=\"50%\">"
."<table border=\"0\" width=\"100%\" cellpadding=\"2\">"
. " <tr>"
. " <td width=\"100%\" align=\"left\" valign=\"top\">&nbsp;$bienvenida&nbsp;&nbsp;&nbsp;&nbsp;</td>"
. " </tr>"
. " <tr>"
. " <td width=\"100%\">&nbsp;</td>"
. " </tr>"
. "</table>"
."</td></tr>\n"
."<tr><td valign=\"top\" width=\"100%\" colspan=3>\n";
$public_msg = public_message();
echo "$public_msg<br>";
echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"2\" width=\"100%\"><tr><td valign=\"top\" width=\"150\" bgcolor=$bgcolor1>";
blocks(left);
echo "<img src=\"images/pix.gif\" border=\"0\" width=\"150\" height=\"1\"></td><td>&nbsp;&nbsp;</td><td width=\"100%\" valign=\"top\">";
}
function themefooter() {
global $index, $bgcolor1, $bgcolor2, $bgcolor3;
if ($index == 1) {
echo "</td><td>&nbsp;&nbsp;</td><td valign=\"top\" bgcolor=$bgcolor1>";
blocks(right);
echo "</td>";
}
echo "</td></tr></table></td></tr></table>";
echo"<table border=\"0\" cellspacing=\"0\" width=\"100%\" cellpadding=\"0\" background=\"themes/ip/images/footer_bg.gif\" height=\"55\" dir=\"rtl\">"
. "<tr>"
. "<td width=\"100%\" align=\"center\">";
footmsg();
echo "<p align=\"center\">&nbsp;</td>"
. " </tr>"
. "</table>";
}
function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
global $anonymous, $tipath;
$ThemeSel = get_theme();
if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
$t_image = "themes/$ThemeSel/images/topics/$topicimage";
} else {
$t_image = "$tipath$topicimage";
}
if ("$aid" == "$informant") { ?>
<style>
.news { display: none; }
</style>
<script>
function newsDisplay(itemname)
{
tmp = document.getElementsByTagName('div');
for (i=0;i<tmp.length;i++)
{
if (tmp.className == itemname) tmp.style.display = (tmp.style.display == 'none' || tmp.style.display == '') ? 'block' : 'none';
}
}
</script>
<table border=1 cellpadding=3 cellspacing=0 width=100% bordercolor="#336699" style="border-collapse: collapse" height="1"><tr>
<td bgcolor=#EEEEEE width="100%" style="border-right-style: none; border-right-width: medium" height="10">
<?php echo"$title"; ?><br><?php echo"<p align=right>$morelink";?></td>
<td bgcolor=#EEEEEE width="45" align="center" style="border-left-style: none; border-left-width: medium" height="1">
<?php echo" <button onclick=\"newsDisplay('news')\" style=\"color: #336699; font-size: 8pt; border: 1px double #336699; height:17; background-color:#EEEEEE\" value=\"contenuto\">
<img border=\"0\" src=\"images/doublearrow.gif\" alt=\""._EXPANDNEWS."\"></button>";?></td></tr>
</table>
<div class="news">
<table border="1" cellpadding="3" cellspacing="0" style="border-collapse: collapse" bordercolor="#336699" width="100%">
<tr>
<td width="90%" align="ident" style="border-top-style: none; border-top-width: medium; border-right-style:none; border-right-width:medium" bgcolor="#FFFFFF">
<font class=content>
<?php echo"$thetext"; ?></font><hr color="#336699" width="100%" size="1">
<?php echo""._POSTEDBY."";formatAidHeader($aid); ?>&nbsp;<?php echo""._ON."&nbsp;$time $timezone&nbsp;"._READS."&nbsp;&nbsp;"; ?><?php echo $counter; ?>
</td>
<td width="10%" align="center" style="border-top-style: none; border-top-width: medium; border-left-style:none; border-left-width:medium" bgcolor="#FFFFFF">
<a href="modules.php?name=News&amp;new_topic=<?php echo"$topic"; ?>&author="><img src=<?php echo"$t_image"; ?> border=0 Alt=<?php echo"\"$topictext\""; ?></td> </tr></table></div><br>
<?php } else {
if($informant != "") $boxstuff = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&username=$informant\">$informant</a>&nbsp;"._WRITES.":&nbsp;";
else $boxstuff = "$anonymous";
?>
<table border=1 cellpadding=3 cellspacing=0 width=100% bordercolor="#336699" style="border-collapse: collapse" height="1"><tr>
<td bgcolor=#EEEEEE width="100%" style="border-right-style: none; border-right-width: medium" height="10">
<?php echo"$title"; ?><br><?php echo"<p align=right>$morelink";?></td>
<td bgcolor=#EEEEEE width="45" align="center" style="border-left-style: none; border-left-width: medium" height="1">
<?php echo" <button onclick=\"newsDisplay('news')\" style=\"color: #336699; font-size: 8pt; border: 1px double #336699; height:17; background-color:#EEEEEE\" value=\"contenuto\">
<img border=\"0\" src=\"images/doublearrow.gif\" alt=\""._EXPANDNEWS."\"></button>";?></td></tr>
</table>
<div class="news">
<table border="1" cellpadding="3" cellspacing="0" style="border-collapse: collapse" bordercolor="#336699" width="100%">
<tr>
<td width="90%" align="ident" style="border-top-style: none; border-top-width: medium; border-right-style:none; border-right-width:medium" bgcolor="#FFFFFF">
<font class=content>
<?php echo"$boxstuff";?><?php echo"$thetext"; ?></font><hr color="#336699" width="100%" size="1">
<?php echo""._POSTEDBY."";formatAidHeader($aid); ?>&nbsp;<?php echo""._ON."&nbsp;$time $timezone&nbsp;"._READS."&nbsp;&nbsp;"; ?><?php echo $counter; ?>
</td>
<td width="10%" align="center" style="border-top-style: none; border-top-width: medium; border-left-style:none; border-left-width:medium" bgcolor="#FFFFFF">
<a href="modules.php?name=News&amp;new_topic=<?php echo"$topic"; ?>&author="><img src=<?php echo"$t_image"; ?> border=0 Alt=<?php echo"\"$topictext\""; ?></td> </tr></table></div><br>
<?php }
}
function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
global $admin, $sid, $tipath, $bgcolor1, $bgcolor2, $bgcolor3;
$ThemeSel = get_theme();
if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
$t_image = "themes/$ThemeSel/images/topics/$topicimage";
} else {
$t_image = "$tipath$topicimage";
}
if ("$aid" == "$informant") {
echo"
<table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=$bgcolor3 width=100% style=\"border: 1px dashed #97BDE8\"><tr><td>
<table border=0 cellpadding=3 cellspacing=1 width=100%><tr><td bgcolor=$bgcolor2>
<font class=\"title\">$title</font><br>"._POSTEDON." $datetime
<br>"._TOPIC.": <a href=modules.php?name=News&amp;new_topic=$topic>$topictext</a>
</td></tr><tr><td bgcolor=$bgcolor1>
<a href=\"modules.php?name=News&amp;new_topic=$topic\"><img src=\"$t_image\" border=\"0\" alt=\"$topictext\" title=\"$topictext\" align=\"right\"></a>$thetext
</td></tr></table></td></tr></table><br>";
} else {
if($informant != "") $informant = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&username=$informant\">$informant</a> ";
else $boxstuff = "$anonymous ";
$boxstuff .= ""._WRITES."\"$thetext\"$notes";
echo "
<table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=$bgcolor3 width=100%><tr><td>
<table border=0 cellpadding=3 cellspacing=1 width=100%><tr><td bgcolor=$bgcolor2>
<font class=\"title\">$title[/b]</font><p>"._CONTRIBUTEDBY." $informant "._ON." $datetime</font>
</td></tr><tr><td bgcolor=$bgcolor1>
<a href=\"modules.php?name=News&amp;new_topic=$topic\"><img src=\"$t_image\" border=\"0\" alt=\"$topictext\" title=\"$topictext\" align=\"right\"></a>$thetext
</td></tr></table></td></tr></table><br>";
}
}
function themesidebox($title,$content,$blocktemplate) {
if ($blocktemplate == "") {
$blocktemplate = "default.html";
}
$tmpl_file = "themes/ip/blocks+/$blocktemplate";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
?>
?>[/align:3a3de658ef]عكس ها بانام top_01وtop-02والي آخرهستند
ممنون
من يه تم دارم كه لوگوي ديفالتش چند تكه هست ومن يه لوگو براش طراحي كردم ولي چون لوگوي اصلش چندتكه هست نمي تونم جايگزينش كنم وبه مشكل برخوردم تروخدايكي پيدانمي شه بمن كمك كنه واين كدروعوض كنه طوري كه لوگوش يك تكه بشه ومن فقط بخواهم جاي اسم لوگو روتغيير بدم ...من خيلي عجله دارم آبروم درخطره ...كمممممممممممك
[align=left:3a3de658ef]<?php
$lnkcolor = "#336699";
$bgcolor1 = "#ffffff";
$bgcolor2 = "#D1DFEF";
$bgcolor3 = "#B1CBD9";
$textcolor1 = "#000000";
$textcolor2 = "#000000";
$theme_home = "Web_Links";
$hr = 1; # 1 to have horizonal rule in comments instead of table bgcolor
function OpenTable() {
global $bgcolor1, $bgcolor2;
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\"><tr><td>\n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}
function OpenTable2() {
global $bgcolor1, $bgcolor2;
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n";
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}
function CloseTable() {
echo "</td></tr></table></td></tr></table>\n";
}
function CloseTable2() {
echo "</td></tr></table></td></tr></table>\n";
}
function FormatStory($thetext, $notes, $aid, $informant) {
global $anonymous;
if ($notes != "") {
$notes = ""._NOTE."$notes\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
echo "<font size=\"2\">$thetext<br>$notes</font>\n";
} else {
if($informant != "") {
$boxstuff = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$informant\">$informant</a> ";
} else {
$boxstuff = "$anonymous ";
}
$boxstuff .= ""._WRITES." \"$thetext\"$notes\n";
echo "<font size=\"2\">$boxstuff</font>\n";
}
}
function themeheader() {
global $prefix, $db, $user, $cookie, $bgcolor1, $bgcolor2, $bgcolor3, $banners, $sitename, $anonymous, $user;
echo "<body bgcolor=\"$bgcolor1\" topmargin=\"1\" leftmargin=\"1\">";
if (is_user($user)) {
cookiedecode($user);
$username = $cookie[1];
$bienvenida = ""._HELLOMEM." $username [ <a href=\"modules.php?name=Your_Account&amp;op=logout\">"._LOGOUT."</a> ]";
} else {
$bienvenida = "<a href=\"modules.php?name=Your_Account&amp;op=new_user\">"._MEMBERSHIP."</a>";
}
$topics_list = "<select name=\"topic\" onChange='submit()'>\n";
$topics_list .= "<option value=\"\">"._ALLTOPICS."</option>\n";
$toplist = $db->sql_query("select topicid, topictext from $prefix"._topics." order by topictext");
while(list($topicid, $topics) = $db->sql_fetchrow($toplist)) {
$topicid = intval($topicid);
if ($topicid==$topic) { $sel = "selected "; }
$topics_list .= "<option $sel value=\"$topicid\">$topics</option>\n";
$sel = "";
}
echo"<TABLE WIDTH=\"100%\" BORDER=0 CELLPADDING=0 CELLSPACING=0 background=\"themes/ip/images/headbg.gif\">"
. " <TR>"
. " <TD>"
. "<IMG SRC=\"themes/ip/images/top_01.gif\" WIDTH=239 HEIGHT=25></TD>"
. " <TD align=\"right\">"
. " <map name=\"FPMap0\">"
. " <area href=\"index.php\" shape=\"rect\" coords=\"467, 4, 509, 15\">"
. " <area href=\"modules.php?name=Contact\" shape=\"rect\" coords=\"400, 4, 443, 15\">"
. " <area target=\"_blank\" href=\"http://www.yourname.com/modules.php?name=Downloads\" shape=\"rect\" coords=\"321, 3, 369, 15\">"
. " <area target=\"_blank\" href=\"http://www.yourname.com/sales/cgi-bin/client.cgi\" shape=\"rect\" coords=\"247, 3, 302, 16\">"
. " <area href=\"modules.php?name=Topics\" shape=\"rect\" coords=\"184, 4, 226, 15\">"
. " <area href=\"modules.php?name=Forums\" shape=\"rect\" coords=\"93, 3, 165, 15\">"
. " <area href=\"modules.php?name=Submit_News\" shape=\"rect\" coords=\"31, 4, 81, 17\">"
. " </map>"
. "<IMG SRC=\"themes/ip/images/top_02.gif\" WIDTH=536 HEIGHT=25 usemap=\"#FPMap0\" border=\"0\"></TD>"
. "</TR>"
. "<TR bgcolor=#ffffff>"
. "<TD align=\"left\" valign=\"top\">"
. "<a href=\"index.php\"><IMG SRC=\"themes/ip/images/top_03.gif\" WIDTH=239 HEIGHT=75 ALT=\"Home Page\" border=\"0\"></a></TD>"
. "<td align=\"right\" valign=\"bottom\">";
echo"<table border=\"0\" width=\"470\" cellpadding=\"2\">"
. "<tr align=\"right\" valign=\"bottom\">"
. "<td height=\"62\">";
if ($banners) {
include("banners.php");
}
echo"&nbsp;</td></tr></table>";
echo "</td></TR></TABLE>";
echo"<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" border=\"0\" align=\"center\" bgcolor=\"$bgcolor1\"><tr><td align=\"center\">"
."</td></tr></table>"
."<br>"
."<table border=\"0 cellpadding=\"4\" cellspacing=\"0\" width=\"100%\" align=\"center\" dir=\"rtl\">\n"
."<tr><td background=\"themes/ip/images/header_bg.gif\" height=\"55\" align=\"right\" width=\"50%\">"
."<form action=\"modules.php?name=Search\" method=\"post\">"
."<font class=\"content\">"._SEARCH2." <input type=\"text\" size=\"15\" name=\"query\">&nbsp;&nbsp;"._ON2."&nbsp;&nbsp;$topics_list</font>"
."</select>"
."</form></td>"
."<td background=\"themes/ip/images/header_bg.gif\" height=\"55\" align=\"right\" width=\"50%\">"
."<table border=\"0\" width=\"100%\" cellpadding=\"2\">"
. " <tr>"
. " <td width=\"100%\" align=\"left\" valign=\"top\">&nbsp;$bienvenida&nbsp;&nbsp;&nbsp;&nbsp;</td>"
. " </tr>"
. " <tr>"
. " <td width=\"100%\">&nbsp;</td>"
. " </tr>"
. "</table>"
."</td></tr>\n"
."<tr><td valign=\"top\" width=\"100%\" colspan=3>\n";
$public_msg = public_message();
echo "$public_msg<br>";
echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"2\" width=\"100%\"><tr><td valign=\"top\" width=\"150\" bgcolor=$bgcolor1>";
blocks(left);
echo "<img src=\"images/pix.gif\" border=\"0\" width=\"150\" height=\"1\"></td><td>&nbsp;&nbsp;</td><td width=\"100%\" valign=\"top\">";
}
function themefooter() {
global $index, $bgcolor1, $bgcolor2, $bgcolor3;
if ($index == 1) {
echo "</td><td>&nbsp;&nbsp;</td><td valign=\"top\" bgcolor=$bgcolor1>";
blocks(right);
echo "</td>";
}
echo "</td></tr></table></td></tr></table>";
echo"<table border=\"0\" cellspacing=\"0\" width=\"100%\" cellpadding=\"0\" background=\"themes/ip/images/footer_bg.gif\" height=\"55\" dir=\"rtl\">"
. "<tr>"
. "<td width=\"100%\" align=\"center\">";
footmsg();
echo "<p align=\"center\">&nbsp;</td>"
. " </tr>"
. "</table>";
}
function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
global $anonymous, $tipath;
$ThemeSel = get_theme();
if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
$t_image = "themes/$ThemeSel/images/topics/$topicimage";
} else {
$t_image = "$tipath$topicimage";
}
if ("$aid" == "$informant") { ?>
<style>
.news { display: none; }
</style>
<script>
function newsDisplay(itemname)
{
tmp = document.getElementsByTagName('div');
for (i=0;i<tmp.length;i++)
{
if (tmp.className == itemname) tmp.style.display = (tmp.style.display == 'none' || tmp.style.display == '') ? 'block' : 'none';
}
}
</script>
<table border=1 cellpadding=3 cellspacing=0 width=100% bordercolor="#336699" style="border-collapse: collapse" height="1"><tr>
<td bgcolor=#EEEEEE width="100%" style="border-right-style: none; border-right-width: medium" height="10">
<?php echo"$title"; ?><br><?php echo"<p align=right>$morelink";?></td>
<td bgcolor=#EEEEEE width="45" align="center" style="border-left-style: none; border-left-width: medium" height="1">
<?php echo" <button onclick=\"newsDisplay('news')\" style=\"color: #336699; font-size: 8pt; border: 1px double #336699; height:17; background-color:#EEEEEE\" value=\"contenuto\">
<img border=\"0\" src=\"images/doublearrow.gif\" alt=\""._EXPANDNEWS."\"></button>";?></td></tr>
</table>
<table border="1" cellpadding="3" cellspacing="0" style="border-collapse: collapse" bordercolor="#336699" width="100%">
<tr>
<td width="90%" align="ident" style="border-top-style: none; border-top-width: medium; border-right-style:none; border-right-width:medium" bgcolor="#FFFFFF">
<font class=content>
<?php echo"$thetext"; ?></font><hr color="#336699" width="100%" size="1">
<?php echo""._POSTEDBY."";formatAidHeader($aid); ?>&nbsp;<?php echo""._ON."&nbsp;$time $timezone&nbsp;"._READS."&nbsp;&nbsp;"; ?><?php echo $counter; ?>
</td>
<td width="10%" align="center" style="border-top-style: none; border-top-width: medium; border-left-style:none; border-left-width:medium" bgcolor="#FFFFFF">
<a href="modules.php?name=News&amp;new_topic=<?php echo"$topic"; ?>&author="><img src=<?php echo"$t_image"; ?> border=0 Alt=<?php echo"\"$topictext\""; ?></td> </tr></table></div><br>
<?php } else {
if($informant != "") $boxstuff = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&username=$informant\">$informant</a>&nbsp;"._WRITES.":&nbsp;";
else $boxstuff = "$anonymous";
?>
<table border=1 cellpadding=3 cellspacing=0 width=100% bordercolor="#336699" style="border-collapse: collapse" height="1"><tr>
<td bgcolor=#EEEEEE width="100%" style="border-right-style: none; border-right-width: medium" height="10">
<?php echo"$title"; ?><br><?php echo"<p align=right>$morelink";?></td>
<td bgcolor=#EEEEEE width="45" align="center" style="border-left-style: none; border-left-width: medium" height="1">
<?php echo" <button onclick=\"newsDisplay('news')\" style=\"color: #336699; font-size: 8pt; border: 1px double #336699; height:17; background-color:#EEEEEE\" value=\"contenuto\">
<img border=\"0\" src=\"images/doublearrow.gif\" alt=\""._EXPANDNEWS."\"></button>";?></td></tr>
</table>
<table border="1" cellpadding="3" cellspacing="0" style="border-collapse: collapse" bordercolor="#336699" width="100%">
<tr>
<td width="90%" align="ident" style="border-top-style: none; border-top-width: medium; border-right-style:none; border-right-width:medium" bgcolor="#FFFFFF">
<font class=content>
<?php echo"$boxstuff";?><?php echo"$thetext"; ?></font><hr color="#336699" width="100%" size="1">
<?php echo""._POSTEDBY."";formatAidHeader($aid); ?>&nbsp;<?php echo""._ON."&nbsp;$time $timezone&nbsp;"._READS."&nbsp;&nbsp;"; ?><?php echo $counter; ?>
</td>
<td width="10%" align="center" style="border-top-style: none; border-top-width: medium; border-left-style:none; border-left-width:medium" bgcolor="#FFFFFF">
<a href="modules.php?name=News&amp;new_topic=<?php echo"$topic"; ?>&author="><img src=<?php echo"$t_image"; ?> border=0 Alt=<?php echo"\"$topictext\""; ?></td> </tr></table></div><br>
<?php }
}
function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
global $admin, $sid, $tipath, $bgcolor1, $bgcolor2, $bgcolor3;
$ThemeSel = get_theme();
if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
$t_image = "themes/$ThemeSel/images/topics/$topicimage";
} else {
$t_image = "$tipath$topicimage";
}
if ("$aid" == "$informant") {
echo"
<table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=$bgcolor3 width=100% style=\"border: 1px dashed #97BDE8\"><tr><td>
<table border=0 cellpadding=3 cellspacing=1 width=100%><tr><td bgcolor=$bgcolor2>
<font class=\"title\">$title</font><br>"._POSTEDON." $datetime
<br>"._TOPIC.": <a href=modules.php?name=News&amp;new_topic=$topic>$topictext</a>
</td></tr><tr><td bgcolor=$bgcolor1>
<a href=\"modules.php?name=News&amp;new_topic=$topic\"><img src=\"$t_image\" border=\"0\" alt=\"$topictext\" title=\"$topictext\" align=\"right\"></a>$thetext
</td></tr></table></td></tr></table><br>";
} else {
if($informant != "") $informant = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&username=$informant\">$informant</a> ";
else $boxstuff = "$anonymous ";
$boxstuff .= ""._WRITES."\"$thetext\"$notes";
echo "
<table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=$bgcolor3 width=100%><tr><td>
<table border=0 cellpadding=3 cellspacing=1 width=100%><tr><td bgcolor=$bgcolor2>
<font class=\"title\">$title[/b]</font><p>"._CONTRIBUTEDBY." $informant "._ON." $datetime</font>
</td></tr><tr><td bgcolor=$bgcolor1>
<a href=\"modules.php?name=News&amp;new_topic=$topic\"><img src=\"$t_image\" border=\"0\" alt=\"$topictext\" title=\"$topictext\" align=\"right\"></a>$thetext
</td></tr></table></td></tr></table><br>";
}
}
function themesidebox($title,$content,$blocktemplate) {
if ($blocktemplate == "") {
$blocktemplate = "default.html";
}
$tmpl_file = "themes/ip/blocks+/$blocktemplate";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
?>
?>[/align:3a3de658ef]عكس ها بانام top_01وtop-02والي آخرهستند
ممنون