//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>'; } } } ?> <div class="container"> <?php include "main_menu.php"; echo '<div id = "my_page" style = "background: rgba(243, 243, 243, 0.4);">'; include "some_external_phps/LegendButtonsForChart.php"; PrintChartHeader($username, $_GET["weeknum"], 1, ""); $SQL = "SELECT DISTINCT COUNT(user.Name) FROM user WHERE user.Name = '" . $username . "'"; $result4 = mysql_query($SQL); $there_is_a_such_user = mysql_fetch_array($result4); if ($there_is_a_such_user[0] <= 0) { echo '<div class="alert alert-danger">'; echo '<strong>Грешка! </strong>Няма такъв потребител!'; echo '</div>'; } else { if ($ViewAllDays == false) { $result = mysql_query("SELECT DISTINCT homeworks.Date FROM homeworks,user,uh WHERE user.Name = '" . $username . "' AND uh.HWID = homeworks.UID AND uh.USERID = user.UID AND homeworks.Date >= '" . date("Y-m-d") . " 00:00:00' ORDER BY homeworks.Date ASC"); } else { $result = mysql_query("SELECT DISTINCT homeworks.Date FROM homeworks,user,uh WHERE user.Name = '" . $username . "' AND uh.HWID = homeworks.UID AND uh.USERID = user.UID"); } $there_are_some_homeworks = mysql_fetch_array($result); if ($there_are_some_homeworks[0] <= 0) {
if (CheckIfRequestSent(Get_Logged_users_id(), $currentuserid[0]) == 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)) {