"SELECT",
"PNA" => 'ACTION',
"PEA" => 'ACTION',
"PES" => "SELECT",
"PBS" => "SELECT",
"PBA" => 'ACTION');
$testable_types = array("PNS" => true,
"PNA" => false,
"PEA" => false,
"PES" => true,
"PBS" => true,
"PBA" => false);
$type_titles = array("PNS" => "remote_procedures_catalog_caddienotice_select",
"PNA" => "remote_procedures_catalog_caddienotice_action",
"PEA" => "remote_procedures_catalog_caddieexpl_action",
"PES" => "remote_procedures_catalog_caddieexpl_select",
"PBS" => "remote_procedures_catalog_caddiebull_select",
"PBA" => "remote_procedures_catalog_caddiebull_action");
function show_remote_procs($type) {
global $pmb_procedure_server_credentials, $pmb_procedure_server_address;
global $msg;
global $charset;
$pmb_procedure_server_credentials_exploded = explode("\n", $pmb_procedure_server_credentials);
if ($pmb_procedure_server_address && (count($pmb_procedure_server_credentials_exploded) == 2)) {
$aremote_procedure_client = new remote_procedure_client($pmb_procedure_server_address, trim($pmb_procedure_server_credentials_exploded[0]), trim($pmb_procedure_server_credentials_exploded[1]));
$procedures = $aremote_procedure_client->get_procs($type);
if ($procedures) {
global $testable_types, $type_titles;
if ($procedures->error_information->error_code) {
$buf_contenu=$msg["remote_procedures_error_server"].":
".$procedures->error_information->error_string."";
print $buf_contenu;
}
else if (isset($procedures->elements)){
$current_set="";
foreach ($procedures->elements as $aprocedure) {
if ($aprocedure->current_attached_set != $current_set) {
$parity=0;
$current_set = $aprocedure->current_attached_set;
$buf_contenu .= '
'.htmlentities($msg["remote_procedures_procedure_parameters_name"],ENT_QUOTES, $charset).' | '.htmlentities($msg["remote_procedures_procedure_parameters_title"],ENT_QUOTES, $charset).' | '.htmlentities($msg["remote_procedures_procedure_parameters_type"],ENT_QUOTES, $charset).' | '.htmlentities($msg["remote_procedures_procedure_parameters"],ENT_QUOTES, $charset).' | |||||
---|---|---|---|---|---|---|---|---|
'.htmlentities($parametername,ENT_QUOTES, $charset).' | '; $parameters_display .= ''.htmlentities($parameter["title"]['value'],ENT_QUOTES, $charset).' | '; $parameters_display .= ''.htmlentities($type_list[$parameter["type"]["value"]],ENT_QUOTES, $charset).' | '; switch ($parameter["type"]["value"]) { case "query_list": $parameters_display .= '
| ';
break;
case "text":
$parameters_display .= '
| ';
break;
case "list":
$parameters_display .= '
| ';
break;
case "date_box":
$parameters_display .= '
| ';
break;
case "file_box":
$parameters_display .= '
| ';
break;
default:
break;
}
$parameters_display .= '