first.ejs 13.6 KB
<!DOCTYPE html>
<html lang="en">

  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>식당 예약</title>

    <!-- Bootstrap core CSS -->
    <link rel="stylesheet" type="text/css" href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom fonts for this template -->
    <link href="vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link href="https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic" rel="stylesheet" type="text/css">
    <link href='https://fonts.googleapis.com/css?family=Cabin:700' rel='stylesheet' type='text/css'>

    <!-- Custom styles for this template -->
    <link href="css/grayscale.min.css" rel="stylesheet">

  </head>

  <body id="page-top">

    <!-- Navigation -->
    <nav class="navbar navbar-expand-lg navbar-light fixed-top" id="mainNav">
      <div class="container">
        <a class="navbar-brand js-scroll-trigger" href="#page-top">그로또 예약 사이트</a>
        <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
          Menu
          <i class="fa fa-bars"></i>
        </button>
        <div class="collapse navbar-collapse" id="navbarResponsive">
          <ul class="navbar-nav ml-auto">
            <li class="nav-item">
              <a class="nav-link js-scroll-trigger" href="#about">소개</a>
            </li>
            <li class="nav-item">
              <a class="nav-link js-scroll-trigger" href="#download">예약</a>
            </li>
            <li class="nav-item">
              <a class="nav-link js-scroll-trigger" href="#contact">오시는 길</a>
            </li>
          </ul>
        </div>
      </div>
    </nav>

    <!-- Intro Header -->
    <header class="masthead">
      <div class="intro-body">
        <div class="container">
          <div class="row">
            <div class="col-lg-8 mx-auto">
              <h1 class="brand-heading">GROTTO!</h1>
              <p class="intro-text">
                <br>정지윤</p>
              <a href="#about" class="btn btn-circle js-scroll-trigger">
                <i class="fa fa-angle-double-down animated"></i>
              </a>
            </div>
          </div>
        </div>
      </div>
    </header>

    <!-- About Section -->
    <section id="about" class=" content-section text-center">
      <div class="container">
        <div class="row">
          <div class="col-lg-8 mx-auto">
            <h2>About GROTTO</h2>
            <p>
              <a href="http://startbootstrap.com/template-overviews/grayscale/">Grotto - Let your senses fly</a>.
              <br>당신의 오감을 날려드립니다.</p>

            <p>
              <a href="http://gratisography.com/">Coffee - Kona coffee</a>
              <br>세계 3대 커피 하와이안 코나 원두를 사용합니다.</p>
            <p>
              <a href="http://snazzymaps.com/">Wine - Wine expert</a>.
              <br>150가지 종류의 와인을 와인을 닮은 공간에서 편하게 즐기세요.</p>
          </div>
        </div>
      </div>
    </section>

