summaryrefslogtreecommitdiffstats
path: root/public/month.php
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2010-04-14 14:29:15 +0300
committerFilipp Lepalaan <filipp@mac.com>2010-04-14 14:29:15 +0300
commit8760de2115c322cf49906a2e24e8228f5d0763c5 (patch)
treec010b6a4360d85f07ba839623a3551e9dd4f8ca1 /public/month.php
parent63822bacd44d964df3596f928f44a56ab5625d4f (diff)
downloadatwork-8760de2115c322cf49906a2e24e8228f5d0763c5.tar.gz
atwork-8760de2115c322cf49906a2e24e8228f5d0763c5.tar.bz2
atwork-8760de2115c322cf49906a2e24e8228f5d0763c5.zip
More fixesHEADmaster
Diffstat (limited to 'public/month.php')
-rw-r--r--public/month.php21
1 files changed, 12 insertions, 9 deletions
diff --git a/public/month.php b/public/month.php
index a3cd47e..07325aa 100644
--- a/public/month.php
+++ b/public/month.php
@@ -32,7 +32,7 @@
$first = mktime(0, 0, 0, $_SESSION['m'], 0);
$last = mktime(0, 0, 0, $_SESSION['m']+1, 0);
$days = ($last-$first)/3600/24;
-
+
?>
<img src="images/cal_16.png" class="icon" alt=""/>
@@ -40,17 +40,20 @@
<?php
- foreach(range(1, $days) as $d):
-
- $current = $first+3600*24*$d;
- $txt = date('D, d', $current);
- $stmt->execute(array($_SESSION['user'], date('Y-m-d', $current)));
- $tmp = current($stmt->fetchAll());
- $work = $tmp['done']/3600;
+ foreach(range(1, $days) as $d):
+
+ $current = $first+3600*24*$d;
+ $txt = date('D, d', $current);
+ $stmt->execute(array($_SESSION['user'], date('Y-m-d', $current)));
+ $tmp = current($stmt->fetchAll());
+ $work = $tmp['done']/3600;
?>
- <div class="day" title="<?= date('d.m.Y', $current); ?>">
+ <div
+ class="day"
+ id="<?= date('Y-m-d', $current); ?>"
+ title="<?= date('d.m.Y', $current); ?>">
<?= $txt; ?>
<div class="hours"><?= $work; ?>h</div>
</div>