ورود

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : ايجاد header براي قالب Blue-Crystal



mehrdad_menay
05-05-2008, 06:23 AM
سلام
اين قالب واسه headeresh ي خوام يه لوگو بزارم چون نداره خودش
كسي ميتونه كمك كنه؟
مرسي
اين فايله style

/* Normal, standard links. */
a:link, a:visited
{
color: #215BB2;
background-color: transparent;
text-decoration: none;
}
a:hover
{
color: #215BB2;
background-color: transparent;
text-decoration: underline;
}

/* Navigation links - for the link tree. */
.nav, .nav:link, .nav:visited
{
color: #000000;
background-color: transparent;
text-decoration: none;
}
a.nav:hover
{
color: #000000;
background-color: transparent;
text-decoration: underline;
}

/* Tables should show empty cells too. */
table
{
empty-cells: show;
}

/* By default (td, body..) use Verdana in black. */
body
{
color: #C5C5C7;
background-image: url(images/bg.jpg);
background-repeat: repeat-x;
background-color: #F3F3F3;
background-attachment: fixed;
font-size: 8pt;
font-family: tahoma, arial, helvetica, sans-serif;
}

td
{
color: #000000;
font-size: 8pt;
font-family: tahoma, arial, helvetica, sans-serif;
}

/* Input boxes - just a bit smaller than normal so they align well. */
button
{
font-size: 8pt;
color: #ffffff;
background-image: url(images/but.jpg);
background-repeat: repeat-x;
border: 1px solid #73A0D9;
font-family: tahoma, arial, helvetica, sans-serif;
background-color: #205FBE;
}
button:hover
{
font-size: 8pt;
color: #ffffff;
background-image: url(images/buth.jpg);
background-repeat: repeat-x;
border: 1px solid #1E4175;
font-family: tahoma, arial, helvetica, sans-serif;
background-color: #0B4AA7;
}
input, textarea
{
font-size: 8pt;
color: #000000;
border: 1px solid #73A0D9;
font-family: tahoma, arial, helvetica, sans-serif;
background-color: #ffffff;
}

/* Checkboxes shouldn't have a background color. */
input.check
{
background-color: transparent;
}

/* Selects are a bit smaller, because it makes them look even better 8). */
select
{
font-size: 8pt;
font-weight: normal;
color: #246BD7;
font-family: tahoma, arial, helvetica, sans-serif;
background-color: #f5f4f9;
}

/* Standard horizontal rule.. */
hr
{
color: #000000;
background-color: transparent;
}
/* A more colorful hr.. */
.hrcolor
{
height: 1px;
border: 0;
color: #C5C5C7;
background-color: #000000;
}

/* A quote, perhaps from another post. */
.quote
{
color: #E4EDFA;
background-color: #0349AF;
border: 1px ridge #03409A;
margin: 3px;
padding: 3px;
font-size: 8pt;
}

/* A code block - maybe even PHP ;). */
.code
{
color: #E4EDFA;
background-color: #0349AF;
border: 1px ridge #03409A;
margin: 3px;
padding: 3px;
font-size: 8pt;
}

/* The "Quote:" and "Code:" header parts... */
.quoteheader, .codeheader
{
color: #215BB2;
text-decoration: none;
font-style: normal;
font-weight: bold;
font-size: 8pt;
}

/* Generally, those [?] icons. */
.help
{
cursor: help;
background-color: transparent;
}

/* /me uses this a lot. */
.meaction
{
color: #215BB2;
background-color: transparent;
}

/* The main post box - this makes it as wide as possible. */
.editor
{
width: 100%;
}

/* Highlighted text - such as search results. */
.highlight
{
background-color: #215BB2;
font-weight: bold;
color: #ffffff;
}

/* Alternating backgrounds... */
.windowbg
{
color: #000000;
background-color: #F5F4F9;
}
.menubg
{
background-image: url(images/menubg.jpg);
background-repeat: repeat-x;
height: 63px;
}
.windowbg2
{
color: #000000;
background-color: #F5F4F9;
text-align: right;
}
.windowbg3, windowbg3 a:link
{
color: #ffffff;
background-color: #6198E5;
}

/* Titles - such as table headers. */
tr.titlebg td, .titlebg a:link, .titlebg a:visited
{
font-weight: bold;
font-style: normal;
color: #000000;
}

/* Titles - such as table headers. */
.titlebg
{
font-weight: bold;
background-color: #F5F4F9;
background-image: url(images/catbg.gif);
color: #000000;
}
.titlebg a:hover
{
color: #000000;
text-decoration: underline;
}

/* The category headers, page indexes, and such things. */
.catbg
{
font-weight: bold;
background-color: #F5F4F9;
background-image: url(images/catbg.gif);
color: #000000;
}

/* The borders around things. */
.bordercolor
{
background-color: #F5F4F9;
}
.tborder
{
border: 1px solid #F5F4F9;
}

/* Default font sizes. */
.smalltext
{
font-size: 8pt;
}
.normaltext
{
font-size: small;
}
.largetext
{
font-size: large;
}

/* And this is the bottom, where the copyright is, etc. */
#footerarea
{
background-color: #000000;
}

/* Image border fix */
img
{
border: 0;
}
/* The menu */

