dardesar
12-13-2006, 11:36 AM
سلام دوستان ...
قالب من این مشکل رو داره که منوی اصلی راست چین نمیشه !!
به عکس دقت کنید :
<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
اینم کد سی اس اس :
/* Body */
BODY {
margin: 0px 0px 0px 0px;
background-color : #FFFFFF ;
color : #000000;
scrollbar-3dlight-color: #0990A4;
scrollbar-base-color: #E4F7FA;
scrollbar-darkshadow-color: #0990A4;
scrollbar-face-color: #E4F7FA;
scrollbar-highlight-color: #0990A4;
scrollbar-shadow-color: #0990A4;
scrollbar-track-color: White;
scrollbar-arrow-color: #0990A4;
background: url(../images/bg.gif);
direction:rtl;
}
td,tr,p,div {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 11px;
color: #00494A;
}
/* Styles for dhtml tabbed-pages */
.ontab {
background-color: #197786;
border-left: outset 2px #5B7122;
border-right: outset 2px #808080;
border-top: outset 2px #5B7122;
border-bottom: solid 1px #d5d5d5;
text-align: center;
cursor: hand;
font-weight: bold;
color: #FFFFFF;
}
.offtab {
background-color : #e5e5e5;
border-left: outset 2px #E0E0E0;
border-right: outset 2px #E0E0E0;
border-top: outset 2px #E0E0E0;
border-bottom: solid 1px #d5d5d5;
text-align: center;
cursor: hand;
font-weight: normal;
}
.tabpadding {
}
.tabheading {
background-color: #E4F7FA;
text-align: right;
}
.pagetext {
visibility: hidden;
display: none;
position: relative;
top: 0;
}
h4 {
color: #006B6C; font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 16px; font-weight: bold;
}
h5 {
color: #006B6C; font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 14px; font-weight: bold;
}
h6 {
color: #006B6C; font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 12px; font-weight: bold;
}
/* Links */
a:link, a:visited {
font-size: 13px; color: #62A1AA; text-decoration: none;
font-family: tahoma,Arial, Helvetica, sans-serif;
font-weight: bold;
}
a:hover {
color: #1C4D53; text-decoration: none;
font-weight: bold;
}
/* Horizontal Line */
hr {
background: #006B6C; height:2px; border: 1px inset;
}
hr.separator {
background: #20A9C0;
height: 1px;
width: 75px;
border: 0px;
}
/* --Default Class Settings-- */
a.mainlevel:link, a.mainlevel:visited {
color: #009193;
text-align: right;
font-size: 12px;
font-weight: bold;
font-family: tahoma,Arial, Helvetica, sans-serif;
}
a.mainlevel:hover {
color: #0C3035;
text-align: right;
font-size: 12px;
font-weight: bold;
font-family: tahoma,Arial, Helvetica, sans-serif;
}
a.mainmenu:link, a.mainmenu:visited {
color: #00A8AA; font-family: tahoma,Arial, Helvetica, sans-serif;
font-weight: normal;
}
a.mainmenu:hover, {
color: #124C54; text-decoration: underline;
}
a.sublevel:hover {
color: #124C54; text-decoration: underline;
}
a.sublevel:link, a.sublevel:visited {
color: #00A8AA; font-family: tahoma,Arial, Helvetica, sans-serif;
font-weight: normal;
}
/* For content item titles that are hyperlink instead of Read On */
a.contentpagetitle:link, a.contentpagetitle:visited {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 13px;
font-weight: bold;
color: #00A8AA;
text-align:right;
}
a.contentpagetitle:hover {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 13px;
font-weight: bold;
text-align:right;
color: #124C54;
text-decoration: underline;
font-weight: bold;
}
/* Content - Sections & Categories */
.contentpane {
background-color : #FFFFFF;
}
.contentpaneopen {
border : 0px ridge;
}
.contentheading {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 13px;
font-weight: bold;
color: #009193;
text-align:right;
line-height: 16px;
height: 15px;
}
.contentpagetitle {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 14px;
font-weight: bold;
color: #217D8B;
text-align:right;
}
table.contenttoc {
color: #1F96A9;
background-color: #E4F7FA;
}
table.contenttoc td {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 8pt;
font-weight: normal;
text-align:right;
}
.contentdescription {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 12px;
color: #009193;
text-align: right;
}
/* Links */
a.blogsection:link, a.blogsection:visited {
color: #00A8AA; text-decoration: none; font-weight: normal;
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 10px;
}
a.blogsection:hover {
color: #124C54; text-decoration: underline;
font-weight: normal;
font-size: 10px;
}
a.weblinks:link, a.weblinks:visited {
color: #00A8AA; text-decoration: none; font-weight: normal;
font-family: tahoma,Arial, Helvetica, sans-serif;
}
a.weblinks:hover {
color: #124C54; text-decoration: underline;
}
a.readon:link, a.readon:visited {
color: #00A8AA; text-decoration: none; font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 11px;
list-style: inside url(../images/read.gif);
list-style-type: disc;
display: list-item;
white-space: normal;
font-weight: normal;
}
a.readon:hover {
color: #124C54; text-decoration: underline;
font-weight: normal;
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 11px;
list-style: inside url(../images/read.gif);
list-style-type: disc;
display: list-item;
white-space: normal;
}
table.moduletable {
margin: 0px 0px 0px 0px;
width: 95%;
border-left: solid 0px #000000;
border-right: solid 0px #000000;
border-top: solid 0px #000000;
border-bottom: solid 0px #000000;
}
table.moduletable th {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
color: #24616B;
text-align: right;
width: 100%;
background: transparent url(../images/module_heading.gif) no-repeat right;
text-indent: 18px;
height: 20px;
border-bottom: 1px solid #72C2CE;
line-height: 20px;
}
table.moduletable td {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 11px;
font-weight: normal;
color: #20A9C0;
}
.componentheading {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 13px;
font-weight: bold;
color: #009193;
text-align:right;
background-repeat: no-repeat;
line-height: 15px;
height: 15px;
white-space: normal;
display: list-item;
}
.button {
color: #24616B; font-family: tahoma,Arial, Helvetica, sans-serif;
font-weight: bold;
text-align: center;
font-size: 12px;
font: bold;
background: White;
border: 1px solid #24616B;
height: 20px;
}
.inputbox {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 13px;
font-weight: bold;
color: #24616B;
background: White;
border: 1px solid #24616B;
}
/** category text format and links **/
.category {
color: #009193; font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 12px; font-weight: bold; text-decoration: none;
}
a.category:link, a.category:visited {
color: #00A8AA; font-weight: bold;
}
a.category:hover {
color: #124C54;
}
.poll {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 10px;
color: #258D9E;
line-height: 14px;
}
.sectiontableentry1, {
background-color : White;
}
.contentpane {
background-color : #FFFFFF;
}
.sectiontableentry2 {
background-color : #ffffff;
}
.sectiontableheader {
background-color : #4CB0C0;
color : White;
font-weight : bold;
}
.small {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 10px;
color: #24A8BE;
text-decoration: none;
font-weight: normal;
}
.smalldark {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 10px;
color: #155D68;
text-decoration: none;
font-weight: normal;
}
.newsfeedheading {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
color: #0E454D;
text-align:right;
}
.newsfeeddate {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 10px;
color: #1D8EA0;
font-weight: normal;
}
.createdate {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 9px;
color: #26C0D9;
text-decoration: none;
font-weight: normal;
}
.modifydate {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 10px;
color: #2095A7;
text-decoration: none;
font-weight: normal;
}
ul {
margin: 0px 0px 0px 0px;
}
li {
list-style: inside url(../images/read.gif) 3px;
list-style-image: url(../images/read.gif);
}
.fase4rdf {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 11px; color: #0990A4; font-weight: normal;
}
a.fase4rdf:link {
font-size: 11px; font-weight: normal; color: #00A8AA;
}
a.fase4rdf:hover {
font-weight: bold; color: #124C54;
}
table.searchintro {
background-color: #FFFFFF;
border: 1px solid #124C54;
}
table.contact {
background-color: #E4F7FA;
border: 1px solid Black;
font-size: 13px;
}
table.contact td.icons {
}
table.contact td.details {
font-size: 13px;
font-weight: bold;
font-family: tahoma,Arial, Helvetica, sans-serif;
}
.pagenav {
font-weight: normal;
}
a.pagenav, a.pagenav:visited {
font-weight: bold;
color: #124C54;
}
a.pagenav:hover {
color: #4CCADE;
}
.pagenavbar {
}
/* Content voting */
.content_rating {
font-weight: normal;
font-size: 9pt;
}
.content_vote {
font-weight: normal;
font-size: 9pt;
}
/* PeekLime */
a.bar:link, a.bar:visited {
color: #62A1AA; text-decoration: none; font-weight: normal;
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 10px;
font: bold;
}
a.bar:hover {
color: #204144; text-decoration: none;
}
.searchbox {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 13px;
font-weight: bold;
color: #24616B;
background: White;
border: 1px solid #24616B;
}
.title {
font: bold larger;
letter-spacing: 4px;
}
/* for modifying {moscode} output. Don't set the colour! */
.moscode {
background-color: #E4F7FA;
}
/* Text passed with mosmsg url parameter */
.message {
font-family : tahoma,Arial, Helvetica, sans-serif;
font-weight: bold;
font-size : 10pt;
color : #36C3DA;
text-align: center;
}
اینم کد ایندکس . پی اچ پی :
<?php echo "<?xml version=\"1.0\"?>";
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
<html xmlns="<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
<head>
<title><?php echo $mosConfig_sitename; ?></title>
<?php include ("editor/editor.php"); ?>
<?php initEditor(); ?>
<meta <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> content="text/html; <?php echo _ISO; ?>" />
<?php include ("includes/metadata.php"); ?>
<script language="JavaScript" type="text/javascript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<link href="templates/hosting/css/template_css.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="images/favicon.ico" />
<?php // Custom MainMenu extension...
$database->setQuery("SELECT * FROM #__menu WHERE menutype = 'mainmenu' AND published ='1' AND parent = '0' ORDER BY ordering");
$mymenu_rows = $database->loadObjectList();
$mymenu_content = "";
foreach($mymenu_rows as $mymenu_row) {
// print_r($mymenu_rows);
$mymenulink = $mymenu_row->link;
if ($mymenu_row->type != "url") {
$mymenulink .= "&Itemid=$mymenu_row->id";
}
if ($mymenu_row->type != "separator") {
$mymenu_content .= "<a href=\"".sefRelToAbs($mymenulink)."\" class=\"bar\">$mymenu_row->name</a><font color=\"#62A1AA\"> | </font>";
}
}
$mymenu_content = substr($mymenu_content,0,strlen($mymenu_content)-2);
?>
</head>
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<!-- ImageReady Slices (hosting_top.psd) -->
<TABLE WIDTH=770 BORDER=0 CELLPADDING=0 CELLSPACING=0 bgcolor="#FFFFFF" style="border-left:1px solid #62A1AA; border-right:1px solid #62A1AA; ">
<TR>
<TD COLSPAN=4>
<IMG SRC="templates/hosting/images/hosting_top_01.gif" WIDTH=770 HEIGHT=182 ALT=""></TD>
</TR>
<TR>
<TD>
<IMG SRC="templates/hosting/images/hosting_top_02.gif" WIDTH=103 HEIGHT=50 ALT=""></TD>
<TD background="templates/hosting/images/hosting_top_03.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><form action='<?php echo sefRelToAbs("index.php"); ?>' method='post'>
<div align="left">
<input class="searchbox" type="text" name="searchword" height="16" size="15" value="<?php echo _SEARCH_BOX; ?>" onblur="if(this.value=='') this.value='<?php echo _SEARCH_BOX; ?>';" onfocus="if(this.value=='<?php echo _SEARCH_BOX; ?>') this.value='';" />
<input type="hidden" name="option" value="search" />
</div>
</td></form>
</tr>
</table></TD>
<TD COLSPAN=2>
<IMG SRC="templates/hosting/images/hosting_top_04.gif" WIDTH=496 HEIGHT=50 ALT=""></TD>
</TR>
<TR>
<TD height="95" COLSPAN=3 align="left" valign="bottom" background="templates/hosting/images/hosting_top_05.gif"><span class="pathway">
&nbsp;&nbsp;&nbsp;<?php include "pathway.php"; ?>
</span> </TD>
<TD align="left" valign="bottom" background="templates/hosting/images/hosting_top_06.gif"><?php echo jdate("l j F Y - H:i",time() + ($mosConfig_offset*60*60)); ?>&nbsp;&nbsp;</TD>
</TR>
<TR>
<TD>
<IMG SRC="templates/hosting/images/spacer.gif" WIDTH=103 HEIGHT=1 ALT=""></TD>
<TD>
<IMG SRC="templates/hosting/images/spacer.gif" WIDTH=171 HEIGHT=1 ALT=""></TD>
<TD>
<IMG SRC="templates/hosting/images/spacer.gif" WIDTH=109 HEIGHT=1 ALT=""></TD>
<TD>
<IMG SRC="templates/hosting/images/spacer.gif" WIDTH=387 HEIGHT=1 ALT=""></TD>
</TR>
</TABLE>
<table align="right" width="772" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border-left:1px solid #62A1AA; border-right:1px solid #62A1AA; ">
<tr>
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="31%" valign="top"><TABLE WIDTH=237 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD COLSPAN=3>
<IMG SRC="templates/hosting/images/hosting_menu_01.gif" WIDTH=237 HEIGHT=55 ALT=""></TD>
</TR>
<TR>
<TD width="15" background="templates/hosting/images/hosting_menu_02.gif">&nbsp; </TD>
<TD width="196" background="templates/hosting/images/hosting_menu_03.gif" align="right">
<?php mosLoadModules ( 'left' ); ?>
<p>&nbsp; </p></TD>
<TD width="26" background="templates/hosting/images/hosting_menu_04.gif">&nbsp; </TD>
</TR>
<TR>
<TD COLSPAN=3>
<IMG SRC="templates/hosting/images/hosting_menu_05.gif" WIDTH=237 HEIGHT=57 ALT=""></TD>
</TR>
</TABLE></td>
<td width="69%" align="left" valign="top"><table width="100%" border="0" cellspacing="3" cellpadding="0">
<tr>
<td><?php mosLoadModules ( 'top' ); ?></td>
</tr>
<tr>
<td><?php include ("mainbody.php"); ?></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" valign="middle" bgcolor="#E4F7FA" style="border-top:1px solid #62A1AA; border-bottom:1px solid #62A1AA "><span class="bar"><?php echo $mymenu_content ?></span></td>
</tr>
<tr>
<td align="center" valign="top"><p>
<?php mosLoadComponent( "banners" ); ?>
<?php mosLoadModules ( 'inset' ); ?>
</td>
</tr>
</table>
</BODY>
</HTML>
لطف کنید کمک کنید !!
ممنونم
قالب من این مشکل رو داره که منوی اصلی راست چین نمیشه !!
به عکس دقت کنید :
<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
اینم کد سی اس اس :
/* Body */
BODY {
margin: 0px 0px 0px 0px;
background-color : #FFFFFF ;
color : #000000;
scrollbar-3dlight-color: #0990A4;
scrollbar-base-color: #E4F7FA;
scrollbar-darkshadow-color: #0990A4;
scrollbar-face-color: #E4F7FA;
scrollbar-highlight-color: #0990A4;
scrollbar-shadow-color: #0990A4;
scrollbar-track-color: White;
scrollbar-arrow-color: #0990A4;
background: url(../images/bg.gif);
direction:rtl;
}
td,tr,p,div {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 11px;
color: #00494A;
}
/* Styles for dhtml tabbed-pages */
.ontab {
background-color: #197786;
border-left: outset 2px #5B7122;
border-right: outset 2px #808080;
border-top: outset 2px #5B7122;
border-bottom: solid 1px #d5d5d5;
text-align: center;
cursor: hand;
font-weight: bold;
color: #FFFFFF;
}
.offtab {
background-color : #e5e5e5;
border-left: outset 2px #E0E0E0;
border-right: outset 2px #E0E0E0;
border-top: outset 2px #E0E0E0;
border-bottom: solid 1px #d5d5d5;
text-align: center;
cursor: hand;
font-weight: normal;
}
.tabpadding {
}
.tabheading {
background-color: #E4F7FA;
text-align: right;
}
.pagetext {
visibility: hidden;
display: none;
position: relative;
top: 0;
}
h4 {
color: #006B6C; font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 16px; font-weight: bold;
}
h5 {
color: #006B6C; font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 14px; font-weight: bold;
}
h6 {
color: #006B6C; font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 12px; font-weight: bold;
}
/* Links */
a:link, a:visited {
font-size: 13px; color: #62A1AA; text-decoration: none;
font-family: tahoma,Arial, Helvetica, sans-serif;
font-weight: bold;
}
a:hover {
color: #1C4D53; text-decoration: none;
font-weight: bold;
}
/* Horizontal Line */
hr {
background: #006B6C; height:2px; border: 1px inset;
}
hr.separator {
background: #20A9C0;
height: 1px;
width: 75px;
border: 0px;
}
/* --Default Class Settings-- */
a.mainlevel:link, a.mainlevel:visited {
color: #009193;
text-align: right;
font-size: 12px;
font-weight: bold;
font-family: tahoma,Arial, Helvetica, sans-serif;
}
a.mainlevel:hover {
color: #0C3035;
text-align: right;
font-size: 12px;
font-weight: bold;
font-family: tahoma,Arial, Helvetica, sans-serif;
}
a.mainmenu:link, a.mainmenu:visited {
color: #00A8AA; font-family: tahoma,Arial, Helvetica, sans-serif;
font-weight: normal;
}
a.mainmenu:hover, {
color: #124C54; text-decoration: underline;
}
a.sublevel:hover {
color: #124C54; text-decoration: underline;
}
a.sublevel:link, a.sublevel:visited {
color: #00A8AA; font-family: tahoma,Arial, Helvetica, sans-serif;
font-weight: normal;
}
/* For content item titles that are hyperlink instead of Read On */
a.contentpagetitle:link, a.contentpagetitle:visited {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 13px;
font-weight: bold;
color: #00A8AA;
text-align:right;
}
a.contentpagetitle:hover {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 13px;
font-weight: bold;
text-align:right;
color: #124C54;
text-decoration: underline;
font-weight: bold;
}
/* Content - Sections & Categories */
.contentpane {
background-color : #FFFFFF;
}
.contentpaneopen {
border : 0px ridge;
}
.contentheading {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 13px;
font-weight: bold;
color: #009193;
text-align:right;
line-height: 16px;
height: 15px;
}
.contentpagetitle {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 14px;
font-weight: bold;
color: #217D8B;
text-align:right;
}
table.contenttoc {
color: #1F96A9;
background-color: #E4F7FA;
}
table.contenttoc td {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 8pt;
font-weight: normal;
text-align:right;
}
.contentdescription {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 12px;
color: #009193;
text-align: right;
}
/* Links */
a.blogsection:link, a.blogsection:visited {
color: #00A8AA; text-decoration: none; font-weight: normal;
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 10px;
}
a.blogsection:hover {
color: #124C54; text-decoration: underline;
font-weight: normal;
font-size: 10px;
}
a.weblinks:link, a.weblinks:visited {
color: #00A8AA; text-decoration: none; font-weight: normal;
font-family: tahoma,Arial, Helvetica, sans-serif;
}
a.weblinks:hover {
color: #124C54; text-decoration: underline;
}
a.readon:link, a.readon:visited {
color: #00A8AA; text-decoration: none; font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 11px;
list-style: inside url(../images/read.gif);
list-style-type: disc;
display: list-item;
white-space: normal;
font-weight: normal;
}
a.readon:hover {
color: #124C54; text-decoration: underline;
font-weight: normal;
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 11px;
list-style: inside url(../images/read.gif);
list-style-type: disc;
display: list-item;
white-space: normal;
}
table.moduletable {
margin: 0px 0px 0px 0px;
width: 95%;
border-left: solid 0px #000000;
border-right: solid 0px #000000;
border-top: solid 0px #000000;
border-bottom: solid 0px #000000;
}
table.moduletable th {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
color: #24616B;
text-align: right;
width: 100%;
background: transparent url(../images/module_heading.gif) no-repeat right;
text-indent: 18px;
height: 20px;
border-bottom: 1px solid #72C2CE;
line-height: 20px;
}
table.moduletable td {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 11px;
font-weight: normal;
color: #20A9C0;
}
.componentheading {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 13px;
font-weight: bold;
color: #009193;
text-align:right;
background-repeat: no-repeat;
line-height: 15px;
height: 15px;
white-space: normal;
display: list-item;
}
.button {
color: #24616B; font-family: tahoma,Arial, Helvetica, sans-serif;
font-weight: bold;
text-align: center;
font-size: 12px;
font: bold;
background: White;
border: 1px solid #24616B;
height: 20px;
}
.inputbox {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 13px;
font-weight: bold;
color: #24616B;
background: White;
border: 1px solid #24616B;
}
/** category text format and links **/
.category {
color: #009193; font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 12px; font-weight: bold; text-decoration: none;
}
a.category:link, a.category:visited {
color: #00A8AA; font-weight: bold;
}
a.category:hover {
color: #124C54;
}
.poll {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 10px;
color: #258D9E;
line-height: 14px;
}
.sectiontableentry1, {
background-color : White;
}
.contentpane {
background-color : #FFFFFF;
}
.sectiontableentry2 {
background-color : #ffffff;
}
.sectiontableheader {
background-color : #4CB0C0;
color : White;
font-weight : bold;
}
.small {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 10px;
color: #24A8BE;
text-decoration: none;
font-weight: normal;
}
.smalldark {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 10px;
color: #155D68;
text-decoration: none;
font-weight: normal;
}
.newsfeedheading {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
color: #0E454D;
text-align:right;
}
.newsfeeddate {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 10px;
color: #1D8EA0;
font-weight: normal;
}
.createdate {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 9px;
color: #26C0D9;
text-decoration: none;
font-weight: normal;
}
.modifydate {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 10px;
color: #2095A7;
text-decoration: none;
font-weight: normal;
}
ul {
margin: 0px 0px 0px 0px;
}
li {
list-style: inside url(../images/read.gif) 3px;
list-style-image: url(../images/read.gif);
}
.fase4rdf {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 11px; color: #0990A4; font-weight: normal;
}
a.fase4rdf:link {
font-size: 11px; font-weight: normal; color: #00A8AA;
}
a.fase4rdf:hover {
font-weight: bold; color: #124C54;
}
table.searchintro {
background-color: #FFFFFF;
border: 1px solid #124C54;
}
table.contact {
background-color: #E4F7FA;
border: 1px solid Black;
font-size: 13px;
}
table.contact td.icons {
}
table.contact td.details {
font-size: 13px;
font-weight: bold;
font-family: tahoma,Arial, Helvetica, sans-serif;
}
.pagenav {
font-weight: normal;
}
a.pagenav, a.pagenav:visited {
font-weight: bold;
color: #124C54;
}
a.pagenav:hover {
color: #4CCADE;
}
.pagenavbar {
}
/* Content voting */
.content_rating {
font-weight: normal;
font-size: 9pt;
}
.content_vote {
font-weight: normal;
font-size: 9pt;
}
/* PeekLime */
a.bar:link, a.bar:visited {
color: #62A1AA; text-decoration: none; font-weight: normal;
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 10px;
font: bold;
}
a.bar:hover {
color: #204144; text-decoration: none;
}
.searchbox {
font-family: tahoma,Arial, Helvetica, sans-serif;
font-size: 13px;
font-weight: bold;
color: #24616B;
background: White;
border: 1px solid #24616B;
}
.title {
font: bold larger;
letter-spacing: 4px;
}
/* for modifying {moscode} output. Don't set the colour! */
.moscode {
background-color: #E4F7FA;
}
/* Text passed with mosmsg url parameter */
.message {
font-family : tahoma,Arial, Helvetica, sans-serif;
font-weight: bold;
font-size : 10pt;
color : #36C3DA;
text-align: center;
}
اینم کد ایندکس . پی اچ پی :
<?php echo "<?xml version=\"1.0\"?>";
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
<html xmlns="<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
<head>
<title><?php echo $mosConfig_sitename; ?></title>
<?php include ("editor/editor.php"); ?>
<?php initEditor(); ?>
<meta <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> content="text/html; <?php echo _ISO; ?>" />
<?php include ("includes/metadata.php"); ?>
<script language="JavaScript" type="text/javascript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<link href="templates/hosting/css/template_css.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="images/favicon.ico" />
<?php // Custom MainMenu extension...
$database->setQuery("SELECT * FROM #__menu WHERE menutype = 'mainmenu' AND published ='1' AND parent = '0' ORDER BY ordering");
$mymenu_rows = $database->loadObjectList();
$mymenu_content = "";
foreach($mymenu_rows as $mymenu_row) {
// print_r($mymenu_rows);
$mymenulink = $mymenu_row->link;
if ($mymenu_row->type != "url") {
$mymenulink .= "&Itemid=$mymenu_row->id";
}
if ($mymenu_row->type != "separator") {
$mymenu_content .= "<a href=\"".sefRelToAbs($mymenulink)."\" class=\"bar\">$mymenu_row->name</a><font color=\"#62A1AA\"> | </font>";
}
}
$mymenu_content = substr($mymenu_content,0,strlen($mymenu_content)-2);
?>
</head>
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<!-- ImageReady Slices (hosting_top.psd) -->
<TABLE WIDTH=770 BORDER=0 CELLPADDING=0 CELLSPACING=0 bgcolor="#FFFFFF" style="border-left:1px solid #62A1AA; border-right:1px solid #62A1AA; ">
<TR>
<TD COLSPAN=4>
<IMG SRC="templates/hosting/images/hosting_top_01.gif" WIDTH=770 HEIGHT=182 ALT=""></TD>
</TR>
<TR>
<TD>
<IMG SRC="templates/hosting/images/hosting_top_02.gif" WIDTH=103 HEIGHT=50 ALT=""></TD>
<TD background="templates/hosting/images/hosting_top_03.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><form action='<?php echo sefRelToAbs("index.php"); ?>' method='post'>
<div align="left">
<input class="searchbox" type="text" name="searchword" height="16" size="15" value="<?php echo _SEARCH_BOX; ?>" onblur="if(this.value=='') this.value='<?php echo _SEARCH_BOX; ?>';" onfocus="if(this.value=='<?php echo _SEARCH_BOX; ?>') this.value='';" />
<input type="hidden" name="option" value="search" />
</div>
</td></form>
</tr>
</table></TD>
<TD COLSPAN=2>
<IMG SRC="templates/hosting/images/hosting_top_04.gif" WIDTH=496 HEIGHT=50 ALT=""></TD>
</TR>
<TR>
<TD height="95" COLSPAN=3 align="left" valign="bottom" background="templates/hosting/images/hosting_top_05.gif"><span class="pathway">
&nbsp;&nbsp;&nbsp;<?php include "pathway.php"; ?>
</span> </TD>
<TD align="left" valign="bottom" background="templates/hosting/images/hosting_top_06.gif"><?php echo jdate("l j F Y - H:i",time() + ($mosConfig_offset*60*60)); ?>&nbsp;&nbsp;</TD>
</TR>
<TR>
<TD>
<IMG SRC="templates/hosting/images/spacer.gif" WIDTH=103 HEIGHT=1 ALT=""></TD>
<TD>
<IMG SRC="templates/hosting/images/spacer.gif" WIDTH=171 HEIGHT=1 ALT=""></TD>
<TD>
<IMG SRC="templates/hosting/images/spacer.gif" WIDTH=109 HEIGHT=1 ALT=""></TD>
<TD>
<IMG SRC="templates/hosting/images/spacer.gif" WIDTH=387 HEIGHT=1 ALT=""></TD>
</TR>
</TABLE>
<table align="right" width="772" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border-left:1px solid #62A1AA; border-right:1px solid #62A1AA; ">
<tr>
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="31%" valign="top"><TABLE WIDTH=237 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD COLSPAN=3>
<IMG SRC="templates/hosting/images/hosting_menu_01.gif" WIDTH=237 HEIGHT=55 ALT=""></TD>
</TR>
<TR>
<TD width="15" background="templates/hosting/images/hosting_menu_02.gif">&nbsp; </TD>
<TD width="196" background="templates/hosting/images/hosting_menu_03.gif" align="right">
<?php mosLoadModules ( 'left' ); ?>
<p>&nbsp; </p></TD>
<TD width="26" background="templates/hosting/images/hosting_menu_04.gif">&nbsp; </TD>
</TR>
<TR>
<TD COLSPAN=3>
<IMG SRC="templates/hosting/images/hosting_menu_05.gif" WIDTH=237 HEIGHT=57 ALT=""></TD>
</TR>
</TABLE></td>
<td width="69%" align="left" valign="top"><table width="100%" border="0" cellspacing="3" cellpadding="0">
<tr>
<td><?php mosLoadModules ( 'top' ); ?></td>
</tr>
<tr>
<td><?php include ("mainbody.php"); ?></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" valign="middle" bgcolor="#E4F7FA" style="border-top:1px solid #62A1AA; border-bottom:1px solid #62A1AA "><span class="bar"><?php echo $mymenu_content ?></span></td>
</tr>
<tr>
<td align="center" valign="top"><p>
<?php mosLoadComponent( "banners" ); ?>
<?php mosLoadModules ( 'inset' ); ?>
</td>
</tr>
</table>
</BODY>
</HTML>
لطف کنید کمک کنید !!
ممنونم