本文整理汇总了PHP中Evento::getData方法的典型用法代码示例。如果您正苦于以下问题:PHP Evento::getData方法的具体用法?PHP Evento::getData怎么用?PHP Evento::getData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Evento
的用法示例。
在下文中一共展示了Evento::getData方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: str_replace
<?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 {
示例2: date
<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());
}
?>
">
示例3: Evento
include "vlogin.php";
?>
<span id="titform">
<a href="menu_admin.php">Administraçã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