Exemplo n.º 1
0
<?php

include "gfx3/lib.php";
if (EHeaderDataParser::exists_get("id")) {
    $id = EHeaderDataParser::db_get("id");
    $users = new EData("ocs_person");
    $user_info = $users->find("firstname,lastname,email,login", "where id={$id} limit 1");
    $user_info = $user_info[0];
    //taking first element
} elseif (EHeaderDataParser::exists_get("login")) {
    $login = EHeaderDataParser::db_get("login");
    $users = new EData("ocs_person");
    $user_info = $users->find("firstname,lastname,email,login", "where login='******' limit 1");
    $user_info = $user_info[0];
    //taking first element
}
echo "\n<div class=\"modal-header\">\n    <button type=\"button\" class=\"close\" data-dismiss=\"modal\">×</button>\n    <h3>Personal info of " . $user_info["firstname"] . " " . $user_info["lastname"] . "</h3>\n</div>\n\n    <div class=\"modal-body\">\n    <table class=\"mytable\">\n\t\t<tr><td>First Name:</td><td><span class=\"right\">" . $user_info["firstname"] . "</span></td></tr>\n\t\t<tr><td>Last Name:</td><td><span class=\"right\">" . $user_info["lastname"] . "</span></td></tr>\n\t\t<tr><td>User Name:</td><td><span class=\"right\">" . $user_info["login"] . "</span></td></tr>\n\t\t<tr><td>E-mail:</td><td><span class=\"right\">" . $user_info["email"] . "</span></td></tr>\n    </table>\n    <br>\n    <a href=\"#\">Find all games from this user</a><br>\n\t<a href=\"#\">Find all games liked by this user</a>\n    </div>\n    \n    <div class=\"modal-footer\" style=\"background-color:#F5F5F5;\">\n    <a href=\"#\" class=\"btn\" data-dismiss=\"modal\">Close</a>\n    </div>\n\n    ";
Exemplo n.º 2
0
<?php

include "gfx3/lib.php";
$id = EHeaderDataParser::db_get("id");
$users = new EData("users");
$user_info = $users->find("firstname,lastname,email,password", "where id=" . EUser::id() . "");
$user_info = $user_info[0];
//taking first element
echo "\n<div class=\"modal-header\">\n    <button type=\"button\" class=\"close\" data-dismiss=\"modal\">×</button>\n    <h3>Edit personal info of " . $user_info["firstname"] . " " . $user_info["lastname"] . "</h3>\n</div>\n\n    <form class=\"form-horizontal\" action=\"updateprofileinfo.php\" target=\"_self\" method=\"post\">\n    <div class=\"modal-body\">\n    <fieldset>\n    \n    <div class=\"control-group\">\n    <label class=\"control-label\" for=\"password\">Password</label>\n    <div class=\"controls\">\n    <input type=\"password\" name=\"password\" class=\"input-xlarge\" id=\"password\" value=\"" . $user_info["password"] . "\">\n    <input type=\"hidden\" name=\"id\" value=\"" . EUser::id() . "\">\n    <p class=\"help-block\">* must be a minimum of 8 characters</p>\n    </div>\n    </div>\n    \n    <div class=\"control-group\">\n    <label class=\"control-label\" for=\"email\">E-Mail</label>\n    <div class=\"controls\">\n    <input type=\"text\" name=\"email\" class=\"input-xlarge\" id=\"email\" value=" . $user_info["email"] . ">\n    <p class=\"help-block\">* must be a valid email</p>\n    </div>\n    </div>\n    \n    <div class=\"control-group\">\n    <label class=\"control-label\" for=\"firstname\">Firstname</label>\n    <div class=\"controls\">\n    <input type=\"text\" name=\"firstname\" class=\"input-xlarge\" id=\"firstname\" value=" . $user_info["firstname"] . ">\n    </div>\n    </div>\n    \n    <div class=\"control-group\">\n    <label class=\"control-label\" for=\"lastname\">Lastname</label>\n    <div class=\"controls\">\n    <input type=\"text\" name=\"lastname\" class=\"input-xlarge\" id=\"lastname\" value=" . $user_info["lastname"] . ">\n    </div>\n    </div>\n    \n    </fieldset>\n    \n    \n    </div>\n    <div class=\"modal-footer\" style=\"background-color:#FFFFFF;\">\n    <input type=\"submit\" class=\"btn btn-primary\" value=\"Save\">\n    </div>\n    \n    </form>\n\n    ";