<?php
include 'config.php';
include 'conn.php';
include 'checkpostandget1.php';

$link = mysql_connect($dbserver, $dbuser, $dbpass);
if (!$link) {
	die('数据库链接出错: ' . mysql_error());
}
else
{
	$sql="select * from websetting where id=1";
	mysql_select_db($dbname);
	$rs = mysql_query($sql);
	while ($row = mysql_fetch_array($rs)){
		$txyf=$row[txyf];
	}	
	}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>出错信息 - <?php echo $webtitle;?></title>
<meta name="description" content="出错啦，<?php echo $description;?>" />
<meta name="keywords" content="出错信息,<?php echo $keyword;?>" />
<link href="../images/style1.css" rel="stylesheet" type="text/css">
<link href="../css/qqhk.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?php
include("../regheader.php");
?>
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="120"><table cellspacing="0" width="100%" height="138" style="border:1px  solid #FFDF70;" align="center">   
      <tr>
        <td height="136" align="center" valign="middle" bgcolor="#FEFEE9" class="bigtext"><br />
          <img src="../images/error.gif" alt="出错啦" width="200" height="47" />          <br />
          <br /><?php
		  	$errormsg=array();
			$errormsg[0]="用户名或密码为空，请输入用户名和密码进行注册。<br><br><a href=#duoduo123 onclick=javascript:history.go(-1)  class=link2>返回上一页</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=../ class=link2>返回首页</a><br /><br />";
			$errormsg[1]="对不起，该用户名已经被注册，请更换一个重新注册。<br><br><a href=#duoduo123 onclick=javascript:history.go(-1)  class=link2>返回上一页</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=../ class=link2>返回首页</a><br /><br />";
			$errormsg[2]="对不起，您输入的用户名或密码为空，请重新登录。<br><br><a href=../user/login.php class=link2>重新登录</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=../ class=link2>返回首页</a><br /><br />";
			$errormsg[3]="用户名或密码出错，请检查是否输入有误。<br><br><a href=../user/login.php class=link2>重新登录</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=../index.php class=link2>返回首页</a><br /><br />";
			$errormsg[4]="您未登录或连接超时，请重新登录。<br><br><a href=../user/login.php class=link2>重新登录</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=../ class=link2>返回首页</a><br /><br />";
			$errormsg[5]="对不起，您的可提现金额不满".$txyf."元，不可以提现！<br><br><a href=../user/usercenter.php class=link2>返回会员中心<?php echo $usercenter;?></a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=../ class=link2>再去购物</a><br /><br />";
			$errormsg[6]="对不起，您的提现金额或支付宝账户未填写完整，请重新检查！<br><br><a href=../user/tixian.php class=link2>返回提现页面</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=../ class=link2>返回首页</a><br /><br />";
			$errormsg[7]="对不起，您填写的提现金额大于可提现金额，请重新检查！<br><br><a href=../user/tixian.php class=link2>返回提现页面</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=../ class=link2>返回首页</a><br /><br />";
			$errormsg[8]="对不起，目前正处于提现中，请等待管理员审核，注意查收您提供的支付宝账户！<br><br><a href=../user/usercenter.php class=link2>返回会员中心<?php echo $usercenter;?></a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=../ class=link2>返回首页</a><br /><br />";
			$errormsg[9]="您的电子邮件为空，请检查！<br><br><a href=#duoduo123 onclick=javascript:history.go(-1)  class=link2>返回上一页</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=../index.php class=link2>返回首页</a><br /><br />";
			$errormsg[10]="您提交的交易中淘宝交易号为空，请检查！<br><br><a href=#duoduo123 onclick=javascript:history.go(-1)  class=link2>返回上一页</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=../ class=link2>返回首页</a><br /><br />";
			$errormsg[11]="您提交的淘宝交易号在数据库中已经存在，请不要重复提交！<br><br><a href=#duoduo123 onclick=javascript:history.go(-1)  class=link2>返回上一页</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=../ class=link2>返回首页</a><br /><br />";
			$errormsg[12]="您提交的提现申请已在存在，请不要重复提交！<br><br><a href=../user/usercenter.php  class=link2><?php echo $usercenter;?></a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=../ class=link2>返回首页</a><br /><br />";
			$errnum=$_GET['err'];
			echo $errormsg[$errnum];
		  ?>
          </td>
      </tr>
    </table>
      <br /></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="30" align="center"></td>
  </tr>
</table>
<?php
include("../footer.php");
?>
<br>
</body>
</html>