#navmenu
{
margin: 15px 0px 8px 0px;
padding: 0;
text-align: center;
}
#navmenu ul
{
text-transform: uppercase;
margin: 0px;
padding: 0;
}
#navmenu li
{
display: inline;
margin: 0px;
padding: 0;
}
#navmenu a
{
padding: 1px 10px 1px 10px;
margin: 0px 3px 0px 3px;
background-color: #FBFBFB;
border: 1px groove #000000;
font-family: Arial, sans-serif;
font-weight: bold;
color: #757575;
font-size: 11px;
}
#navmenu a:hover
{
background-color: #FFFFFF;
color: #000;
text-decoration: none;
}
#navmenu .active
{
background-color: #FFFFFF;
color: #000;
text-decoration: none;
}

mehrdad_menay
05-05-2008, 06:25 AM
اينم index.template


<?php
// Version: 1.0; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context, $settings, $options, $txt;

/* Use images from default theme when using templates from the default theme?
if this is &#039;always&#039;, images from the default theme will be used.
if this is &#039;defaults&#039;, images from the default theme will only be used with default templates.
if this is &#039;never&#039; or isn&#039;t set at all, images from the default theme will not be used. */
$settings[&#039;use_default_images&#039;] = &#039;never&#039;;

/* What document type definition is being used? (for font size and other issues.)
&#039;xhtml&#039; for an XHTML 1.0 document type definition.
&#039;html&#039; for an HTML 4.01 document type definition. */
$settings[&#039;doctype&#039;] = &#039;xhtml&#039;;
}

// The main sub template above the content.
function template_main_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;



// Show right to left and the character set for ease of translating.
echo &#039;&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
&lt;html&#039;, $context[&#039;right_to_left&#039;] ? &#039; dir=&quot;rtl&quot;&#039; : &#039;&#039;, &#039;&gt;&lt;head&gt;
&lt;meta <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> content=&quot;text/html; charset=&#039;, $context[&#039;character_set&#039;], &#039;&quot; /&gt;
&lt;meta name=&quot;description&quot; content=&quot;&#039;, $context[&#039;page_title&#039;], &#039;&quot; /&gt;
&lt;meta name=&quot;keywords&quot; content=&quot;PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum&quot; /&gt;
&lt;script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot; src=&quot;&#039;, $settings[&#039;default_theme_url&#039;], &#039;/script.js&quot;&gt;&lt;/script&gt;
&lt;script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot;&gt;&lt;!--
var smf_theme_url = &quot;&#039;, $settings[&#039;theme_url&#039;], &#039;&quot;;
var smf_images_url = &quot;&#039;, $settings[&#039;images_url&#039;], &#039;&quot;;
// --&gt;&lt;/script&gt;
&lt;title&gt;&#039;, $context[&#039;page_title&#039;], &#039;&lt;/title&gt;&#039;;

// This is here because Gecko browsers properly support white-space....
if ($context[&#039;browser&#039;][&#039;is_gecko&#039;])
echo &#039;
&lt;style type=&quot;text/css&quot;&gt;&lt;!--
.code
{
white-space: pre;
}
--&gt;&lt;/style&gt;&#039;;

echo &#039;
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;&#039;, $settings[&#039;theme_url&#039;], &#039;/style.css&quot; /&gt;&#039;;

/* Internet Explorer 4/5 and Opera 6 just don&#039;t do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context[&#039;browser&#039;][&#039;needs_size_fix&#039;])
echo &#039;
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;&#039;, $settings[&#039;default_theme_url&#039;], &#039;/fonts-compat.css&quot; /&gt;&#039;;

// Show all the relative links, such as help, search, contents, and the like.
echo &#039;
&lt;link rel=&quot;help&quot; href=&quot;&#039;, $scripturl, &#039;?action=help&quot; target=&quot;_blank&quot; /&gt;
&lt;link rel=&quot;search&quot; href=&quot;&#039; . $scripturl . &#039;?action=search&quot; /&gt;
&lt;link rel=&quot;contents&quot; href=&quot;&#039;, $scripturl, &#039;&quot; /&gt;&#039;;

// If we&#039;re viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context[&#039;current_topic&#039;]))
echo &#039;
&lt;link rel=&quot;prev&quot; href=&quot;&#039; . $scripturl . &#039;?action=;topic=&#039; . $context[&#039;current_topic&#039;] . &#039;.0;prev_next=prev&quot; /&gt;
&lt;link rel=&quot;next&quot; href=&quot;&#039; . $scripturl . &#039;?action=;topic=&#039; . $context[&#039;current_topic&#039;] . &#039;.0;prev_next=next&quot; /&gt;&#039;;

// If we&#039;re in a board, or a topic for that matter, the index will be the board&#039;s index.
if (!empty($context[&#039;current_board&#039;]))
echo &#039;
&lt;link rel=&quot;index&quot; href=&quot;&#039; . $scripturl . &#039;?action=;board=&#039; . $context[&#039;current_board&#039;] . &#039;.0&quot; /&gt;&#039;;

// We&#039;ll have to use the cookie to remember the header...
if ($context[&#039;user&#039;][&#039;is_guest&#039;])
$options[&#039;collapse_header&#039;] = !empty($_COOKIE[&#039;upshrink&#039;]);

// Output any remaining HTML headers. (from mods, maybe?)
echo $context[&#039;html_headers&#039;], &#039;
&lt;script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot;&gt;&lt;!--
var current_rightbar = &#039;, empty($options[&#039;collapse_rightbar&#039;]) ? &#039;false&#039; : &#039;true&#039;, &#039;;

function shrinkHeaderRightbar(mode)
{&#039;;

// Guests don&#039;t have theme options!!
if ($context[&#039;user&#039;][&#039;is_guest&#039;])
echo &#039;
document.cookie = &quot;upshrink=&quot; + (mode ? 1 : 0);&#039;;
else
echo &#039;
document.getElementById(&quot;upshrinkTempRightbar&quot;).sr c = &quot;&#039;, $scripturl, &#039;?action=jsoption;var=collapse_rightbar;val=&quot; + (mode ? 1 : 0) + &quot;;sesc=&#039;, $context[&#039;session_id&#039;], &#039;;&quot; + (new Date().getTime());&#039;;

echo &#039;
document.getElementById(&quot;upshrinkRightbar&quot;).src = smf_images_url + (mode ? &quot;/upshrink2.gif&quot; : &quot;/upshrink.gif&quot;);

document.getElementById(&quot;rightbarHeader&quot;).style.di splay = mode ? &quot;none&quot; : &quot;&quot;;

current_rightbar = mode;
}
// --&gt;&lt;/script&gt;

&lt;script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot;&gt;&lt;!--
var current_header = &#039;, empty($options[&#039;collapse_header&#039;]) ? &#039;false&#039; : &#039;true&#039;, &#039;;

function shrinkHeader(mode)
{&#039;;

// Guests don&#039;t have theme options!!
if ($context[&#039;user&#039;][&#039;is_guest&#039;])
echo &#039;
document.cookie = &quot;upshrink=&quot; + (mode ? 1 : 0);&#039;;
else
echo &#039;
document.getElementById(&quot;upshrinkTemp&quot;).src = &quot;&#039;, $scripturl, &#039;?action=jsoption;var=collapse_header;val=&quot; + (mode ? 1 : 0) + &quot;;sesc=&#039;, $context[&#039;session_id&#039;], &#039;;&quot; + (new Date().getTime());&#039;;

echo &#039;
document.getElementById(&quot;upshrink&quot;).src = smf_images_url + (mode ? &quot;/upshrink2.gif&quot; : &quot;/upshrink.gif&quot;);

document.getElementById(&quot;upshrinkHeader&quot;).style.di splay = mode ? &quot;none&quot; : &quot;&quot;;

current_header = mode;
}
// --&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;&#039;, $settings[&#039;theme_url&#039;], &#039;/rollover.js&quot;&gt;

/***********************************************
* DOM Image Rollover II- By Adam Smith (<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>)
* Script featured on and available at Dynamic Drive (<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>)
* Keep this notice intact for usage please
***********************************************/

&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;&#039;;


// The logo, user information, news, and menu.
echo &#039;

&lt;table width=&quot;920&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;
&lt;tr&gt;
&lt;td width=&quot;0&quot; height=&quot;0&quot; align=&quot;left&quot; valign=&quot;top&quot;&gt;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/blank.gif&quot; width=&quot;0&quot; height=&quot;0&quot; alt=&quot; &quot; border=&quot;0&quot; /&gt;&lt;/td&gt;
&lt;td width=&quot;100%&quot; style=&quot;background-image:url(&#039; . $settings[&#039;images_url&#039;] . &#039;/blank.gif)&quot; valign=&quot;middle&quot;&gt;&lt;/td&gt;
&lt;td width=&quot;0&quot; height=&quot;0&quot; align=&quot;right&quot; valign=&quot;top&quot;&gt;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/blank.gif&quot; width=&quot;0&quot; height=&quot;0&quot; alt=&quot; &quot; border=&quot;0&quot; /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;table cellspacing=&quot;1&quot; cellpadding=&quot;0&quot; class=&quot;bordercolor&quot; align=&quot;center&quot; width=&quot;920&quot;&gt;
&lt;tr colspan=&quot;3&quot;&gt;
&lt;td style=&quot;background-color: transparent;&quot; width=&quot;0%&quot; valign=&quot;top&quot;&gt;&lt;/td&gt;
&lt;td class=&quot;windowbg3&quot; valign=&quot;top&quot;&gt;&#039;;
echo &#039;

&lt;br /&gt;&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; align=&quot;center&quot; width=&quot;920&quot; style=&quot;position: relative;&quot;&gt;
&lt;tr width=&quot;920&quot;&gt;
&lt;td width=&quot;13&quot; height=&quot;63&quot; valign=&quot;top&quot;&gt;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/menul.gif&quot; width=&quot;13&quot; height=&quot;63&quot; alt=&quot; &quot; border=&quot;0&quot; /&gt;&lt;/td&gt;
&lt;td valign=&quot;middle&quot; align=&quot;right&quot; class=&quot;menubg&quot; height=&quot;63&quot; nowrap=&quot;nowrap&quot;&gt;&#039;;

template_menu();

echo &#039;&lt;/td&gt;
&lt;td width=&quot;13&quot; height=&quot;63&quot; align=&quot;left&quot; valign=&quot;top&quot;&gt;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/menur.gif&quot; width=&quot;13&quot; height=&quot;63&quot; alt=&quot; &quot; border=&quot;0&quot; /&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/table&gt;&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; align=&quot;center&quot; width=&quot;920&quot; style=&quot;position: relative;&quot;&gt;
&lt;tr id=&quot;upshrinkHeader&quot;&#039;, empty($options[&#039;collapse_header&#039;]) ? &#039;&#039; : &#039; style=&quot;display: none;&quot;&#039;, &#039;&gt;
&lt;td valign=&quot;top&quot;&gt;

&lt;table width=&quot;920&quot; align=&quot;center&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;
&lt;tr&gt;
&lt;td width=&quot;9&quot; height=&quot;23&quot; align=&quot;left&quot; valign=&quot;top&quot;&gt;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/left.gif&quot; width=&quot;9&quot; height=&quot;23&quot; alt=&quot; &quot; border=&quot;0&quot; /&gt;&lt;/td&gt;
&lt;td width=&quot;100%&quot; style=&quot;background-image:url(&#039; . $settings[&#039;images_url&#039;] . &#039;/middle.gif)&quot; valign=&quot;middle&quot;&gt;&lt;/td&gt;
&lt;td width=&quot;9&quot; height=&quot;23&quot; align=&quot;right&quot; valign=&quot;top&quot;&gt;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/right.gif&quot; width=&quot;9&quot; height=&quot;23&quot; alt=&quot; &quot; border=&quot;0&quot; /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;table border=&quot;0&quot; align=&quot;center&quot; class=&quot;bordercolor&quot; width=&quot;920&quot; cellspacing=&quot;1&quot; cellpadding=&quot;4&quot;&gt;
&lt;tr class=&quot;catbg&quot; colspan=&quot;3&quot;&gt;
&lt;td height=&quot;5&quot; colspan=&quot;2&quot; valign=&quot;middle&quot; align=&quot;right&quot;&gt;مشخصات کاربر&lt;/td&gt;&#039;;

// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings[&#039;enable_news&#039;]))
echo &#039;
&lt;td height=&quot;5&quot; valign=&quot;middle&quot; align=&quot;right&quot;&gt;اخبار&lt;/td&gt;&#039;;
echo &#039;
&lt;/tr&gt;
&lt;tr colspan=&quot;3&quot;&gt;
&lt;td width=&quot;7%&quot; class=&quot;windowbg&quot; valign=&quot;middle&quot; align=&quot;center&quot;&gt;&#039;;

if ($context[&#039;user&#039;][&#039;is_guest&#039;] || empty($context[&#039;user&#039;][&#039;avatar&#039;][&#039;image&#039;]))
echo &#039;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/nophoto.gif&quot; alt=&quot;No avatar&quot; title=&quot;No avatar&quot; border=&quot;0&quot; /&gt;&#039;;
else
echo $context[&#039;user&#039;][&#039;avatar&#039;][&#039;image&#039;];
echo &#039;
&lt;/td&gt;
&lt;td width=&quot;60%&quot; class=&quot;windowbg2&quot; valign=&quot;top&quot; align=&quot;right&quot;&gt;&#039;;

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context[&#039;user&#039;][&#039;is_logged&#039;])
echo &#039;
&lt;a href=&quot;&#039;, $scripturl, &#039;?action=help&quot;&gt;&#039;, ($settings[&#039;use_image_buttons&#039;] ? &#039;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/&#039; . $context[&#039;user&#039;][&#039;language&#039;] . &#039;/help.gif&quot; alt=&quot;&#039; . $txt[119] . &#039;&quot; border=&quot;0&quot; srcover=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/&#039; . $context[&#039;user&#039;][&#039;language&#039;] . &#039;/help2.gif&quot;/&gt;&#039; : $txt[119]), &#039;&lt;/a&gt;&#039;, $context[&#039;menu_separator&#039;];
else
echo &#039;
&lt;a href=&quot;&#039;, $scripturl, &#039;?action=help&quot;&gt;&#039;, ($settings[&#039;use_image_buttons&#039;] ? &#039;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/&#039; . $context[&#039;user&#039;][&#039;language&#039;] . &#039;/help_gues.gif&quot; alt=&quot;&#039; . $txt[119] . &#039;&quot; border=&quot;0&quot; srcover=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/&#039; . $context[&#039;user&#039;][&#039;language&#039;] . &#039;/help_gues_2.gif&quot;/&gt;&#039; : $txt[119]), &#039;&lt;/a&gt;&#039;, $context[&#039;menu_separator&#039;];

if ($context[&#039;user&#039;][&#039;is_logged&#039;])
{
echo &#039;
&lt;br /&gt;&#039;, $txt[&#039;hello_member&#039;], &#039; &lt;b&gt;&#039;, $context[&#039;user&#039;][&#039;name&#039;], &#039;&lt;/b&gt;&#039;, $context[&#039;allow_pm&#039;] ? &#039;, &#039; . $txt[152] . &#039; &lt;a href=&quot;&#039; . $scripturl . &#039;?action=pm&quot;&gt;&#039; . $context[&#039;user&#039;][&#039;messages&#039;] . &#039; &#039; . ($context[&#039;user&#039;][&#039;messages&#039;] != 1 ? $txt[153] : $txt[471]) . &#039;&lt;/a&gt;&#039; . $txt[&#039;newmessages4&#039;] . &#039; &#039; . $context[&#039;user&#039;][&#039;unread_messages&#039;] . &#039; &#039; . ($context[&#039;user&#039;][&#039;unread_messages&#039;] == 1 ? $txt[&#039;newmessages0&#039;] : $txt[&#039;newmessages1&#039;]) : &#039;&#039;, &#039;.&#039;;

// Show the total time logged in?
if (!empty($context[&#039;user&#039;][&#039;total_time_logged_in&#039;]))
{
echo &#039;
&lt;br /&gt;&#039;, $txt[&#039;totalTimeLogged1&#039;];

// If days is just zero, don&#039;t bother to show it.
if ($context[&#039;user&#039;][&#039;total_time_logged_in&#039;][&#039;days&#039;] &gt; 0)
echo $context[&#039;user&#039;][&#039;total_time_logged_in&#039;][&#039;days&#039;] . $txt[&#039;totalTimeLogged2&#039;];

// Same with hours - only show it if it&#039;s above zero.
if ($context[&#039;user&#039;][&#039;total_time_logged_in&#039;][&#039;hours&#039;] &gt; 0)
echo $context[&#039;user&#039;][&#039;total_time_logged_in&#039;][&#039;hours&#039;] . $txt[&#039;totalTimeLogged3&#039;];

// But, let&#039;s always show minutes - Time wasted here: 0 minutes ;).
echo $context[&#039;user&#039;][&#039;total_time_logged_in&#039;][&#039;minutes&#039;], $txt[&#039;totalTimeLogged4&#039;];
}

echo &#039;&lt;br /&gt;
&lt;a href=&quot;&#039;, $scripturl, &#039;?action=unread&quot;&gt;&#039;, $txt[&#039;unread_since_visit&#039;], &#039;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;&#039;, $scripturl, &#039;?action=unreadreplies&quot;&gt;&#039;, $txt[&#039;show_unread_replies&#039;], &#039;&lt;/a&gt;&lt;br /&gt;
&#039;;


// Are there any members waiting for approval?
if (!empty($context[&#039;unapproved_members&#039;]))
echo &#039;&lt;br /&gt;
&#039;, $context[&#039;unapproved_members&#039;] == 1 ? $txt[&#039;approve_thereis&#039;] : $txt[&#039;approve_thereare&#039;], &#039; &lt;a href=&quot;&#039;, $scripturl, &#039;?action=regcenter&quot;&gt;&#039;, $context[&#039;unapproved_members&#039;] == 1 ? $txt[&#039;approve_member&#039;] : $context[&#039;unapproved_members&#039;] . &#039; &#039; . $txt[&#039;approve_members&#039;], &#039;&lt;/a&gt; &#039;, $txt[&#039;approve_members_waiting&#039;];

// Is the forum in maintenance mode?
if ($context[&#039;in_maintenance&#039;] &amp;&amp; $context[&#039;user&#039;][&#039;is_admin&#039;])
echo &#039;&lt;br /&gt;
&lt;b&gt;&#039;, $txt[616], &#039;&lt;/b&gt;&#039;;
}
// Otherwise they&#039;re a guest - so politely ask them to register or login.
else
echo &#039;
&lt;br /&gt;&#039;, $txt[&#039;welcome_guest&#039;], &#039;&lt;br /&gt;
&lt;form action=&quot;&#039;, $scripturl, &#039;?action=login2&quot; method=&quot;post&quot; style=&quot;margin: 0px 1ex 0px 0; text-align:right;&quot;&gt;
&lt;input type=&quot;text&quot; name=&quot;user&quot; size=&quot;10&quot; /&gt; &lt;input type=&quot;password&quot; name=&quot;passwrd&quot; size=&quot;10&quot; /&gt;
&lt;select name=&quot;cookielength&quot;&gt;
&lt;option value=&quot;60&quot;&gt;&#039;, $txt[&#039;smf53&#039;], &#039;&lt;/option&gt;
&lt;option value=&quot;1440&quot;&gt;&#039;, $txt[&#039;smf47&#039;], &#039;&lt;/option&gt;
&lt;option value=&quot;10080&quot;&gt;&#039;, $txt[&#039;smf48&#039;], &#039;&lt;/option&gt;
&lt;option value=&quot;302400&quot;&gt;&#039;, $txt[&#039;smf49&#039;], &#039;&lt;/option&gt;
&lt;option value=&quot;-1&quot; selected=&quot;selected&quot;&gt;&#039;, $txt[&#039;smf50&#039;], &#039;&lt;/option&gt;
&lt;/select&gt;
&lt;input type=&quot;submit&quot; value=&quot;&#039;, $txt[34], &#039;&quot; /&gt;&lt;br /&gt;
&#039;, $txt[&#039;smf52&#039;], &#039;
&lt;/form&gt;&#039;;


echo &#039;
&#039;, $context[&#039;current_time&#039;], &#039;

&lt;/td&gt;&#039;;

// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings[&#039;enable_news&#039;]))
echo &#039;
&lt;td style=&quot;padding:3px&quot; class=&quot;windowbg&quot; valign=&quot;top&quot; align=&quot;right&quot;&gt;
&#039;, $context[&#039;random_news_line&#039;], &#039;

&lt;/td&gt;&#039;;
echo &#039;
&lt;/tr&gt;&lt;/table&gt;
&lt;table width=&quot;920&quot; align=&quot;right&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;
&lt;tr&gt;
&lt;td width=&quot;9&quot; height=&quot;23&quot; align=&quot;right&quot; valign=&quot;top&quot;&gt;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/b1.gif&quot; width=&quot;9&quot; height=&quot;23&quot; alt=&quot; &quot; border=&quot;0&quot; /&gt;&lt;/td&gt;
&lt;td width=&quot;100%&quot; style=&quot;background-image:url(&#039; . $settings[&#039;images_url&#039;] . &#039;/b.gif)&quot; valign=&quot;middle&quot;&gt;&lt;/td&gt;
&lt;td width=&quot;9&quot; height=&quot;23&quot; align=&quot;right&quot; valign=&quot;top&quot;&gt;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/b2.gif&quot; width=&quot;9&quot; height=&quot;23&quot; alt=&quot; &quot; border=&quot;0&quot; /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;

&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; align=&quot;right&quot; width=&quot;920&quot;&gt;
&lt;/table&gt;&#039;;

echo &#039;


&lt;br /&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;10&quot; border=&quot;0&quot; align=&quot;rigt&quot; width=&quot;920&quot;&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&#039;;

// The main content should go here. A table is used because IE 6 just can&#039;t handle a div.
echo &#039;&lt;div id=&quot;bodyarea&quot; style=&quot;padding: 10px 8px 0px 8px;&quot;&gt;
&lt;table width=&quot;920&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; border=&quot;0&quot;&gt;&lt;tr&gt;&#039;;

}

function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt;

echo &#039;&lt;/td&gt;
&lt;/tr&gt;&lt;/table&gt;&#039;;

// Show a vB style login for quick login?
if ($context[&#039;show_vBlogin&#039;])
echo &#039;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; align=&quot;center&quot; width=&quot;920&quot;&gt;
&lt;tr&gt;&lt;td nowrap=&quot;nowrap&quot; align=&quot;center&quot;&gt;
&lt;form action=&quot;&#039;, $scripturl, &#039;?action=login2&quot; method=&quot;post&quot;&gt;&lt;br /&gt;
&lt;input type=&quot;text&quot; name=&quot;user&quot; size=&quot;7&quot; /&gt;
&lt;input type=&quot;password&quot; name=&quot;passwrd&quot; size=&quot;7&quot; /&gt;
&lt;select name=&quot;cookielength&quot;&gt;
&lt;option value=&quot;60&quot;&gt;&#039;, $txt[&#039;smf53&#039;], &#039;&lt;/option&gt;
&lt;option value=&quot;1440&quot;&gt;&#039;, $txt[&#039;smf47&#039;], &#039;&lt;/option&gt;
&lt;option value=&quot;10080&quot;&gt;&#039;, $txt[&#039;smf48&#039;], &#039;&lt;/option&gt;
&lt;option value=&quot;302400&quot;&gt;&#039;, $txt[&#039;smf49&#039;], &#039;&lt;/option&gt;
&lt;option value=&quot;-1&quot; selected=&quot;selected&quot;&gt;&#039;, $txt[&#039;smf50&#039;], &#039;&lt;/option&gt;
&lt;/select&gt;
&lt;input type=&quot;submit&quot; value=&quot;&#039;, $txt[34], &#039;&quot; /&gt;&lt;br /&gt;
&#039;, $txt[&#039;smf52&#039;], &#039;
&lt;/form&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&#039;;
// Don&#039;t show a login box, just a break.
else
echo &#039;
&lt;br /&gt;&#039;;

echo &#039;


&lt;table width=&quot;920&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;
&lt;tr&gt;
&lt;td width=&quot;0&quot; height=&quot;0&quot; align=&quot;right&quot; valign=&quot;top&quot;&gt;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/blank.gif&quot; width=&quot;0&quot; height=&quot;0&quot; alt=&quot; &quot; border=&quot;0&quot; /&gt;&lt;/td&gt;
&lt;td width=&quot;100%&quot; style=&quot;background-image:url(&#039; . $settings[&#039;images_url&#039;] . &#039;/blank.gif)&quot; valign=&quot;middle&quot;&gt;&lt;/td&gt;
&lt;td width=&quot;0&quot; height=&quot;0&quot; align=&quot;right&quot; valign=&quot;top&quot;&gt;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/blank.gif&quot; width=&quot;0&quot; height=&quot;0&quot; alt=&quot; &quot; border=&quot;0&quot; /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;&#039;;


// Show the &quot;Powered by&quot; and &quot;Valid&quot; logos, as well as the copyright. Remember, the copyright must be somewhere!
echo &#039;
&lt;br /&gt;

&lt;table cellspacing=&quot;0&quot; border=&quot;0&quot; align=&quot;middle&quot; width=&quot;100%&quot;&gt;
&lt;tr align=&quot;center&quot;&gt;&lt;td width=&quot;100%&quot; valign=&quot;middle&quot; align=&quot;center&quot;&gt;&#039;;
{
if ($context[&#039;allow_admin&#039;])
echo &#039;&lt;a href=&quot;&#039;, $scripturl, &#039;?action=admin&quot;&gt;&lt;b&gt;برو به مرکز مدیریت&lt;/a&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&#039;;
}
echo &#039;&lt;tr&gt;
&lt;td width=&quot;100%&quot; valign=&quot;middle&quot; align=&quot;center&quot;&gt;
&#039;, theme_copyright(), &#039;&lt;br/&gt;&lt;b&gt;Blue Crystal&lt;/b&gt;
&lt;br /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;&#039;;

// Show the load time?
if ($context[&#039;show_load_time&#039;])
echo &#039;
&lt;div align=&quot;center&quot; class=&quot;smalltext&quot;&gt;&lt;br /&gt;
&#039;, $txt[&#039;smf301&#039;], $context[&#039;load_time&#039;], $txt[&#039;smf302&#039;], $context[&#039;load_queries&#039;], $txt[&#039;smf302b&#039;], &#039;
&lt;/div&gt;&#039;;

// And then we&#039;re done!



echo &#039;

&lt;/td&gt;
&lt;/tr&gt;&lt;/table&gt;&lt;/body&gt;
&lt;/html&gt;&#039;;
}

// Show a linktree. This is that thing that shows &quot;My Community | General Category | General Discussion&quot;..
function theme_linktree()
{
global $context, $settings, $options;

// Folder style or inline? Inline has a smaller font.
echo &#039;&lt;span class=&quot;nav&quot;&#039;, $settings[&#039;linktree_inline&#039;] ? &#039; style=&quot;font-size: smaller;&quot;&#039; : &#039;&#039;, &#039;&gt;&#039;;

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context[&#039;linktree&#039;] as $link_num =&gt; $tree)
{
// Show the | | |-&#91;] Folders.
if (!$settings[&#039;linktree_inline&#039;])
{
if ($link_num &gt; 0)
echo str_repeat(&#039;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/icons/linktree_main.gif&quot; alt=&quot;| &quot; border=&quot;0&quot; /&gt;&#039;, $link_num - 1), &#039;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/icons/linktree_side.gif&quot; alt=&quot;|-&quot; border=&quot;0&quot; /&gt;&#039;;
echo &#039;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/icons/folder_open.gif&quot; alt=&quot;+&quot; border=&quot;0&quot; /&gt;&amp;nbsp; &#039;;
}

// Show something before the link?
if (isset($tree[&#039;extra_before&#039;]))
echo $tree[&#039;extra_before&#039;];

// Show the link, including a URL if it should have one.
echo &#039;&lt;b&gt;&#039;, $settings[&#039;linktree_link&#039;] &amp;&amp; isset($tree[&#039;url&#039;]) ? &#039;&lt;a href=&quot;&#039; . $tree[&#039;url&#039;] . &#039;&quot; class=&quot;nav&quot;&gt;&#039; . $tree[&#039;name&#039;] . &#039;&lt;/a&gt;&#039; : $tree[&#039;name&#039;], &#039;&lt;/b&gt;&#039;;

// Show something after the link...?
if (isset($tree[&#039;extra_after&#039;]))
echo $tree[&#039;extra_after&#039;];

// Don&#039;t show a separator for the last one.
if ($link_num != count($context[&#039;linktree&#039;]) - 1)
echo $settings[&#039;linktree_inline&#039;] ? &#039; &amp;nbsp;|&amp;nbsp; &#039; : &#039;&lt;br /&gt;&#039;;
}

echo &#039;&lt;/span&gt;&#039;;
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;

// Show the [home] and [help] buttons.
echo &#039;
&lt;a href=&quot;&#039;, $scripturl, &#039;&quot;&gt;&#039;, ($settings[&#039;use_image_buttons&#039;] ? &#039;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/&#039; . $context[&#039;user&#039;][&#039;language&#039;] . &#039;/home.gif&quot; alt=&quot;&#039; . $txt[103] . &#039;&quot; border=&quot;0&quot; srcover=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/&#039; . $context[&#039;user&#039;][&#039;language&#039;] . &#039;/home_hov.gif&quot;&quot;/&gt;&#039; : $txt[103]), &#039;&lt;/a&gt;&#039;, $context[&#039;menu_separator&#039;], &#039;
&lt;a href=&quot;&#039;, $scripturl, &#039;?action=mlist&quot;&gt;&#039;, ($settings[&#039;use_image_buttons&#039;] ? &#039;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/&#039; . $context[&#039;user&#039;][&#039;language&#039;] . &#039;/memberlist.gif&quot; alt=&quot;&#039; . $txt[19] . &#039;&quot; border=&quot;0&quot; srcover=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/&#039; . $context[&#039;user&#039;][&#039;language&#039;] . &#039;/memberlist_hov.gif&quot;/&gt;&#039; : $txt[19]), &#039;&lt;/a&gt;&#039;, $context[&#039;menu_separator&#039;];

// How about the [search] button?
if ($context[&#039;allow_search&#039;])
echo &#039;
&lt;a href=&quot;&#039;, $scripturl, &#039;?action=search&quot;&gt;&#039;, ($settings[&#039;use_image_buttons&#039;] ? &#039;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/&#039; . $context[&#039;user&#039;][&#039;language&#039;] . &#039;/search.gif&quot; alt=&quot;&#039; . $txt[182] . &#039;&quot; border=&quot;0&quot; srcover=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/&#039; . $context[&#039;user&#039;][&#039;language&#039;] . &#039;/search_hov.gif&quot;/&gt;&#039; : $txt[182]), &#039;&lt;/a&gt;&#039;, $context[&#039;menu_separator&#039;];

// Is the user allowed to administrate at all? ([admin])
if ($context[&#039;user&#039;][&#039;is_logged&#039;])
echo &#039;
&lt;a href=&quot;&#039;, $scripturl, &#039;?action=pm&quot;&gt;&#039;, ($settings[&#039;use_image_buttons&#039;] ? &#039;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/&#039; . $context[&#039;user&#039;][&#039;language&#039;] . &#039;/pm.gif&quot; alt=&quot;&#039; . $txt[159] . &#039;&quot; border=&quot;0&quot; srcover=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/&#039; . $context[&#039;user&#039;][&#039;language&#039;] . &#039;/pm_hov.gif&quot;/&gt;&#039; : $txt[159]), &#039;&lt;/a&gt;&#039;, $context[&#039;menu_separator&#039;];

// Edit Profile... [profile]
if ($context[&#039;allow_edit_profile&#039;])
echo &#039;
&lt;a href=&quot;&#039;, $scripturl, &#039;?action=profile&quot;&gt;&#039;, ($settings[&#039;use_image_buttons&#039;] ? &#039;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/&#039; . $context[&#039;user&#039;][&#039;language&#039;] . &#039;/profile.gif&quot; alt=&quot;&#039; . $txt[79] . &#039;&quot; border=&quot;0&quot; srcover=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/&#039; . $context[&#039;user&#039;][&#039;language&#039;] . &#039;/profile_hov.gif&quot;/&gt;&#039; : $txt[467]), &#039;&lt;/a&gt;&#039;, $context[&#039;menu_separator&#039;];

// The [calendar]!
if ($context[&#039;allow_calendar&#039;])
echo &#039;
&lt;a href=&quot;&#039;, $scripturl, &#039;?action=calendar&quot;&gt;&#039;, ($settings[&#039;use_image_buttons&#039;] ? &#039;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/&#039; . $context[&#039;user&#039;][&#039;language&#039;] . &#039;/calendar.gif&quot; alt=&quot;&#039; . $txt[&#039;calendar24&#039;] . &#039;&quot; border=&quot;0&quot; srcover=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/&#039; . $context[&#039;user&#039;][&#039;language&#039;] . &#039;/calendar_hov.gif&quot;/&gt;&#039; : $txt[&#039;calendar24&#039;]), &#039;&lt;/a&gt;&#039;, $context[&#039;menu_separator&#039;];

// If the user is a guest, show [login] and [register] buttons.
if ($context[&#039;user&#039;][&#039;is_guest&#039;])
{
echo &#039;
&lt;a href=&quot;&#039;, $scripturl, &#039;?action=login&quot;&gt;&#039;, ($settings[&#039;use_image_buttons&#039;] ? &#039;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/&#039; . $context[&#039;user&#039;][&#039;language&#039;] . &#039;/login.gif&quot; alt=&quot;&#039; . $txt[34] . &#039;&quot; border=&quot;0&quot; srcover=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/&#039; . $context[&#039;user&#039;][&#039;language&#039;] . &#039;/login_hov.gif&quot;&quot;/&gt;&#039; : $txt[34]), &#039;&lt;/a&gt;&#039;, $context[&#039;menu_separator&#039;], &#039;
&lt;a href=&quot;&#039;, $scripturl, &#039;?action=register&quot;&gt;&#039;, ($settings[&#039;use_image_buttons&#039;] ? &#039;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/&#039; . $context[&#039;user&#039;][&#039;language&#039;] . &#039;/register.gif&quot; alt=&quot;&#039; . $txt[97] . &#039;&quot; border=&quot;0&quot; srcover=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/&#039; . $context[&#039;user&#039;][&#039;language&#039;] . &#039;/register_hov.gif&quot;/&gt;&#039; : $txt[97]), &#039;&lt;/a&gt;&#039;;
}
// Otherwise, they might want to [logout]...
else
echo &#039;
&lt;a href=&quot;&#039;, $scripturl, &#039;?action=logout;sesc=&#039;, $context[&#039;session_id&#039;], &#039;&quot;&gt;&#039;, ($settings[&#039;use_image_buttons&#039;] ? &#039;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/&#039; . $context[&#039;user&#039;][&#039;language&#039;] . &#039;/logout.gif&quot; alt=&quot;&#039; . $txt[108] . &#039;&quot; border=&quot;0&quot; srcover=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/&#039; . $context[&#039;user&#039;][&#039;language&#039;] . &#039;/logout_hov.gif&quot;/&gt;&#039; : $txt[108]), &#039;&lt;/a&gt;&#039;;
}

// Generate a strip of buttons, out of buttons.
function template_button_strip($button_strip, $direction = &#039;top&#039;, $force_reset = false, $custom_td = &#039;&#039;)
{
global $settings, $buttons, $context, $txt, $scripturl;

if (empty($button_strip))
return &#039;&#039;;

// Create the buttons...
foreach ($button_strip as $key =&gt; $value)
{
if (isset($value[&#039;test&#039;]) &amp;&amp; empty($context[$value[&#039;test&#039;]]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = &#039;&lt;a href=&quot;&#039; . $value[&#039;url&#039;] . &#039;&quot; &#039; .( isset($value[&#039;custom&#039;]) ? $value[&#039;custom&#039;] : &#039;&#039;) . &#039;&gt;&#039; . ($settings[&#039;use_image_buttons&#039;] ? &#039;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/&#039; . ($value[&#039;lang&#039;] ? $context[&#039;user&#039;][&#039;language&#039;] . &#039;/&#039; : &#039;&#039;) . $value[&#039;image&#039;] . &#039;&quot; alt=&quot;&#039; . $txt[$value[&#039;text&#039;]] . &#039;&quot; border=&quot;0&quot; /&gt;&#039; : $txt[$value[&#039;text&#039;]]) . &#039;&lt;/a&gt;&#039;;

$button_strip[$key] = $buttons[$key];
}

echo &#039;
&lt;td &#039;, $custom_td, &#039;&gt;&#039;, implode($context[&#039;menu_separator&#039;], $button_strip) , &#039;&lt;/td&gt;&#039;;
}

?&gt;

نوید
05-05-2008, 01:39 PM
دوست عزیز شما باید به HTML و CSS آشنایی داشته باشید
ما اینجا شما را راهنمایی میکنیم نه اینکه کار را انجام بدیم
موفق باشید

amir.d
05-05-2008, 04:41 PM
دوست عزیز شما باید به HTML و CSS آشنایی داشته باشید
ما اینجا شما را راهنمایی میکنیم نه اینکه کار را انجام بدیم
موفق باشید

در ضمن اگه فایل ها رو بذاری بهتر میشه راهنمایی کرد . اینطوری یه ربع طول میکشه فقط بریم پله اول .
موفق باشید

mehrdad_menay
05-05-2008, 07:03 PM
دوست عزیز شما باید به HTML و CSS آشنایی داشته باشید
ما اینجا شما را راهنمایی میکنیم نه اینکه کار را انجام بدیم
موفق باشید


ممنون از كمكتون