X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fui_input.inc;h=7f680eaf8a05d5368174e6c550f7125fdaec30ea;hb=46c5dc49d75f51084402491bfddbd69c306fce2d;hp=054af15e98ee463c3587ab87b11e4908de4089f1;hpb=67100a2b9c55e5ed9126bbf28aafb54d829066df;p=fa-stable.git
diff --git a/includes/ui/ui_input.inc b/includes/ui/ui_input.inc
index 054af15e..7f680eaf 100644
--- a/includes/ui/ui_input.inc
+++ b/includes/ui/ui_input.inc
@@ -159,6 +159,7 @@ function submit($name, $value, $echo=true, $title=false, $atype=false, $icon=fal
if ($icon===false) $icon=ICON_ESCAPE; break;
case 'nonajax':
+ case 'download':
$atype = false;
}
}
@@ -347,7 +348,13 @@ function select_button_cell($name, $value, $title=false)
function check_value($name)
{
- return (empty($_POST[$name]) ? 0 : 1);
+ if (is_array($name)) {
+ $ret = array();
+ foreach($name as $key)
+ $ret[$key] = check_value($key);
+ return $ret;
+ } else
+ return (empty($_POST[$name]) ? 0 : 1);
}
function checkbox($label, $name, $value=null, $submit_on_change=false, $title=false)
@@ -689,7 +696,7 @@ function date_row($label, $name, $title=null, $check=null, $inc_days=0, $inc_mon
function password_row($label, $name, $value)
{
echo "
$label | ";
- label_cell("");
+ label_cell("");
echo "
\n";
}
@@ -757,7 +764,7 @@ function ref_cells($label, $name, $title=null, $init=null, $params=null, $submit
label_cell($list."");
+ ."value='".@$_POST[$name]."' size=16 maxlength=35>");
}
else // just wildcard ref field (e.g. for global inquires)
{
@@ -904,7 +911,7 @@ function small_qty_cells($label, $name, $init=null, $params=null, $post_label=nu
//-----------------------------------------------------------------------------------
-function textarea_cells($label, $name, $value, $cols, $rows, $title = null, $params="")
+function textarea_cells($label, $name, $value, $cols, $rows, $max=255, $title = null, $params="")
{
global $Ajax;
@@ -915,14 +922,15 @@ function textarea_cells($label, $name, $value, $cols, $rows, $title = null, $par
$value = (!isset($_POST[$name]) ? "" : $_POST[$name]);
echo " | \n";
$Ajax->addUpdate($name, $name, $value);
}
-function textarea_row($label, $name, $value, $cols, $rows, $title=null, $params="")
+function textarea_row($label, $name, $value, $cols, $rows, $max=255, $title=null, $params="")
{
echo "$label | ";
- textarea_cells(null, $name, $value, $cols, $rows, $title, $params);
+ textarea_cells(null, $name, $value, $cols, $rows, $max, $title, $params);
echo "
\n";
}