Ejemplo n.º 1
0
        ?>
	<?php 
    }
    ?>

	<form action="<?php 
    echo $_SERVER['PHP_SELF'];
    ?>
?execute_sql=1&popup=<?php 
    echo $get['popup'];
    ?>
" method="post" onsubmit="return sql_submit(this);" style="margin-top: 1em;">
	<input type="hidden" name="perform" value="">
	<div style="margin-bottom: 0.25em;">
		<textarea id="sql_area" name="sql" class="sql_area"><?php 
    echo htmlspecialchars(query_upper($post['sql']));
    ?>
</textarea>
	</div>
	<table cellspacing="0" cellpadding="0"><tr>
	<td nowrap>
		<input type="button" wait="1" class="button" value="Execute" onclick="sql_execute(this.form); ">
	</td>
	<td nowrap>
		&nbsp;
		<input type="button" wait="1" class="button" value="Preview" onclick="sql_preview(this.form); ">
	</td>
	<td nowrap>
		&nbsp;
		<input type="checkbox" name="only_marked" id="only_marked" value="1" <?php 
    echo checked($post['only_marked'] || $get['only_marked']);
Ejemplo n.º 2
0
        ?>
	<?php 
    }
    ?>

	<form action="<?php 
    echo $_SERVER['PHP_SELF'];
    ?>
?execute_sql=1&popup=<?php 
    echo $_GET['popup'];
    ?>
" method="post" onsubmit="return sql_submit(this);" style="margin-top: 1em;">
	<input type="hidden" name="perform" value="">
	<div style="margin-bottom: 0.25em;">
		<textarea accesskey=s id="sql_area" name="sql" class="sql_area"><?php 
    echo htmlspecialchars(query_upper($_POST['sql']));
    ?>
</textarea>
	</div>
	<table cellspacing="0" cellpadding="0"><tr>
	<td nowrap>
		<input type="button" wait="1" class="button" value="Execute" onclick="sql_execute(this.form); ">
	</td>
	<td nowrap>
		&nbsp;
		<input type="button" wait="1" class="button" value="Preview" onclick="sql_preview(this.form); ">
	</td>
	<td nowrap>
		&nbsp;
		<input type="checkbox" name="only_select" id="only_select" value="1" <?php 
    echo checked($_POST['only_select'] || $_GET['only_select']);