Example #1
0
$posts = ImageData::getAllByUserId($user->id);
if (count($posts) > 0) {
    ?>
	<div id="statuses">
<table class="table table-bordered">
<?php 
    /* Obtener las imagenes asociadas a un post/status */
    foreach ($posts as $p) {
        //$ps = $p->getPIS();
        ?>
<tr>
<td>
      <div class="caption" style="padding-bottom:0;">
<?php 
        $authordata = $p->getUser();
        $pf = ProfileData::getByUserId($authordata->id);
        if ($pf->image != "") {
            ?>
<img src="<?php 
            echo "storage/users/" . $authordata->id . "/profile/" . $pf->image;
            ?>
" class="img-circle" style="width:38px;float:left;">
<?php 
        }
        ?>
      <h4 style="margin:0px;margin-left:48px;"><?php 
        echo $authordata->getFullname();
        ?>
</h4>
<p style="margin:0px;margin-left:48px;font-size:10px;" class="text-muted"><?php 
        echo date("d/M/Y h:i:s", strtotime($p->created_at));
Example #2
0
    ?>
</span> <b class="caret"></b></a>
              <ul class="dropdown-menu">
              <?php 
    if ($nnots->c > 0) {
        $notifications = NotificationData::getLast5($_SESSION["user_id"]);
        ?>

                <li class="dropdown-header"><?php 
        echo $nnots->c;
        ?>
 Notificaciones</li>
                <?php 
        foreach ($notifications as $noti) {
            $s = $noti->getSender();
            $sp = ProfileData::getByUserId($s->id);
            $img_url = "";
            if ($sp->image != "") {
                $img_url = "storage/users/" . $s->id . "/profile/" . $sp->image;
            }
            ?>
                <li class="message-preview">
                  <a href="#" >
                    <span class="avatar"><img src="<?php 
            echo $img_url;
            ?>
" style='width:40px;'></span>
                    <span class="name"><?php 
            echo $s->getFullname();
            ?>
</span>
Example #3
0
<?php

// $levels =LevelData::getAll();
$profile = ProfileData::getByUserId($_SESSION["user_id"]);
?>
<div class="container">
<div class="row">
    <div class="col-md-3">
<?php 
Action::execute("_userbadge", array("user" => Session::$user, "profile" => Session::$profile, "from" => "logged"));
Action::execute("_infomenu", array());
?>

    </div>
    <div class="col-md-7">
<h1>Editar Informacion</h1>

<form role="form" enctype="multipart/form-data" method="post" action="./?action=updateinformation">
  <div class="form-group">
    <label for="exampleInputFile">Imagen de Perfil (100x100)</label>
    <input type="file" name="image">
  </div>
  <div class="form-group">
    <label for="exampleInputEmail1">Titulo</label>
    <input type="text" name="title" value="<?php 
echo $profile->title;
?>
" class="form-control"  placeholder="A que te dedicas??">
  </div>

  <div class="form-group">
Example #4
0
<?php

$user = UserData::getById($_GET["uid"]);
$profile = ProfileData::getByUserId($user->id);
?>

<div class="container">
<div class="row">
    <div class="col-md-3">
<?php 
Action::execute("_userbadge", array("user" => $user, "profile" => $profile, "from" => "logged"));
Action::execute("_usermenu", array("user" => $user));
?>
    </div>
    <div class="col-md-7">
    <!-- -->
    <?php 
echo Action::execute("_photos", array("user" => $user, "profile" => $profile, "from" => "logged"));
?>
      <!-- -->
    </div>
    <div class="col-md-2">
    </div>
  </div>
</div>


</div>
<script>
function like(type,id){
  var base = "lk";
Example #5
0
<?php

$user = UserData::getById($_GET["id"]);
if ($user != null) {
    //if($user==Session::$user){ Core::redir("./?view=home");}
    $profile = ProfileData::getByUserId($_GET["id"]);
    ?>
<div class="container">
<div class="row">
    <div class="col-md-3">
<?php 
    $from = "logout";
    if (isset($_SESSION["user_id"])) {
        $from = "logged";
    }
    Action::execute("_userbadge", array("user" => $user, "profile" => $profile, "from" => $from));
    Action::execute("_usermenu", array("user" => $user, "from" => $from));
    ?>


    </div>
    <div class="col-md-7">

    <?php 
    echo Action::execute("_statuses", array("user" => $user, "profile" => $profile, "from" => $from));
    ?>



    </div>
    <div class="col-md-2">