Exemplo n.º 1
0
$_SESSION['psw'] = $password;
$_SESSION['name'] = $username;
$_SESSION['page'] = "other";
?>

<div class="container">
<?php 
include "main_menu.php";
echo '<div id = "my_page" style = "background: rgba(243, 243, 243, 0.4);">';
$WaitingResult = WaitingRequests(Get_Logged_users_id());
while ($WaitingUserID = mysql_fetch_array($WaitingResult)) {
    $SQL = "SELECT user.Name FROM user WHERE user.UID = " . $WaitingUserID[0];
    $Result = mysql_query($SQL);
    $WaitingUsername = mysql_fetch_array($Result);
    echo '<div style = "margin-top:-22px;position: absolute;min-width:40%;">';
    echo '<a href = "accept_friend_request.php?userid=' . $WaitingUserID[0] . '"><button class="btn btn-default" style = "width:50%;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>';
    echo '<a href = "refuse_friend_request.php?userid=' . $WaitingUserID[0] . '"><button class="btn btn-default" style = "width:50%;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-remove"></span> Отхвърлям</button></a>';
    echo '</div>';
    PrintAccountInfoByUSERNAME($WaitingUsername[0], 1);
    //echo '<div class="panel-footer">'.$row[2].'</div>';
    //echo $row[0];
    //echo $row[1];
    //echo $row[2];
    //echo $row[3];
}
?>
	
</div>

</body>
</html>
Exemplo n.º 2
0
    $result = mysql_query($SQL);
    while ($row = mysql_fetch_array($result)) {
        echo '<div style = "margin-top:30px;">';
        $MyCurrentUserInfo = ReturnALLUserInfoByIdOrByName($row[0]);
        $MyUserIDResult = mysql_query("SELECT user.UID FROM user WHERE user.Name = '" . $row[0] . "'");
        $currentuserid = mysql_fetch_array($MyUserIDResult);
        if ($currentuserid[0] != Get_Logged_users_id()) {
            if (CheckIfFriends($currentuserid[0], Get_Logged_users_id()) == 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> Изпрати покана на ' . $MyCurrentUserInfo["FirstName"] . " " . $MyCurrentUserInfo["LastName"] . '</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>';
                }
            } 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($row[0], 1);
        //echo '<div class="panel-footer">'.$row[2].'</div>';
        //echo $row[0];
        //echo $row[1];
        //echo $row[2];
        //echo $row[3];
    }
}
?>
	
</div>

</body>
</html>
Exemplo n.º 3
0
<div id = "my_page" style = "border-radius:20px;background: rgba(243, 243, 243, 0.4);">

	<div id = "urlForm">
	
	<?php 
$FirstName = $_POST["FirstName"];
$LastName = $_POST["LastName"];
$IMGURL = $_POST["IMGURL"];
$Text = $_POST["Text"];
echo '<div id = "urlForm">';
if ($EditMode == 0) {
    echo '<h1 id = "urlTitleForm">Грешка :/</h1>';
} else {
    $SQL = "UPDATE user SET user.FirstName = '" . $FirstName . "', user.LastName = '" . $LastName . "', user.IMGURL = '" . $IMGURL . "', user.Text = '" . $Text . "' WHERE user.UID = " . Get_Logged_users_id();
    if (mysql_query($SQL)) {
        echo '<h1 id = "urlTitleForm">Профилът е променен успешно</h1>';
    } else {
        echo '<h1 id = "urlTitleForm">Грешка при опит за промяна</h1>';
    }
    echo '<div>';
    PrintAccountInfoByUSERNAME(Get_Logged_users_name(), 1);
    echo '</div>';
    echo '</div>';
}
echo '</div>';
?>
	</div>

</div>

</body>
Exemplo n.º 4
0
    return $MyLastDayOfThisWeekMonth;
}
echo '<div id = "my_page" style = "background: rgba(243, 243, 243, 0.4);margin-top:2%;height:850px;">';
$MyUserUIDresult = mysql_query("SELECT user.UID FROM user WHERE user.Name = '" . $username . "'");
$currentuserid = mysql_fetch_array($MyUserUIDresult);
if ($currentuserid[0] != Get_Logged_users_id()) {
    if (CheckIfFriends($currentuserid[0], Get_Logged_users_id()) == 0) {
        header('Location: you_are_not_friends.php?secured_user='******'<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>';