Вынос стилей в отдельный файл

This commit is contained in:
Igor Barkov [iwork]
2018-12-12 13:59:29 +02:00
parent d5bc6c59fc
commit f5f7beaf5d
4 changed files with 360 additions and 365 deletions

View File

@@ -2,8 +2,7 @@
ob_start("ob_gzhandler");
session_start();
if ($_SESSION['uid'] == null) header("Location: index.php");
include "config.php";
include "functions.php";
require_once "functions.php";
if ($user['room'] != 29) header("Location: main.php");
if ($user['battle'] != 0) {
header('location: fbattle.php');
@@ -22,45 +21,13 @@ if (!$bank['id']) db::c()->query('INSERT INTO `bank` (`id`) VALUES (?i)', $_SESS
<head>
<meta charset="utf-8">
<link href="css/main.css" rel="stylesheet"/>
<link href="css/secondary.css" rel="stylesheet"/>
<title>Банк</title>
<script>
function leave() {
top.frames['main'].location = 'city.php?strah'
}
</script>
<style>
.appblock {
background: silver;
border-radius: 2px;
float: left;
height: 200px;
margin: 10px;
width: 250px;
opacity: 0.75;
padding: 5px;
}
div.appblock form {
margin: 5px;
}
div.appblock span.legend {
padding: 0.2em 0.5em;
color: #666;
font-weight: bold;
display: block;
}
div.appblock br {
margin: 5px;
}
div.appblock span.wrap {
padding: 5px;
display: block;
font-family: Consolas, monospace;
}
div.appblock span.wrap span.num {
float:right;
display:block;
}
</style>
</head>
<body>
<h1>Банк</h1>
@@ -172,7 +139,7 @@ if (!$_SESSION['bankid']) {
err($mywarn);
?>
<p><a href="?exit"> ← выйти из счёта</a></p>
<div class="appblock" style="background: whitesmoke;">
<div class="appblock appblock-main">
<span class="legend">Cчет №<?=$bank['id']?></span>
<span class="wrap">Кредитов<span class="num"><?=$bank['cr']?></span></span>
<span class="wrap">ЕвроКредитов<span class="num"><?=$bank['ekr']?></span></span><hr>