public function __construct($ppal) { parent::__construct($ppal); $this->empresa = new empresa(); $this->fechas_facturas_cli = $this->bd->select("SELECT DISTINCT to_char(fecha,'yyyy-mm') as mes FROM facturascli ORDER BY mes DESC;"); $this->fechas_facturas_prov = $this->bd->select("SELECT DISTINCT to_char(fecha,'yyyy-mm') as mes FROM facturascli ORDER BY mes DESC;"); }
public function __construct($ppal) { parent::__construct($ppal); $this->facturas_cli = new facturas_cli(); $this->facturas_prov = new facturas_prov(); $this->opciones = new opciones(); }
public function __construct($ppal) { parent::__construct($ppal); $this->generico = true; $this->proveedores = new proveedores(); $this->get_ranking(); }
public function __construct($ppal) { parent::__construct($ppal); $this->asientos = new asientos(); $this->cuentas = new cuentas(); $this->ejercicios = new ejercicios(); }
public function __construct($ppal) { parent::__construct($ppal); $this->articulos = new articulos(); $this->incremento = 100; $this->url = ""; }
public function __construct($ppal) { parent::__construct($ppal); $this->generico = true; $this->clientes = new clientes(); $this->get_ranking(); }
public function __construct($ppal) { parent::__construct($ppal); $this->generico = TRUE; $this->articulos = new articulos(); $this->carrito = new carrito(); $this->consulta = FALSE; }
public function __construct($ppal) { parent::__construct($ppal); $this->generico = true; $this->agentes = new agentes(); $this->albaranes = new albaranes_cli(); $this->clientes = new clientes(); }
public function __construct($ppal) { parent::__construct($ppal); $this->cadena_xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!--\n Document : " . $_GET['tabla'] . ".xml\n Description:\n Estructura de la tabla " . $_GET['tabla'] . ".\n-->\n\n<tabla>\n</tabla>\n"; /// creamos el xml $this->archivo_xml = simplexml_load_string($this->cadena_xml); $this->genera_xml($_GET['tabla']); }
public function __construct($ppal) { parent::__construct($ppal); $this->articulos = new articulos(); $this->albaranes = new albaranes_cli(); $this->agentes = new agentes(); $this->reservas = new reservas(); }
public function __construct($ppal) { parent::__construct($ppal); $this->mis_opciones = new opciones(); $this->ejercicios = new ejercicios(); $this->series = new series(); $this->clientes = new clientes(); $this->impuestos = new impuestos(); }
public function __construct($ppal) { parent::__construct($ppal); $this->agentes = new agentes(); $this->get_ranking(); if (isset($_GET['cod'])) { $this->stats_agente = $this->get_stats($_GET['cod']); } }
public function __construct($ppal) { parent::__construct($ppal); $this->generico = true; $this->agentes = new agentes(); $this->albaranes = new albaranes_prov(); $this->tipos = $this->albaranes->tipos(); $this->proveedores = new proveedores(); }
public function __construct($ppal) { parent::__construct($ppal); $this->articulos = new articulos(); $this->familias = new familias(); $this->mensajes = new mensajes(); $this->incremento = 100; $this->url = ""; }
public function __construct($ppal) { parent::__construct($ppal); $this->articulos = new articulos(); $this->albaranes_cli = new albaranes_cli(); $this->albaranes_prov = new albaranes_prov(); $this->agentes = new agentes(); $this->opciones = new opciones(); $this->albaranes_hoy = array('num' => 0, 'total' => 0); }
public function __construct($ppal) { parent::__construct($ppal); $this->generico = true; $this->coletilla = "&cod=" . $_GET['cod']; $this->proveedores = new proveedores(); $this->proveedor = $this->proveedores->get($_GET['cod']); $this->direccion = $this->proveedores->get_direcciones($_GET['cod']); $this->opciones = new opciones(); $this->stats = $this->get_stats($_GET['cod']); }
public function __construct($ppal) { parent::__construct($ppal); $this->generico = FALSE; $this->articulos = new articulos(); $this->familias = new familias(); $this->impuestos = new impuestos(); $this->almacenes = new almacenes(); /// cargamos las familias $this->all_familias = $this->familias->all(); /// cargamos los impuestos $this->impuestos->all($this->all_impuestos); }
public function __construct($ppal) { parent::__construct($ppal); $this->generico = true; $this->coletilla = "&id=" . $_GET['id']; $this->agentes = new agentes(); $this->albaranes = new albaranes_prov(); $this->facturas = new facturas_prov(); $this->carrito = new carrito(); $this->ejercicios = new ejercicios(); $this->articulos = new articulos(); $this->tipos = $this->albaranes->tipos(); }
public function __construct($ppal) { parent::__construct($ppal); $this->opciones = new opciones(); $this->albaranes = new albaranes_prov(); $this->carrito = new carrito(); $this->ejercicios = new ejercicios(); $this->empresa = new empresa(); $this->proveedores = new proveedores(); $this->series = new series(); /// obtenemos las opciones de facturaScripts $this->opciones->all($this->mis_opciones); }
public function __construct($ppal) { parent::__construct($ppal); $this->ejercicios = new ejercicios(); $this->asientos = new asientos(); $this->facturas = new facturas_cli(); /// cargamos el asiento if (!$this->asientos->get($_GET['id'], $this->asiento)) { $this->asiento = false; } /// cargamos las partidas if (!$this->asientos->get_partidas($_GET['id'], $this->partidas)) { $this->partidas = false; } }
public function __construct($ppal) { parent::__construct($ppal); $this->agentes = new agentes(); $this->albaranes = new albaranes_cli(); $this->facturas = new facturas_cli(); $this->carrito = new carrito(); $this->empresa = new empresa(); $this->ejercicios = new ejercicios(); $this->opciones = new opciones(); $this->generico = true; $this->coletilla = "&id=" . $_GET['id']; $this->albaran = false; $this->lineas = false; $this->mi_carrito = false; }
public function __construct($ppal) { parent::__construct($ppal); /// leemos todas las fechas del log $this->fechas_log = $this->bd->select("SELECT DISTINCT to_char(fecha,'yyyy-mm') as mes FROM fs_mensajes WHERE tipo = 'auto' ORDER BY mes DESC;"); if (isset($_POST['fecha'])) { /// leemos el log if ($_POST['fecha'] == '' or $_POST['fecha'] == '-') { $this->log = $this->bd->select_limit("SELECT * FROM fs_mensajes WHERE tipo = 'auto' ORDER BY fecha DESC, id DESC", 100, 0); } else { $this->log = $this->bd->select("SELECT * FROM fs_mensajes WHERE tipo = 'auto' AND to_char(fecha,'yyyy-mm') = '" . $_POST['fecha'] . "'\n ORDER BY fecha ASC, id ASC;"); } } else { $this->log = $this->bd->select_limit("SELECT * FROM fs_mensajes WHERE tipo = 'auto' ORDER BY fecha DESC, id DESC", 100, 0); } }
public function __construct($ppal) { parent::__construct($ppal); $this->generico = true; $this->coletilla = ''; if (isset($_GET['buscar'])) { $this->coletilla .= "&buscar=" . rawurldecode($_GET['buscar']); } if (isset($_GET['tipo'])) { $this->coletilla .= "&tipo=" . $_GET['tipo']; } if (isset($_GET['f'])) { $this->coletilla .= "&f=" . $_GET['f']; } $this->articulos = new articulos(); $this->familias = new familias(); }
public function __construct($ppal) { parent::__construct($ppal); $this->generico = true; $this->coletilla = "&cod=" . $_GET['cod']; $this->familias = new familias(); /// cargamos la familia if ($this->familias->get($_GET['cod'], $this->familia)) { $this->stats_familia($_GET['cod']); if ($this->familia['articulos'] > 0) { $this->familia['p_bloqueados'] = number_format($this->familia['bloqueados'] / $this->familia['articulos'] * 100, 2); $this->familia['p_stock'] = number_format($this->familia['stock'] / $this->familia['articulos'] * 100, 2); } else { $this->familia['p_bloqueados'] = 0; $this->familia['p_stock'] = 0; } } }
public function __construct($ppal) { parent::__construct($ppal); $this->ejercicios = new ejercicios(); $this->facturas = new facturas_prov(); /// cargamos la factura if (!$this->facturas->get($_GET['id'], $this->factura)) { $this->factura = false; } /// cargamos las lineas if (!$this->facturas->get_lineas($_GET['id'], $this->lineas)) { $this->lineas = false; } /// cargamos las partidas $this->partidas = $this->facturas->get_asientos($this->factura['codigo']); /// cargamos las lineas de IVA if (!$this->facturas->get_lineasiva($_GET['id'], $this->lineas_iva)) { $this->lineas_iva = false; } }
public function __construct($ppal) { parent::__construct($ppal); $this->ejercicios = new ejercicios(); $this->facturas = new facturas_cli(); $this->agentes = new agentes(); /// Cargamos la factura if (!$this->facturas->get($_GET['id'], $this->factura)) { $this->factura = false; } /// Cargamos las líneas if (!$this->facturas->get_lineas($_GET['id'], $this->lineas)) { $this->lineas = false; } /// Cargamos los asientos $this->partidas = $this->facturas->get_asientos($this->factura['codigo']); /// Cargamos el iva if (!$this->facturas->get_lineasiva($_GET['id'], $this->lineas_iva)) { $this->lineas_iva = false; } }
public function __construct($ppal) { parent::__construct($ppal); $this->generico = true; $this->familias = new familias(); $this->get_ranking(); if (isset($_GET['buscar'])) { $this->buscar = $_GET['buscar']; } else { $this->buscar = ''; } if (isset($_GET['p'])) { $this->pagina = $_GET['p']; } else { $this->pagina = ''; } if (isset($_GET['t'])) { $this->total = $_GET['t']; } else { $this->total = ''; } }
/** * Parse the template or if $section is set and the section exists, parse the specified section * * @param string $section */ public function render($section = null) { $oldSearchpath = One_Script_Factory::getSearchPath(); One_Script_Factory::setSearchPath($this->getSearchPath()); if ($this->useFile()) { $this->script->load($this->getFile()); if ($section !== null) { $this->script->select($section); } if (!$this->script->isError()) { $output = $this->script->execute($this->getData()); } } else { $this->script->select($section); $output = $this->script->executeString($this->getContent(), $this->getData()); } One_Script_Factory::setSearchPath($oldSearchpath); One_Script_Content_Factory::clearContentCache(); // *** why is this here ? WTF ! if ($this->script->isError()) { throw new One_Exception_Script($this->script->error); } return trim($output); }
public function eval_function($function, $args) { $method = '__' . $function; $result = ''; if (strpos($function, '::') !== false) { list($class, $class_method) = explode('::', $function, 2); if (!isset($this->xt_syntax_plugins[$class]) || $this->xt_syntax_plugins[$class]) { if (!isset($this->xt_syntax_plugins[$class])) { if (file_exists($this->xt_syntax_plugins_directory . 'xt_' . $class . '.php')) { require $this->xt_syntax_plugins_directory . 'xt_' . $class . '.php'; if (class_exists('xt_' . $class)) { $this->xt_syntax_plugins[$class] = true; if (method_exists('xt_' . $class, '__setup') && is_callable(array('xt_' . $class, '__setup'))) { call_user_func(array('xt_' . $class, '__setup'), $this->url, $this->info); } } } } foreach ($args as $key => $val) { $args[$key] = $this->eval_vars($val); } return call_user_func(array('xt_' . $class, $class_method), $args); } } if (method_exists($this, $method)) { foreach ($args as $key => $val) { $args[$key] = $this->eval_vars($val); } $result = call_user_func(array($this, $method), $args); } else { if (!isset($this->xt_syntax_functions[$function]['code'])) { $result = 'XtScript Error: Undefined function `' . $function . '`'; } else { $arguments = $this->xt_syntax_functions[$function]['args']; foreach ($arguments as $key => $val) { if (isset($args[$key])) { $arguments[$key] = $this->eval_vars($args[$key]); } } $vars = array_merge($this->vars, $arguments); $obj = new script($this->url, $this->info, $vars, $this->xt_syntax_functions); $result = $obj->eval_syntax($this->xt_syntax_functions[$function]['code'], $this->version); } } return $result; }
public function __construct($ppal) { parent::__construct($ppal); $this->agentes = new agentes(); $this->agentes->all($this->mis_agentes); }