<?php if (!defined('APP_PATH')) exit;?><!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></title>
<link href="http://127.0.0.5/magic/Data/Public/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://127.0.0.5/magic/Data/Public/js/jquery.js"></script>
<script src="http://127.0.0.5/Data/Public/layer/layer.js"></script>
<script src="http://127.0.0.5/magic/Data/Public/js/main.js"></script>
<script src="http://127.0.0.5/magic/Data/Public/js/jquery.nicescroll.min.js"></script>
</head>
<body>
<script>
  $(document).ready(function() {    
	$("html").niceScroll();
  });
</script>
<iframe name="blank" id="blank" style="display:none"></iframe>
<div class="rightinfo">
    <div class="tools">
		<ul class="toolbar">
			<li><a <?php if(Q('get.table')){ ?> href="?r=database-fields&table=<?php echo Q('get.table');?>" <?php }else{ ?> style="color:#ccc" <?php }?>><span><img src="http://127.0.0.5/magic/Data/Public/images/t10.png" /></span>对象浏览器</a></li>
			<li><a <?php if(Q('get.table')){ ?> href="?r=database-fields-data&table=<?php echo Q('get.table');?>" <?php }else{ ?> style="color:#ccc" <?php }?>><span><img src="http://127.0.0.5/magic/Data/Public/images/t11.png" /></span>数据浏览器</a></li>
			<li><a href="?r=database-sql&table=<?php echo Q('get.table');?>"><span><img src="http://127.0.0.5/magic/Data/Public/images/t02.png" /></span>SQL编辑器</a></li>
			<li><a href="?r=database-export&table=<?php echo Q('get.table');?>"><span><img src="http://127.0.0.5/magic/Data/Public/images/t13.png" /></span>导出</a></li>
			<li><a href="?r=database-import&table=<?php echo Q('get.table');?>"><span><img src="http://127.0.0.5/magic/Data/Public/images/t12.png" /></span>导入</a></li>
		</ul>
    </div>  
   <form method="post" id="form1" target="blank" action="?r=database-sql-run">
	<p style="padding:8px 0;font-size:13px;">运行SQL语句:</p>
	<p> <textarea name="sql" rows="21" cols="155" class="textinput"></textarea></p>
	<table style="margin:5px auto">
	<tr>
		<td align="center" height="40" colspan="10"><input type="submit" class="scbtn7" value="执行">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" value="重置" class="scbtn8"></td>
	</tr>
</table>
    </form>
    </div>
</body>
</html>
