[Alba-desarrollo] SVN Alba r4749 - in
prosistem/alba/trunk/alba/apps/principal/modules/icalVisualizador:
actions templates
commits en pressenter.com.ar
commits en pressenter.com.ar
Vie Jun 15 21:27:58 CEST 2007
Author: josx
Date: 2007-06-15 16:27:57 -0300 (Fri, 15 Jun 2007)
New Revision: 4749
Added:
prosistem/alba/trunk/alba/apps/principal/modules/icalVisualizador/templates/_verPorSemana.php
Modified:
prosistem/alba/trunk/alba/apps/principal/modules/icalVisualizador/actions/actions.class.php
prosistem/alba/trunk/alba/apps/principal/modules/icalVisualizador/actions/components.class.php
prosistem/alba/trunk/alba/apps/principal/modules/icalVisualizador/templates/_verPorDia.php
prosistem/alba/trunk/alba/apps/principal/modules/icalVisualizador/templates/indexSuccess.php
Log:
Se agrego la primera version de visualizacion de calendario por semana
Modified: prosistem/alba/trunk/alba/apps/principal/modules/icalVisualizador/actions/actions.class.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/icalVisualizador/actions/actions.class.php 2007-06-15 18:01:00 UTC (rev 4748)
+++ prosistem/alba/trunk/alba/apps/principal/modules/icalVisualizador/actions/actions.class.php 2007-06-15 19:27:57 UTC (rev 4749)
@@ -20,9 +20,27 @@
*/
public function executeIndex()
{
-// $this->date_component = "20070407";
+
+ $date = $this->getRequestParameter("date");
+ $view = $this->getRequestParameter("view");
+
+ if(!$date) {
+ $this->date_component="20070404";
+ } else {
+ $this->date_component = $date;
+ }
+
+ switch($view) {
+ case "day": $this->view = "verPorDia"; break;
+ case "week": $this->view = "verPorSemana"; break;
+ case "month": $this->view = "verPorDia"; break;
+ case "year": $this->view = "verPorDia"; break;
+ default: $this->view = "verPorDia";
+ }
+
+
$this->archivo = "/tmp/pepe.ics";
- $this->date_component="20070404";
+
}
Modified: prosistem/alba/trunk/alba/apps/principal/modules/icalVisualizador/actions/components.class.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/icalVisualizador/actions/components.class.php 2007-06-15 18:01:00 UTC (rev 4748)
+++ prosistem/alba/trunk/alba/apps/principal/modules/icalVisualizador/actions/components.class.php 2007-06-15 19:27:57 UTC (rev 4749)
@@ -16,62 +16,39 @@
class icalVisualizadorComponents extends sfComponents
{
- // function to determine maximum necessary columns per day
- // actually an algorithm to get the smallest multiple for two numbers
- private function kgv($a, $b) {
- $x = $a;
- $y = $b;
- while ($x != $y) {
- if ($x < $y) $x += $a;
- else $y += $b;
- }
- return $x;
- }
-
-
public function executeVerPorDia() {
-// $aWeek = array('Domingo','Lunes','Martes'.'Miercoles','Jueves','Viernes','Sabado');
$aAllDay = array();
- $aTime = array();
- $aEvent = array();
-
$minutes = 60;
- $time_start = "7:00";
- $time_end = "23:00";
+ require(sfConfig::get('sf_app_module_dir')."/icalVisualizador/".sfConfig::get('sf_app_module_lib_dir_name')."/ical_parser.php");
+ $aEvent = @icalToArray($this->archivo);
- if(!$this->getRequestParameter('date')) {
- if($this->date_component) {
- $date = $this->date_component;
- } else {
- $date = date("Ymd");
+ $nbrGridCols = 1;
+ foreach($aEvent as $day) {
+ foreach($day as $time) {
+ foreach($time as $event) {
+ $nbrGridCols = $this->kgv($nbrGridCols, ($event['event_overlap'] + 1));
+ }
}
- } else {
- $date = $this->getRequestParameter('date');
}
- $unix_time = strtotime($date);
+ $date = $this->getDate();
+ $this->aWeek = $this->getWeekRange($date);
+ $this->aTime = $this->getTimeRange();
+ $this->nbrGridCols = $nbrGridCols;
+ $this->aEvent = $aEvent;
+ $this->aAllDay = $aAllDay;
+ $this->l_calendar = "";
+ $this->calendar_name = "XXXX";
+ $this->date = strtotime($date);
+ }
- $day_of_week = date("w", $unix_time); // get number of the day of the week
- $day_start_of_week = $unix_time - ($day_of_week * 86400); // get the starts day the of this week
- $day_end_of_week = $day_start_of_week + (7 * 86400); // get the end day the of this week
- for($day= $day_start_of_week; $day < $day_end_of_week; $day += 86400) {
- $aWeek[] = array ( 'day' => $day );
- }
+ public function executeVerPorSemana() {
- // get all time between time_start and time_end
- for($time = strtotime($time_start), $max_time = strtotime($time_end) ; $time < $max_time; $time += (15*60)) {
- $aTime[] = $time;
- }
-
-
require(sfConfig::get('sf_app_module_dir')."/icalVisualizador/".sfConfig::get('sf_app_module_lib_dir_name')."/ical_parser.php");
-
-
$aEvent = @icalToArray($this->archivo);
-
$nbrGridCols = 1;
foreach($aEvent as $day) {
foreach($day as $time) {
@@ -82,15 +59,74 @@
}
$this->nbrGridCols = $nbrGridCols;
+ $date = $this->getDate();
$this->aEvent = $aEvent;
- $this->aWeek = $aWeek;
- $this->aAllDay = $aAllDay;
+ $this->aWeek = $this->getWeekRange($date);
+ $this->aTime = $this->getTimeRange();
$this->l_calendar = "";
$this->calendar_name = "XXXX";
- $this->date = $unix_time;
- $this->aTime = $aTime;
+ $this->date = strtotime($date);
+ $this->day_end_of_week = $this->aWeek[6]['day'];
+ $this->day_start_of_week = $this->aWeek[0]['day'];
}
+
+
+
+
+
+ private function getTimeRange() {
+ $aTime = array();
+ $time_start = "7:00";
+ $time_end = "23:00";
+
+ // get all time between time_start and time_end
+ for($time = strtotime($time_start), $max_time = strtotime($time_end) ; $time < $max_time; $time += (15*60)) {
+ $aTime[] = $time;
+ }
+ return $aTime;
+ }
+
+ private function getWeekRange($date) {
+ $aWeek = array();
+ $unix_time = strtotime($date);
+ $day_of_week = date("w", $unix_time); // get number of the day of the week
+ $day_start_of_week = $unix_time - ($day_of_week * 86400); // get the starts day the of this week
+ $day_end_of_week = $day_start_of_week + (7 * 86400); // get the end day the of this week
+ for($day= $day_start_of_week; $day < $day_end_of_week; $day += 86400) {
+ $aWeek[] = array ( 'day' => $day );
+ }
+ return $aWeek;
+ }
+
+ // function to determine maximum necessary columns per day
+ // actually an algorithm to get the smallest multiple for two numbers
+ private function kgv($a, $b) {
+ $x = $a;
+ $y = $b;
+ while ($x != $y) {
+ if ($x < $y) $x += $a;
+ else $y += $b;
+ }
+ return $x;
+ }
+
+
+ private function getDate() {
+ if(!$this->getRequestParameter('date')) {
+ if($this->date_component) {
+ $date = $this->date_component;
+ } else {
+ $date = date("Ymd");
+ }
+ } else {
+ $date = $this->getRequestParameter('date');
+ }
+ return $date;
+ }
+
+
+
+
}
-
?>
\ No newline at end of file
Modified: prosistem/alba/trunk/alba/apps/principal/modules/icalVisualizador/templates/_verPorDia.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/icalVisualizador/templates/_verPorDia.php 2007-06-15 18:01:00 UTC (rev 4748)
+++ prosistem/alba/trunk/alba/apps/principal/modules/icalVisualizador/templates/_verPorDia.php 2007-06-15 19:27:57 UTC (rev 4749)
@@ -18,10 +18,10 @@
<div style="padding-top: 3px;">
<table width="120" border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
- <td><a class="psf" href="?cal={CAL}&getdate={GETDATE}"><img src="<?php echo sfContext::getInstance()->getRequest()->getRelativeUrlRoot()?>/icalVisualizador/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
- <td><a class="psf" href="week.php?cal={CAL}&getdate={GETDATE}"><img src="<?php echo sfContext::getInstance()->getRequest()->getRelativeUrlRoot()?>/icalVisualizador/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
- <td><a class="psf" href="month.php?cal={CAL}&getdate={GETDATE}"><img src="<?php echo sfContext::getInstance()->getRequest()->getRelativeUrlRoot()?>/icalVisualizador/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
- <td><a class="psf" href="year.php?cal={CAL}&getdate={GETDATE}"><img src="<?php echo sfContext::getInstance()->getRequest()->getRelativeUrlRoot()?>/icalVisualizador/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
+ <td><a class="psf" href="?view=day&date=<?php echo date("Ymd",$date)?>"><img src="<?php echo sfContext::getInstance()->getRequest()->getRelativeUrlRoot()?>/icalVisualizador/images/day_on.gif" alt="día" border="0" /></a></td>
+ <td><a class="psf" href="?view=week&date=<?php echo date("Ymd",$date)?>"><img src="<?php echo sfContext::getInstance()->getRequest()->getRelativeUrlRoot()?>/icalVisualizador/images/week_on.gif" alt="semana" border="0" /></a></td>
+ <td><a class="psf" href="?view=month&date=<?php echo date("Ymd",$date)?>"><img src="<?php echo sfContext::getInstance()->getRequest()->getRelativeUrlRoot()?>/icalVisualizador/images/month_on.gif" alt="mes" border="0" /></a></td>
+ <td><a class="psf" href="?view=year&date=<?php echo date("Ymd",$date)?>"><img src="<?php echo sfContext::getInstance()->getRequest()->getRelativeUrlRoot()?>/icalVisualizador/images/year_on.gif" alt="año" border="0" /></a></td>
</tr>
</table>
</div>
@@ -31,7 +31,7 @@
<td colspan="2">
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
- <td align="left" valign="top" width="20" class="rowOff2" onmouseover="this.className='rowOn2'" onmouseout="this.className='rowOff2'" onclick="window.location.href='?cal={CAL}&date=<?php echo date('Ymd', strtotime("-1 day", $date))?>'"><span class="V12"><a class="psf" href="?cal={CAL}&date=<?php echo date('Ymd', strtotime("-1 day", $date))?>">«</a></span>
+ <td align="left" valign="top" width="20" class="rowOff2" onmouseover="this.className='rowOn2'" onmouseout="this.className='rowOff2'" onclick="window.location.href='?view=day&date=<?php echo date('Ymd', strtotime("-1 day", $date))?>'"><span class="V12"><a class="psf" href="?view=day&date=<?php echo date('Ymd', strtotime("-1 day", $date))?>">«</a></span>
</td>
<?php
@@ -39,13 +39,13 @@
$day_of_week = date('w', $date);
foreach($aWeek as $week) {
?>
- <td width="14%" align="center" class="<?php echo ($i == $day_of_week)?'rowToday':'rowOff';?>" onmouseover="this.className='rowOn'" onmouseout="this.className='<?php echo ($i == $day_of_week)?'rowToday':'rowOff';?>'" onclick="window.location.href='?cal={CAL}&date=<?php echo date('Ymd',$week['day'])?>'"><span class="V9BOLD"><a class="ps3" href="?cal={CAL}&date=<?php echo date('Ymd',$week['day'])?>"><?php echo date('F j, Y',$week['day'])?></a></span>
+ <td width="14%" align="center" class="<?php echo ($i == $day_of_week)?'rowToday':'rowOff';?>" onmouseover="this.className='rowOn'" onmouseout="this.className='<?php echo ($i == $day_of_week)?'rowToday':'rowOff';?>'" onclick="window.location.href='?view=day&date=<?php echo date('Ymd',$week['day'])?>'"><span class="V9BOLD"><a class="ps3" href="?view=day&date=<?php echo date('Ymd',$week['day'])?>"><?php echo date('F j, Y',$week['day'])?></a></span>
</td>
<?php $i++;
}
?>
- <td align="right" valign="top" width="20" class="rowOff" onmouseover="this.className='rowOn'" onmouseout="this.className='rowOff'" onclick="window.location.href='?cal={CAL}&date=<?php echo date('Ymd', strtotime("+1 day", $date))?>'"><span class="V12"><a class="psf" href="?cal={CAL}&date=<?php echo date('Ymd', strtotime("+1 day", $date))?>">»</a></span>
+ <td align="right" valign="top" width="20" class="rowOff" onmouseover="this.className='rowOn'" onmouseout="this.className='rowOff'" onclick="window.location.href='?view=day&date=<?php echo date('Ymd', strtotime("+1 day", $date))?>'"><span class="V12"><a class="psf" href="?view=day&date=<?php echo date('Ymd', strtotime("+1 day", $date))?>">»</a></span>
</td>
</tr>
</table>
@@ -65,7 +65,7 @@
</tr>
<tr>
- <td align="center" valign="top">
+ <td align="center" valign="top" colspan="3">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<?php
$date_ymd = date("Ymd", $date);
@@ -100,8 +100,6 @@
<td colspan="<?php echo $nbrGridCols?>" class="dayborder2"> </td>
</tr>
<?php
-// Cuando tiene eventos superpuestos el max es el colspan de las horas que no tienen eventos ( default 1)
-// Pero cada uno de los que tiene evento tiene si es despues de en punto el que traia pero luego debe ser el
} else {
for($j=0;$j<4;$j++) {
if($j!=0) {
@@ -139,7 +137,7 @@
<?php
} else {
?>
-<!-- <td colspan="<?php echo $nbrGridCols?>" class="dayborder<?php echo ($j%2==0)?'':'2'?>"> </td>-->
+ <!--<td colspan="<?php echo $nbrGridCols?>" class="dayborder<?php echo ($j%2==0)?'':'2'?>"> </td>-->
</tr>
<?
}
Added: prosistem/alba/trunk/alba/apps/principal/modules/icalVisualizador/templates/_verPorSemana.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/icalVisualizador/templates/_verPorSemana.php 2007-06-15 18:01:00 UTC (rev 4748)
+++ prosistem/alba/trunk/alba/apps/principal/modules/icalVisualizador/templates/_verPorSemana.php 2007-06-15 19:27:57 UTC (rev 4749)
@@ -0,0 +1,208 @@
+<link rel="stylesheet" type="text/css" href="<?php echo sfContext::getInstance()->getRequest()->getRelativeUrlRoot()?>/icalVisualizador/css/icalVisualizador.css"/>
+
+<center>
+<div id="icalVisualizador">
+ <table border="0" width="770" cellspacing="0" cellpadding="0">
+ <tr>
+ <td width="610" valign="top">
+ <table width="610" border="0" cellspacing="0" cellpadding="0" class="calborder">
+ <tr>
+ <td align="center" valign="middle">
+ <table width="100%" border="0" cellspacing="0" cellpadding="0">
+ <tr valign="top">
+ <td align="left" width="490" class="title"><h1><?php echo date("F j, Y", $day_start_of_week);?> - <?php echo date("F j, Y", $day_end_of_week);?></h1><span class="V9G"><?php echo $calendar_name?> <?php echo $l_calendar?></span></td>
+ <td valign="top" align="right" width="120" class="navback">
+ <div style="padding-top: 3px;">
+ <table width="120" border="0" cellpadding="0" cellspacing="0">
+ <tr valign="top">
+ <td><a class="psf" href="?view=day&date=<?php echo date("Ymd",$date)?>"><img src="<?php echo sfContext::getInstance()->getRequest()->getRelativeUrlRoot()?>/icalVisualizador/images/day_on.gif" alt="día" border="0" /></a></td>
+ <td><a class="psf" href="?view=week&date=<?php echo date("Ymd",$date)?>"><img src="<?php echo sfContext::getInstance()->getRequest()->getRelativeUrlRoot()?>/icalVisualizador/images/week_on.gif" alt="semana" border="0" /></a></td>
+ <td><a class="psf" href="?view=month&date=<?php echo date("Ymd",$date)?>"><img src="<?php echo sfContext::getInstance()->getRequest()->getRelativeUrlRoot()?>/icalVisualizador/images/month_on.gif" alt="mes" border="0" /></a></td>
+ <td><a class="psf" href="?view=year&date=<?php echo date("Ymd",$date)?>"><img src="<?php echo sfContext::getInstance()->getRequest()->getRelativeUrlRoot()?>/icalVisualizador/images/year_on.gif" alt="año" border="0" /></a></td>
+ </tr>
+ </table>
+ </div>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <table width="100%" border="0" cellspacing="0" cellpadding="0" class="G10B">
+ <tr>
+ <td align="center" valign="top">
+ <table width="100%" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+
+
+ <td align="left" valign="top" width="15" class="rowOff2" onmouseover="this.className='rowOn2'" onmouseout="this.className='rowOff2'" onclick="window.location.href='?view=week&date=<?php echo date('Ymd', strtotime("-1 day", $day_start_of_week))?>'">
+ <div class="V12"> <a class="psf" href="?view=week&date=<?php echo date('Ymd', strtotime("-1 day", $day_start_of_week))?>">«</a></div>
+ </td>
+
+
+ <td align="left" valign="top" width="15" class="rowOff" onmouseover="this.className='rowOn'" onmouseout="this.className='rowOff'" onclick="window.location.href='?view=week&date=<?php echo date('Ymd', strtotime("-1 day", $date))?>'">
+
+ <div class="V12"> <a class="psf" href="?view=week&date=<?php echo date('Ymd', strtotime("-1 day", $date))?>">‹</a></div>
+ </td>
+
+ <td align="right" valign="top" width="15" class="rowOff" onmouseover="this.className='rowOn'" onmouseout="this.className='rowOff'" onclick="window.location.href='?view=week&date=<?php echo date('Ymd', strtotime("+1 day", $date))?>'">
+ <div class="V12"><a class="psf" href="?view=week&date=<?php echo date('Ymd', strtotime("+1 day", $date))?>">›</a> </div>
+ </td>
+
+ <td align="right" valign="top" width="15" class="rowOff" onmouseover="this.className='rowOn'" onmouseout="this.className='rowOff'" onclick="window.location.href='?view=week&date=<?php echo date('Ymd', strtotime("+1 day", $day_end_of_week))?>'">
+ <div class="V12"><a class="psf" href="?view=week&date=<?php echo date('Ymd', strtotime("+1 day", $day_end_of_week))?>">»</a> </div>
+ </td>
+
+ <td width="1"></td>
+ <?php
+ $i=0;
+ $day_of_week = date('w', $date);
+ foreach($aWeek as $week) {
+ ?> <!-- Aca va el colspan dinamico-->
+ <td width="80" colspan="1" align="center" class="<?php echo ($i == $day_of_week)?'rowToday':'rowOff';?>" onmouseover="this.className='rowOn'" onmouseout="this.className='<?php echo ($i == $day_of_week)?'rowToday':'rowOff';?>'" onclick="window.location.href='?view=day&date=<?php echo date('Ymd',$week['day'])?>'">
+ <a class="ps3" href="?view=day&date=<?php echo date('Ymd',$week['day'])?>"><span class="V9BOLD"><?php echo date('F j, Y',$week['day'])?></span></a>
+ </td>
+ <?php
+ $i++;
+ }
+ ?>
+ </tr>
+-
+ <tr valign="top" id="allday">
+ <td width="60" class="rowOff2" colspan="4"><img src="images/spacer.gif" width="60" height="1" alt=" " /></td>
+ <td width="1"></td>
+ <?php
+ $i=0;
+ $day_of_week = date('w', $date);
+ foreach($aWeek as $week) {
+ ?> <!-- Aca va el colspan dinamico-->
+ <td width="80" colspan="1" class="rowOff"><!-- <div class="alldaybg_{CALNO}"> {ALLDAY} <img src="images/spacer.gif" width="80" height="1 alt=" " /></div>--></td>
+ <?php
+ $i++;
+ }
+ ?>
+ </tr>
+
+ <?php
+ $date_ymd = date("Ymd", $date);
+ for($i = 0, $max = count($aTime); $i < $max; $i += 4) {
+ $time_idx0 = date("Gi",$aTime[$i]);
+ $time_idx1 = date("Gi",$aTime[($i+1)]);
+ $time_idx2 = date("Gi",$aTime[($i+2)]);
+ $time_idx3 = date("Gi",$aTime[($i+3)]);
+
+ if(!( array_key_exists($date_ymd, $aEvent) AND
+ (array_key_exists($time_idx0, $aEvent[$date_ymd]) OR
+ array_key_exists($time_idx1, $aEvent[$date_ymd]) OR
+ array_key_exists($time_idx2, $aEvent[$date_ymd]) OR
+ array_key_exists($time_idx3, $aEvent[$date_ymd]))
+ )) {
+ ?>
+ <tr>
+ <td colspan="4" rowspan="4" align="center" valign="top" width="60" class="timeborder"><?php echo date("H:i A",$aTime[$i])?></td>
+ <td bgcolor="#a1a5a9" width="1" height="15"></td>
+ <td width="40" colspan="1" class="weekborder"> </td>
+ <td width="40" colspan="1" class="weekborder"> </td>
+ <td width="40" colspan="1" class="weekborder"> </td>
+ <td width="40" colspan="1" class="weekborder"> </td>
+ <td width="40" colspan="1" class="weekborder"> </td>
+ <td width="40" colspan="1" class="weekborder"> </td>
+ <td width="40" colspan="1" class="weekborder"> </td>
+ </tr>
+
+ <tr>
+ <td bgcolor="#a1a5a9" width="1" height="15"></td><td width="80" colspan="1" class="weekborder"> </td>
+ <td width="80" colspan="1" class="weekborder"> </td>
+ <td width="80" colspan="1" class="weekborder"> </td>
+ <td width="80" colspan="1" class="weekborder"> </td>
+ <td width="80" colspan="1" class="weekborder"> </td>
+ <td width="80" colspan="1" class="weekborder"> </td>
+ <td width="80" colspan="1" class="weekborder"> </td>
+ </tr>
+ <tr>
+ <td bgcolor="#a1a5a9" width="1" height="15"></td>
+ <td width="80" colspan="1" class="weekborder"> </td>
+ <td width="80" colspan="1" class="weekborder"> </td>
+ <td width="80" colspan="1" class="weekborder"> </td>
+ <td width="80" colspan="1" class="weekborder"> </td>
+ <td width="80" colspan="1" class="weekborder"> </td>
+ <td width="80" colspan="1" class="weekborder"> </td>
+ <td width="80" colspan="1" class="weekborder"> </td>
+ </tr>
+ <tr>
+ <td bgcolor="#a1a5a9" width="1" height="15"></td>
+ <td width="80" colspan="1" class="weekborder"> </td>
+ <td width="80" colspan="1" class="weekborder"> </td>
+ <td width="80" colspan="1" class="weekborder"> </td>
+ <td width="80" colspan="1" class="weekborder"> </td>
+ <td width="80" colspan="1" class="weekborder"> </td>
+ <td width="80" colspan="1" class="weekborder"> </td>
+ <td width="80" colspan="1" class="weekborder"> </td>
+ </tr>
+ <?php
+ } else {
+ for($j=0;$j<4;$j++) {
+ if($j!=0) {
+ ?>
+ <tr>
+ <td width="80" colspan="1" class="weekborder"> </td>
+
+ <?php } else { ?>
+
+ <tr>
+ <td colspan="4" rowspan="4" align="center" valign="top" width="60" class="timeborder"><?php echo date("H:i A",$aTime[$i])?></td><td bgcolor="#a1a5a9" width="1" height="15"></td>
+
+ <?php }
+ $var_time_idx = "time_idx".$j;
+ if(array_key_exists($$var_time_idx, $aEvent[$date_ymd])) {
+ $k=0;
+ foreach($aEvent[$date_ymd][$$var_time_idx] as $event) {
+ $k++;
+ $rowspan = ceil(($event['event_length'] / 60 ) / 15); // en el array esta en seg lo divido 60 y obtengo min luego divido 15 min (que es una linea de rowspan y obtengo cantidad de lineas hacia abajo a rellenar
+?>
+ <td width="80" rowspan="<?php echo $rowspan?>" colspan="1" align="left" valign="top" class="eventbg2_1">
+ <div class="eventfont">
+ <div class="eventbg_1"><b><?php echo date("H:i A", $event['start_unixtime'])?></b></div>
+ <div class="padd"><a class="ps" title="<?php echo $event['event_text']?>" href="#" onclick="openEventWindow(0); return false;"><?php echo $event['event_text']?></a>
+ </div>
+ </div>
+ </td>
+ <?php }
+ }
+ ?>
+
+ </tr>
+
+ <?php
+ }
+ }
+ }
+ ?>
+
+ </table>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+
+ <table width="100%" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+ <td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+ <td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+ </tr>
+ </table>
+ </td>
+ <td width="10">
+ <img src="images/spacer.gif" width="10" height="1" alt=" " />
+ </td>
+ <td width="170" valign="top">
+ <!-- {SIDEBAR}-->
+ </td>
+ </tr>
+ </table>
+</div>
+</center>
\ No newline at end of file
Property changes on: prosistem/alba/trunk/alba/apps/principal/modules/icalVisualizador/templates/_verPorSemana.php
___________________________________________________________________
Name: svn:keywords
+ "Id Author URL Date Rev"
Modified: prosistem/alba/trunk/alba/apps/principal/modules/icalVisualizador/templates/indexSuccess.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/icalVisualizador/templates/indexSuccess.php 2007-06-15 18:01:00 UTC (rev 4748)
+++ prosistem/alba/trunk/alba/apps/principal/modules/icalVisualizador/templates/indexSuccess.php 2007-06-15 19:27:57 UTC (rev 4749)
@@ -1 +1 @@
-<?php include_component('icalVisualizador', 'verPorDia', array('archivo' => $archivo, 'date_component' => $date_component)) ?>
\ No newline at end of file
+<?php include_component('icalVisualizador', $view , array('archivo' => $archivo, 'date_component' => $date_component)) ?>
\ No newline at end of file
Más información sobre la lista de distribución Alba-desarrollo