2016-08-21 23:06:17 +04:00
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
function echo_html_header($title)
|
|
|
|
|
{
|
|
|
|
|
echo '<html>
|
|
|
|
|
<head>
|
|
|
|
|
<title>'.$title.'</title>
|
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
|
|
|
<meta name="viewport" content="initial-scale=1.0, user-scalable=yes, minimum-scale=0.25, maximum-scale=5.0, width=device-width" />
|
2016-08-30 02:28:42 +04:00
|
|
|
|
<script src="3rdpty/jquery-3.1.0.js"></script>
|
|
|
|
|
|
|
|
|
|
<!-- Latest compiled and minified CSS -->
|
|
|
|
|
<link rel="stylesheet" href="3rdpty/bootstrap/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
|
|
|
|
|
|
|
|
|
|
<!-- Optional theme -->
|
|
|
|
|
<link rel="stylesheet" href="3rdpty/bootstrap/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
|
|
|
|
|
|
|
|
|
|
<!-- Latest compiled and minified JavaScript -->
|
|
|
|
|
<script src="3rdpty/bootstrap/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
|
|
|
|
|
|
|
|
|
|
</head>
|
2016-08-21 23:06:17 +04:00
|
|
|
|
<body>
|
|
|
|
|
';
|
|
|
|
|
}
|
|
|
|
|
|
2016-08-27 14:34:34 +04:00
|
|
|
|
function echo_page_header($header,$subtext)
|
|
|
|
|
{
|
|
|
|
|
echo '<div class="page-header" style="margin-bottom: 0px; padding-bottom: 0px; margin-top: 0px;"><h1>'.$header.'<small>'.$subtext.'</small></h1></div>';
|
|
|
|
|
}
|
|
|
|
|
|
2016-08-21 23:06:17 +04:00
|
|
|
|
function echo_html_end()
|
|
|
|
|
{
|
|
|
|
|
echo '
|
|
|
|
|
</body></html>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function echo_hr()
|
|
|
|
|
{
|
|
|
|
|
echo '<hr size="1"/>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function echo_include_script($filename)
|
|
|
|
|
{
|
|
|
|
|
echo '<script src="'.$filename.'"></script>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function echo_autogoto($time,$page)
|
|
|
|
|
{
|
|
|
|
|
echo '<meta http-equiv="refresh" content="'.$time.';url='.$page.'">';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function echo_span_glyph($glyph)
|
|
|
|
|
{
|
|
|
|
|
echo '<span class="glyphicon glyphicon-'.$glyph.'"></span>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function echo_span_label($style,$text)
|
|
|
|
|
{
|
|
|
|
|
echo '<span class="label label-'.$style.'">'.$text.'</span>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function echo_alert($style,$text)
|
|
|
|
|
{
|
|
|
|
|
echo '<div class="alert alert-'.$style.'" role="alert">'.$text.'</div>';
|
|
|
|
|
}
|
|
|
|
|
?>
|