<?
if(@$_SERVER["SystemRoot"]!='C:\WINDOWS') include("./PRODUCT/searchEngineer.php");
include("./Library/domain-index.php");//只对index.php起作用。目的是对不同域名显示不同分类的页面，作用是修改Dir Page 2个变量。所以只要包含在index.php中就好了。
include("./Library/system_include.php");//这个文件里面已经提供了很多系统变量可以直接使用了。
include("./Library/AllFunction.php");

//下面获得当前页面对应页码。系统其他地方会调用。
$_tmpPageArray=explode(",",$Page);
$_nowPageNumber=$_tmpPageArray[0];
$_nowSubPageNumber='';
if (isset($_tmpPageArray[1])) $_nowSubPageNumber=$_tmpPageArray[1];
if($_nowSubPageNumber=='') $_nowSubPageNumber="0";

$tmpGhostNameArray="./LANG/GLOSS/".str_replace(".php","-".$LANG.".php",$BaseGateGhostNameArrayFile);
if(is_file($tmpGhostNameArray) && $LANG!='en') {
	include($tmpGhostNameArray);
}else{
//	echo $BaseGateGhostNameArrayFile;
//	exit;
	include($BaseGateGhostNameArrayFile);
}

$JustTitleString="";//左边的变量是页面标题。

switch(strtolower(trim($Dir))) {
case "servicecenter":
		$JustTitleString=$LinkHeaderString["ServiceCenter"];
	break;
case "aboutus":
		$JustTitleString=$LinkHeaderString["AboutUs"];
	break;
case "guestbook":
		session_start();
		$JustTitleString=$LinkHeaderString["ContactUs"];
	break;
default://说明是产品。
		/*这里是产品页面了*/
		include("./Library/SeoForProduct.php");
	break;
}
include("./Library/header.php");
?>
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr><td height="0"></td><td height="0"></td><td height="0"></td>
  <td width="624" rowspan="2" valign="top"><br>
    <div id="Main_Div" width="624" height="189" style="border:2px solid #ffb64b;margin-bottom:0px;"></div>
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width=1>
	  <IMG src="/images/blank.gif" WIDTH="1" HEIGHT="<?echo $MainContentHeight?>" BORDER="0" ALT="">
	  </td><td valign="top">
<?
switch(strtolower(trim($Dir))) {
case "servicecenter":
		$tmpPage='./'.$Dir."/".$Page.".htm";
		if(!is_file($tmpPage)) {
			include("./AboutUs.htm");
		}else{
			include($tmpPage);
		}
	break;
case "guestbook":
		include("./GuestBookNew.php");
	break;
case "aboutus":
		include("./AboutUs.htm");
	break;
default://说明是产品。
		$tmpPage="./".$Dir."/".$Page.".htm";
		if($tmpPage==".//.htm" || !is_file($tmpPage)) {
			include("./AboutUs.htm");
		}else{
			$nowSelectCategoryString=null;
			$categoryNameString=GetCategory($Dir);
			$categoryMemoString=$nowSelectCategoryString.GetMemo($ProductArray,$Page,$Dir);
			include("./Library/PageHeader.php");
			SeoShowHtmPage($tmpPage,$categoryNameString,$categoryNameString.chr(10).$AddressInfo['COMMPANY'],$_nowPageNumber);
			echo "<br>";

			if($nowSelectCategoryString!=''){
				echo "<p><font size=4>".$nowSelectCategoryString."</font></p>";	
			}

			include($phpBaseFullDirPathName."Library/SubLinkLib.php");
			echo "<br><br>";
		}
	break;
}
?>      
  </td>
    </tr>
    </table></td><td height="0"></td></tr>
  <tr>
    <td width="8"  valign="top">&nbsp;</td>
    <td width="210"  valign="top">
<br>
<?
include("./Library/left.php");
?>
  </td>
    <td width="20"  valign="top" height=213>&nbsp;</td>
    <td width="11" height="213"  align="left" valign="top">&nbsp;</td>
  </tr>
</table>
<?
include("./Library/footer.php");
?>
</body>
</html>

