Example #1
0
 * Form for input criteria
 */

?>
<form method="post" action="tbl_zoom_select.php" name="insertForm" id="zoom_search_form"
    <?php echo ($GLOBALS['cfg']['AjaxEnable'] ? ' class="ajax"' : ''); ?>>
<?php echo PMA_generate_common_hidden_inputs($db, $table); ?>
<input type="hidden" name="goto" value="<?php echo $goto; ?>" />
<input type="hidden" name="back" value="tbl_zoom_select.php" />
<input type="hidden" name="flag" id="id_flag" value="<?php echo $flag; ?>" />

<fieldset id="inputSection">

<legend><?php echo __('Do a "query by example" (wildcard: "%") for two different columns') ?></legend>
<table class="data" id="tableFieldsId">
<?php echo PMA_tbl_setTableHeader();?>
<tbody>
<?php
    $odd_row = true;

for ($i = 0; $i < 4; $i++) {
    if ($i == 2) {
        echo "<tr><td>";
        echo __("Additional search criteria");
        echo "</td></tr>";
    }
    ?>
    <tr class="noclick <?php echo $odd_row ? 'odd' : 'even'; $odd_row = ! $odd_row; ?>">
        <th><select name="inputs[]" id="<?php echo 'tableid_' . $i; ?>" >
        <option value="<?php echo 'pma_null'; ?>"><?php echo __('None');  ?></option>
    <?php
" />
<input type="hidden" name="back" value="tbl_zoom_select.php" />
<input type="hidden" name="flag" id="id_flag" value="<?php 
echo $flag;
?>
" />

<fieldset id="inputSection">

<legend><?php 
echo __('Do a "query by example" (wildcard: "%") for two different columns');
?>
</legend>
<table class="data">
<?php 
echo PMA_tbl_setTableHeader();
?>
<tbody>
<?php 
$odd_row = true;
for ($i = 0; $i < 4; $i++) {
    if ($i == 2) {
        echo "<tr><td>";
        echo __("Additional search criteria");
        echo "</td></tr>";
    }
    ?>
    <tr class="noclick <?php 
    echo $odd_row ? 'odd' : 'even';
    $odd_row = !$odd_row;
    ?>
Example #3
0
echo PMA_generate_html_tabs(PMA_tbl_getSubTabs(), $url_params, '', 'topmenu2');

?>

        <form method="post" action="tbl_select.php" name="insertForm" id="tbl_search_form" <?php echo ($GLOBALS['cfg']['AjaxEnable'] ? ' class="ajax"' : ''); ?>>
<?php echo PMA_generate_common_hidden_inputs($db, $table); ?>
<input type="hidden" name="goto" value="<?php echo $goto; ?>" />
<input type="hidden" name="back" value="tbl_select.php" />

<fieldset id="fieldset_table_search">

<fieldset id="fieldset_table_qbe">
    <legend><?php echo __('Do a "query by example" (wildcard: "%")') ?></legend>
    <table class="data">
    <?php echo PMA_tbl_setTableHeader($geom_column_present); ?>
    <tbody>
    <?php
    $odd_row = true;

    for ($i = 0; $i < $fields_cnt; $i++) {
        ?>
        <tr class="noclick <?php echo $odd_row ? 'odd' : 'even'; $odd_row = ! $odd_row; ?>">
            <?php
            // if 'Function' column is present
            if ($geom_column_present) {
                echo('<td>');
                // if a geometry column
                if (in_array($fields_type[$i], $geom_types)) {
                    echo('<select class="geom_func" name="geom_func['. $i .']">');
                        // get the relevant list of functions