diff --git a/FO/Controllers/HomeController.cs b/FO/Controllers/HomeController.cs index aeb80e3..e9980eb 100644 --- a/FO/Controllers/HomeController.cs +++ b/FO/Controllers/HomeController.cs @@ -11,6 +11,32 @@ namespace NP.FO.Controllers public class HomeController : FOOpenBaseController { public ActionResult Index(VMHome vm) + { + //서브도메인 확인 하여 고객사 로그인/마이페이지로 이동 + var sd = Request.Url.Host.Split('.')[0]; + if (GetConfig("isdevtest") != "1" && Request.Url.Host != "222.122.63.91" && Request.Url.Host != "kfcf.nptc.kr" && Request.Url.Host != "phd.nptc.kr" && MainSubDomain.ToUpper() != sd.ToUpper()) + { + if (SUserInfo.UserNo < 1) + { + return Redirect("/Account/Index"); + } + else + { + return Redirect("/My/Index"); + } + } + vm.ComCodes = GetComCodes("typeman,typeedu,typegrade,typejob"); + + ViewBag.POPUPS = GetPOPUP; + ViewBag.POPUPXS = CookieGet("popup", ""); + ViewBag.IsMain = true; + vm.Datas = Dao.Get("site.main", new System.Collections.Hashtable() { {"offcode", OffCode }, { "oncode", OnCode} }); + + ViewBag.OnCode1 = OnCode1; + return View(vm); + } + + public ActionResult IndexSample(VMHome vm) { //서브도메인 확인 하여 고객사 로그인/마이페이지로 이동 var sd = Request.Url.Host.Split('.')[0]; @@ -36,7 +62,7 @@ namespace NP.FO.Controllers ViewBag.POPUPS = GetPOPUP; //} ViewBag.POPUPXS = CookieGet("popup", ""); - vm.Datas = Dao.Get("site.main", new System.Collections.Hashtable() { {"offcode", OffCode }, { "oncode", OnCode} }); + vm.Datas = Dao.Get("site.main", new System.Collections.Hashtable() { { "offcode", OffCode }, { "oncode", OnCode } }); //foreach(var d in vm.Datas.Where(w=>w.dtype == 1 && !string.IsNullOrEmpty(w.strval4))) //{ // //Thumbnail 확인 diff --git a/FO/FO.csproj b/FO/FO.csproj index ab2c069..1ec86c2 100644 --- a/FO/FO.csproj +++ b/FO/FO.csproj @@ -353,6 +353,7 @@ + @@ -584,6 +585,7 @@ + diff --git a/FO/Views/Home/Index.cshtml b/FO/Views/Home/Index.cshtml index a33c600..312cad4 100644 --- a/FO/Views/Home/Index.cshtml +++ b/FO/Views/Home/Index.cshtml @@ -1,173 +1,199 @@ @model NP.Model.VMHome -@{ - ViewBag.IsMain = true; - //ViewBag.HideSubTitle = true; - var menus = (List)ViewBag.Menus; - var em = new NP.Model.MenuPage(); - var boardnotice = menus.Where(w => (w.refcode??"").Contains("board.notice")).FirstOrDefault() ?? em; - var boardfaq = menus.Where(w => w.refcode == "board.faq").FirstOrDefault() ?? em; -} -@section main{ -
-
- + + + + + + + + + + + + + + + + + + + + + + + + + + + 영남건설기술연구원 + + + + + + + + + + + + + + + + + @section main{ +
+
+
+

YICTE Smart Search

+

나에게 필요한 교육을 찾아드립니다.

+
+
+ + + + + +
    +
  • + SKILL +
    + 교육유형 + +
    +
  • +
  • + JOB +
    + 직무분야 +
    +
    +
      + @foreach (var t in Model.ComCodes.Where(w => w.cgroup.ToString() == "typeman")) + { +
    • @t.cname
    • + } +
    +
    +
    +
    +
  • +
  • + OBJECT +
    + 교육목적 +
    +
    +
      + @foreach (var t in Model.ComCodes.Where(w => w.cgroup.ToString() == "typeedu")) + { +
    • @t.cname
    • + } +
    +
    +
    +
    +
  • +
  • + GRADE +
    + 등급 +
    +
    +
      + @foreach (var t in Model.ComCodes.Where(w => w.cgroup.ToString() == "typegrade")) + { +
    • @t.cname
    • + } +
    +
    +
    +
    +
  • +
  • + TYPE +
    + 직무분야 +
    +
    +
      + @foreach (var t in Model.ComCodes.Where(w => w.cgroup.ToString() == "typejob")) + { +
    • @t.cname
    • + } +
    +
    +
    +
    +
  • +
  • 검색하기
  • +
+
+
-
-} -

모집중인 교육과정

- -
- -
-
-
-

고객 상담문의

-
02-310-3344(오프라인)
-
02-310-3312(온라인)
-
    -
  • 평일 9:00 AM ~ 6:00 PM
  • -
  • 토요일/일요일/공휴일 휴무
  • -
-
-
-
-

공지사항

더보기
- -
- -
-
- -
- -@section scriptsHeader{ - -} -@section scripts{ - -} \ No newline at end of file + else { + $("#spnTypeGrade").html("등급"); + $("#liGrade59").show(); + } + }; + + diff --git a/FO/Views/Home/IndexSample.cshtml b/FO/Views/Home/IndexSample.cshtml new file mode 100644 index 0000000..894319a --- /dev/null +++ b/FO/Views/Home/IndexSample.cshtml @@ -0,0 +1,173 @@ +@model NP.Model.VMHome +@{ + ViewBag.IsMain = true; + //ViewBag.HideSubTitle = true; + var menus = (List)ViewBag.Menus; + var em = new NP.Model.MenuPage(); + var boardnotice = menus.Where(w => (w.refcode ?? "").Contains("board.notice")).FirstOrDefault() ?? em; + var boardfaq = menus.Where(w => w.refcode == "board.faq").FirstOrDefault() ?? em; +} +@section main{ + +} +

모집중인 교육과정

+ +
+ +
+
+
+

고객 상담문의

+
02-310-3344(오프라인)
+
02-310-3312(온라인)
+
    +
  • 평일 9:00 AM ~ 6:00 PM
  • +
  • 토요일/일요일/공휴일 휴무
  • +
+
+
+
+

공지사항

더보기
+ +
+ +
+
+ +
+ +@section scriptsHeader{ + +} +@section scripts{ + +} \ No newline at end of file diff --git a/FO/css/style.css b/FO/css/style.css index 156b719..5fd7e77 100644 --- a/FO/css/style.css +++ b/FO/css/style.css @@ -183,7 +183,7 @@ body {} /* Main */ -#mainTop {height:400px; background:url("/img/main/main_top_bg.jpg")no-repeat center center;} +/*#mainTop {height:400px; background:url("/img/main/main_top_bg.jpg")no-repeat center center;} #mainTop ul {position:absolute; right:0; top:40px; width:320px;} #mainTop ul li {margin-bottom:10px;} #mainTop ul li:last-child {margin-bottom:0;} @@ -309,8 +309,204 @@ body {} @media (max-width:800px) { #moBotBtn {display:block;} } +*/ +/* Main */ +#main { + max-height: 880px; + padding-top: 170px; + padding-bottom: 300px; + background: url('../img/main/main_bg.jpg')no-repeat center center; +} + +.mainTop { + text-align: center; + color: #fff; +} + + .mainTop h2 { + line-height: 1.0em; + font-size: 52pt; + font-weight: 400; + } + + .mainTop h2 span { + font-weight: 700; + } + + .mainTop p { + font-size: 14pt; + font-weight: 300; + margin-top: 20px; + } + +.mainSch { + margin-top: 140px; +} + + .mainSch:after { + content: ''; + display: table; + clear: both; + } + + .mainSch > li { + background: #fff; + float: left; + width: 16.6666%; + border-right: solid 1px #e8e8e8; + height: 130px; + } + + .mainSch > li:first-child { + border-radius: 5px 0px 0px 5px; + -moz-border-radius: 5px 0px 0px 5px; + -webkit-border-radius: 5px 0px 0px 5px; + } + + .mainSch > li:last-child { + border-right: none; + background: #387de6; + border-radius: 0px 5px 5px 0px; + -moz-border-radius: 0px 5px 5px 0px; + -webkit-border-radius: 0px 5px 5px 0px; + } + +.msCont { +} + + .msCont em { + display: block; + color: #aaa; + font-size: 11pt; + height: 50px; + padding: 30px 20px 0; + font-style: normal; + } + + .msCont select { + height: 80px; + width: 100%; + border: none; + padding: 0 30px; + } + +a.msBtn { + display: block; + height: 130px; + line-height: 130px; + text-align: center; + font-size: 16pt; + color: #fff; +} + +.msBtn:after { + content: ''; + display: inline-block; + width: 32px; + height: 17px; + margin-left: 20px; + background: url('../../img/main/main_search_btn.png')no-repeat center center; + background-size: cover; +} + +.msSel { + position: relative; +} + + .msSel span { + display: block; + height: 80px; + line-height: 80px; + padding-left: 20px; + padding-right: 40px; + font-size: 15pt; + font-weight: 500; + color: #222; + cursor: pointer; + position: relative; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + + .msSel.disable span { + color: #ccc; + } + + .msSel span:after { + content: ''; + display: block; + width: 11px; + height: 6px; + position: absolute; + right: 20px; + top: 50%; + margin-top: -3px; + background: url('../../img/main/select_arrow.png')no-repeat center bottom; + background-size: 100% auto; + } + + .msSel span.on:after { + background-position: center top !important; + } + + .msSel.disable span:after { + opacity: 0.4; + } + + .msSel > div { + position: absolute; + left: 0; + right: 0; + top: 100%; + z-index: 10; + display: none; + } + + .msSel > div:before { + content: ''; + display: block; + box-sizing: border-box; + width: 0; + height: 0; + border-left: 10px solid transparent; + border-right: 10px solid transparent; + border-bottom: 10px solid; + border-bottom-color: #fff; + margin-left: 30px; + transition: margin-left .3s ease-out; + } + + .msSel > div > div { + overflow: hidden; + background: #fff; + border-radius: 5px; + -moz-border-radius: 5px; + -webkit-border-radius: 5px; + } + + .msSel ul { + padding: 5px 10px; + overflow-y: auto; + max-height: 15em; + } + + .msSel ul li { + border-bottom: solid 1px #e5e5e5; + } + + .msSel ul li:last-child { + border-bottom: none; + } + + .msSel ul li a { + font-size: 11pt; + display: block; + padding: 10px; + } + /* pageCommon */ #subTitle.subBg01 {