Файл: phpmyadmin/template/sql.tpl
Строк: 41
<div class="menu">
<center><b>
<?php
echo
strtoupper($lang->Sql);
?>
</b></center><br/>
<?php
echo "<div class='left'>".$_var->home.($_GET['db'] ?
"
<a
href='tables.php?db=".urlencode($db_name)."'>".pma_img('database.png').htmlentities($db_name)."</a>
»" : "").($_GET['tb'] ? "
<a
href='table.php?db=".urlencode($db_name)."&tb=".urlencode($_GET['tb'])."'>".pma_img('b_tbl.png').htmlentities($_GET['tb'])."
</a>
»" : "")."
".pma_img('b_sql.png').$lang->Sql."</div>
<hr
size='1px'>";
?>
<form action='?<?php
echo
$_SERVER['QUERY_STRING'];
?>
' method='post'><textarea
name='sql' rows='10'><?php echo htmlentities($_POST['sql']);
?></textarea><br/><input type='submit' value='
<?php
echo $lang->Go;
?>
'></form>
<?php
if($_POST) { //
echo "<div
class='query'>".highlight_sql($_POST['sql'])."</div>"; echo
"<br/><br/>".$_html; if($how_many == 1 &&
$how_many_html > 0 && isset($_GET['db'])){ echo "<form
action='export.php?db=".urlencode($db_name)."&tb=".urlencode($new_tb)."'
method='post'> <input type='hidden' name='_q'
value='".base64_encode($_POST['sql'])."'> <input
type='submit'
value='$lang->export_result'> </form>"; } if($_err)
{ foreach($_err as $_err) echo "<div class='notice'>
".pma_img('s_error.png')." $lang->Error : $_err
</div>"; echo "<div class='notice'>
".pma_img('s_error.png')." $lang->sql_stop
</div>"; } }