version 1.111, 2004/01/03 02:27:31 |
version 1.112, 2004/01/03 02:51:07 |
|
|
* http://platon.sk/projects/phpMyEdit/ |
* http://platon.sk/projects/phpMyEdit/ |
*/ |
*/ |
|
|
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.110 2004/01/02 18:53:45 nepto Exp $ */ |
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.111 2004/01/03 02:27:31 nepto Exp $ */ |
|
|
/* This is a generic table editing program. The table and fields to be |
/* This is a generic table editing program. The table and fields to be |
edited are defined in the calling program. |
edited are defined in the calling program. |
Line 835 function phpMyEdit_form_control(theForm) |
|
Line 835 function phpMyEdit_form_control(theForm) |
|
} |
} |
} |
} |
|
|
|
if ($this->filter_operation()) { |
|
echo '<script type="text/javascript"><!--',"\n"; |
|
echo ' |
|
function phpMyEdit_filter_handler(theForm, theEvent) |
|
{ |
|
var pressed_key = null; |
|
if (theEvent.which) { |
|
pressed_key = theEvent.which; |
|
} else { |
|
pressed_key = theEvent.keyCode; |
|
} |
|
if (pressed_key == 13) { // enter pressed |
|
theForm.submit(); |
|
return false; |
|
} |
|
return true; |
|
}',"\n\n"; |
|
echo '// --></script>', "\n"; |
|
} |
|
|
if ($this->display['form']) { |
if ($this->display['form']) { |
echo '<form class="',$this->getCSSclass('form'),'" method="POST"'; |
echo '<form class="',$this->getCSSclass('form'),'" method="POST"'; |
echo ' action="',$page_name,'" name="phpMyEdit_form">',"\n"; |
echo ' action="',$page_name,'" name="phpMyEdit_form">',"\n"; |
Line 1945 function phpMyEdit_form_control(theForm) |
|
Line 1965 function phpMyEdit_form_control(theForm) |
|
echo $this->htmlSelect($l.'_comp', $css_class_name, $this->comp_ops, $mc); |
echo $this->htmlSelect($l.'_comp', $css_class_name, $this->comp_ops, $mc); |
} |
} |
echo '<input class="',$css_class_name,'" value="'; |
echo '<input class="',$css_class_name,'" value="'; |
echo htmlspecialchars(@$m),'" type="text" name="qf',$k,'"',$size_ml_props,'>'; |
echo htmlspecialchars(@$m),'" type="text" name="qf',$k,'"',$size_ml_props; |
|
echo ' onKeyPress="phpMyEdit_filter_handler(this.form, event);">'; |
} else { |
} else { |
echo ' '; |
echo ' '; |
} |
} |