Exemplo n.º 1
0

  foreach ($sql->result() as $item) { 
   if($item->id==1){}else{
?>
<li style="border-bottom: 1px solid #eee;">
<table>
  <tr>
    <td>
       <?
      if( ! $item->fotoperfil)
      {
        echo '<img src="http://gayria.com/imagenodisppeq.jpg" width="75px">';
      }else
      {
        echo '<img src="'.base_url().img_perfil($item->fotoperfil).'" width="75px">';
      }
    ?>
    </td>
    <td width="275px">
    <?php 
echo anchor('perfil/view/' . $item->id, $item->name . ' ' . $item->apellido, 'class="link-list"');
?>
    <p> <?php 
$query = $this->db->query('SELECT * FROM estados WHERE id = "' . $item->estado . '"');
foreach ($query->result() as $value) {
    echo $value->estado;
}
?>
,
       <?php 
Exemplo n.º 2
0
?>
</li>
        <li><?php 
echo anchor($this->uri->segment(1) . '/' . $this->uri->segment(2) . '/' . $this->uri->segment(3) . '/galeria', 'Galeria', navigation($this->uri->segment(4), 'galeria'));
?>
</li>
			</ul>

			<div class="box-wrapper">
        <? if( ! $this->uri->segment(4)): ?>
				<div id="one" class="content-box current">
					<div class="col-one col">
            <?
                if($fotoperfil)
                {
                   echo '<img src="'.base_url().'upload/'.img_perfil($fotoperfil).'" alt="" width="200"/>';                                               
                 }else
                 {
                    echo '<img src="http://gayria.com/imagenodisp.jpg" alt="" width="200"/>';
                  }
            ?>
					</div>
					<div class="col-two col">
                    <p class="titulosficha">Mis datos</p>
						<table width="395" border="0">
                          <tr>
                            <td width="120" class="datos">Nombre:</td>
                            <td colspan="6" class="datosresp"><?php 
echo $name;
?>
 </td>
Exemplo n.º 3
0
?>
                            </p> 
                            <?php 
echo anchor('perfiles', $this->lang->line('button_info'), 'class="button-1"');
?>
                            </div>
                        </div>
                        <div class="grid_4">
                            <div class="pad-left-2 pad-right">
                                <?php 
if ($this->session->userdata('status')) {
    $sql = $this->db->get_where('usuarios', array('id' => $this->session->userdata('id')));
    foreach ($sql->result() as $value) {
        echo '<h4 class="head-1">' . $value->name . ' ' . $value->apellido . '</h4>';
        if ($value->fotoperfil) {
            echo '<div class="right"><img src="' . base_url() . img_perfil($value->fotoperfil) . '" alt="" width="100"/></div>';
        } else {
            echo '<div class="right"><img src="http://gayria.com/imagenodisp.jpg" alt="" width="100"/></div>';
        }
        echo '<div class="left"><p class="text-1">' . anchor('service/auth/logout', $this->lang->line('logout')) . '</p></div>';
    }
} else {
    ?>
                                <? if($this->session->userdata('fail')) { ?>
                                 <!--Message Error--> 
                                
                                   <font class="err-login"><?php 
    echo $this->session->userdata('fail');
    ?>
</font>