36 lines
957 B
PHP
36 lines
957 B
PHP
<?php
|
|
use Glpi\Event;
|
|
include ('../model_controller/articles.list.php');
|
|
|
|
Session::checkLoginUser();
|
|
//Html::redirect($CFG_GLPI["root_doc"]."central.php");
|
|
|
|
if (Session::getCurrentInterface() == "helpdesk") {
|
|
Html::helpHeader("DRH", '', $_SESSION["glpiname"]);
|
|
} else {
|
|
Html::header("DRH", '', "", "");
|
|
}
|
|
|
|
|
|
$depots = getDepots();
|
|
echo'<select id="fam" name="Famille">';
|
|
echo '<option value="" selected>TOUS LES DEPOTS</option>';
|
|
foreach($depots as $depot) {
|
|
echo '<option value="'.$depot['DEP_CODE'].'">'.$depot['DEP_NOM'].'</option>';
|
|
}
|
|
echo "</select>
|
|
|
|
<a id='link' href=''>Exporter Par depot</a>";
|
|
|
|
?>
|
|
<script>
|
|
$("#fam").on("change", function () {
|
|
|
|
var holder = document.getElementById("link");
|
|
var v = this.value
|
|
if(v == "")
|
|
v = "all"
|
|
holder.innerHTML = holder.setAttribute('href', "qrcode.pdf.php?bulk="+v+"&bystock=1");
|
|
holder.innerHTML = "EXPORTER PAR DEPOTS";
|
|
});
|
|
</script>
|