Logo Search packages:      
Sourcecode: ibwebadmin version File versions  Download package

sql_enter.php

<?php
// File           sql_enter.php / ibWebAdmin
// Purpose        html sequence for the sql_enter-panel in sql.php
// Author         Lutz Brueckner <irie@gmx.de>
// Copyright      (c) 2000, 2001, 2002, 2003, 2004 by Lutz Brueckner,
//                published under the terms of the GNU General Public Licence v.2,
//                see file LICENCE for details
// Created        <00/09/12 09:10:18 lb>
//
// $Id: sql_enter.php,v 1.12 2004/03/07 17:08:37 lbrueckner Exp $


$js_stack .= js_giveFocus('sql_enter_form', 'sql_script');

?>
<form method="post" action="<?php echo $HTTP_SERVER_VARS['PHP_SELF']; ?>" name="sql_enter_form" enctype="multipart/form-data">
<?php hidden_session_field(); ?>
   <table cellpadding="3" cellspacing="0">
      <tr>
         <td colspan="5">
            <textarea name="sql_script" id="sql_script" rows="<?php echo $s_cust['textarea']['rows']; ?>" cols="<?php echo $s_cust['textarea']['cols']; ?>" wrap="virtual"><?php echo htmlspecialchars($sql_script); ?></textarea>
         </td>
      </tr>
      <tr>
         <td colspan="5" align="right">
            <input name="sql_file" type="file" size="50" maxlength="100000" accept="text/*">&nbsp;
            <input type="submit" name="sql_load" value="<?php echo $button_strings['Load']; ?>">&nbsp;
            <input type="submit" name="sql_execute" value="<?php echo $button_strings['Execute']; ?>">
         </td>
      </tr>
      <tr>
         <td>
            <input type="reset" name="sql_reset" value="<?php echo $button_strings['Reset']; ?>">&nbsp;&nbsp;&nbsp;
            <input type="button" name="sql_clear" value="<?php echo $button_strings['Clear']; ?>" onClick="document.sql_enter_form.sql_script.value=''">&nbsp;&nbsp;&nbsp;
            <input type="submit" name="sql_run" value="<?php echo $button_strings['DoQuery']; ?>">
         </td>
         <td>&nbsp;</td>
         <td>
            <input type="submit" name="sql_plan" value="<?php echo $button_strings['QueryPlan']; ?>">
         </td>
         <td>&nbsp;</td>
         <td align="right" valign="center">
<?php
            if ($s_use_jsrs == TRUE) {
                $next_url = "javascript:requestSqlBuffer('".($s_sql_pointer < SQL_HISTORY_SIZE -1 ? $s_sql_pointer +1 : 0)."')";
                $prev_url = "javascript:requestSqlBuffer('".($s_sql_pointer == 0 ? SQL_HISTORY_SIZE -1 : $s_sql_pointer -1)."')";
                $go_event = " onClick=\"requestSqlBuffer(selectedElement(document.getElementById('sql_pointer')))\";";
                $button_type = 'button';
            }
            else {
                $next_url = url_session($HTTP_SERVER_VARS['PHP_SELF'].'?buf=next');
                $prev_url = url_session($HTTP_SERVER_VARS['PHP_SELF'].'?buf=prev');
                $go_event = '';
                $button_type = 'submit';
            }

            echo '&nbsp;<a href="'.$prev_url.'" id="sql_prev"><img src="'.DATAPATH . (BG_TRANSPARENT == TRUE ? 'transparent/' : 'opaque/') . "left_arrow.png\" border=\"0\"></a>\n";
            echo get_selectlist('sql_pointer', range(0, SQL_HISTORY_SIZE -1), $s_sql_pointer, FALSE, array('id' => 'sql_pointer'));
            echo '<input type="'.$button_type.'" name="sql_go" value="'.$button_strings['Go'].'"'.$go_event.'>';
            echo '&nbsp;<a href="'.$next_url.'" id="sql_next"><img src="'.DATAPATH . (BG_TRANSPARENT == TRUE ? 'transparent/' : 'opaque/') . "right_arrow.png\" border=\"0\"></a>\n";
?>
         </td>
      </tr>
   </table>   
</form>

Generated by  Doxygen 1.6.0   Back to index