Added default of expired_at. Info label now must be closed first or cannot use navigation. Removed status field from users table
This commit is contained in:
parent
8a3bb3408f
commit
acd2880637
@ -14,7 +14,6 @@ class Access extends \Core\Model
|
|||||||
'full_name varchar(50) NOT NULL',
|
'full_name varchar(50) NOT NULL',
|
||||||
'registered_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP',
|
'registered_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP',
|
||||||
'privilege tinyint(1) NOT NULL DEFAULT 0',
|
'privilege tinyint(1) NOT NULL DEFAULT 0',
|
||||||
'status tinyint(1) NOT NULL DEFAULT 0',
|
|
||||||
'max_user int(1) NOT NULL DEFAULT 5',
|
'max_user int(1) NOT NULL DEFAULT 5',
|
||||||
'PRIMARY KEY (id)'
|
'PRIMARY KEY (id)'
|
||||||
]
|
]
|
||||||
|
@ -12,7 +12,7 @@ class Post extends \Core\Model
|
|||||||
'category int(3) NOT NULL',
|
'category int(3) NOT NULL',
|
||||||
'created_at timestamp NOT NULL DEFAULT "00-00-00 00:00:00"',
|
'created_at timestamp NOT NULL DEFAULT "00-00-00 00:00:00"',
|
||||||
'valid_at timestamp NOT NULL DEFAULT "00-00-00 00:00:00"',
|
'valid_at timestamp NOT NULL DEFAULT "00-00-00 00:00:00"',
|
||||||
'expired_at timestamp NOT NULL',
|
'expired_at timestamp NOT NULL DEFAULT "00-00-00 00:00:00"',
|
||||||
'creator int(3) NOT NULL',
|
'creator int(3) NOT NULL',
|
||||||
'edited_at timestamp',
|
'edited_at timestamp',
|
||||||
'editor int(3)',
|
'editor int(3)',
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
padding-right: .6em;
|
padding-right: .6em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.flex>h1 {
|
.flex>h1, .flex>span {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -163,6 +163,12 @@
|
|||||||
.pengumuman {
|
.pengumuman {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#info span {
|
||||||
|
width: 98%;
|
||||||
|
padding: .7em 0;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -13,15 +13,13 @@ set_exception_handler("Core\Error::exceptionHandler");
|
|||||||
|
|
||||||
if (Core\Session::exists('info')) {
|
if (Core\Session::exists('info')) {
|
||||||
echo '
|
echo '
|
||||||
<div id="info" class="flex three-600 full grow top" style="position:fixed;">
|
<div id="info" class="top" style="position:fixed;width:100%;">
|
||||||
<div></div>
|
|
||||||
<h3 style="text-align:center;" class="top">
|
<h3 style="text-align:center;" class="top">
|
||||||
<span class="label";" onclick="fadeOutEffect()">';
|
<span class="label";" onclick="fadeOutEffect()">';
|
||||||
echo Core\Session::flash('info');
|
echo Core\Session::flash('info');
|
||||||
echo '
|
echo '
|
||||||
</span>
|
</span>
|
||||||
</h3>
|
</h3>
|
||||||
<div></div>
|
|
||||||
</div>';
|
</div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user