64 lines
3.5 KiB
PHP
64 lines
3.5 KiB
PHP
<?php
|
|
/*************************************************************************************/
|
|
/* */
|
|
/* Plugin pour Thelia */
|
|
/* */
|
|
/* Alerte stock par produit */
|
|
/* Version 1.1 */
|
|
/* */
|
|
/* Copyright (c) Informatique Prog */
|
|
/* email : contact@informatiqueprog.net */
|
|
/* */
|
|
/* This program is free software; you can redistribute it and/or modify */
|
|
/* it under the terms of the GNU General Public License as published by */
|
|
/* the Free Software Foundation; either version 2 of the License, or */
|
|
/* (at your option) any later version. */
|
|
/* */
|
|
/* This program is distributed in the hope that it will be useful, */
|
|
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
|
|
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
|
|
/* GNU General Public License for more details. */
|
|
/* */
|
|
/* You should have received a copy of the GNU General Public License */
|
|
/* along with this program; if not, write to the Free Software */
|
|
/* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
|
/* */
|
|
/*************************************************************************************/
|
|
include_once(realpath(dirname(__FILE__)) . "/../../../fonctions/authplugins.php");
|
|
autorisation("alertstockprod");
|
|
|
|
include_once(realpath(dirname(__FILE__)) . "/Alertstockprod.class.php");
|
|
|
|
/*
|
|
* CONFIG
|
|
*/
|
|
$nomModule = "alertstockprod";
|
|
$urlPage = "module.php?nom=$nomModule";
|
|
|
|
?>
|
|
<script type="text/javascript" src="../lib/jquery/jquery.js"></script>
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
function sendMail(){
|
|
$('#resultAlerte').html('Traitement en cours...');
|
|
$('#resultAlerte').load('../client/plugins/alertstockprod/cron_alertstockprod.php', function() {
|
|
alert('terminé !');
|
|
});
|
|
}
|
|
//]]>
|
|
</script>
|
|
<div id="contenu_int">
|
|
<p align="left">
|
|
<a class="lien04" href="accueil.php">Accueil </a> <img src="gfx/suivant.gif" border="0" width="12" height="9">
|
|
<a href="module_liste.php" class="lien04" >Liste des modules</a> <img src="gfx/suivant.gif" border="0" width="12" height="9">
|
|
<a href="<?php echo $urlPage; ?>" class="lien04">Gestion des alertes stock par produit</a>
|
|
</p>
|
|
<div class="entete_liste_config" style="border-bottom: 1px solid #9DACB6;">
|
|
<div class="titre">Alertes stock par produit</div>
|
|
</div>
|
|
<p> </p>
|
|
<p align="center"><a href="#" id="alertstockprod" onclick="sendMail();">Envoyer le mail contenant les alertes stock</a></p>
|
|
<p> </p>
|
|
<p align="center" id="resultAlerte"> </p>
|
|
<p> </p>
|
|
</div>
|