Skip to content
Snippets Groups Projects
Commit 43c75348 authored by Florian Azizian's avatar Florian Azizian
Browse files

remotesignatorybook.xml

parent 82eb81f2
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ $confirm = true; ...@@ -4,7 +4,7 @@ $confirm = true;
$etapes = ['form']; $etapes = ['form'];
function get_form_txt($values, $path_manage_action, $id_action, $table, $module, $coll_id, $mode) 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")) { if (file_exists("custom/{$_SESSION['custom_override_id']}/modules/visa/xml/remoteSignatoryBooks.xml")) {
$path = "custom/{$_SESSION['custom_override_id']}/modules/visa/xml/remoteSignatoryBooks.xml"; $path = "custom/{$_SESSION['custom_override_id']}/modules/visa/xml/remoteSignatoryBooks.xml";
...@@ -24,42 +24,24 @@ function get_form_txt($values, $path_manage_action, $id_action, $table, $module ...@@ -24,42 +24,24 @@ function get_form_txt($values, $path_manage_action, $id_action, $table, $module
include_once 'modules/visa/class/IxbusController.php'; include_once 'modules/visa/class/IxbusController.php';
$html = IxbusController::getModal(); $html = IxbusController::getModal();
} elseif ($config['id'] == 'iParapheur') {
include_once 'modules/visa/class/iParapheurController.php';
$html = iParapheurController::getModal();
} elseif ($config['id'] == 'fastParapheur') {
include_once 'modules/visa/class/fastParapheurController.php';
$html = fastParapheurController::getModal();
} }
return addslashes($html); return addslashes($html);
} }
function manage_send($aId) function manage_form($aId)
{ {
$result = ''; $result = '';
$xmlPostString = '<?xml version="1.0" encoding="utf-8"?> // TODO SEND DATA
<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>
<storeResourceRequest xmlns="http://connecting.website.com/WSDL_Service">
<PRICE>tata</PRICE>
</storeResourceRequest>
</soap:Body>
</soap:Envelope>';
$opts = [
CURLOPT_URL => '',
CURLOPT_HTTPHEADER => [
'content-type:text/xml;charset=\"utf-8\"',
'accept:text/xml',
"Cache-Control: no-cache",
"Pragma: no-cache",
"SOAPAction: \"http://tracmedia.org/InTheLife\""
],
CURLOPT_RETURNTRANSFER => true,
CURLOPT_USERPWD => 'superadmin:superadmin',
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => $xmlPostString
];
$curl = curl_init();
curl_setopt_array($curl, $opts);
$rawResponse = curl_exec($curl);
return ['result' => $result, 'history_msg' => '']; return ['result' => $result, 'history_msg' => ''];
......
<?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 fastParapheur Controller
* @author dev@maarch.org
*/
class fastParapheurController
{
public static function getInitializeDatas()
{
$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:Body>
<storeResourceRequest xmlns="http://connecting.website.com/WSDL_Service">
<PRICE>tata</PRICE>
</storeResourceRequest>
</soap:Body>
</soap:Envelope>';
$opts = [
CURLOPT_URL => '',
CURLOPT_HTTPHEADER => [
'content-type:text/xml;charset=\"utf-8\"',
'accept:text/xml',
"Cache-Control: no-cache",
"Pragma: no-cache",
"SOAPAction: \"http://tracmedia.org/InTheLife\""
],
CURLOPT_RETURNTRANSFER => true,
CURLOPT_USERPWD => 'superadmin:superadmin',
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => $xmlPostString
];
$curl = curl_init();
curl_setopt_array($curl, $opts);
$rawResponse[] = curl_exec($curl);
return $rawResponse;
}
public static function getModal()
{
$initializeDatas = fastParapheurController::getInitializeDatas();
$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;
}
}
<?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 iParapheur Controller
* @author dev@maarch.org
*/
class iParapheurController
{
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