Exemplo n.º 1
0
<script type="text/javascript">
  function loadcomments(t,r){
    $.post("./?action=loadcomments","t="+t+"&r="+r, function(data){
      $("#comments-"+t+"-"+r).html(data);
    });
  }
</script>
<?php 
$from = $params["from"];
$user = $params["user"];
$posts = PostData::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) {
        //$pis = $p->getPIS();
        ?>
<tr>
<td>
      <div class="caption" style="padding-bottom:0;">
<?php 
        $authordata = $p->getAuthor();
        $pf = ProfileData::getByUserId($authordata->id);
        if ($pf->image != "") {
            ?>
<img src="<?php 
            echo "storage/users/" . $authordata->id . "/profile/" . $pf->image;
            ?>