<?php 
include 'comm/conn.php';
include 'comm/config.php';
include 'comm/checkpostandget.php';
include 'zhu1/check.php';
$id=$_GET['id'];
$link = mysql_connect($dbserver, $dbuser, $dbpass);
if (!$link) {
	die('数据库链接出错: ' . mysql_error());
}
else
{
	mysql_query("set names gbk");
	$sql="select * from websetting where id=1";
	mysql_select_db($dbname);
	$rs = mysql_query($sql);
	while ($row = mysql_fetch_array($rs))
	{
		$appKey = $row[appKey];  
		$appSecret =$row[appSecret]; 
		$userpid = $row[userpid]; 
		$usernick = $row[usernick];
		$fxbl=$row[fxbl]; 
		$tgbl=$row[tgbl]; 
		
		$webtitle=$row[webtitle]; 
		$keyword=$row[keyword]; 
		$description=$row[description]; 
		$url=$row[url]; 
		$surl=$row[surl]; 
		$email=$row[email]; 
		$icp=$row[icp]; 
		$tongji=$row[tongji]; 
		$qq =$row[qq]; 
		$usercenter =$row[usercenter]; 
	}

}	
?>
<!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=gb2312" />
<title>管理中心</title>
<link href="../images/style1.css" rel="stylesheet" type="text/css">
<link href="../images/sty.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.STYLE1 {
	color: #FFFFFF;
	font-weight: bold;
	font-size:14px;
	text-decoration:none;
}
.STYLE2 {
	color: #555555;
	font-weight: bold;
	font-size:14px;
	text-decoration:none;
}
.STYLE3 {color: #FF0000}
.STYLE4 {
	font-size: 14px;
	font-weight: bold;
}
-->
</style>
</head>
<?php
include("comm/head.php");
?>
<body topmargin="5" leftmargin="0">
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="282" valign="top"><table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td>
          <table cellspacing="0" width="950" height="27" style="border:1px  solid #DCEAF7;">
            <tr>
              <td height="30" colspan="2" bgcolor="E9F2FB" class="bigtext"><strong>&nbsp;<img src="../images/arrow.gif" width="16" height="22" align="absmiddle" /> 网站采集更新配置</strong></td>
            </tr>   
   <?php

error_reporting(0);
require_once 'function.php';
$info="首页商品待更新！";
$catid = intval($_GET['catid']);
$page = intval($_GET['page']);
$sort = $_GET['sort'];
if(!empty($sort))
{
$Taoapi->method = 'taobao.taobaoke.items.get';
$Taoapi->fields = 'iid,num_iid,title,nick,pic_url,price,click_url,commission,commission_rate,commission_num,commission_volume,seller_credit_score,shop_click_url';
$Taoapi->nick = $usernick;
$Taoapi->cid = $catid;
$Taoapi->page_no = $page;
$Taoapi->page_size = '15';
$Taoapi->sort = $sort;
$Taoapi->start_price = '10';
$Taoapi->end_price = '5000';
$Taoapi->SendIndexCheng('get','xml',$catid);
$info = "更新首页".$catid ."分类商品成功！";
}
;echo '<!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=gbk" />
<title>后台管理-';echo $sitetitle ;echo '</title>
<meta name="keywords" content="后台管理" />
<meta name="description" content="欢迎进入网站后台管理系统！" />
<style type="text/css">
body{ font-size:12px; font-family: "Verdana", "Arial", "Helvetica", "sans-serif"; margin:0px auto;}
.gw a{text-decoration:underline;color:#666;}
</style>
</head>
<body bgcolor="#d1dded">
';
include("adminc.php");
;echo '</body>
</html>';?>
                    </tr>
                  </table>

                    </td>
                </tr>
              </table></td>
            </tr>
          </table></td>
        </tr>
      
    </table></td>
  </tr>
</table>
