his-api.css 04.10.2016 199 Byte

.modal-dialog {
height: 90%;
}
.modal-content {
height: 100%;
border-radius: 0;
margin:0px;
padding:0px;
}
.modal-body {
height: 100%;
border-radius: 0;
margin:0px;
padding:0px;
}
his-api.js 10.07.2018 1.43 KB
<!-- Script zum dynamischen einbinden des API Frames -->

var domain = 'https://blenda.online-stellenmarkt.net/vam-api.php';
var form = '?doc=vam-api-formular&id=';
var sel_id = 0;

img_ok = '<img src="styles/vam-api-style/images/ba_no.png" title="Job für Die Bundesagentur für Arbeit optimieren" width="25"></a>';
img_no = '<img src="styles/vam-api-style/images/ba_act.png" title="Job wurde an die Bundesagentur für Arbeit übertragen" width="25"></a>';
img_er = '<img src="styles/vam-api-style/images/ba_fehler.png" title="Fehler beim Senden an die Bundesagentur" width="25"></a>';


function popup ( obj ) {
sel_id = obj.dataset.id;
obj.id = obj.dataset.id + 'button';
target = domain + form + sel_id;
title = 'Job ( '+ sel_id +' ) an die BA senden';
iframe = '<iframe src="'+target+'" width="100%" height="100%" style="height:100%; border:none; margin:0px" />';
document.getElementById('popup-title').innerHTML = title;
document.getElementById('popup-body').innerHTML = iframe;
jQuery("#popup").modal();
}

<!-- Tauscht Button aus -->
jQuery( document ).ready(function() {
jQuery('#popup').on('hidden.bs.modal', function () {
obj = document.getElementById ( sel_id + 'button' );
sync = Math.round ( 100000 * ( Math.random ( ) ) ) + 10000;
jQuery.get( domain + '?doc=vam-api-ajax&id=' + sel_id + '&sync=' + sync, function ( data ) {
data = data.trim();
obj.innerHTML = img_no;
if ( data == 'ok' ) obj.innerHTML = img_ok;
if ( data == 'er' ) obj.innerHTML = img_er;
});
});
});

his-api.php 04.10.2016 562 Byte
<!-- Popup Modal ohne Daten -->
<div id="popup" class="modal fade popup" tabindex="-1" role="dialog">
<div class="modal-dialog modal-lg">

<table style="width:100%; height:100%; background:white">
<tr>
<td height="50">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">x</button>
<h5 id="popup-title" class="modal-title"></h5>
</div>
</td>
</tr>
<tr>
<td valign="top" height="100%">
<div class="modal-body" id="popup-body">

</div>
</td>
</tr>
</table>

</div>
</div>
install.txt 04.10.2016 140 Byte
<link rel="stylesheet" href="vam-api/his-api.css">

<script src="vam-api/his-api.js"></script>

<?php include ( 'vam-api/his-api.php' ) ?>

response.txt 04.10.2016 135 Byte
http://wp1023221.server-he.de/jobtool_work/interface/ba/jobs_hrba_ok.php?id={id}&status={status}

1 = ok
2 = gelöscht
3 = fehler