altocompta/include/template/calendar.php
Dany De Bontridder 38972238f8 Merged revisions 2872-2896 via svnmerge from
svn+ssh://danydb@svn/svn/phpcompta/branches/rel500

........
  r2874 | danydb | 2010-01-15 15:52:38 +0100 (Fri, 15 Jan 2010) | 3 lines
  
  The extra info are now available for ledger purchase, opportunity to clean
  code
........
  r2875 | danydb | 2010-01-15 19:51:33 +0100 (Fri, 15 Jan 2010) | 2 lines
  
  Fix bug : in rapport, the from doesn't work, the result is always 0
........
  r2876 | danydb | 2010-01-16 17:17:50 +0100 (Sat, 16 Jan 2010) | 1 line
  
  For Comptabilité->ACH and Comptabilité->VEN add shortcut to printing and customer/supplier
........
  r2877 | danydb | 2010-01-16 17:30:56 +0100 (Sat, 16 Jan 2010) | 2 lines
  
  Action : add search by type of documents
........
  r2878 | danydb | 2010-01-17 00:31:03 +0100 (Sun, 17 Jan 2010) | 1 line
  
  Fix bug : cannot choose a tva rate
........
  r2879 | danydb | 2010-01-20 22:37:11 +0100 (Wed, 20 Jan 2010) | 6 lines
  
  Action
  ======
  add a button for adding a card there is no filter on the category
  You can add whatever you want
........
  r2880 | danydb | 2010-01-21 16:10:57 +0100 (Thu, 21 Jan 2010) | 1 line
  
  Correct stylesheet : todo list 
........
  r2882 | danydb | 2010-01-21 16:15:54 +0100 (Thu, 21 Jan 2010) | 1 line
  
  Change Suivi Courrier by Suivi
........
  r2883 | danydb | 2010-01-21 16:38:42 +0100 (Thu, 21 Jan 2010) | 1 line
  
  Style color is now a copy of style light
........
  r2884 | danydb | 2010-01-22 12:54:57 +0100 (Fri, 22 Jan 2010) | 3 lines
  
  Bug: cannot see all the follow up in the list
  Improve : border orange for today
........
  r2885 | danydb | 2010-01-22 13:03:36 +0100 (Fri, 22 Jan 2010) | 2 lines
  
  Remove debug info
........
  r2886 | danydb | 2010-01-22 13:12:54 +0100 (Fri, 22 Jan 2010) | 2 lines
  
  Fix bug : date order in todo list
........
  r2887 | danydb | 2010-01-22 13:14:02 +0100 (Fri, 22 Jan 2010) | 2 lines
  
  Improve fix order for todo list
........
  r2888 | danydb | 2010-01-22 15:30:39 +0100 (Fri, 22 Jan 2010) | 8 lines
  
  Fix bug : 
  * show all actions (no filter anymore)
  * Show interne if in an action there is no card
  Improve : 
  * todo list highlight today
  * calendar highlight today
            
........
  r2889 | danydb | 2010-01-22 23:21:39 +0100 (Fri, 22 Jan 2010) | 1 line
  
  Improve action : description can be enlarged for big note
........
  r2890 | danydb | 2010-01-22 23:39:28 +0100 (Fri, 22 Jan 2010) | 2 lines
  
  Improve : enlarge if description > 300 char
........
  r2891 | danydb | 2010-01-22 23:40:20 +0100 (Fri, 22 Jan 2010) | 2 lines
  
  improve : big desc if > 300 char
........
  r2892 | danydb | 2010-01-22 23:40:49 +0100 (Fri, 22 Jan 2010) | 1 line
  
  Improve Item forecast = 50
........
  r2893 | danydb | 2010-01-23 17:12:33 +0100 (Sat, 23 Jan 2010) | 1 line
  
  Update Documentation
........
  r2894 | danydb | 2010-01-23 19:36:53 +0100 (Sat, 23 Jan 2010) | 1 line
  
  Fix Bug : unknow tag for document : vent_art_tva_code
........
  r2895 | danydb | 2010-01-23 22:19:29 +0100 (Sat, 23 Jan 2010) | 1 line
  
  Add Example of invoice
........
  r2896 | danydb | 2010-01-23 22:20:22 +0100 (Sat, 23 Jan 2010) | 1 line
  
  Update logo
........
2010-01-23 21:49:50 +00:00

44 lines
930 B
PHP

<div class="pc_calendar" id="user_cal">
<?=$month_year?>
<table width="100%">
<tr>
<?php
for ($i=0;$i<=6;$i++){
echo "<th>";
echo $week[$i];
echo "</th>";
}
?>
</tr>
<?php
$ind=1;
$week=0;
$today_month=date('m');
$today_day=date('j');
while ($ind <= $this->day) {
if ( $week == 0 ) echo "<tr>";
$class="workday";
if ( $week == 0 || $week == 6) $class="weekend";
// compute the date
$timestamp_date=mktime(0,0,0,$this->month,$ind,$this->year);
$date_calendar=date('w',$timestamp_date);
$st="";
if ( $today_month==$this->month && $today_day==$ind)
$st=' style="border:1px solid red" ';
if ( $date_calendar == $week ) {
echo '<td class="'.$class.'"'.$st.'>'.'<span class="day">'.$ind."</span>";
echo $cell[$ind];
echo '</td>';
$ind++;$week++;
} else {
echo "<td></td>";
$week++;
}
//if ( $ind > $this->day ) exit();
if ( $week == 7 ) { echo "</tr>";$week=0;}
}
if ( $week != 7 ) { echo "</tr>";}
?>
</table>
</div>