示例#1
0
function PrintMyCharts($numberOfWeeks, $week_number, $year, $username, $EditMode, $timezone)
{
    $PrevMonth = 0;
    for ($counter = 1; $counter <= $numberOfWeeks; $counter++) {
        $StartAndFinelDates = MakeStartAndFinalDates($week_number, $year);
        $strDateFrom = $StartAndFinelDates[0];
        $strDateTo = $StartAndFinelDates[1];
        $PrevMonth = PrintAChart($counter, $username, $strDateFrom, $strDateTo, $PrevMonth, $EditMode, $timezone);
        $week_number++;
        $ddate = $year . "-12-31";
        $date = new DateTime($ddate);
        $last_week_of_year = $date->format("W");
        //echo $week_number." ".$year." ".date('Y-m-d', strtotime($year."W".$week_number.'1'))." ".date('Y-m-d', strtotime($year."W".$week_number.'7'));
        if ($week_number > $last_week_of_year) {
            //echo " ".$week_number." > ".$last_week_of_year;
            $week_number = 1;
            $year++;
            //echo '<div class="page-header">';
            //echo '<h1 style = "color:#837d7c;">'.$week_number." ".$year.'</h1>';
            //echo '</div>';
        }
    }
}
示例#2
0
            echo '<a href = "send_friend_request_to.php?user='******'"><button class="btn btn-default" style = "min-width:100%;color:#837d7c;background:#d2c9c6;font-weight:bold;border-radius:7px;font-size:16px;font-family: Arial;font-weight:bold;margin-top:0px;" type="button"><span class = "glyphicon glyphicon-user"></span><span class = "glyphicon glyphicon-user"></span> Сприятеляване</button></a>';
        } else {
            echo '<a href = "#"><button class="btn btn-default" style = "min-width:100%;color:#837d7c;background:#d2c9c6;font-weight:bold;border-radius:7px;font-size:16px;font-family: Arial;font-weight:bold;margin-top:0px;" type="button"><span class = "glyphicon glyphicon-user"></span><span class = "glyphicon glyphicon-user"></span> Поканата е изпратена</button></a>';
        }
    }
}
PrintAccountInfoByUSERNAME($username, 1);
include "some_external_phps/show_today_and_tomorrow_div.php";
echo '</div>';
echo '<div id = "my_page" style = "background: rgba(243, 243, 243, 0.4);margin-top:2%;">';
$MyToday = gmdate("Y-m-d", time() + 3600 * ($timezone + date("I")));
$strDateFrom = date('Y-m-d', strtotime($MyToday . ' - 1 day'));
$strDateTo = date('Y-m-d', strtotime($MyToday . ' + 2 days'));
include "some_external_phps/LegendButtonsForChart.php";
PrintChartHeader(0, 0, 0, "Вашите скорошни задачи");
PrintAChart(1, $username, $strDateFrom, $strDateTo, "0", $EditMode, $timezone);
echo '</div>';
echo '<div id = "my_page" style = "background: rgba(243, 243, 243, 0.4);">';
if (!$there_is_some_info) {
    echo '<div class="alert alert-success">';
    echo 'За съжаление желаният списък е <strong>празен!</strong>';
    echo '</div>';
}
echo $button_to_render;
?>
	<!--<section id="cd-timeline" class="cd-container">-->
	<?php 
include "some_external_phps/PrintHWInfoInTableByID.php";
include "some_external_phps/PrintHomeworksTimeline.php";
while ($row = mysql_fetch_array($result)) {
    //echo '<div class="page-header" style = "font-size:17px;">';