<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $title;?></title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="container">
	<div id="group_header">
    	<div id="group_top">
        	<div class="group_logo">
            </div>
            <div class="group_member">
            <?php
            if(!$cfg_ml->IsLogin()){
            ?>
            <?php echo $lang['group_main_hello'].$lang['group_main_first'];?> <a href="../member/login.php?gourl=<?php echo urlencode(GetCurUrl());?>"><?php echo $lang['group_main_login'];?></a> <?php echo $lang['group_main_or'];?> <a href="../member/index_do.php?fmdo=user&dopost=regnew"><?php echo $lang['group_main_reg'];?></a>
            <?php
            }else{
            ?>
            <?php echo $lang['group_main_hello'].$cfg_ml->M_UserName; ?> <?php echo $lang['group_main_welcome'].$Honor; ?> | <a href="../member/control.php"><?php echo $lang['group_main_control'];?></a> | <a href="../member/index_do.php?fmdo=login&dopost=exit"><?php echo $lang['group_main_exit'];?></a>
            <?php
            }
            ?>
            </div>
            <div class="group_menu">
            	<ul>
                <li><a href="/"><?php echo $lang['group_main_siteindex'];?></a></li>                
                <li><a href="../member/login.php?gourl=<?php echo urlencode(GetCurUrl());?>"><?php echo $lang['group_main_logins'];?></a></li>
                <li><a href="create.php"><?php echo $lang['group_main_create'];?></a></li>
                <li><a href="index.php"><?php echo $lang['group_main_index'];?></a></li>
                </ul>
                <div class="clear">
                </div>
            </div>
            <div class="clear">
            </div>
        </div>
        <div id="group_search">
        	<div class="group_search_form">
        		<div class="group_search_label">
                <form action="search.php" method="get">
                	<input type="text" name="keyword" value="<?php if(isset($keyword)) echo $keyword;if(!isset($sad)) $sad = 'g';?>" class="group_label" />
                	<input name='sad' type='radio' id="sad" value="g" <?php if($sad=="g"||!isset($sad)) echo 'checked="checked"';?> />
               	  <?php echo $lang['group_search_groups'];?>
                	<input name='sad' type='radio' id="sad" value="t" <?php if($sad=="t") echo 'checked="checked"';?>/>
               	  <?php echo $lang['group_search_threads'];?>
                	<input type="submit" value="<?php echo $lang['group_search'];?>" class="group_button" />
                </form>
            	</div>
            	<div class="group_search_img">
                	<div class="group_search_imgbg">
                    </div>
           	  	</div>
                <div class="clear">
                </div>
            </div>
        </div>
    </div>