/home/tenochti/public_html/application/cache/8089196fcab3faf5e7c75a15cbe6b751
<form>
<?php echo $__env->make("partials.form.input_textarea",array(
'name' => 'text',
'label' => 'Mensaje de introducción',
'placeholder'=>'',
'maxlength'=>'2048'), array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<div>
<button type="button" class="btn btn-default cancelHomeTextEditBtn">Cancelar</button>
<button type="submit" class="btn btn-primary save">Guardar</button>
</div>
<br>
</form>
<?php } ?>
</div>
</div>
</center>
<div class="alert alert-info" role="alert">
<span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span>
<span class="sr-only">Error:</span>
Información de la administración de <b><i><?php echo $administracion->representante; ?></i></b>, para el periodo comprendido del <b><i><?php echo e($administracion->fecha_inicio->format('d/m/Y')); ?></i></b> al <b><i><?php echo e($administracion->fecha_termino->format('d/m/Y')); ?></i></b>.
</div>
<div ng-app="app" ng-controller="HomeCtrl" ng-init="InitialData = {AdministracionId:<?php echo e($administracion->id); ?>, text:'<?= htmlentities ($text) ?>'}">
<script type="text/ng-template" id="fraccion-template.html">
<div uib-accordion-group class="panel-default" is-open="value._isOpen" style="margin-bottom:5px">
<div uib-accordion-heading>
<div ng-click="LoadNodes(value)">
<span ng-bind="value.text"></span>
<a ng-href="[{GetShortFraccionLink(value)}]" style="color: #26c82f" ng-click="$event.stopPropagation();"><i class="fa fa-share-square"></i></a>
<i class="pull-right glyphicon" ng-class="{'glyphicon-chevron-down': value._isOpen, 'glyphicon-chevron-right': !value._isOpen}"></i>
</div>
</div>
<div uib-accordion-body>
<p>Áreas responsables:
<span ng-repeat="area in value.areas">
<span class="label label-default" ng-title="area.descripcion" ng-bind="area.nombre"></span>
</span>
</p>
<p>Última actualización: <span class="label label-info" ng-bind="value.last_update | date"></span></p>
<p>Fecha de validación: <span class="label label-info" ng-bind="value.fecha_validacion === null ? 'No disponible' : (value.fecha_validacion | date:'yyyy-MM-dd')"></span></p>
/home/tenochti/public_html/vendor/illuminate/view/Engines/PhpEngine.php
* Get the evaluated contents of the view at the given path.
*
* @param string $__path
* @param array $__data
* @return string
*/
protected function evaluatePath($__path, $__data)
{
$obLevel = ob_get_level();
ob_start();
extract($__data);
// We'll evaluate the contents of the view inside a try/catch block so we can
// flush out any stray output that might get out before an error occurs or
// an exception is thrown. This prevents any partial views from leaking.
try
{
include $__path;
}
catch (Exception $e)
{
$this->handleViewException($e, $obLevel);
}
return ltrim(ob_get_clean());
}
/**
* Handle a view exception.
*
* @param \Exception $e
* @param int $obLevel
* @return void
*
* @throws $e
*/
protected function handleViewException($e, $obLevel)
{
/home/tenochti/public_html/vendor/illuminate/view/Engines/CompilerEngine.php
* @return string
*/
public function get($path, array $data = array())
{
$this->lastCompiled[] = $path;
// If this given view has expired, which means it has simply been edited since
// it was last compiled, we will re-compile the views so we can evaluate a
// fresh copy of the view. We'll pass the compiler the path of the view.
if ($this->compiler->isExpired($path))
{
$this->compiler->compile($path);
}
$compiled = $this->compiler->getCompiledPath($path);
// Once we have the path to the compiled file, we will evaluate the paths with
// typical PHP just like any other templates. We also keep a stack of views
// which have been rendered for right exception messages to be generated.
$results = $this->evaluatePath($compiled, $data);
array_pop($this->lastCompiled);
return $results;
}
/**
* Handle a view exception.
*
* @param \Exception $e
* @param int $obLevel
* @return void
*
* @throws $e
*/
protected function handleViewException($e, $obLevel)
{
$e = new ErrorException($this->getMessage($e), 0, 1, $e->getFile(), $e->getLine(), $e);
parent::handleViewException($e, $obLevel);
/home/tenochti/public_html/vendor/illuminate/view/View.php
* @return array
*/
public function renderSections()
{
$env = $this->factory;
return $this->render(function($view) use ($env)
{
return $env->getSections();
});
}
/**
* Get the evaluated contents of the view.
*
* @return string
*/
protected function getContents()
{
return $this->engine->get($this->path, $this->gatherData());
}
/**
* Get the data bound to the view instance.
*
* @return array
*/
protected function gatherData()
{
$data = array_merge($this->factory->getShared(), $this->data);
foreach ($data as $key => $value)
{
if ($value instanceof Renderable)
{
$data[$key] = $value->render();
}
}
return $data;
/home/tenochti/public_html/vendor/illuminate/view/View.php
$this->factory->flushSectionsIfDoneRendering();
return $response ?: $contents;
}
/**
* Get the contents of the view instance.
*
* @return string
*/
protected function renderContents()
{
// We will keep track of the amount of views being rendered so we can flush
// the section after the complete rendering operation is done. This will
// clear out the sections for any separate views that may be rendered.
$this->factory->incrementRender();
$this->factory->callComposer($this);
$contents = $this->getContents();
// Once we've finished rendering the view, we'll decrement the render count
// so that each sections get flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
return $contents;
}
/**
* Get the sections of the rendered view.
*
* @return array
*/
public function renderSections()
{
$env = $this->factory;
return $this->render(function($view) use ($env)
{
/home/tenochti/public_html/vendor/illuminate/view/View.php
*/
public function __construct(Factory $factory, EngineInterface $engine, $view, $path, $data = array())
{
$this->view = $view;
$this->path = $path;
$this->engine = $engine;
$this->factory = $factory;
$this->data = $data instanceof Arrayable ? $data->toArray() : (array) $data;
}
/**
* Get the string contents of the view.
*
* @param \Closure|null $callback
* @return string
*/
public function render(Closure $callback = null)
{
$contents = $this->renderContents();
$response = isset($callback) ? $callback($this, $contents) : null;
// Once we have the contents of the view, we will flush the sections if we are
// done rendering all views so that there is nothing left hanging over when
// another view gets rendered in the future by the application developer.
$this->factory->flushSectionsIfDoneRendering();
return $response ?: $contents;
}
/**
* Get the contents of the view instance.
*
* @return string
*/
protected function renderContents()
{
// We will keep track of the amount of views being rendered so we can flush
// the section after the complete rendering operation is done. This will
/home/tenochti/public_html/application/controllers/Welcome.php
}
}
public function index($administracion_id = NULL) {
$administracion = $administracion_id == NULL ? Administracion::lastAdministracion() : Administracion::find($administracion_id);
$administracion = $administracion === NULL ? new Administracion() : $administracion;
$HomeValues = Home::getCurrent();
$tipos = Tipo::all();
$f["titulo"] = $HomeValues->titulo;
$f["text"] = $HomeValues->mensaje;
$f["tipos"] = $tipos;
$f["direccion"] = $HomeValues->direccion;
$f["declarativa"] = $HomeValues->declarativa;
$f["app_info"] = Settings::getCurrent();
$f["administraciones_"] = Administracion::all();
$f["administracion"] = $administracion;
$f["ente"] = AppConfig::getCurrent()->ente;
return $this->ok($this->blade->view()->make('blade/welcome/hello', $f)->render());
}
public function updateTitle() {
if (!$this->isValidUser("admin")) {
return $this->forbbiden("Solo el administrador puede modificar el título");
}
try {
$title = $this->input->post("titulo");
$home = Home::getCurrent();
$home->titulo = $title;
$home->update();
return $this->ok("ok");
} catch (Exception $ex) {
return $this->internalServerError("Error al actualizar");
}
}
public function updateMessage() {
if (!$this->isValidUser("admin")) {
return $this->forbbiden("Solo el administrador puede modificar el mensaje de bienvenida");
/home/tenochti/public_html/system/core/CodeIgniter.php
* ------------------------------------------------------
*/
// Mark a start point so we can benchmark the controller
$BM->mark('controller_execution_time_( '.$class.' / '.$method.' )_start');
$CI = new $class();
/*
* ------------------------------------------------------
* Is there a "post_controller_constructor" hook?
* ------------------------------------------------------
*/
$EXT->call_hook('post_controller_constructor');
/*
* ------------------------------------------------------
* Call the requested method
* ------------------------------------------------------
*/
call_user_func_array(array(&$CI, $method), $params);
// Mark a benchmark end point
$BM->mark('controller_execution_time_( '.$class.' / '.$method.' )_end');
/*
* ------------------------------------------------------
* Is there a "post_controller" hook?
* ------------------------------------------------------
*/
$EXT->call_hook('post_controller');
/*
* ------------------------------------------------------
* Send the final rendered output to the browser
* ------------------------------------------------------
*/
if ($EXT->call_hook('display_override') === FALSE)
{
$OUT->_display();
}
/home/tenochti/public_html/index.php
DIRECTORY_SEPARATOR.DIRECTORY_SEPARATOR
);
}
else
{
header('HTTP/1.1 503 Service Unavailable.', TRUE, 503);
echo 'Your view folder path does not appear to be set correctly. Please open the following file and correct this: '.SELF;
exit(3); // EXIT_CONFIG
}
define('VIEWPATH', $view_folder.DIRECTORY_SEPARATOR);
/*
* --------------------------------------------------------------------
* LOAD THE BOOTSTRAP FILE
* --------------------------------------------------------------------
*
* And away we go...
*/
require_once BASEPATH.'core/CodeIgniter.php';