<HTML>
<HEAD>
	<title>{#$HTML_TITLE#}</title>
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
	<META HTTP-EQUIV="Pragma" CONTENT="no-cache"> 
	<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> 
	<META HTTP-EQUIV="Expires" CONTENT="0"> 
	<script Language=JavaScript src="./includes/js/forbidden.js"></script>
	<script type="text/javascript" src="./includes/js/poslib.js"></script>
	<script type="text/javascript" src="./includes/js/scrollbutton.js"></script>
	<script type="text/javascript" src="./includes/js/toolbar_menu.js"></script>
	
	<script type="text/javascript">
		function getQueryString( sProp ) {
			var re = new RegExp( sProp + "=([^\\&]*)", "i" );
			var a = re.exec( document.location.search );
			if ( a == null )
				return "";
			return a[1];
		};
		
		function changeCssFile( sCssFile ) {
			var loc = String(document.location);
			var search = document.location.search;
			if ( search != "" )
				loc = loc.replace( search, "" );
			loc = loc + "?css=" + sCssFile;
			document.location.replace( loc );
		}
		
		var cssFile = getQueryString( "css" );
		if ( cssFile == "" )
			//cssFile = "skins/winclassic.css";
			cssFile = "./images/default/winxp.css";
		
		document.write("<link type=\"text/css\" rel=\"StyleSheet\" href=\"" + cssFile + "\" />" );
		
	</script>
	
	<script>
	function showQQ()
	{	
		var targeturl="./qq.php";
		newwin=window.open("","","scrollbars");
		if (document.all){
			newwin.moveTo(0,0);
			newwin.resizeTo(400,250);
		}
		newwin.location=targeturl;
	}
	//打开修改窗口
	function showUpdateWindow(file_name,table_name,module_name,id)
	{
		updateWin= showModalDialog(file_name+"?table_name="+table_name+"&&module_name="+module_name+"&&the_id="+id, "", "dialogWidth:750px; dialogHeight:560px;status:0;center:1;help:0;scroll:0");
	}
	</script>
	
	<link rel="stylesheet" type="text/css" href="./images/default/style.css">
	<style type="text/css">
	<!--
	body {
		margin-left: 0px;
		margin-top: 0px;
		margin-right: 0px;
		margin-bottom: 0px;
		font-size: 12px;
	}
	A{
		behavior:url(./includes/htc/Link.htc);
	}
	body,td,th {
		font-size: 12px;
	}
	a:link {
		color: #000000;
		text-decoration: none;
	}
	a:visited {
		text-decoration: none;
		color: #000000;
	}
	a:active {
		text-decoration: none;
		color: #FF6600;
	}
	.style1 {font-size: 12px}
	
	-->
	</style>
</head>
<BODY scroll="no" onselectstart="return false"; >
	<script type="text/javascript">
		Menu.prototype.cssFile = cssFile;
		Menu.prototype.mouseHoverDisabled = false;
		
		var tmp;
		var mb = new MenuBar;
		
		{# section name=sec1 loop=$bm_module #}
		
			var fileMenu{#$bm_module[sec1].id#} = new Menu();
			
			{#section name=sec2 loop=$bm_module[sec1].menu#}
				{#if $bm_module[sec1].menu[sec2].name eq "hr"#}
					fileMenu{#$bm_module[sec1].id#}.add( new MenuSeparator() );
				{#else#}			
					fileMenu{#$bm_module[sec1].id#}.add(tmp = new MenuItem("<span class='style1'>{#$bm_module[sec1].menu[sec2].name#}</span>", function AddWin(url, title){top.fraMain.AddWin("{#$bm_module[sec1].menu[sec2].file#}?table_name={#$bm_module[sec1].menu[sec2].table#}&&module_name={#$bm_module[sec1].menu[sec2].name#}&&module_num={#$bm_module[sec1].menu[sec2].num#}", title);}) );
				{#/if#}
			{#/section#}

			mb.add( tmp = new MenuButton( "<span class='style1'>【{#$bm_module[sec1].name#}】</span>", fileMenu{#$bm_module[sec1].id#} ) );
		
		{#/section #}
		mb.write();
	</script>
	<table width="100%" border="0" cellpadding="0" cellspacing="0" background="./images/default/toolbar/toolbar_bg.gif">
	  <tr>
		<td width="100" height="38">
			<table width="100" border="0" cellpadding="0" cellspacing="0">
				<tr>
				  <td width="36"><img src="./images/default/toolbar/icon1.gif" width="36" height="36" border="0"></td>
				  <td width="54"><div align="center"><span class="style1"><a href="#"  onClick="showUpdateWindow('./system/boxes_update_password.php','boxes_user','〖个人资料〗','{#$user_auto_id#}');">个人资料</a></span></div></td>
				</tr>
		  </table>
		</td>
		<td width="100" height="38">
			<table width="100" border="0" cellpadding="0" cellspacing="0">
				<tr>
				  <td width="36"><img src="./images/default/toolbar/icon2.gif" width="36" height="36"></td>
				  <td width="54"><div align="center"><span class="style1"><a href="update/index.php" target="tabWin">升级数据</a></span></div></td>
				</tr>
		  </table>
		</td>
		<td width="100" height="38">
			<table width="100" border="0" cellpadding="0" cellspacing="0">
				<tr>
				  <td width="36"><img src="./images/default/toolbar/icon3.gif" width="36" height="36"></td>
				  <td width="54"><div align="center"><span class="style1"><a href="backup/index.php" target="tabWin">数据维护</a></span></div></td>
				</tr>
		  </table>
		</td>
		<td width="100" height="38">
			<table width="100" border="0" cellpadding="0" cellspacing="0">
				<tr>
				  <td width="36"><img src="./images/default/toolbar/icon5.gif" width="36" height="36"></td>
				  <td width="54"><div align="center"><span class="style1"><a href="help/index.php" target="tabWin">系统帮助</a></span></div></td>
				</tr>
		  </table>
		</td>
		<td width="267" height="38"><table border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td><a href="http://masscrm.massboxes.com" target="_blank"><img src="./images/default/main/ad.gif" width="267" height="32" border="0"></a>
            <div align="center"><span class="style1"></span></div></td>
          </tr>
        </table> </td>
	    <td width="342"><table width="100" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td><div align="center"><img src="./images/default/qqimg/qq.gif" onClick="showQQ();" style="cursor:hand "></div></td>
          </tr>
        </table></td>
	  </tr>
</table>
</body>
</HTML>