<!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>{$head[title]}</title>
<meta content="{$head[keywords]}" name="keywords">
<meta content="{$head[description]}" name="description">
<base href="{$PHPCMS[siteurl]}" />
<script language="JavaScript" src="data/config.js"></script>
<script language="JavaScript" src="images/js/jquery.min.js"></script>
<script language="JavaScript" src="images/js/css.js"></script>
<script language="JavaScript" src="images/js/common.js"></script>
<script language="JavaScript" src="images/js/login.js"></script>
<link href="{SKIN_PATH}base_yp.css" rel="stylesheet" type="text/css" />
<link href="{SKIN_PATH}yp.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top">
  <div class="f_r"><a href="javascript:window.external.AddFavorite(window.location.href,'{$head[title]}')" rel="sidebar" title="{$head[title]}">加入收藏</a>　｜　<a href="about/contactus/index.html">联系我们</a>　｜　<a id="StranLink" href="javascript:StranBody()" title="点击以繁体中文方式浏览">繁体</a>　｜　<a href="{BUSINESSDIR}"><img src="yp/images/business.png" align="absmiddle"></a></div>
  <div class="f_l">
  <div id="div_login" style="display:none">
		<form action="{$MODULE[member][url]}login.php" method="post" name="login" onsubmit="return loginSubmit(this, {PASSPORT_ENABLE});">
		用户名：<input type="text" name="username" size="12" class="input_blur"/>
		密码：<input type="password" name="password" size="12" class="input_blur"/>
			  <input type="submit" name="dosubmit" value="登录" class="button_style"/>
			  <input type="button" name="register" value="注册" onclick="redirect('{$MODULE[member][url]}register.php')" class="button_style"/>
			  <input type="hidden" name="cookietime" value="0"/>
		</form>
	</div>
    <div id="div_logined" style="display:none">
		<strong id="logined_username" ></strong>，<a href="{$MODULE[member][url]}">会员中心</a> | 
        <a href="{if PASSPORT_ENABLE}{$MODULE[member][url]}logout.php{else}javascript:logout('{$MODULE[member][url]}logout.php?action=ajax');{/if}">退出登录</a>
	</div>
  </div>
</div>
<div id="head">
  <div id="yp_menu">
    <h1 id="logo"><a href="#"><img src="images/logo.gif" alt="phpcms黄页"/></a><a href="rss.php"><img src="images/rss.jpg" alt="rss"/></a></h1>
    <ul>
      <li><a href="{$M[url]}" {if $template=='index'}class="s2"{/if}>首页</a></li>
      <li><a href="{$M[url]}company.php" {if $template=='company'}class="s2"{/if}>企业</a></li>
      <li><a href="{$M[url]}buy.php" {if $template=='buy'}class="s2"{/if}>商机</a></li>
      <li><a href="{$M[url]}product.php" {if $template=='product'}class="s2"{/if}>产品</a></li>
      <li><a href="{$M[url]}job.php" {if $template=='job'}class="s2"{/if}>人才</a></li>
    </ul>
    <div class="clear"></div>
  </div>
  <div id="yp_submenu">
    <ul id="gy">
	{get sql="SELECT id,title FROM `phpcms_yp_buy` WHERE tid = 1 ORDER BY inputtime DESC" rows="1"} 
		 <li><a href="{show_url('buy',$r['id'])}">{$r['title']}</a></li>
	{/get}
	{get sql="SELECT id,title FROM `phpcms_yp_buy` WHERE tid = 2 ORDER BY inputtime DESC" rows="1"}
		  <li><a href="{show_url('buy',$r['id'])}">{$r['title']}</a></li>
	{/get}
    </ul>
    <ul id="search">
	<form name='myform' id='myform' action='{$M[url]}{if $template == "index"}product{else}{$template}{/if}.php' method='get'>
      <li>
        <input name="q" type="text" size="50" class="input_blur"/>
		<input type='hidden' name='action' value='searchlist' >
        <input type="submit" value="搜索" class="button_style"/>
        <a href="{$M[url]}{if $template == 'index'}product{else}{$template}{/if}.php?action=search">高级搜索</a> </li>
      <li id="keywords"><!--{block("yphead", 1)}--></li>
	</form>
    </ul>
    <ul id="kj_menu">
      <li><a href="{$M[url]}company.php">企业大全</a></li>
      <li><a href="{$M[url]}product.php">产品大全</a></li>
      <li><a href="{$M[url]}buy.php?tid=1">供应</a></li>
      <li><a href="{$M[url]}buy.php?tid=2">求购</a></li>
      <li><a href="{$M[url]}buy.php?tid=3">二手</a></li>
      <li><a href="{$M[url]}buy.php?tid=4">促销</a></li>
      <li><a href="{$M[url]}job.php?action=list">企业招聘</a></li>
      <li><a href="{$M[url]}job.php?action=applylist">个人求职</a></li>
    </ul>
  </div>
  <div class="bk_5"></div>
  <!--{block("yphead", 2)}-->
</div>