<?php
if(!defined('InEmpireBak'))
{
	exit();
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>琛ㄥ瓧娈靛垪琛?/title>
<link href="images/css.css" rel="stylesheet" type="text/css">
<script>
function ChangeAutoField(f)
{
	var tbname="<?=$mytbname?>";
	var chstr=tbname+"."+f;
	var r;
	var dh=",";
	var a;
	a=opener.document.<?=$form?>.autofield.value;
	r=a.split(chstr);
	if(r.length!=1)
	{return true;}
	if(a=="")
	{
		dh="";
	}
	opener.document.<?=$form?>.autofield.value+=dh+chstr;
	window.close();
}
</script>
</head>

<body>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
  <tr> 
    <td>浣岖疆锛?b>
      <?=$mydbname?>
      .
      <?=$mytbname?>
      </b> 瀛楁鍒楄〃&nbsp;<font color="#666666">(镣瑰向瀛楁鍚嶅彲钬滃姞鍏ュ幓闄よ嚜澧炲€煎瓧娈靛垪琛ㄢ€?</font></td>
  </tr>
</table>
<br>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#0472BC">
  <tr> 
    <td height="27"> <div align="center"><font color="#FFFFFF">瀛楁鍚?/font></div></td>
    <td><div align="center"><font color="#FFFFFF">瀛楁绫诲瀷</font></div></td>
    <td><div align="center"><font color="#FFFFFF">瀛楁灞炴€?/font></div></td>
    <td><div align="center"><font color="#FFFFFF">榛樿链?/font></div></td>
    <td><div align="center"><font color="#FFFFFF">闄勫姞灞炴€?/font></div></td>
  </tr>
  <?php
  while($r=$empire->fetch($sql))
  {
	$r[Field]="<a href='#ebak' onclick=\"ChangeAutoField('".$r[Field]."');\" title='锷犲叆铡婚櫎镊链煎瓧娈靛垪琛?>$r[Field]</a>";
  ?>
  <tr bgcolor="#FFFFFF"> 
    <td height="27"> <div align="center">
        <?=$r[Field]?>
      </div></td>
    <td> <div align="center">
        <?=$r[Type]?>
      </div></td>
    <td> <div align="center">
        <?=$r[Key]?>
      </div></td>
    <td> <div align="center">
        <?=$r['Default']?>
      </div></td>
    <td> <div align="center">
        <?=$r[Extra]?>
      </div></td>
  </tr>
  <?
  }
  ?>
</table>
<br>
</body>
</html>