/** * Retorna el mensaje de error cuando el campo no es v�lido * @access public * @return (string) mensaje de error */ function getError() { if ($this->_key) { return PropertiesHelper::GetKey($this->_key); } return PropertiesHelper::GetKey('Especificar el campo ') . $this->_field; }
function getError() { if ($this->_key) { return PropertiesHelper::GetKey($this->_key); } return PropertiesHelper::GetKey('Campo demasiado largo: ') . $this->_field; }
/** * Retorna el mensaje de error cuando el campo no es válido * @access public * @return (string) mensaje de error */ function getError() { if ($this->_key) { return PropertiesHelper::GetKey($this->_key); } return 'El campo ' . $this->_field . ' debe ser un valor numérico'; }
/** * Retorna el mensaje de error cuando el campo no es válido * @access public * @return (string) mensaje de error */ function getError() { if ($this->_key) { return PropertiesHelper::GetKey($this->_key); } return 'El dato en el campo ' . $this->_field . ' no es una dirección de Email válida'; }
/** * @see Validator */ function getError() { if ($this->_key) { return PropertiesHelper::GetKey($this->_key); } return "Usuario o clave incorrectos"; }
function getError() { if ($this->_key) { return PropertiesHelper::GetKey($this->_key); } return PropertiesHelper::GetKey('Campo fuera de limite: ') . $this->_field; }
/** * Retorna el mensaje de error cuando el campo no es v�lido * @access public * @return (string) mensaje de error */ function getError() { if ($this->_key) { return PropertiesHelper::GetKey($this->_key); } return 'La Fecha de ' . $this->_field . ' no es v�lida'; }
function ListadoTareas($params) { parent::Listado(); $tareaDAO = new TareaDAO(); // Cargar la consulta para el listado $sql = $tareaDAO->getSqlEstadoTareas($params); // Configuracion $this->mensaje = PropertiesHelper::GetKey("monitoreo.tarea.listado.mensaje"); $this->orden = "orden"; $this->ex_pasaget = array("orden"); $cfilas = "25"; $maxpag = "5"; //$this->mostrar_total = true; $this->titulo_general = ""; //$this->mensaje_total = PropertiesHelper::GetKey("monitoreo.tarea.listado.total"); $order_default = "timestamp_ingreso"; $orden_tipo = "asc"; $mostrar_total = false; // Columnas $columnas["Nombre actual de la tarea"] = array("nombre" => "Nombre", "title" => "Nombre", "dato_align" => "left", "datos" => array("nombre_actual"), "orden" => "nombre_actual", "fijo" => true, "dato_width" => "23%"); $columnas["Estado"] = array("nombre" => "Estado", "title" => "Estado", "dato_align" => "left", "datos" => array("nombre_estado"), "orden" => "nombre_estado", "fijo" => true, "dato_width" => "20%"); $columnas["Instante de inicio"] = array("nombre" => "Instante de inicio", "title" => "Instante de inicio", "dato_align" => "left", "datos" => array("timestamp_ingreso"), "orden" => "timestamp_ingreso", "fijo" => true, "dato_width" => "20%"); $columnas["Exito"] = array("nombre" => "Exito", "fijo" => true, "title" => "Exito", "orden" => "fallo", "dato_align" => "center", "dato_width" => "5%", "dato_foto_variable" => 'fallo'); // Cargar parametros $this->escapear_html = false; $this->datos($sql, $_POST, $columnas, $cfilas, $maxpag, $order_default, $orden_tipo); }
function getMensaje($key, $error = 0) { $m = PropertiesHelper::GetKey($key); if ($error) { $s = '<div class="msg_error">' . $m . '</div><br/>'; } else { $s = '<div class="msg_notify">' . $m . '</div><br/>'; } return $s; }
/** * Devuelve tags de HTML con la lista de errores. El formato del HTML es con tags '<li>' de una UL * * @access public * @return (string) HTML con la lista de errores, o un string vac�o si no hay errores */ function getHTMLErrors() { if (!empty($this->_errors)) { $html = '<font style="color:red;padding-left:4px;"size="-1">' . PropertiesHelper::GetKey('corregir_datos'); $html .= '<br/>• '; $html .= implode('<br/>• ', $this->_errors); $html .= '</font>'; $html .= '<br />'; return $html; } return ""; }
<h2 align="right"><?php echo PropertiesHelper::GetKey('estadisticas.alarmas'); ?> </h2> <br> <?php echo $errores; echo $mensaje; ?> <form method="GET" name="estadistica_alarma" action=""> <input type="hidden" name="accion" value="estadistica_alarma" /> <fieldset> <legend>Estadísticas de alarmas</legend><br> <br> <table width="100%" align="center" border="0"> <tr> <td rowspan="2" align="right" width="25%">Fecha de búsqueda</td> <td align="center"> Desde <input type="text" id="fecha_desde" name="fecha_desde" readonly="readonly" size="10" value="<?php echo $fecha_desde; ?> " /> <button type="button" id="mostrarCalendario_desde"><img src="imagenes/calendario.png"/></button><?php echo getCalendarDefinition("fecha_desde", "mostrarCalendario_desde"); ?> <select id="horas_desde" name="horas_desde" ><?php
<h2 align="right"><?php echo PropertiesHelper::GetKey('administrar.guardias'); ?> </h2> <br> <?php echo $errores; echo $mensaje; ?> <form method="GET" name="guardia_adm" action=""> <input type="hidden" name="accion" value="guardia_adm" /> <fieldset> <legend><?php echo $keys['guardia.adm.datos']; ?> </legend><br> <br> <table width="100%" align="center" border="0"> <tr> <td align="right" width="25%">Nombre</td> <td><input type="text" name="nombre" value="<?php echo htmlentities($nombre); ?> " style="width: 410px"/></td> </tr> <tr> <td align="right">Codigo tarjeta RFID</td>
/** * Retorna el mensaje de error cuando el campo no es v�lido * @access public * @return (string) mensaje de error */ function getError() { return PropertiesHelper::GetKey($this->_key); }
<h2 align="right"><?php echo PropertiesHelper::GetKey('estadisticas.rondas.realizadas'); ?> </h2> <br> <?php echo $errores; echo $mensaje; ?> <form method="GET" name="estadistica_ronda_realizada" action=""> <input type="hidden" name="accion" value="estadistica_ronda_realizada" /> <fieldset> <legend><?php echo $keys['estadisticas.rondas.realizadas']; ?> </legend><br> <br> <table width="100%" align="center" border="0"> <tr> <td align="right" width="25%">Nombre</td> <td><input type="text" name="nombre" value="<?php echo htmlentities($nombre); ?> " style="width: 410px"/></td> </tr> <tr> <td align="right">Codigo tarjeta RFID</td>
<h2 align="right"><?php echo PropertiesHelper::GetKey('administrar.dispositivos'); ?> </h2> <br> <?php echo $errores; echo $mensaje; ?> <form method="GET" name="dispositivo_adm" action=""> <input type="hidden" name="accion" value="dispositivo_adm" /> <fieldset> <legend><?php echo $keys['dispositivo.adm.datos']; ?> </legend><br> <br> <table width="100%" align="center" border="0"> <tr> <td align="right" width="25%">Código</td> <td><input type="text" name="codigo" value="<?php echo htmlentities($codigo); ?> " style="width: 410px"/></td> </tr> <tr>
<h2 align="right"><?php echo PropertiesHelper::GetKey('administrar.usuarios'); ?> </h2> <br> <?php echo $errores; echo $mensaje; ?> <form method="GET" name="usuario_adm" action=""> <input type="hidden" name="accion" value="usuario_adm" /> <fieldset> <legend><?php echo $keys['usuario.adm.datos']; ?> </legend><br> <br> <table border="0" style="width:100%" border="0"> <tr> <td align="right"><p>Usuario</p></td> <td align="left"><input type="text" name="usuario" value="<?php echo htmlentities($usuario); ?> " size="25"/></td> <td align="right"><p>Rol</p></td> <td align="left"><select name="id_rol"><?php ComboControl::Display($options_rol, $id_rol); ?> </select></td> </tr>