Exemplo n.º 1
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.º 2
0
include "main_menu.php";
?>

<div id = "my_page" style = "background: rgba(243, 243, 243, 0.4);">


<?php 
$loged = 0;
$SQL = "SELECT COUNT(user.UID), user.UID FROM user WHERE user.Password = '******'";
//echo $SQL;
$result = mysql_query($SQL);
$num_of_found_users_with_this_psw = mysql_fetch_array($result);
if ($num_of_found_users_with_this_psw > 0) {
    $loged = 1;
}
$SQL = "SELECT user.UID FROM user WHERE user.Name = '" . Get_Logged_users_name() . "'";
//echo $SQL;
$result = mysql_query($SQL);
$solvers_id = mysql_fetch_array($result);
if ($loged == 1) {
    //echo "logged";
    $time_for_solving = $_POST["time_for_solving"];
    $assessment = 0;
    $pleasure = $_POST["pleasure"];
    $length = $_POST["length"];
    $learned = $_POST["learned"];
    $cheat = $_POST["cheat"];
    $SubjectID = $_POST["SubjectID"];
    $SomePersonalText = $_POST["SomePersonalText"];
    $SomePersonalText = FixURLsData($SomePersonalText);
    //(GMT -5:00) EST (U.S. & Canada)
Exemplo n.º 3
0
$_SESSION['page'] = "other";
?>
<body>

<div class="container">
<?php 
include "main_menu.php";
?>

<div id = "my_page" style = "border-radius:20px;background: rgba(243, 243, 243, 0.4);">

	<div id = "urlForm">
	
	<?php 
if ($EditMode == 1) {
    $UserInfo = ReturnALLUserInfoByIdOrByName(Get_Logged_users_name());
    echo '<h1 id = "urlTitleForm">Редакция на профила</h1>
			<form role="form" action="profile_edited.php" method="post">
			<div class="form-group">
			<input type="text" class="form-control" id = "MyInputBox" value = "' . $UserInfo["FirstName"] . '" name="FirstName" placeholder="Първо име">
			<input type="text" class="form-control" id = "MyInputBox" value = "' . $UserInfo["LastName"] . '" name="LastName" placeholder="Фамилия">
			<input  type="text" cols="50" rows="7" class="form-control" id = "MyInputBox" value = "' . $UserInfo["IMGURL"] . '" name="IMGURL" placeholder="URL към снимка"></input >
			<input type="text" class="form-control" id = "MyInputBox" value = "' . $UserInfo["Text"] . '" name="Text" placeholder="Описание с две-три думи">
			<div class="form-group">
			<button class="btn btn-default" id = "MyButtonToAddURL" type="submit" >Редактирай</button>
			</form>';
}
?>
	</div>

</div>