Skip to content
Snippets Groups Projects
Verified Commit 3f578e99 authored by Damien's avatar Damien
Browse files

External SB controller

parent 604a311b
No related branches found
No related tags found
No related merge requests found
...@@ -26,6 +26,11 @@ function get_form_txt($values, $path_manage_action, $id_action, $table, $module, ...@@ -26,6 +26,11 @@ function get_form_txt($values, $path_manage_action, $id_action, $table, $module,
} }
} }
} }
$config['getFormData'] = [
'pathManageAction' => $path_manage_action,
'actionId' => $id_action,
'mode' => $mode
];
$html = ''; $html = '';
if (!empty($config)) { if (!empty($config)) {
...@@ -47,7 +52,12 @@ function get_form_txt($values, $path_manage_action, $id_action, $table, $module, ...@@ -47,7 +52,12 @@ function get_form_txt($values, $path_manage_action, $id_action, $table, $module,
return addslashes($html); return addslashes($html);
} }
function manage_form($aId) function check_form($form_id,$values)
{
return true;
}
function manage_form($arr_id, $history, $id_action, $label_action, $status, $coll_id, $table, $values_form)
{ {
$result = ''; $result = '';
......
...@@ -19,10 +19,18 @@ class IxbusController ...@@ -19,10 +19,18 @@ class IxbusController
{ {
$initializeDatas = IxbusController::getInitializeDatas($config); $initializeDatas = IxbusController::getInitializeDatas($config);
$html ='<div align="center">'; $html = '<form name="sendToExternalSB" id="sendToExternalSB" method="post" class="forms" action="#">';
$html .='<input type="button" name="cancel" id="cancel" class="button" value="valider"/>'; $html .= '<input type="hidden" name="chosen_action" id="chosen_action" value="end_action" />';
$html .= '<select id="nature"><option value="val1">Valeur 1</option><option value="val2">Valeur 2</option><option value="val3">Valeur 3</option></select>';
$html .='<div align="center">';
$html .=' <input type="button" name="validate" id="validate" value="Valider" class="button" ' .
'onclick="valid_action_form(\'sendToExternalSB\', \'' . $config['getFormData']['pathManageAction'] .
'\', \'' . $config['getFormData']['actionId'] . '\', \'value\', \'res_letterbox\', \'null\', \'letterbox_coll\', \'' .
$config['getFormData']['mode'] . '\');" />';
$html .='<input type="button" name="cancel" id="cancel" class="button" value="annuler"/>'; $html .='<input type="button" name="cancel" id="cancel" class="button" value="annuler"/>';
$html .='</div>'; $html .='</div>';
$html .='</form>';
return $html; return $html;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment