Basic Table Search now works. Need to handle some error cases
This commit is contained in:
17
js/tbl_select.js
Normal file
17
js/tbl_select.js
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
/**
|
||||||
|
* JavaScript functions used on tbl_select.php
|
||||||
|
*/
|
||||||
|
$(document).ready(function() {
|
||||||
|
|
||||||
|
$("#tbl_search_form").live('submit', function(event) {
|
||||||
|
event.preventDefault();
|
||||||
|
|
||||||
|
PMA_ajaxShowMessage(PMA_messages['strSearching']);
|
||||||
|
|
||||||
|
$(this).append('<input type="hidden" name="ajax_request" value="true" />');
|
||||||
|
|
||||||
|
$.post($(this).attr('action'), $(this).serialize(), function(data) {
|
||||||
|
$("#searchresults").html(data);
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}, 'top.frame_content');
|
@@ -18,7 +18,7 @@ require_once './libraries/common.inc.php';
|
|||||||
require_once './libraries/relation.lib.php'; // foreign keys
|
require_once './libraries/relation.lib.php'; // foreign keys
|
||||||
require_once './libraries/mysql_charsets.lib.php';
|
require_once './libraries/mysql_charsets.lib.php';
|
||||||
|
|
||||||
$GLOBALS['js_include'][] = 'tbl_change.js';
|
$GLOBALS['js_include'][] = 'tbl_select.js';
|
||||||
$GLOBALS['js_include'][] = 'jquery/jquery-ui-1.8.custom.js';
|
$GLOBALS['js_include'][] = 'jquery/jquery-ui-1.8.custom.js';
|
||||||
$GLOBALS['js_include'][] = 'jquery/timepicker.js';
|
$GLOBALS['js_include'][] = 'jquery/timepicker.js';
|
||||||
if ($GLOBALS['cfg']['PropertiesIconic'] == true) {
|
if ($GLOBALS['cfg']['PropertiesIconic'] == true) {
|
||||||
@@ -120,7 +120,7 @@ while (list($operator) = each($GLOBALS['cfg']['UnaryOperators'])) {
|
|||||||
}
|
}
|
||||||
// ]]>
|
// ]]>
|
||||||
</script>
|
</script>
|
||||||
<form method="post" action="tbl_select.php" name="insertForm">
|
<form method="post" action="tbl_select.php" name="insertForm" id="tbl_search_form">
|
||||||
<?php echo PMA_generate_common_hidden_inputs($db, $table); ?>
|
<?php echo PMA_generate_common_hidden_inputs($db, $table); ?>
|
||||||
<input type="hidden" name="goto" value="<?php echo $goto; ?>" />
|
<input type="hidden" name="goto" value="<?php echo $goto; ?>" />
|
||||||
<input type="hidden" name="back" value="tbl_select.php" />
|
<input type="hidden" name="back" value="tbl_select.php" />
|
||||||
@@ -325,6 +325,7 @@ $(function() {
|
|||||||
<input type="submit" name="submit" value="<?php echo __('Go'); ?>" />
|
<input type="submit" name="submit" value="<?php echo __('Go'); ?>" />
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
|
<div id="searchresults"></div>
|
||||||
<?php
|
<?php
|
||||||
require_once './libraries/footer.inc.php';
|
require_once './libraries/footer.inc.php';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user