当前位置: 首页>>代码示例>>PHP>>正文


PHP Evento::getData方法代码示例

本文整理汇总了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 {
开发者ID:alencarmo,项目名称:OCF,代码行数:31,代码来源:lst_detevento.php

示例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());
}
?>
">
开发者ID:alencarmo,项目名称:OCF,代码行数:30,代码来源:frm_cadeventos.php

示例3: Evento

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 
开发者ID:alencarmo,项目名称:OCF,代码行数:31,代码来源:frm_fotoseve.php


注:本文中的Evento::getData方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。