static function __construct2($descripcion, $cuenta) { $nuevoServicio = new Servicios(); $nuevoServicio->setDescripcion_Servicio($descripcion); $nuevoServicio->setCuenta_Asociada($cuenta); return $nuevoServicio; }
public function Factura($Id_reserva) { $Ser = new Servicios(); $Reserva = new ModelReserva(); $Res = array(); $Datos = $Reserva->ReservaPaga($Id_reserva); foreach ($Datos as $Temp) { $Res = $Temp; $Res['Servicios'] = $Ser->ServiciosXPaquete($Temp['Paquete']); } return $Res; }
public function postMobilService() { if (Request::ajax()) { $id = Input::get('id'); $serv = Servicios::find($id); $servicio = ContServ::where('id_serv', '=', $id)->get(); return Response::json(array('serv' => $serv->toArray(), 'contserv' => $servicio->toArray())); } }
public function getIndex() { $title = 'Tecnographic Venezuela | diseño y desarrollo de paginas web,imagen corporativa y sistemas administrativos'; $meta = "Somos una empresa de diseño y desarrollo de paginas web en la ciudad de maracay"; $href = array('#home', '#about', '#project', '#news', '#contact'); $servicios = Servicios::get(); $slidesSup = Slides::where('tipo', '=', 1)->where('activo', '=', 1)->where('deleted', '=', 0)->get(); $slidesInf = Slides::where('tipo', '=', 2)->where('activo', '=', 1)->where('deleted', '=', 0)->get(); return View::make('home.index')->with('title', $title)->with('href', $href)->with('meta', $meta)->with('servicios', $servicios)->with('slidesSup', $slidesSup)->with('slidesInf', $slidesInf)->with('lang', Session::get('language')); }
<?php include_once '../Controller/Servicios.php'; $servi = new Servicios(); $id_paquete = $_POST['Paquetes']; $estado = $_POST['estado']; $id_servicio_paquete = $_POST['id_servicio']; echo $servi->QuitarServiciosPaquete($id_servicio_paquete);
<?php include_once '../Controller/Visual.php'; include_once '../Controller/Servicios.php'; $Render = new Visual(); $Insertar = new Servicios(); $id_paquete = $_POST['paquete']; $id_servicio = $_POST['Servicio']; $cantidad_servicios = $_POST['Cantidad']; $valor_unitario_servicio = $_POST['Precio']; $id = $Insertar->ArmarPaquetes($id_paquete, $id_servicio, $cantidad_servicios, $valor_unitario_servicio); echo $id;
<?php include_once '../Controller/Servicios.php'; $Ser = new Servicios(); extract($_POST); echo '<pre>'; $Datos = $Ser->Servicio_Paquete($id); echo '<label>Cantidad</label><input id="CantServicio" value="' . $Datos['cantidad_servicios'] . '" class="form-control"/> <label>Precio</label><input id="PrecioServicio" value="' . number_format($Datos['valor_unitario_servicio'], 0, '.', '') . '" class="form-control"/> <input type="hidden" id="id_servicio_paquete" value="' . $id . '">';
public function getSubServicesSelf($id) { $contServ = ContServ::find($id); $serv = Servicios::all(); $title = "Modificación del Sub-servicio " . $contServ->nombre; return View::make('admin.editSubServiceSelf')->with('title', $title)->with('serv', $serv)->with('contServ', $contServ); }
<?php include_once '../Controller/Servicios.php'; include_once '../Controller/Visual.php'; $Render = new Visual(); $Paquete = new Servicios(); $municipio = 0; if (isset($_POST['municipio'])) { $municipio = $_POST['municipio']; } $FechaInicion = $_POST['FechaInicion']; $FechaFin = $_POST['FechaFin']; $n_pagina = $_POST['n_pagina']; $cantidad_registros_pagina = $_POST['cantidad_registros_pagina']; $Datos = $Paquete->BuscarPaquetes($municipio, $FechaInicion, $FechaFin, $n_pagina, $cantidad_registros_pagina); $cantidad = $Datos['Cantidad'] / $cantidad_registros_pagina; $col = 2; $count = count($Datos['Datos']); $Res = $Datos['Datos']; if ($count > 0) { for ($i = 0; $i < $count; $i++) { $value = $Res[$i]; $id_paquete = $value['id_paquete']; $Nombre = $value['Nombre']; $Valor = $value['Valor']; $Fecha = $value['Fecha_inicio']; $Image = $value['foto']; $Decripcion = $value['Descripcion']; $Datos = array('Nombre' => $Nombre, 'Valor' => $Valor, 'Fecha' => $Fecha, 'Image' => $Image, 'Descripcion' => $Decripcion); $html = '<div class="col-lg-' . $col . '">' . '<a href="javascript:VerModal(' . $id_paquete . ');"> <div class="panel panel-primary" title="' . $Decripcion . '">
<?php include_once '../Controller/Servicios.php'; include_once '../Controller/Visual.php'; $render = new Visual(); $Paquete = new Servicios(); $id_paquete = $_POST['id']; $Paqueteinfo = $Paquete->VerDescripcionPaquete($id_paquete); $Titulo = strtoupper('<center>' . $Paqueteinfo['Nombre'] . ' - $' . number_format($Paqueteinfo['Valor']) . '</center>'); $Detalle = $Paqueteinfo['Descripcion']; $PaqueteDetalle = $Paquete->ServiciosXPaquete($id_paquete); $PaqueteDetalle = $render->FormatoTable($PaqueteDetalle); $PaqueteDetalle = $render->Tabla($PaqueteDetalle, '1', array('Servicio', 'Precio unitario', 'Proveedor', 'Direccion', 'Telefono', 'Email', 'Cantidad', 'Valor con paquete'), 'table'); $Botones = '<button type="button" class="btn btn-primary">Comprar</button>'; $Botones .= '<button type="button" class="btn btn-success">Cotizar</button>'; $Botones .= '<button type="button" class="btn btn-danger" data-dismiss="modal">Salir</button>'; $Datos = array('Titulo' => $Titulo, 'Contenido' => $Detalle . '<br/><h1>Servicios</h1>' . $PaqueteDetalle . '<br/>', 'Botones' => $Botones); echo json_encode($Datos);
/** * @param str/string valor es una cadena con cualquier serie de simbolos * @param int/integer valor es una cadena con cualquier serie de simbolos * @return str/string si es la entrada cumple con los requerimientos * @soap */ public function verBoletos($referencia = false, $numeroBoletos = false) { $error = array('codigo' => -1, 'popsae' => 1, 'msg' => "No se encontro el error.", "visible" => 1); $formatoInterno = 'BoletoFormatoSimple'; $eventos = array(539, 558); $servicios = new Servicios($referencia); // echo CHtml::openTag("pre"); //Validar que el numero de boletos que se vendieron sea igual al de la referencia xxxxxxxxxxNN $lugares = $servicios->buscarBoletos($referencia, $numeroBoletos); $tickets = array(); $coords = Formatosimpresionlevel1::model()->findAllByAttributes(array('FormatoId' => 3)); $matrizCoord = array(); require_once dirname(__FILE__) . '/../extensions/cbarras/ean.php'; foreach ($coords as $coord) { $matrizCoord[$coord->FormatoObj] = array($coord->FormatoX, $coord->FormatoY); } foreach ($lugares as $lugar) { // print_r($lugar); $encoder = new EAN13($lugar->LugaresNumBol, 2); $fila = explode(',', str_replace(' ', ' ', $lugar->fila->FilasAli)); $fali = array_pop($fila); $imaBol = ""; try { if (in_array($lugar->EventoId, $eventos)) { $formatoInterno = 'BoletoFormatoUdlap'; } if (strlen($lugar->evento->EventoImaBol) > 0) { $imaBol = base64_encode(@file_get_contents('http://taquillacero.com/imagesbd/' . $lugar->evento->EventoImaBol)); } } catch (Exception $e) { // $error['codigo']=601; // $error['msg']="No se encontro la imagen del boleto."; // $error['popsae']=2; } $tickets[] = array('SubzonaAcc' => $lugar->subzona->SubzonaAcc, 'ZonasAli' => $lugar->zona->ZonasAli . " " . array_pop($fila), 'FilasAli' => $fali, 'LugaresLug' => $lugar->lugar->LugaresLug, 'VentasBolTip' => $lugar->VentasBolTip, 'VentasCosBol' => number_format($lugar->precios->VentasCosBol, 0), 'VentasCarSer' => number_format($lugar->precios->VentasCarSer), 'EventoDesBol' => $lugar->evento->EventoDesBol, 'EventoNom' => $lugar->evento->EventoNom, 'ForoNom' => $lugar->foro->ForoNom, 'funcionesTexto' => $lugar->funcion->funcionesTexto, 'VentasCon' => $lugar->VentasCon, 'LugaresNumBol' => $lugar->LugaresNumBol, 'codigo' => base64_encode($encoder->display()), 'contenedor1' => $imaBol); } $boletos = array('boletos' => $tickets); // echo "<pre>"; $e = Yii::app()->mustache->render($formatoInterno, $boletos, null, null, false); $jes = CJSON::decode($e); $ret = array(); array_pop($jes); // var_export($jes); foreach ($jes as $boleto) { foreach ($boleto as $key => $item) { try { if (array_key_exists($key, $matrizCoord)) { $boleto[$key][0] += $matrizCoord[$key][0]; $boleto[$key][1] += $matrizCoord[$key][1]; } } catch (Exception $e) { } } $ret[] = array_values($boleto); } // print_r($ret); // echo "</pre>"; // echo CHtml::closeTag('pre'); return CJSON::encode(array("error" => $error, "venta" => $ret)); }
public function eliminarServicio() { $id = $_POST['eliminarID']; $servicio = new Servicios(); $servicio->deleteServicio($id); $this->load->view('servicio.html'); $servicio->to_table($servicio->listar_Tabla()); }
$app->post('/datos', function (Request $req, Response $res, $args = []) { $args = $req->getParsedBody(); //var_dump($args); //echo $args['usr']; /* return $res->withHeader( 'Content-Type', 'application/json' ); */ //$cnxn = getCnxn(); //var_dump($cnxn); return $res->withStatus(200)->withHeader('Content-Type', 'application/json')->write(json_encode(array("success" => 1, "data" => $args))); }); $app->get('/orm', function () { $servicios = Servicios::all(); //$log->addDebug('getServicio rs', var_export($servicios)); foreach ($servicios as $servicio) { /* for ($i = 1; $i<=10; $i++) { $oScore = new Score(); $oScore->round = $i; $oScore->points = rand(0,10); $oScore->user_id = $servicio->idx; $oScore->save(); } */ echo $servicio->idx . "<br>"; } }); $app->get('/hello/{name}', function (Request $req, Response $res) {
<?php if (isset($_POST['Servicio'])) { include_once '../Controller/Servicios.php'; $Servicios = new Servicios(); $Paquetes = $_POST['Paquetes']; $Servicio = $_POST['Servicio']; $Cantidad = $_POST['Cantidad']; $Precio = $_POST['Precio']; $Porcentaje = $_POST['Porcentaje']; if ($Paquetes == 0) { echo '<p class="bg-danger"><h1 align="center">Por favor seleccione todas las opciones<h1></p>'; exit; } if ($Servicios == '0') { echo '<p class="bg-danger"><h1 align="center">Por favor seleccione todas las opciones<h1></p>'; exit; } if ($Cantidad == 0) { echo '<p class="bg-danger"><h1 align="center">Por favor seleccione todas las opciones<h1></p>'; exit; } $Servicios->ArmarPaquetes($Paquetes, $Servicio, $Cantidad, $Precio, $Porcentaje); echo '<h1 align="center"><p class="alert alert-danger" role="alert">Por favor seleccione todas las opciones</p></h1>'; } else { echo '<h1 align="center"><p class="alert alert-danger" role="alert">Por favor seleccione todas las opciones</p></h1>'; }
<?php if (isset($_POST['Paquetes'])) { include_once '../Controller/Servicios.php'; include_once '../Controller/Visual.php'; $Render = new Visual(); $Servicios = new Servicios(); $id_paquete = $_POST['Paquetes']; echo '<pre>'; $Datos = $Render->FormatoSelect($Servicios->VerServiciosEditDelete($id_paquete)); /* $Datos=$Render->FormatoNumerico($Datos,'6','',0); $Datos=$Render->FormatoNumerico($Datos,'7','$',0); * */ $Datos = $Render->FormatoNumerico($Datos, '9', '$', 0); $En = array('#', 'Editar', 'Eliminar', 'Servicio', 'Precio', 'Proveedor', 'Direccion', 'Telefono', 'Email', 'incluidos', 'Valor'); echo $Render->Tabla($Datos, '', $En, 'table', '', TRUE); }
function buscar_votante($documento) { $service = new Servicios(); $result = $service->muestraVotante($documento); return $result; }
<?php include_once '../Controller/Visual.php'; include_once '../Controller/Servicios.php'; $Render = new Visual(); $Proveedor = new Servicios(); $Proveedores = $Proveedor->VerProveedoresActivos(); echo '<div="row">'; echo '<div class="col-lg-2"><label from ="Proveedor">Proveedor</label></div><div class="col-lg-10">' . $Render->Select($Proveedores, 'id_proveedores', '', 'id_proveedores', 'buscarservicios()', '', '', 'form-control') . '</div>'; echo '</div>';
<?php include_once '../Controller/Servicios.php'; include_once '../Controller/Visual.php'; $render = new Visual(); $Mun = new Servicios(); $Datos = $render->FormatoSelect($Mun->VerMunicipios()); echo $render->Select($Datos, 'id_municipios', '', 'id_municipios', '', '', '', 'form-control');
function logoPartido($user) { $tipo = $_SESSION['tipo']; $servicio = new Servicios(); if ($tipo == 1) { $daoinscripcion = new InscripcionCandidato(); $inscripcion = $daoinscripcion->mostrarCandidato($user); echo ' <div class="box box-danger"> <div class="box-header "></div> <div class="text-center"> <img src=' . $servicio->mostrarLogoPartido($_SESSION['user']) . ' class="user-image" alt="User Image"> <div class="box-header with-border"> </div> </div> </div>'; } }
<?php include_once '../Controller/Servicios.php'; $Servicios = new Servicios(); $id_servicio_paquete = $_POST['id_servicio_paquete']; $edit_ganancia = $_POST['edit_ganancia']; $edit_cantidad = $_POST['edit_cantidad']; $edit_porcentaje = $_POST['edit_porcentaje']; $Servicios->EditarServiciosPaquete($id_servicio_paquete, $edit_cantidad, $edit_ganancia, $edit_porcentaje);
<?php include_once '../Controller/Visual.php'; include_once '../Controller/Servicios.php'; $Render = new Visual(); $Servicios = new Servicios(); $id_proveedor = $_POST['proveedor']; $Servicio = $Render->FormatoSelect($Servicios->VerServiciosProveedor($id_proveedor)); echo $Render->Select($Servicio, 'Servicios', '', 'idServicios', '', '', '', 'form-control');
<?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 include_once '../Controller/Servicios.php'; $paquete = new Servicios(); extract($_POST); echo $paquete->AutorizarPaquetes($id, 'N');
<?php include_once '../Controller/Servicios.php'; include_once '../Controller/Visual.php'; $Number = new Visual(); $id_servicio_paquete = $_POST['id_servicio']; $Servicio = new Servicios(); $Datos = $Servicio->Servicio_Paquete($id_servicio_paquete); $Datos['cantidad_servicios'] = number_format($Datos['cantidad_servicios']); $Datos['valor_unitario_servicio'] = number_format($Datos['valor_unitario_servicio'], 0); $Datos['porcentaje_admin'] = number_format($Datos['porcentaje_admin'], 2, '.', ','); ?> <div class = "container-fluid"> <div class = "panel panel-primary"> <div class = "panel-heading"> Editar servicio </div> <div class = "panel-body"> <div id = "Armar-Paquetes"> <input type="hidden" id="id_servicio_paquete" value="<?php echo $id_servicio_paquete; ?> "/> <div class = "row"> <div class = "col-lg-3"><label for = "Paquete" >Paquete</label></div> </div> <div class = "row"> <div class = "col-lg-3"><label for = "Proveedor" >Proveedor</label></div> <div class = "col-lg-9"><input type="text" readonly="true" class="form-control" value="<?php echo $Datos['Proveedor'];
<?php include_once '../Controller/Servicios.php'; include_once '../Controller/Visual.php'; $Render = new Visual(); $Ser = new Servicios(); $id_proveedor = $_POST['id_proveedor']; $res = $Ser->VerServiciosProveedor($id_proveedor); $res = $Render->FormatoTable($res); $res = $Render->FunctionTable($res, 0, 'Editar', 'images/lapiz.png'); echo $Render->Tabla($res, '1', array('#', 'Editar', 'Servicio', 'Estado', 'Disponible'), "table table-hover", '', true);
<?php include_once '../Controller/Servicios.php'; $id_servicio_paquete = $_POST['id']; $id_Paquetes = $_POST['Paquetes']; $Ser = new Servicios(); $Datos = $Ser->VerServicioPaquete($id_servicio_paquete); $Ser->Eliminar($id_servicio_paquete); $Ser->ActualiarPaquete($id_Paquetes); echo '<div class="row">' . '<div class="col-lg-12">' . '<h1>Se elimino el servicio "' . strtoupper($Datos['servicio']) . '" del proveedor "' . strtoupper($Datos['proveedor']) . '", ' . 'Cantidad "' . $Datos['cantidad_servicios'] . '"</h1>' . '</div></div>';
<?php if (isset($_POST['Paquetes']) && $_POST['Paquetes'] != '0') { include_once '../Controller/Servicios.php'; include_once '../Controller/Visual.php'; $Descripcion = new Servicios(); $Render = new Visual(); $Municipios = $Descripcion->VerMunicipios(); $Municipios = $Render->FormatoSelect($Municipios); $id_paquete = $_POST['Paquetes']; $Datos = $Descripcion->VerDescripcionPaquete($id_paquete); $Nombre = $Datos['Nombre']; $Valor = $Datos['Valor']; $Fecha_inicio = $Datos['Fecha_inicio']; $Fecha_fin = $Datos['Fecha_fin']; $id_Muncipio = $Datos['id_Muncipio']; $Descripciones = $Datos['Descripcion']; echo '<div class="row"><div class="col-lg-12"><label from="Nombre">Nombre:</label><input type="text" value="' . $Nombre . '" name="Nombre" class="form-control"></div></div>'; echo '<div class="row"><div class="col-lg-12"><h5>Valor: $' . number_format($Valor, 0, ',', '.') . '</h5>'; echo '<div class="row"><div class="col-lg-12"><label from="Descripcion">Descripcion:</label><textarea rows="5" name="Descripcion" value="s" class="form-control">' . $Descripciones . '</textarea></div></div>'; echo '<div class="row"><div class="col-lg-12"><label from="FechaInicio">Fecha de inicio:</label><input type="text" value="' . $Fecha_inicio . '" name="FechaInicio" id="FechaInicio" class="form-control"></div></div>'; echo '<div class="row"><div class="col-lg-12"><label from="FechaFin">Fecha de fin:</label><input type="text" value="' . $Fecha_fin . '" name="FechaFin" id="FechaFin" class="form-control"></div></div>'; echo '<div class="row"><div class="col-lg-12"><label from="Municipio">Municipio</label>' . $Render->Select($Municipios, 'Municipios', $id_Muncipio, 'id_Muncipio', '', '', '', 'form-control') . '</div></div>'; echo '<button class="btn btn-success" onclick="GuardarPaquetes()">Guardar</button>'; echo ' <script> $("#FechaInicio").datepicker({dateFormat: "yy-mm-dd"}); $("#FechaFin").datepicker({dateFormat: "yy-mm-dd"}); </script>'; } else { echo null; }
function CambiarDisponibilidadServicio($cod_proveedor, $id_servicio) { $Ver = new Servicios(); return $Ver->CambiarDisponibilidadServicio($cod_proveedor, $id_servicio); }
<?php include_once 'Controller/Servicios.php'; $Ser = new Servicios(); $id = $_GET['id']; $nombre = $id . '-' . basename($_FILES['image']['name']); $uploaddir = 'images/other/'; $uploadfile = $uploaddir . $nombre; if (move_uploaded_file($_FILES['image']['tmp_name'], $uploadfile)) { echo $Ser->CambiarImagen($id, $uploadfile); header("Expires: Tue, 03 Jul 2001 06:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); echo '<script>history.back()</script>'; } else { echo 'error'; }
<?php include_once '../Controller/Servicios.php'; include_once '../Controller/Visual.php'; $servicios = new Servicios(); $Render = new Visual(); if ($_POST['idPaquetes'] != "0") { $id_paquete = $_POST['idPaquetes']; $Res = $servicios->VerDescripcionPaquete($id_paquete); $Ser = $servicios->ServiciosXPaquete($id_paquete); $Ser = $Render->FormatoTable($Ser); $Ser = $Render->FormatoNumerico($Ser, '1', '$'); $Ser = $Render->FormatoNumerico($Ser, '7', '$'); echo '<div class="row"> <div class="col-lg-12" id="reserva"> <div class="panel panel-default"> <div class="panel-heading"> <h4>' . $Res['Nombre'] . '</h4> </div> <div class="panel-body"> Precio: <strong>$' . $Res["Valor"] . '</strong> <br/> Fecha de inicio: <strong>' . $Res["Fecha_inicio"] . '</strong> <br/> Fecha de fin: <strong>' . $Res["Fecha_fin"] . '</strong> <br/> Municipio: <strong>' . $Res["nombreMunicipio"] . '</strong> <br/> <h3>' . $Res["Descripcion"] . '</h3> <br/> <button class="btn btn-primary" onclick="Reservar()">Reservar</button> </div> </div> <div class="row"> <div class="col-lg-12"> <div class="panel panel-default">