Example #1
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 {
Example #2
0
<body onLoad="document.getElementById('dia').focus();">
	<form method="post" action="prc_cadeventos.php" name="frm_cadeventos" id="frm_cadeventos" >
	  <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="1" size="2" maxlength="2" style="width:20px;" name="dia" value="<?php 
if ($numero != 0) {
    echo date("d", $eve->getData());
}
?>
"> /
		<input tabindex="2" size="2" style="width:20px;" maxlength="2" name="mes" value="<?php 
if ($numero != 0) {
    echo date("m", $eve->getData());
}
?>
"> /
		<input tabindex="3" size="4" maxlength="4" style="width:35px;" name="ano" value="<?php 
if ($numero != 0) {
    echo date("Y", $eve->getData());
}
?>
">
Example #3
0
include "vlogin.php";
?>

<span id="titform">
   <a href="menu_admin.php">Administra&ccedil;&atilde;o</a> ->
   <a href="lst_cadeventos.php">Cadastro de Eventos</a>
</span>
<?php 
include "traco.php";
require_once $_SESSION['DOCROOT'] . "/classes/class.evento.php";
$ID = $_GET['ID'];
$eve = new Evento($ID);
?>
  
 <span class="titusr">Fotos do Evento em <?php 
echo $eve->getLocal() . " dia " . date("d/m/Y", $eve->getData());
?>
</span>
      
<table class="fotosusr">
<?php 
$max = 12;
$pasta = sprintf("./eventos/%06d/", $ID);
formulario($eve);
$qtfotos = mostrafoto($pasta, $eve);
if ($qtfotos == 0) {
    semfoto();
}
?>
</table> 
<?php