سلام
این کدها رو جایگزین کنید ببینید مشکل حل میشه یا .. ؟
اگر حل نشد لطفا قالب رو به صورت کامل فشرده کنید و اینجا قرار بدید که بشه تغییرات رو اعمال کرد و تست کرد که مشکلی نداشته باشه
CSS :
index.phpکد:body { margin : 0; padding : 0; color : #000000; font : 70% tahoma; text-align : right; background : #333333 url(../images/body-bg.png); direction:rtl; } h1 { font-size : 1.7em; } h2 { margin : 10px 0; font-size : 1.45em; } h3, h4 { margin : 10px 0; font-size : 1.2em; } .small, .smalldark, .createdate, .modifydate, .mosimage_caption, a.readon, .blog_more, .back_button, .pagenavcounter, .pagenav, .pagenavbar, .contenttoc { font-size : 85%; text-align:right; } .pagenav_prev a, .pagenav_next a { color : #ff0000; font-size : 0.9em; background-color : transparent; } form { padding : 0; margin : 0; } .clr { clear : both; } ul { margin : 0; padding : 0; list-style : none; } li { line-height : 15px; padding-left : 15px; padding-top : 0; background-image : url(../images/arrow.png); background-repeat : no-repeat; background-position : 0 2px; } a:link, a:visited, a:active { color : #6b6b6b; font-size : 11px; text-decoration : none; } a.latestnews:link, a.latestnews:visited, a.mostread:link, a.mostread:visited { color : #ffffff; font-size : 11px; } a:hover { text-decoration : underline; } #copyright a:link, #copyright a:visited,#copyright a:active { color : #ffffff; font-size : 11px; text-decoration : underline; } #copyright a:hover { text-decoration : none; } #leftNav div.moduletable h3, #contentbottom div.moduletable h3 { font-family : tahoma; font-weight : bold; margin : 0; margin-bottom : 5px; color : #536F82; text-transform : uppercase; padding-bottom : 3px; padding-top : 3px; background-position : 0 5px; padding-left : 5px; } #leftNav div.moduletable { padding-bottom : 9px; margin-bottom : 5px; color : #6b6b6b; font-size : 11px; } #leftNav div.moduletable td, #contentbottom div.moduletable td, #contentbottom div.moduletable ul { padding-left : 20px; padding-right : 21px; } #contentbottom div.moduletable { background : url(../images/module-bottom.png) repeat-x; background-position : left bottom; padding-bottom : 9px; margin-bottom : 5px; color : #6b6b6b; font-size : 11px; } #leftNav div.moduletable table.pollstableborder td { padding-left : 30px; padding-right : 20px; } #leftNav div.moduletable table.pollstableborder .sectiontableentry1, #leftNav div.moduletable table.pollstableborder .sectiontableentry2 { text-align : right; vertical-align : top; padding : 0; } #leftNav a:visited, #contentbottom a:visited, #contentbottom a:link, #leftNav a:link { color : #333333; text-decoration : none; font-size : 11px; } #leftNav a:hover, #contentbottom a:hover { text-decoration : underline; } #leftNav a.mainlevel, #leftNav a.mainlevel:link, #leftNav a.mainlevel:visited, #leftNav a.mainlevel:active { font-size : 12px; font-weight : normal; color : #706F6F; margin : 0; text-decoration : underline; padding-right : 0; padding-top : 0; padding-bottom : 0; line-height : 18px; text-align:right; float:right; direction:rtl; } #leftNav a.mainlevel:hover { font-weight : normal; margin : 0; text-decoration : none; text-align:right; float:right; direction:rtl; } #leftNav a.sublevel, #leftNav a.sublevel:link #leftNav a.sublevel:active { font-size : 11px; font-weight : normal; margin : 0; color : #f9eaab; text-decoration : none; padding-right : 0; padding-top : 0; padding-bottom : 0; text-align:right; } #leftNav a.sublevel:visited { font-size : 11px; font-weight : normal; margin : 0; color : #f9eaab; } #leftNav a.sublevel:hover { font-size : 11px; font-weight : normal; margin : 0; text-decoration : none; } table.contentpane table { margin-right : 2px; margin-left : 2px; } .sectiontableheader { font-weight : bold; font-size : 1.1em; color : #14508e; } .sectiontableentry1 { background-color : #f1f4f6; padding-top : 3px; } .sectiontableentry2 { background-color : #e2e8ed; padding-top : 3px; } a.readon { text-decoration : underline; color : #536F82; text-align:right; font-family:Tahoma; direction:rtl; } .componentheading { color : #fff; font-size : 1.3em; font-family : tahoma; color : #536F82; font-weight : bold; } .contentheading { font-family : tahoma; font-size : 1.3em; color : #000000; font-weight : bold; } .small, .createdate { color : #185b99; } .contentpaneopen { text-align : right; background : transparent; padding-top : 0; padding-left : 0; padding-bottom : 0; padding-right : 0; margin-top : 0; margin-left : 0; margin-bottom : 0; margin-right : 0; vertical-align : top; width : 100%; line-height : 15px; } .sectiontableheader { background : url(../images/topmenu-bg.png) repeat-x; font-size : 10px; padding-top : 3px; padding-bottom : 3px; } table.contenttoc th { background : url(../images/topmenu-bg.png) repeat-x; height : 12px; padding-top : 2px; padding-bottom : 2px; text-align : right; padding-left : 2px; } table.contenttoc { border : 1px solid #333333; } table.contenttoc td { padding : 0 2px; } .pathway, .pathway a:link, .pathway a:visited { font-size : 10px; color : #000; } ul#mainlevel-nav { list-style : none; padding : 0; margin : 0; font-size : 0.8em; float:right; direction:rtl; } ul#mainlevel-nav li { background-image : none; padding-left : 0; padding-right : 0; float : right; margin : 0; font-size : 11px; line-height : 21px; white-space : nowrap; height : 39px; } ul#mainlevel-nav li a { display : block; padding-left : 20px; padding-right : 20px; padding-top : 9px; padding-bottom : 6px; margin-left : 2px; margin-right : 1px; margin-top : 2px; margin-bottom : 1px; text-decoration : none; color : #7B838A; text-transform : uppercase; font-size : 1em; font-weight : bold; } #menubox > ul#mainlevel-nav li a { width : auto; } ul#mainlevel-nav li a:hover { color : #585F66; background-color : #EEF4FA; } ul#mainlevel-plain { list-style : none; padding : 0; margin : 0; font-size : 0.8em; } ul#mainlevel-plain li { background-image : none; padding-left : 0; padding-right : 0; float : right; margin : 0; font-size : 11px; line-height : 21px; white-space : nowrap; height : 39px; } ul#mainlevel-plain li a { padding-left : 10px; padding-right : 10px; padding-top : 5px; padding-bottom : 6px; margin-right : 1px; margin-top : 2px; margin-bottom : 1px; text-decoration : none; color : #536F82; text-transform : uppercase; font-size : 0.9em; font-weight : bold; } #menubox > ul#mainlevel-plain li a { width : auto; } ul#mainlevel-plain li a:hover { text-decoration : underline; } .mainlevel-plain { padding-left : 5px; padding-right : 5px; line-height : 30px; } form { margin : 0; padding : 0; } input { font : 11px Tahoma, Arial, sans-serif; margin : 1px 2px 1px 0; } select { font : 11px Tahoma, Arial, sans-serif; } textarea { border : 1px solid #cccccc; padding-left : 2px; font : 11px/1.3em Tahoma, Arial, sans-serif; } .button { padding-left : 5px; padding-right : 5px; background-color : #536F82; border-left : 1px solid #c4db86; border-top : 1px solid #c4db86; border-right : 1px solid #3c4d0d; border-bottom : 1px solid #3c4d0d; color : #ffffff; } .inputbox { padding-left : 2px; border-top : 1px solid #999999; border-right : 1px solid #dddddd; border-bottom : 1px solid #dddddd; border-left : 1px solid #999999; background : #ffffff; } .clr { clear : both; }
یا علیکد:<?php defined( '_VALID_MOS' ) or die( 'Restricted access' ); $iso = split( '=', _ISO ); $jc_template_path = $mosConfig_live_site.'/templates/jc_feelsafe'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[مهمان/کاربر گرامی برای دیدن لینک ها ابتدا باید عضو سایت شوید و لاگین کنید برای ثبت نام اینجا کلیک کنید] <html xmlns="[مهمان/کاربر گرامی برای دیدن لینک ها ابتدا باید عضو سایت شوید و لاگین کنید برای ثبت نام اینجا کلیک کنید] <head> <?php mosShowHead(); ?> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <link href="<?php echo $jc_template_path;?>/css/template_css.css" rel="stylesheet" type="text/css" /> <link href="<?php echo $jc_template_path;?>/css/layout.css" rel="stylesheet" type="text/css" /> <link href="<?php echo $jc_template_path;?>/css/verticalmenu.css" rel="stylesheet" type="text/css" /> <script language="javascript" type="text/javascript" src="<?php echo $jc_template_path;?>/js/jc_script.js"></script> <?php if ( $my->id ) { initEditor(); } ?> <?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 .= "&amp;Itemid=$mymenu_row->id"; } if ($mymenu_row->type != "separator") { $mymenu_content .= "<a href=\"".sefRelToAbs($mymenulink)."\" class=\"images\">$mymenu_row->name</a> = "; } } $mymenu_content = substr($mymenu_content,0,strlen($mymenu_content)-2); ?> </head> <body> <div id="p1wrapper"> <div id="wrapper"> <div id="header"> <div id="sitelogo"> <div align="right"><img src="<?php echo $jc_template_path;?>/images/logo.gif" alt="Site logo" title="Site Logo" /></div> </div> <div id="topBarMenu"><img src="<?php echo $jc_template_path;?>/images/tools.png" alt="hot links menu" width="187" height="58" border="0" usemap="#Map" /> <map name="Map" id="Map"> <area shape="rect" coords="50,31,71,50" title="بزرگ کردن نوشته ها" alt="بزرگ کردن نوشته ها" href="#Size+" onclick="changeFontSize(1);return false;" /> <area shape="rect" coords="81,33,101,51" title="کوچک کردن نوشته ها" alt="کوچک کردن نوشته ها" href="#Size-" onclick="changeFontSize(-1);return false;" /> <area shape="rect" coords="112,34,133,51" title="اندازه پیش فرض نوشته ها" alt="اندازه پیش فرض نوشته ها" href="#DefaultSize" onclick="revertStyles(); return false;" /> <area shape="rect" coords="142,34,164,53" href="#tocontent" title="مطالب سایت" alt="مطالب سایت" /> </map> </div> </div> <div style="clear:both;"></div> <div id="headerImg" > <div id="verticalMenu"> <?php $database->setQuery("SELECT id, name, link FROM #__menu WHERE menutype='mainmenu' AND parent='0' AND access<='$gid' AND sublevel='0' AND published='1' AND type<>'separator' ORDER BY ordering"); $rows = $database->loadObjectList(); $num_rows = count($rows); #$tab_width = floor(100 / $num_rows); //begin the menu div echo "<div id='menuContainer'>"; echo "<ul id='menuList'>"; //count for 5 menus $mcount = 1; foreach($rows as $row) { $mymenulink = $row->link; if ($row->type != "url") { $mymenulink .= "&Itemid=$row->id"; $mymenulink = str_replace('&', '&amp;', $mymenulink); } $mymenulink = sefRelToAbs($mymenulink); echo "<li>"; echo "<a href='".$mymenulink."' >$row->name</a>"; echo "</li>"; $mcount++; if ($mcount == 6) { break; } } echo "</ul></div>"; ?> </div> </div> <div style="clear:both;"></div> <div id="searchAndMenu"> <div id="searchBox"> <?php mosLoadModules( 'user4', -2);?> </div> <div id="topMenuBox"> <?php mosLoadModules( 'user3', -2);?> <BR /><BR /><BR /><BR /> </div></div> <table border="0" width="701" cellspacing="0" cellpadding="0"> <tr align="right" valign="top"> <td width="238"> <div align="right" style="padding-right:5px; padding-left:5px; direction:rtl"> <?php mosLoadModules( 'right', -2);?> <?php mosLoadModules( 'left', -2);?> </div></td> <td width="1" background="../../../class/pix.gif"><div align="right"></div></td> <td width="453" height="55"> <div align="right"><a name="tocontent" id="tocontent"></a> </div> <div id="mainContent"> <div id="pathway"> <?php mosPathWay(); ?> </div> <?php mosMainBody(); ?> </div></td> </tr> </table> <BR /> <div style="clear:both;"></div> <div id="wNavContent"> <div id="leftNav"> </div> <div id="mainContent"> </div> </div> <div style="clear:both;"></div> <div id="footerBorder"> <div id="bottomSmall"><?php mosLoadModules( 'user5', -2);?></div> <div id="bottomMenu"><?php mosLoadModules( 'user6', -2);?></div> </div> <div id="copyRight"> <?php include_once( $GLOBALS['mosConfig_absolute_path'] . '/templates/' . $mainframe->getTemplate() . '/footer.php' ); ?> </div> </div> </div> </body> </html>




علاقه مندی ها (Bookmarks)