<style type="text/css">
.reservationTheme{
  background:url('/img/a-bg.jpg') no-repeat;
}
</style>


  <section id="about" class="reservationTheme content-section text-center">
    <div class="container">
      <br><br>
    <h2>Reservation</h2>
      <br><br>
    <form class="well form-horizontal" action=" " method="post"  id="contact_form">
    <fieldset>

      <form method="POST" action="/res">
      <!-- Form Name -->

      <!-- Text input-->
      <div class="form-group">
        <div class="col-md-4 inputGroupContainer">
        <div class="input-group">
        <label class="col-md-4 control-label">이름</label>
            <i class="glyphicon glyphicon-envelope"></i>
        <input name="creater_id" placeholder="홍길동" class="form-control"  type="text">
          </div>
        </div>
      </div>


    <!-- 휴대전화-->
    <div class="form-group">
      <div class="col-md-4 inputGroupContainer">
      <div class="input-group">
      <label class="col-md-4 control-label">휴대전화</label>

        <i class="glyphicon glyphicon-earphone"></i>
      <input name="phone" placeholder="010-123-4567" class="form-control" type="text">
        </div>
      </div>
    </div>



    <!-- Text input-->
    <div class="form-group">
      <div class="col-md-4 inputGroupContainer">
      <div class="input-group">
      <label class="col-md-4 control-label">이메일주소</label>

            <i class="glyphicon glyphicon-envelope"></i>
      <input name="email" placeholder="E-Mail Address" class="form-control"  type="text">
        </div>
      </div>
    </div>

    <!--인원수-->
    <div class="form-group">
      <div class="col-md-4 selectContainer">
      <div class="input-group">
      <label class="col-md-4 control-label">인원 수</label>

        <i class="glyphicon glyphicon-list"></i>
        <select name="num" class="form-control selectpicker" >
          <option value=" " >인원 수를 선택하세요.</option>
          <option>1~4명</option>
          <option>5~10명</option>
          <option >10명~15명</option>
          <option >15명~20명</option>
          <option >20명 이상</option>
        </select>
      </div>
    </div>
    </div>

    <!--예약시간-->
    <div class="form-group">
      <div class="col-md-4 selectContainer">
      <div class="input-group">
      <label class="col-md-4 control-label">예약 시간</label>

      <i class="glyphicon glyphicon-list"></i>
        <select name="restime" class="form-control selectpicker" >
          <option value=" " >시간</option>
          <option>10시</option>
          <option>11시</option>
          <option>12시</option>
          <option>13시</option>
          <option>14시</option>
          <option>15시</option>
          <option>16시</option>
          <option>17시</option>
          <option>18시</option>
          <option>19시</option>
          <option>20시</option>
        </select>
        &nbsp;
        <select name="resmin" class="form-control selectpicker" >
          <option value=" " ></option>
          <option>00분</option>
          <option>15분</option>
          <option>30분</option>
          <option>45분</option>
        </select>
      </div>
    </div>
    </div>

    <!--예약날짜-->
    <div class="form-group">
      <div class="col-md-4 selectContainer">
      <div class="input-group">
      <label class="col-md-4 control-label">예약 날짜</label>
      <input type="text" placeholder = "클릭하여 달력 보기" id="datepicker"></p></p>
      <script>
        $( function() {
          $( "#datepicker" ).datepicker();
        } );
      </script>
      </label>
    </div>
    <!-- radio checks
     <div class="form-group">
                            <label class="col-md-4 control-label">Do you have hosting?</label>
                            <div class="col-md-4">
                                <div class="radio">
                                    <label>
                                        <input type="radio" name="hosting" value="yes" /> Yes
                                    </label>
                                </div>
                                <div class="radio">
                                    <label>
                                        <input type="radio" name="hosting" value="no" /> No
                                    </label>
                                </div>
                            </div>
                        </div>
     -->
    <!-- Text area -->

    <div class="form-group">
      <div class="col-md-4 selectContainer">
      <div class="input-group">
      <label class="col-md-4 control-label">예약 날짜</label>
            <span class="input-group-addon"><i class="glyphicon glyphicon-pencil"></i></span>
            	<textarea class="form-control" name="content" placeholder="Project Description" style="width:3500px; height:100px;"></textarea>
      </div>
      </div>
    </div>
    <br>
    <br>
    <br>
    <!-- Success message -->
    <div class="alert alert-success" role="alert" id="success_message"> <i class="glyphicon glyphicon-thumbs-up"></i> 예약해주셔서 감사합니다.</div>

    <!-- Button -->
    <div class="form-group">
      <label class="col-md-4 control-label"></label>
      <div class="col-md-4">
        <button type="submit" class="btn btn-warning" >예약 <span class="glyphicon glyphicon-send"></span></button>
      </div>

    </div>
      </form>
    </fieldset>
    </form>
    </div>
        </div>


        <script>
            function onWriteSubmit()
            {
                if ( $("#creater_id").val().trim() == "" )
                {
                    var message = "아이디를 입력해 주세요";
                    $("#creater_id").val("");
                    $("#creater_id").focus();
                    alert(message);
                    return false;
                }

                if ( $("#phone").val().trim() == "" )
                {
                    var message = "폰번호를 입력해 주세요";
                    $("#phone").val("");
                    $("#phone").focus();
                    alert(message);
                    return false;
                }
                if ( $("#email").val().trim() == "" )
                {
                    var message = "이메일 주소를 입력해 주세요";
                    $("#email").val("");
                    $("#email").focus();
                    alert(message);
                    return false;
                }if ( $("#num").val().trim() == "" )
                {
                    var message = "인원수를 입력해 주세요";
                    $("#num").val("");
                    $("#num").focus();
                    alert(message);
                    return false;
                }if ( $("#restime").val().trim() == "" )
                {
                    var message = "예약시간을 입력해 주세요";
                    $("#restime").val("");
                    $("#restime").focus();
                    alert(message);
                    return false;
                }
                if ( $("#resmin").val().trim() == "" )
                {
                    var message = "예약 분을 입력해 주세요";
                    $("#resmin").val("");
                    $("#resmin").focus();
                    alert(message);
                    return false;
                }
                if ( $("#content").val().trim() == "" )
                {
                    var message = "비고사항을 입력해 주세요";
                    $("#content").val("");
                    $("#content").focus();
                    alert(message);
                    return false;
                }


            }
        </script>









    <!-- Download Section -->
    <section id="download" class="download-section content-section text-center">
      <div class="container">
        <div class="col-lg-8 mx-auto">
          <h2>Reservation</h2>
          <p>당일 예약은 전화예약만 가능합니다.</p>
          <a href="http://startbootstrap.com/template-overviews/grayscale/" class="btn btn-default btn-lg">예약하기</a>
        </div>
      </div>
    </section>

    <!-- Contact Section -->
    <section id="contact" class="content-section text-center">
      <div class="container">
        <div class="row">
          <div class="col-lg-8 mx-auto">
            <h2>Contact GROTTO</h2>
            <p>전화번호 : 031-205-7220</p>
            <p>영업시간 : 매일 10:00 - 23:30 (Last Order 22:00)</p>
            <ul class="list-inline banner-social-buttons">
              <li class="list-inline-item">
                <a href="https://www.facebook.com/grottosuwon/" class="btn btn-default btn-lg">
                  <i class="fa fa-facebook fa-fw"></i>
                  <span class="network-name">facebook</span>
                </a>
              </li>
              <li class="list-inline-item">
                <a href="https://www.instagram.com/grotto_since2011/" class="btn btn-default btn-lg">
                  <i class="fa fa-instagram fa-fw"></i>
                  <span class="network-name">Instagram</span>
                </a>
              </li>
              <li class="list-inline-item">
                <a href="https://plus.google.com/+Startbootstrap/posts" class="btn btn-default btn-lg">
                  <i class="fa fa-google-plus fa-fw"></i>
                  <span class="network-name">Google+</span>
                </a>
              </li>
            </ul>
          </div>
        </div>
      </div>
    </section>

    <!-- Map Section -->
    <div id="map"></div>

    <!-- Footer -->
    <footer>
      <div class="container text-center">
        <p>Copyright &copy; Your Website 2017</p>
      </div>
    </footer>

    <!-- Bootstrap core JavaScript -->
    <script src="vendor/jquery/jquery.min.js"></script>
    <script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>

    <!-- Plugin JavaScript -->
    <script src="vendor/jquery-easing/jquery.easing.min.js"></script>

    <!-- Google Maps API Key - Use your own API key to enable the map feature. More information on the Google Maps API can be found at https://developers.google.com/maps/ -->
    <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCRngKslUGJTlibkQ3FkfTxj3Xss1UlZDA&sensor=false"></script>

    <!-- Custom scripts for this template -->
    <script src="css/grayscale.min.js"></script>

  </body>

</html>