<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 = 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; ?>