@ 2017-07-05T13:29:43Z <?php
function days_in_month($month, $year) {
return date('t', mktime(0, 0, 0, $month, 1, $year));
}
$months = array(5,6,7);
$year = "2017";
foreach($months as $month)
{
$days_in_month = days_in_month($month, $year);
$first_day = mktime(0,0,0,$month, 1, $year) ;
$day_of_week = date('D', $first_day);
$month = str_pad($month, 2, 0, STR_PAD_LEFT);
//---------------------------------------------------------
//sets the first day of the month to 1
$day_num = 1;
//count up the days, until you've done all of them in the month
while ( $day_num <= $days_in_month )
{
$i = str_pad($day_num, 2, 0, STR_PAD_LEFT);
$day = date('D', mktime(0,0,0,$month, $day_num, $year));
if (date('d.m', mktime(0, 0, 0, $month, $i, $year)) == date('d.m')){
echo "<a href='".site_url()."/?date=".$i.".".$month."' class='today' title='Днес'><span>".$i."</span><br/>/</a>";
}
elseif ($i.".".$month == $_GET['date']){
echo "<a href='".site_url()."/?date=".$i.".".$month."' class='selected' title='Събития на $i".".$month".".$year'><span>".$i."</span><br/>/</a>";
}
elseif ($day == 'Mon'){
echo "<a href='".site_url()."/?date=".$i.".".$month."' class='monday' title=<span class="bg">Понеделни"к $i".".$month".".$year"</span><span class="en">Mondey" $i".".$month".".$year"</span>><span>".$i."</span><br/>/</a>";
}
else {
switch ($day) {
case "Tue":
echo "<a href='".site_url()."/?date=".$i.".".$month."' class='workday' title='Вторник $i".".$month".".$year'><span>".$i."</span><br/>/</a>";
break;
case "Wed":
echo "<a href='".site_url()."/?date=".$i.".".$month."' class='workday' title='Сряда $i".".$month".".$year'><span>".$i."</span><br/>/</a>";
break;
case "Thu":
echo "<a href='".site_url()."/?date=".$i.".".$month."' class='workday' title='Четвъртък $i".".$month".".$year'><span>".$i."</span><br/>/</a>";
break;
case "Fri":
echo "<a href='".site_url()."/?date=".$i.".".$month."' class='workday' title='Петък $i".".$month".".$year'><span>".$i."</span><br/>/</a>";
break;
case "Sat":
echo "<a href='".site_url()."/?date=".$i.".".$month."' class='workday' title='Събота $i".".$month".".$year'><span>".$i."</span><br/>/</a>";
break;
case "Sun":
echo "<a href='".site_url()."/?date=".$i.".".$month."' class='workday' title='Неделя $i".".$month".".$year'><span>".$i."</span><br/>/</a>";
// break;
// default:
// echo "Your favorite color is neither red, blue, nor green!";
}
//echo "<a href='".site_url()."/?date=".$i.".".$month."' class='workday' title=$i".".$month".".$year><span>".$i."</span><br/>/</a>";
}
$day_num++;
}
}
?>
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).
Version System time (s) User time (s) Memory (MiB) 7.2.9 0.007 0.004 16.51 7.2.8 0.156 0.003 16.54 7.2.7 0.000 0.012 16.74 7.2.6 0.004 0.008 16.84 7.2.5 0.006 0.006 16.61 7.2.4 0.044 0.006 16.79 7.2.3 0.007 0.010 16.86 7.2.2 0.009 0.003 16.59 7.2.1 0.003 0.011 16.60 7.2.0 0.000 0.012 16.88 7.1.21 0.003 0.007 15.44 7.1.20 0.010 0.000 15.56 7.1.19 0.004 0.008 15.31 7.1.18 0.008 0.003 15.54 7.1.17 0.005 0.005 15.60 7.1.16 0.008 0.003 15.68 7.1.15 0.000 0.011 15.53 7.1.14 0.005 0.005 15.55 7.1.13 0.003 0.008 15.21 7.1.12 0.003 0.007 15.58 7.1.11 0.011 0.000 15.44 7.1.10 0.006 0.006 15.53 7.1.9 0.005 0.005 15.61 7.1.8 0.002 0.010 15.46 7.1.7 0.003 0.008 15.53 7.1.6 0.025 0.004 33.82 7.1.5 0.028 0.004 33.54 7.1.4 0.221 0.013 33.51 7.1.3 0.025 0.006 33.32 7.1.2 0.019 0.011 33.49 7.1.1 0.008 0.003 15.45 7.1.0 0.007 0.004 15.70 7.0.31 0.005 0.005 14.89 7.0.30 0.106 0.003 15.20 7.0.29 0.004 0.006 15.03 7.0.28 0.005 0.005 15.11 7.0.27 0.004 0.007 14.97 7.0.26 0.003 0.006 15.17 7.0.25 0.003 0.008 15.26 7.0.24 0.006 0.005 15.45 7.0.23 0.000 0.012 15.36 7.0.22 0.006 0.004 15.22 7.0.21 0.005 0.005 15.43 7.0.20 0.003 0.007 15.25 7.0.19 0.004 0.008 14.89 7.0.18 0.007 0.007 15.15 7.0.17 0.007 0.005 15.34 7.0.16 0.008 0.003 15.32 7.0.15 0.003 0.009 15.22 7.0.14 0.007 0.003 15.23 7.0.13 0.003 0.007 15.40 7.0.12 0.007 0.003 15.38 7.0.11 0.003 0.008 15.15 7.0.10 0.007 0.005 15.13 7.0.9 0.004 0.007 15.21 7.0.8 0.003 0.007 15.13 7.0.7 0.006 0.005 15.16 7.0.6 0.000 0.010 14.95 7.0.5 0.010 0.000 15.13 7.0.4 0.000 0.010 15.12 7.0.3 0.008 0.008 15.13 7.0.2 0.009 0.006 15.18 7.0.1 0.138 0.007 15.39 7.0.0 0.007 0.003 15.28
preferences:dark mode live preview
144.14 ms | 1394 KiB | 7 Q