error html
This commit is contained in:
@@ -297,4 +297,27 @@ function muestra_breadcrumb($record = array(), $previousLinks = array(),$class =
|
||||
echo '</ol>';
|
||||
echo '</nav>';
|
||||
}
|
||||
|
||||
function error_html($error){
|
||||
$result = '';
|
||||
$result.='<div style="display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-family:Arial, sans-serif;">
|
||||
<div style="display:flex;flex-direction:column;align-items:center;justify-content:center;color:#607d8b;">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 24 24" fill="none" stroke="#607d8b" stroke-width="1" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M4 8v-2a2 2 0 0 1 2 -2h2" />
|
||||
<path d="M4 16v2a2 2 0 0 0 2 2h2" />
|
||||
<path d="M16 4h2a2 2 0 0 1 2 2v2" />
|
||||
<path d="M16 20h2a2 2 0 0 0 2 -2v-2" />
|
||||
<path d="M9 10h.01" />
|
||||
<path d="M15 10h.01" />
|
||||
<path d="M9.5 15.05a3.5 3.5 0 0 1 5 0" />
|
||||
</svg>
|
||||
|
||||
<p>Se han encontrado errores en la página. </p>
|
||||
<small style="margin-top:10px;display:block;">Por favor, contacte con el administrador del sitio.</small>
|
||||
</div>
|
||||
</div>';
|
||||
$result.="<!-- Error details: -->\n";
|
||||
$result.="<!--\n$error\n-->";
|
||||
return $result;
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user