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

External SB controller

parent 2e0e4cf8
No related branches found
No related tags found
No related merge requests found
...@@ -2,13 +2,37 @@ ...@@ -2,13 +2,37 @@
$confirm = true; $confirm = true;
$etapes = ['send']; $etapes = ['form'];
function get_form_txt($values, $path_manage_action, $id_action, $table, $module, $coll_id, $mode)
{
if (file_exists("custom/{$_SESSION['custom_override_id']}/modules/visa/xml/remoteSignatoryBooks.xml")) {
$path = "custom/{$_SESSION['custom_override_id']}/modules/visa/xml/remoteSignatoryBooks.xml";
} else {
$path = 'modules/visa/xml/remoteSignatoryBooks.xml';
}
$config = [];
if (file_exists($path)) {
$loadedXml = simplexml_load_file($path);
if ($loadedXml) {
$config['id'] = (string)$loadedXml->signatoryBookEnabled;
}
}
if ($config['id'] == 'ixbus') {
include_once 'modules/visa/class/IxbusController.php';
$html = IxbusController::getModal();
}
return addslashes($html);
}
function manage_send($aId) function manage_send($aId)
{ {
$result = ''; $result = '';
$xmlPostString = '<?xml version="1.0" encoding="utf-8"?> $xmlPostString = '<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body> <soap:Body>
......
<?php
/**
* Copyright Maarch since 2008 under licence GPLv3.
* See LICENCE.txt file at the root folder for more details.
* This file is part of Maarch software.
*
*/
/**
* @brief Ixbus Controller
* @author dev@maarch.org
*/
class IxbusController
{
public static function getModal()
{
$html ='<div align="center">';
$html .='<input type="button" name="cancel" id="cancel" class="button" value="valider"/>';
$html .='<input type="button" name="cancel" id="cancel" class="button" value="annuler"/>';
$html .='</div>';
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