Example #1
0
<?php

$profile = Session::$profile;
$levels = LevelData::getAll();
$countries = CountryData::getAll();
$sentimentals = SentimentalData::getAll();
$genders = array("h" => "Hombre", "m" => "Mujer");
?>
<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 Basica</h1>

<form role="form" method="post" action="./?action=updatebasicinfo">
  <div class="form-group">
    <label for="exampleInputEmail1">Fecha de nacimiento</label>
    <input type="date" value="<?php 
echo $profile->day_of_birth;
?>
" name="day_of_birth" class="form-control" required placeholder="Enter email">
  </div>
  <div class="form-group">
    <label for="exampleInputPassword1">Sexo</label>
    <select name="gender" class="form-control" required>
Example #2
0
</td>
      </tr>
      <?php 
    }
    ?>

        <tr>
          <td colspan="2"><b>Datos personales</b></td>
        </tr>
      <?php 
    if ($profile->country_id != null) {
        ?>
      <tr>
        <td><b>Pais</b></td>
        <td><?php 
        echo CountryData::getById($profile->country_id)->name;
        ?>
</td>
      </tr>
      <?php 
    }
    ?>

      <?php 
    if ($profile->gender != "") {
        $genders = array("h" => "Hombre", "m" => "Mujer");
        ?>
      <tr>
        <td><b>Sexo</b></td>
        <td><?php 
        echo $genders[$profile->gender];