test
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

40 lines
1.7 KiB

{php include wl_template('common/header');}
{if empty($_GPC['lct'])}
<ul class="nav nav-tabs">
<li class="active"><a href="{php echo url('cloud/database/run');}">运行SQL</a></li>
</ul>
{/if}
<div class="app-content">
<div class="app-form">
<form action="" method="post" class="form-horizontal form" onsubmit="return confirm('请确保你已经了解这些语句的作用, 并自愿承担风险.');">
<div class="panel panel-default">
<div class="panel-heading">运行SQL语句</div>
<div class="panel-body">
<div class="form-group">
<label class="col-sm-2 control-label">运行说明</label>
<div class="col-sm-9">
<div class="help-block">通过此功能可以直接在数据库中执行特定语句, 用于调试错误. 或者系统管理员特定排错. 注意, 这里运行的语句不会有任何返回结果.</div>
<div class="help-block"><strong>注意: 此功能可能造成数据破坏, 请谨慎使用. 如果你不清楚他的功能, 请不要使用.</strong></div>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">SQL</label>
<div class="col-sm-9">
<textarea name="sql" class="form-control" rows="8"></textarea>
<div class="help-block">多条语句请使用 ; 隔开</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label"></label>
<div class="col-sm-9">
<button type="submit" class="btn btn-primary min-width" name="submit" value="提交">运行SQL</button>
<input type="hidden" name="token" value="{$_W['token']}" />
</div>
</div>
</div>
</div>
</form>
</div>
</div>
{php include wl_template('common/footer');}