foreach (array('Edit', 'Delete') as $m) {
foreach ($_POST as $p => $pvar) {
if (strpos($p, $m) === 0) {
- $selected_id = substr($p, strlen($m));
+// $selected_id = strtr(substr($p, strlen($m)), array('%2E'=>'.'));
+ unset($_POST['_focus']); // focus on first form entry
+ $selected_id = quoted_printable_decode(substr($p, strlen($m)));
$Ajax->activate('_page_body');
$Mode = $m;
return;
//---------------------------------------------------------------------------------
// Submit button.
// $async parameter can have 3 values:
+// null - fallback button not visible in js enabled mode
// false - normal submit via form action
// true - when js is on submition via ajax call
-// null - fallback button not visible in js enabled mode
+// 'process' - ditto with processing indicator in msgbox
//
function submit($name, $value, $echo=true, $title=false, $async=false)
{
$submit_str = "<input type=\"submit\" class=\""
.($async ? 'ajaxsubmit' : 'inputsubmit')
."\""
- .($async === null ? (in_ajax() ? " style='display:none;'" : ' fallback="1"' ): '')
+ .($async === null ? (in_ajax() ? " style='display:none;'" : ' aspect="fallback"' ):
+ ($async === 'process' ? 'aspect="process"' : '') )
." name=\"$name\" id=\"$name\" value=\"$value\""
.($title ? " title='$title'" : '')
.">\n";