From 713cef22f35492d28b63b979e12df6232c9785c4 Mon Sep 17 00:00:00 2001 From: hyunho Date: Wed, 28 Oct 2020 06:25:13 +0000 Subject: [PATCH] =?UTF-8?q?=EB=A9=94=EC=9D=B8=ED=8E=98=EC=9D=B4=EC=A7=80?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dao/MyBatis/Maps/CM.xml | 8 + FO/Controllers/HomeController.cs | 3 +- FO/Views/Home/Index.cshtml | 297 ++++++++++++++++++++----------- FO/css/style.css | 49 ++++- FO/js/site.js | 8 +- Model/VMHome.cs | 1 + 6 files changed, 257 insertions(+), 109 deletions(-) diff --git a/Dao/MyBatis/Maps/CM.xml b/Dao/MyBatis/Maps/CM.xml index e0e1637..8107970 100644 --- a/Dao/MyBatis/Maps/CM.xml +++ b/Dao/MyBatis/Maps/CM.xml @@ -1701,5 +1701,13 @@ cmno=#cmno# + \ No newline at end of file diff --git a/FO/Controllers/HomeController.cs b/FO/Controllers/HomeController.cs index e9980eb..f97ebf8 100644 --- a/FO/Controllers/HomeController.cs +++ b/FO/Controllers/HomeController.cs @@ -31,7 +31,8 @@ namespace NP.FO.Controllers ViewBag.POPUPXS = CookieGet("popup", ""); ViewBag.IsMain = true; vm.Datas = Dao.Get("site.main", new System.Collections.Hashtable() { {"offcode", OffCode }, { "oncode", OnCode} }); - + vm.CMs = Dao.Get("cm.cgetc", new System.Collections.Hashtable() { { "cgcode", "2" } });//cgcode = 기타교육 // 기타교육 cgcode 바뀌면 파라미터도 변경해야함 + ViewBag.OnCode1 = OnCode1; return View(vm); } diff --git a/FO/Views/Home/Index.cshtml b/FO/Views/Home/Index.cshtml index 2d8c37b..c03dc4d 100644 --- a/FO/Views/Home/Index.cshtml +++ b/FO/Views/Home/Index.cshtml @@ -2,7 +2,7 @@