示例#1
0
		<input tabindex="3" size="4" maxlength="4" style="width:35px;" name="ano" value="<?php 
if ($numero != 0) {
    echo date("Y", $eve->getData());
}
?>
">
		</td>
		</tr>
        <tr><td style="font-weight:bold;" width="30%" >Local:</td> </tr>
        <tr><td width="70%" > <input tabindex="4" size="60" maxlength="60" name="local" value="<?php 
echo $eve->getLocal();
?>
"></td> </tr>
        <tr><td colspan=2 style="font-weight:bold;" width="30%" >Descrição do Evento:</td>	</tr>
        <tr><td colspan=2><textarea tabindex="5" maxlength="1024" name="descricao" rows=10 cols=50><?php 
echo $eve->getDescricao();
?>
</textarea></td></tr>
        <?php 
if ($numero == 0) {
    include "botincluir.php";
} else {
    include "botaltexc.php";
}
?>
        </table>
    </form>
	</body>
   <?php 
include "bothome.php";
?>
示例#2
0
<?php

include "sessao.php";
include "head.php";
require_once $_SESSION['DOCROOT'] . "/classes/class.evento.php";
$ID = $_GET['evento'];
$PG = $_GET['PG'];
$eve = new Evento($ID);
echo '<span class="titusr">Evento ' . $eve->getLocal() . ' dia ' . date("d/m/Y", $eve->getData()) . '</span>';
include "traco.php";
?>
 <table  id="detmembro">
  <tr><td style="border:1px; border-style:solid; border-color:#000099;"><dd><?php 
echo str_replace(chr(13) . chr(10), "<br><dd>", $eve->getDescricao());
?>
</td></tr>
  <tr style="font-weight:bold;"><td colspan=2>Fotos:</td></tr>
  <?php 
$pasta = sprintf("./eventos/%06d/", $ID);
$ini = $PG * 12 - 12 + 2;
$max = $PG * 12 + 2;
// echo ('<tr><td>ini= '.$ini.' max= '.$max.'</td></tr>');
echo '  <tr style="font-weight:bold;"><td colspan=2 style="border:1px; border-style:solid; border-color:#000099;"><table>';
if (is_dir($pasta)) {
    $fotos = scandir($pasta);
    if (count($fotos) < $max) {
        $max = count($fotos);
    }
    if (count($fotos) < 3) {
        echo "Nenhuma foto cadastrada para esse membro.";
    } else {