<?php /** * $Id$ * * @category Bloc * @package Mediboard * @author SARL OpenXtrem <*****@*****.**> * @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html * @version $Revision$ * @link http://www.mediboard.org */ CCanDo::checkEdit(); $miner = new CDailySalleOccupation(); mbTrace($miner->countUnmined(), "unmined"); mbTrace($miner->countUnremined(), "un-remined"); mbTrace($miner->countUnpostmined(), "un-postmined"); $smarty = new CSmartyDP(); $smarty->display("inc_mine_salle.tpl");
<?php $date = CValue::post("date"); $salle_id = CValue::post("salle_id"); $salle_mine = new CDailySalleOccupation(); $salle_mine->mine($salle_id, $date); if ($msg = $salle_mine->store()) { CAppUI::setMsg($msg, UI_MSG_ERROR); } else { CAppUI::setMsg("CDailySalleOccupation-msg-create"); } echo CAppUI::getMsg(); CApp::rip();