} // echo("<h1>".date("Y/m/d",time() + $dt)."</h1>"); $r = new Reuniao(0); $r->setData(date("Y/m/d", time() + $dt)); $r->setLocal("Posto Mario Roberto"); $r->setHora("15:30"); $r->Grava(); } ?> <div class="painel"> <div class="LeftCorner"> </div> <div class="TitPainel">.:: Reunião Semanal ::.</div> <div class="RightCorner"> </div> <div class="corpo"> <?php $dw = array("Domingo", "Segunda-feira", "Terça-feira", "Quarta-feira", "Quinta-feira", "Sexta-feira", "Sábado"); foreach ($lst as $e) { $enq = new Reuniao($e['id']); echo "<center><h5>" . $dw[date('w', $enq->getData())] . "</h5></center>"; echo "<center> »" . date('d/m/Y', $enq->getData()) . " - " . date('H:i', $enq->getHora()) . "hs" . chr(171) . "</center>"; echo "<br>"; echo "<b>Local: </b>" . $enq->getLocal(); echo "<br>"; echo "<br>"; } ?> </div> </div>
<body onLoad="document.getElementById('dia').focus();"> <form method="post" action="prc_cadreuniao.php" name="frm_cadreuniao" id="frm_cadreuniao" > <table id="tabform" border="0" cellspacing="0" width="440px"> <tr> <td><input type="hidden" name="ID" value="<?php echo $eve->getID(); ?> "></td> </tr> <tr> <td style="font-weight:bold;" width="30%" >Data:</td> </tr> <tr> <td width="70%" > <input tabindex="11" size="2" maxlength="2" style="width:20px;" name="dia" value="<?php if ($numero != 0) { echo date("d", $eve->getData()); } ?> "> / <input tabindex="12" size="2" style="width:20px;" maxlength="2" name="mes" value="<?php if ($numero != 0) { echo date("m", $eve->getData()); } ?> "> / <input tabindex="13" size="4" maxlength="4" style="width:35px;" name="ano" value="<?php if ($numero != 0) { echo date("Y", $eve->getData()); } ?> ">
function substitui_fixo() { $this->setMensagemF($this->getTexto()); $Reuniao = Reuniao::getReunioes("P"); foreach ($Reuniao as $r) { $rn = new Reuniao($r['id']); $this->setMensagemF(str_replace('#dtreuniao#', date('d/m/Y', $rn->getData()), $this->getMensagemF())); $this->setMensagemF(str_replace('#localproximareuniao#', substr($rn->getLocal(), 0, 21), $this->getMensagemF())); $this->setMensagemF(str_replace('#hrr#', date('H:i', $rn->getHora()), $this->getMensagemF())); } }