/** * Helper to load all idioms */ public function loadIdioms() { $idioms = R::find('idiom'); foreach ($idioms as $item) { $idiom = new Idiom(); $idiom->importBean($item); $this->idioms[] = $idiom; } }
/** * This will allow to import RedBean OODBBean objects * @param RedBean_OODBBean $bean */ public function importBean($bean) { parent::importBean($bean); if ($bean->image) { $this->image = new Image($bean->image); } $idiom = $bean->idiom; $this->idiom = new Idiom(); $this->idiom->importBean($idiom); // load author $result = R::findOne('account', 'username = ?', array($this->author)); if (!empty($result)) { $author = new Account(); $author->importBean($result); $this->author = $author; } }
<?php session_start(); include_once getcwd() . '\\html_block.php'; include_once getcwd() . '\\string\\idiom_spn.php'; if (isset($_SESSION['user'])) { header('Location: http://localhost/census_electoral/leaders.php'); } $elements = new ElementHTML(); $idiom = new Idiom(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title><?php echo $idiom->getTitle_login(); ?> </title> <link href="css/bootstrap.min.css" rel="stylesheet" media="screen"> <link href="css/style-census-electoral.css" rel="stylesheet"> </head> <body > <script src="http://code.jquery.com/jquery.js"></script> <script src="js/bootstrap.min.js"></script> <nav class="navbar navbar-default navbar-fixed-top"> </nav> <div class="container" style="padding-top: 10%;"> <div class="row">
<?php session_start(); if (empty($_SESSION['user'])) { header('Location: http://localhost/puyaOjo/index.php'); } include_once '../inc/html_block.php'; include_once '../string/idiom_spn.php'; $user = $_SESSION['user']; $name = $_SESSION['name']; $lastname = $_SESSION['lastname']; $aspiracion = $_SESSION['aspiracion']; $elements = new ElementHTML(); $idiom = new Idiom(); $servicio = new Servicios(); ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title><?php echo $idiom->getTitle(); ?> | <?php echo $idiom->getTitle_login(); ?> </title> <!-- Tell the browser to be responsive to screen width --> <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> <!-- Bootstrap 3.3.5 -->
<?php session_start(); if (empty($_SESSION['user'])) { header('Location: http://localhost/puyaOjo/index.php'); } include_once '../inc/html_block.php'; include_once '../string/idiom_spn.php'; include_once '../inc/DAO/DAOLider.php'; $user = $_SESSION['user']; $name = $_SESSION['name']; $tipo = $_SESSION['tipo']; $aspiracion = $_SESSION['aspiracion']; $lastname = $_SESSION['lastname']; $elements = new ElementHTML(); $idiom = new Idiom(); $daolider = new DAOLider(); $servicio = new Servicios(); ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title><?php echo $idiom->getTitle(); ?> | <?php echo $idiom->getTitle_login(); ?> </title>
<?php session_start(); if (empty($_SESSION['user'])) { header('Location: http://localhost/puyaOjo/index.php'); } include_once '../inc/html_block.php'; include_once '../string/idiom_spn.php'; $user = $_SESSION['user']; $name = $_SESSION['name']; $lastname = $_SESSION['lastname']; $aspiracion = $_SESSION['aspiracion']; $elements = new ElementHTML(); $idiom = new Idiom(); ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title><?php echo $idiom->getTitle(); ?> | <?php echo $idiom->getTitle_login(); ?> </title> <!-- Tell the browser to be responsive to screen width --> <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> <!-- Bootstrap 3.3.5 --> <link rel="stylesheet" href="../bootstrap/css/bootstrap.min.css">
function load_modal_add_leader($persona) { $persona = new Persona($persona["cc"], $persona["nombre"], $persona["apellido"], $persona["tel"], $persona["cel"], $persona["dir"], $persona["email"], new PuestoVotacion($persona["departamento"], $persona["municipio"], $persona["puesto"], $persona["dir_puesto"], $persona["mesa"])); $idiom = new Idiom(); echo '<div class="modal fade" id="myModal" role="dialog"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">×</button> <h4 class="modal-title">' . $idiom->getModal_add_voter() . '</h4> </div> <div class="modal-body"> <form role="form" id="log_in" action="../inc/control_add.php?op=1" method="post"> <label for="modal_cc">' . $idiom->getModal_label_cc() . '</label> <div class="input-group"> <input type="text" class="form-control" name="cc" onkeypress="return justNumbers(event);" value="' . $persona->getCedula() . '"> <a class="input-group-addon" id="btn-a" href="#"><span class="glyphicon glyphicon-search"></span></a> </div> <div class="row"> <div class="col-md-6"> <label for="modal_name">' . $idiom->getModal_label_name() . '</label> <input type="text" class="form-control" name="nombre" value="' . $persona->getNombre() . '"> </div> <div class="col-md-6"> <label for="modal_lastname">' . $idiom->getModal_label_lastname() . '</label> <input type="text" class="form-control" name="apellido" value="' . $persona->getApellido() . '"> </div> </div> <div class="row"> <div class="col-md-6"> <label for="modal_tel">' . $idiom->getModal_label_tel() . '</label> <input type="tel" class="form-control" name="tel" onkeypress="return justNumbers(event);"> </div> <div class="col-md-6"> <label for="modal_tel">' . $idiom->getModal_label_cel() . '</label> <input type="tel" class="form-control" name="cel" onkeypress="return justNumbers(event);"> </div> </div> <hr> <div class="row"> <div class="col-md-6"> <label for="modal_departament">' . $idiom->getModal_label_departament() . '</label> <input type="text" class="form-control" name="departamento" value = "' . $persona->getPuesto()->getDepartamento() . '"> </div> <div class="col-md-6"> <label for="modal_town">' . $idiom->getModal_label_town() . '</label> <input type="text" class="form-control" name="municipio" value = "' . $persona->getPuesto()->getMunicipio() . '"> </div> </div> <div class="row"> <div class="col-md-6"> <label for="modal_place">' . $idiom->getModal_label_place() . '</label> <input type="text" class="form-control" name="puesto" value = "' . $persona->getPuesto()->getPuesto() . '"> </div> <div class="col-md-6"> <label for="modal_dir_place">' . $idiom->getModal_label_dir_place() . '</label> <input type="text" class="form-control" name="dir_puesto" value = "' . $persona->getPuesto()->getDir_puesto() . '"> </div> </div> <div class="row" style="margin-bottom: 10px;"> <div class="col-md-6"> <label for="modal_table">' . $idiom->getModal_label_table() . '</label> <input type="text" class="form-control" name="mesa" onkeypress="return justNumbers(event);" value = "' . $persona->getPuesto()->getMesa() . '"> </div> </div> </div> <div class="modal-footer"> <button type="submit" class="btn btn-primary" >' . $idiom->getBtn_save() . '</button> </div> </form> </div> </div> </div> </div>'; }
include_once getcwd() . '\\html_block.php'; include_once getcwd() . '\\inc\\DAO\\Conexion.php'; include_once getcwd() . '\\inc\\DAO\\BuscarServicios.php'; include_once getcwd() . '\\inc\\DAO\\DAOCandidato.php'; include_once getcwd() . '\\inc\\DAO\\DAOLider.php'; include_once getcwd() . '\\inc\\DAO\\DAOListaCandidato_Votante.php'; include_once getcwd() . '\\inc\\DAO\\DAOVotante.php'; include_once getcwd() . '\\inc\\DAO\\DAOPuestoVotacion.php'; include_once getcwd() . '\\inc\\DAO\\DAOListas.php'; include_once getcwd() . '\\inc\\DAO\\Zonificacion.php'; include_once getcwd() . '\\inc\\modelo_logico\\PuestoVotacion.php'; include_once getcwd() . '\\inc\\modelo_logico\\Votante.php'; include_once getcwd() . '\\inc\\modelo_logico\\Lider.php'; include_once getcwd() . '\\inc\\modelo_logico\\Candidato.php'; $elements = new ElementHTML(); $idiom = new Idiom(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title><?php echo $idiom->getLabel_voter(); ?> </title> <link href="css/bootstrap.min.css" rel="stylesheet" media="screen"> <link href="css/style-census-electoral.css" rel="stylesheet"> </head> <body>
<?php session_start(); if (isset($_SESSION['user'])) { header('Location: http://localhost/puyaOjo/pages/home.php'); } include_once 'inc/html_block.php'; $elements = new ElementHTML(); $idiom = new Idiom(); ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title><?php echo $idiom->getTitle(); ?> | <?php echo $idiom->getTitle_login(); ?> </title> <!-- Tell the browser to be responsive to screen width --> <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> <!-- Bootstrap 3.3.5 --> <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css"> <!-- Font Awesome --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css"> <!-- Ionicons --> <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css"> <!-- Theme style -->
function cabecera() { $user = $_SESSION['user']; $name = $_SESSION['name']; $tipo = $_SESSION['tipo']; $aspiracion = $_SESSION['aspiracion']; $lastname = $_SESSION['lastname']; $elements = new ElementHTML(); $idiom = new Idiom(); $daolider = new DAOLider(); $servicio = new Servicios(); echo '<header class="main-header"> <!-- Logo --> <a href="../index.php" class="logo"> <!-- mini logo for sidebar mini 50x50 pixels --> <span class="logo-mini"><b>C</b>E</span> <!-- logo for regular state and mobile devices --> <span class="logo-lg"><b>Census</b>Electoral</span> </a> <!-- Header Navbar: style can be found in header.less --> <nav class="navbar navbar-static-top" role="navigation"> <!-- Sidebar toggle button--> <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button"> <span class="sr-only">Toggle navigation</span> </a> <!-- Navbar Right Menu --> <div class="navbar-custom-menu"> <ul class="nav navbar-nav"> <!-- Messages: style can be found in dropdown.less--> <li class="dropdown messages-menu"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="fa fa-user-plus"></i> <span class="label label-success">4</span> </a> <ul class="dropdown-menu"> <li class="header">You have 4 messages</li> <li> <!-- inner menu: contains the actual data --> <ul class="menu"> <li><!-- start message --> <a href="#"> <div class="pull-left"> <img src="dist/img/user2-160x160.jpg" class="img-circle" alt="User Image"> </div> <h4> Support Team <small><i class="fa fa-clock-o"></i> 5 mins</small> </h4> <p>Why not buy a new awesome theme?</p> </a> </li><!-- end message --> <li> <a href="#"> <div class="pull-left"> <img src="../dist/img/user3-128x128.jpg" class="img-circle" alt="User Image"> </div> <h4> AdminLTE Design Team <small><i class="fa fa-clock-o"></i> 2 hours</small> </h4> <p>Why not buy a new awesome theme?</p> </a> </li> <li> <a href="#"> <div class="pull-left"> <img src="dist/img/user4-128x128.jpg" class="img-circle" alt="User Image"> </div> <h4> Developers <small><i class="fa fa-clock-o"></i> Today</small> </h4> <p>Why not buy a new awesome theme?</p> </a> </li> <li> <a href="#"> <div class="pull-left"> <img src="dist/img/user3-128x128.jpg" class="img-circle" alt="User Image"> </div> <h4> Sales Department <small><i class="fa fa-clock-o"></i> Yesterday</small> </h4> <p>Why not buy a new awesome theme?</p> </a> </li> <li> <a href="#"> <div class="pull-left"> <img src="dist/img/user4-128x128.jpg" class="img-circle" alt="User Image"> </div> <h4> Reviewers <small><i class="fa fa-clock-o"></i> 2 days</small> </h4> <p>Why not buy a new awesome theme?</p> </a> </li> </ul> </li> <li class="footer"><a href="#">See All Messages</a></li> </ul> </li> <!-- Tasks: style can be found in dropdown.less --> <li class="dropdown tasks-menu"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="fa fa-flag-o"></i> <span class="label label-danger">9</span> </a> <ul class="dropdown-menu"> <li class="header">You have 9 tasks</li> <li> <!-- inner menu: contains the actual data --> <ul class="menu"> <li><!-- Task item --> <a href="#"> <h3> Design some buttons <small class="pull-right">20%</small> </h3> <div class="progress xs"> <div class="progress-bar progress-bar-aqua" style="width: 20%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100"> <span class="sr-only">20% Complete</span> </div> </div> </a> </li><!-- end task item --> <li><!-- Task item --> <a href="#"> <h3> Create a nice theme <small class="pull-right">40%</small> </h3> <div class="progress xs"> <div class="progress-bar progress-bar-green" style="width: 40%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100"> <span class="sr-only">40% Complete</span> </div> </div> </a> </li><!-- end task item --> <li><!-- Task item --> <a href="#"> <h3> Some task I need to do <small class="pull-right">60%</small> </h3> <div class="progress xs"> <div class="progress-bar progress-bar-red" style="width: 60%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100"> <span class="sr-only">60% Complete</span> </div> </div> </a> </li><!-- end task item --> <li><!-- Task item --> <a href="#"> <h3> Make beautiful transitions <small class="pull-right">80%</small> </h3> <div class="progress xs"> <div class="progress-bar progress-bar-yellow" style="width: 80%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100"> <span class="sr-only">80% Complete</span> </div> </div> </a> </li><!-- end task item --> </ul> </li> <li class="footer"> <a href="#">View all tasks</a> </li> </ul> </li> <!-- User Account: style can be found in dropdown.less --> <li class="dropdown user user-menu"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <img src='; echo $servicio->mostrarFoto($user); echo 'class="user-image" alt="User Image"> <span class="hidden-xs">'; echo $name . " " . $lastname; echo '</span> </a> <ul class="dropdown-menu"> <!-- User image --> <li class="user-header"> <img src='; echo $servicio->mostrarFoto($_SESSION['user']); echo 'class="img-circle" alt="User Image"> <p>'; echo $name . " " . $lastname; echo '<br>'; echo $aspiracion; echo '<small>2016-2020</small> </p> </li> <!-- Menu Body --> <li class="user-body"> <div class="col-xs-4 text-center"> <a href="#">Followers</a> </div> <div class="col-xs-4 text-center"> <a href="#">Sales</a> </div> <div class="col-xs-4 text-center"> <a href="#">Friends</a> </div> </li> <!-- Menu Footer--> <li class="user-footer"> <div class="pull-left"> <a href="profile.php" class="btn btn-default btn-flat">Perfil</a> </div> <div class="pull-right"> <a href="../inc/log_out.php" class="btn btn-default btn-flat">'; echo $idiom->getBtn_close(); echo '</a> </div> </li> </ul> </li> <!-- Control Sidebar Toggle Button --> <li> <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a> </li> </ul> </div> </nav> </header>'; }