/**
  * Adds an object to the instance pool.
  *
  * Propel keeps cached copies of objects in an instance pool when they are retrieved
  * from the database.  In some cases -- especially when you override doSelect*()
  * methods in your stub classes -- you may need to explicitly add objects
  * to the cache in order to ensure that the same objects are always returned by doSelect*()
  * and retrieveByPK*() calls.
  *
  * @param      Administradores $value A Administradores object.
  * @param      string $key (optional) key to use for instance map (for performance boost if key was already calculated externally).
  */
 public static function addInstanceToPool(Administradores $obj, $key = null)
 {
     if (Propel::isInstancePoolingEnabled()) {
         if ($key === null) {
             $key = (string) $obj->getId();
         }
         // if key === null
         self::$instances[$key] = $obj;
     }
 }
                         <a href="regAdmin.php"><i class="fa fa-indent nav_icon"></i>Resgistrar Nuevo Administrador</a>                            
                         <!-- /.nav-second-level -->
                     </li>
                 </ul>
             </div>
             <!-- /.sidebar-collapse -->
         </div>
         <!-- /.navbar-static-side -->
     </nav>
     <div id="page-wrapper">
     <div class="graphs">  
        <strong>Modificar Administrador</strong>  
     </div>
          <?php 
 include_once "../../Controlador/administradores.php";
 $admin = new Administradores();
 $email = mysql_real_escape_string(strip_tags($_GET["email"]));
 $datos = $admin->getAdminByEmail($email);
 foreach ($datos as $dato) {
     $nombre = utf8_encode($dato['nombre']);
     $apellido = utf8_encode($dato['apellido']);
     $edad = $dato['edad'];
     $genero = $dato['genero'];
 }
 ?>
     <form name="registro" action="../../Controlador/userController.php?value=actualizarAdmin" method="POST">
       <div>
         <label>Nombre</label>
         <input type="text" value="<?php 
 echo $nombre;
 ?>
예제 #3
0
 /**
  * Declares an association between this object and a Administradores object.
  *
  * @param      Administradores $v
  * @return     Auditorias The current object (for fluent API support)
  * @throws     PropelException
  */
 public function setAdministradores(Administradores $v = null)
 {
     if ($v === null) {
         $this->setAdministradoresId(NULL);
     } else {
         $this->setAdministradoresId($v->getId());
     }
     $this->aAdministradores = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the Administradores object, it will not be re-added.
     if ($v !== null) {
         $v->addAuditorias($this);
     }
     return $this;
 }
        </nav>
        <div id="page-wrapper">
        <div class="graphs">  
           <strong>Administradores Registrados </strong>  
        </div>
          <table class="table">
           <thead>
              <th>Nombre</th>
              <th>Apellido</th>
              <th>Correo</th>
              <th>Manejo</th>
           </thead>
           <tbody>
             <?php 
    include_once "../../Controlador/administradores.php";
    $admins = new Administradores();
    $datos = $admins->listar();
    foreach ($datos as $admin) {
        ?>
                   <td><?php 
        echo utf8_encode($admin['nombre']);
        ?>
</td>
                   <td><?php 
        echo utf8_encode($admin['apellido']);
        ?>
</td>
                   <td><?php 
        echo utf8_encode($admin['email']);
        ?>
</td>