diff --git a/db/app_uoj233.sql b/db/app_uoj233.sql index ad8f5cb..13fad39 100644 --- a/db/app_uoj233.sql +++ b/db/app_uoj233.sql @@ -332,6 +332,29 @@ LOCK TABLES `contests_submissions` WRITE; /*!40000 ALTER TABLE `contests_submissions` ENABLE KEYS */; UNLOCK TABLES; +-- +-- Table structure for table `countdowns` +-- + +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8mb4 */; +CREATE TABLE `countdowns` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `title` text NOT NULL, + `endtime` datetime NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `countdowns` +-- + +LOCK TABLES `countdowns` WRITE; +/*!40000 ALTER TABLE `countdowns` DISABLE KEYS */; +/*!40000 ALTER TABLE `countdowns` ENABLE KEYS */; +UNLOCK TABLES; + -- -- Table structure for table `custom_test_submissions` -- diff --git a/web/app/controllers/index.php b/web/app/controllers/index.php index 62ecd03..8f3336f 100644 --- a/web/app/controllers/index.php +++ b/web/app/controllers/index.php @@ -1,11 +1,12 @@ -
+ 0): ?> + 距离 = $countdown['title'] ?> 还有 = $diff ?> 天。 + + = $countdown['title'] ?> 已开始。 + +
+ +