<?
include("../config/conn.php");
include("../config/function.php");

if(intval($_GET[admin])==1){  //商品搜索
zwzr();
if(empty($rowcontrol[sermode])){$k=base_encode(sqlzhuru($_POST[topt]));}
elseif($rowcontrol[sermode]==2){$k=urlencode(sqlzhuru($_POST[topt]));}
else{$k=sqlzhuru($_POST[topt]);}
php_toheader("../product/search_s".$k."v.html");

}elseif(intval($_GET[admin])==2){  //表示店铺搜索
zwzr();
if(empty($rowcontrol[sermode])){$k=base_encode(sqlzhuru($_POST[topt]));}
elseif($rowcontrol[sermode]==2){$k=urlencode(sqlzhuru($_POST[topt]));}
else{$k=sqlzhuru($_POST[topt]);}
php_toheader("../shop/search_s".$k."v.html");

}elseif(intval($_GET[admin])==3){  //表示资讯搜索
zwzr();
if(empty($rowcontrol[sermode])){$k=base_encode(sqlzhuru($_POST[topt]));}
elseif($rowcontrol[sermode]==2){$k=urlencode(sqlzhuru($_POST[topt]));}
else{$k=sqlzhuru($_POST[topt]);}
php_toheader("../news/newslist_s".$k."v.html");

}elseif(intval($_GET[admin])==4){  //表示商品内页搜索
zwzr();
if(empty($rowcontrol[sermode])){$k=base_encode(sqlzhuru($_POST[ink1]));}
elseif($rowcontrol[sermode]==2){$k=urlencode(sqlzhuru($_POST[ink1]));}
else{$k=sqlzhuru($_POST[ink1]);}
php_toheader("../product/search_s".$k."v".$_GET[getv].".html");

}
?>