X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fui_input.inc;h=862032859bcbb9dd39784587da74a31335b2c7b7;hb=7561718ee5113232ce917f63085d272884b0929c;hp=1b3eec45e6dee0323796f4b02e1b91c48563f488;hpb=7eb0da506fb25d46c9c63132dc42f5f5b31222c0;p=fa-stable.git
diff --git a/includes/ui/ui_input.inc b/includes/ui/ui_input.inc
index 1b3eec45..86203285 100644
--- a/includes/ui/ui_input.inc
+++ b/includes/ui/ui_input.inc
@@ -37,6 +37,7 @@ function find_submit($prefix, $numeric=true)
}
return $numeric ? -1 : null;
}
+
//------------------------------------------------------------------------------
//
// Helper function for simple db table editor pages
@@ -113,6 +114,7 @@ function hidden($name, $value=null, $echo=true)
'cancel' - cancel form entry on Escape press; dflt ICON_CANCEL
'process' - displays progress bar during call; optional icon
'nonajax' - ditto, non-ajax submit
+
$atype can contain also multiply type selectors separated by space,
however make sense only combination of 'process' and one of defualt/selector/cancel
*/
@@ -385,7 +387,7 @@ function check_row($label, $name, $value=null, $submit_on_change=false, $title=f
function radio($label, $name, $value, $selected=null, $submit_on_change=false)
{
if (!isset($selected))
- $selected = get_post($name) == $value;
+ $selected = get_post($name) === (string)$value;
if ($submit_on_change === true)
$submit_on_change =
@@ -604,7 +606,7 @@ function link_row_ex($label, $name, $size, $max=null, $title=null, $value=null,
function date_cells($label, $name, $title = null, $check=null, $inc_days=0,
$inc_months=0, $inc_years=0, $params=null, $submit_on_change=false)
{
- global $use_date_picker, $path_to_root, $Ajax;
+ global $path_to_root, $Ajax;
if (!isset($_POST[$name]) || $_POST[$name] == "")
{
@@ -622,9 +624,13 @@ function date_cells($label, $name, $title = null, $check=null, $inc_days=0,
$_POST[$name] = $dd;
}
}
- if ($use_date_picker)
+ if (user_use_date_picker())
+ {
+ $calc_image = (file_exists("$path_to_root/themes/".user_theme()."/images/cal.gif")) ?
+ "$path_to_root/themes/".user_theme()."/images/cal.gif" : "$path_to_root/themes/default/images/cal.gif";
$post_label = ""
- . " \n";
+ . "
\n";
+ }
else
$post_label = "";
@@ -633,15 +639,15 @@ function date_cells($label, $name, $title = null, $check=null, $inc_days=0,
echo "