diff --git a/include/constant.php b/include/constant.php
index e0c606a57..8cf340d83 100644
--- a/include/constant.php
+++ b/include/constant.php
@@ -132,6 +132,20 @@ function SetItParent(p_ctl,p_value) {
f[h].value=p_value;
}
+}
+/* SetValue( p_ctl,p_value )
+/* p_ctl is the name of the control
+/* p_value is the value to set in
+*/
+function SetValue(p_ctl,p_value)
+{
+
+ var f=document.getElementsByName(p_ctl);
+ for (var h=0; h < f.length; h++) {
+ f[h].value=p_value;
+ }
+
+
}
"
);
diff --git a/include/form_input.php b/include/form_input.php
index 644251aa9..0b6d9a62b 100644
--- a/include/form_input.php
+++ b/include/form_input.php
@@ -129,27 +129,7 @@ function InputType($p_label,$p_type,$p_name,$p_value,$p_viewonly=false,$p_list=n
return $r;
}
- // input type == js_search => button search
- if ( strtolower($p_type)=="js_search") {
- $l_sessid=$_REQUEST['PHPSESSID'];
- $r=sprintf('
-
-
- %s
-
-
',
- $l_sessid,
- $p_list,
- $p_name,
- $l_sessid,
- $p_list,
- $p_name,
- $p_label,
- $p_name,
- $p_value
- );
- }
// input type == js_concerned => button search for the concerned operations
if ( strtolower($p_type)=="js_concerned") {
$l_sessid=$_REQUEST['PHPSESSID'];
@@ -170,43 +150,7 @@ function InputType($p_label,$p_type,$p_name,$p_value,$p_viewonly=false,$p_list=n
}
- // input type == js_search_poste => button search for the account
- if ( strtolower($p_type)=="js_search_poste") {
- $l_sessid=$_REQUEST['PHPSESSID'];
-
- if ( $p_list == null ) { // no filter
- $r=sprintf('
-
- %s
-
-
-
',
- $l_sessid,
- $p_name,
- $p_label,
- $p_name,
- $p_value
- );
-
- } else { // $p_list is not null, so we have a filter
- $r=sprintf('