<{include file="../header.htm"}>
<link href="<{$config.weburl}>/templates/<{$config.temp}>/css/main.css" rel="stylesheet" type="text/css" />
<div class="guide w">
    <a href="<{$config.weburl}>">Home</a>
    >
    <a href="<{$config.weburl}>/main.php">My Office</a>
</div>
<div class="w clearfix main">
    <div class="fl">
        <div class="menu">
        <{foreach item=l from=$menu}>
        <{foreach item=list from=$l.sub}>
       	<div class="m">
            <div class="mt"><h3><{$list.name}></h3></div>
            <div class="mc">
            <ul>
                <{foreach item=slist key=akey from=$list.action}>
                    <{if $slist}>
                        <{assign var="gets" value=$akey|explode:"&"}>
                        <li <{if $smarty.get.action==$akey or in_array($smarty.get.type,$gets) or in_array($smarty.get.s,$gets)}>class="active"<{else}>class="normal"<{/if}> >
                            <a href="<{if $akey|truncate:1:''=='?' or $akey|truncate:4:''=='http'}><{$akey}><{else}>?action=<{$akey}><{/if}>"><{$slist}></a>
                        </li>
                    <{/if}>
                <{/foreach}>
            </ul>
            </div>
        </div>   
        <{/foreach}>
        <{/foreach}>
        </div>
    </div>
    <div class="fr"><div class="wrap"><{$output}></div></div>
</div>
 <script type="text/javascript">
$(".main .mt").bind("click",function(){
	var element=$(this).parent();
	if(element.hasClass("current"))
	{
		element.removeClass("current");
		element.children('.mc').slideToggle();
	}
	else
	{
		element.children('.mc').slideUp("fast");
		element.addClass("current");
	}
});
</script>
<{include file="../footer.htm"}>