?
Path : /home/admin/domains/happytokorea.com/private_html/modules/blog/ |
Current File : /home/admin/domains/happytokorea.com/private_html/modules/blog/com_article.php |
<?php class Html{ function menu(){ global $db; if ($_SESSION["la"] == 1){ if($_SESSION["user_login"]['Type'] == 3){ $c=$db->count_data('contents','WHERE CatID = 135 AND ContentBlogID = "'.$_SESSION["user_login"]["ID"].'"'); }else{ $c=$db->count_data('contents','WHERE CatID = 135'); } }else{ $c=$db->count_data('contents_en',''); } //<span class=\\"numberMiddle\\">265</span> if($_SESSION["user_login"]['Type'] == 3){ $output.="<div id=\"header\" class=\"wrapper\"> <div class=\"middleNav\"> <ul> <li class=\"iDocs\"><a href=\"$PHPSELF?mod=blog\" title=\"\"><span>รีวิวทั้งหมด</span></a><span class=\"numberMiddle\">{$c}</span></li> <li class=\"iCreate\"><a href=\"$PHPSELF?mod=blog&ac=new_data\" title=\"\"><span>เพิ่มบทความ</span></a></li> </ul> </div> <div class=\"fix\"></div> </div>"; }else{ $output.="<div id=\"header\" class=\"wrapper\"> <div class=\"middleNav\"> <ul> <li class=\"iDocs\"><a href=\"$PHPSELF?mod=blog\" title=\"\"><span>รีวิวทั้งหมด</span></a><span class=\"numberMiddle\">{$c}</span></li> <li class=\"iCreate\"><a href=\"$PHPSELF?mod=blog&ac=new_data\" title=\"\"><span>เพิ่มบทความ</span></a></li> <li class=\"iCreate\"><a href=\"$PHPSELF?mod=blog&ac=view_user\" title=\"\"><span>จัดการรายชื่อผู้รีวิว</span></a></li> </ul> </div> <div class=\"fix\"></div> </div>"; } return $output; } }//end class ?>