정지윤

예약화면에서 radio button 삭제

......@@ -35,7 +35,7 @@ router.post('/reservation',function(req, res){
pool.getConnection(function (err, connection)
{
// Use the connection
var sqlForInsertBoard = "insert into menu(creater_id, phone, email, num, restime, resmin,date,food,content) values('"+creater_id+"', '"+phone+"', '"+email+"','"+num+"','"+restime+"','"+resmin+"','"+date+"','"+food+"','"+content+"')";
var sqlForInsertBoard = "insert into menu(creater_id, phone, email, num, restime, resmin,date,content) values('"+creater_id+"', '"+phone+"', '"+email+"','"+num+"','"+restime+"','"+resmin+"','"+date+"','"+content+"')";
connection.query(sqlForInsertBoard, function (err, rows) {
if (err) console.error("err : " + err);
console.log("rows : " + JSON.stringify(rows));
......
......@@ -217,48 +217,16 @@
</div>
</div>
<!-- 메뉴체크-->
<div class="form-group">
<div class="col-md-4 selectContainer">
<div class="input-group">
<label class="col-md-4 control-label">메뉴</label>
<div class="checkbox">
<label>
<image src = "/img/pizza.jpg" width=100 height=100>
<br><input type="checkbox" name="food" value="pizza" /> 피자
</label>
</div>
&nbsp;
&nbsp;
&nbsp;
<div class="checkbox">
<label>
<image src = "/img/파스타.jpg" width=100 height=100>
<br><input type="checkbox" name="food" value="pasta" /> 파스타
</label>
</div>
&nbsp;
&nbsp;
&nbsp;
<div class="checkbox">
<label>
<image src = "/img/와인.jpg" width=100 height=100>
<br><input type="checkbox" name="food" value="wine" /> 와인
</label>
</div>
</div>
</div>
</div>
<br>
<!-- 요청사항-->
<!-- 메뉴 적기-->
<div class="form-group">
<div class="col-md-4 selectContainer">
<div class="input-group">
<label class="col-md-4 control-label">요청 사항</label>
<label class="col-md-4 control-label">메뉴</label>
<i class="glyphicon glyphicon-pencil"></i>
<textarea class="form-control" name="content" placeholder="요청 사항을 적어주세요." style="width:310px; height:100px;"></textarea>
<textarea class="form-control" name="content" placeholder="예약할 메뉴를 적어주세요." style="width:310px; height:100px;"></textarea>
</div>
</div>
</div>
......@@ -338,14 +306,6 @@
alert(message);
return false;
}
if ( $("#food").val().trim() == "" )
{
var message = "예약 메뉴를 입력해주세요";
$("#food").val("");
$("#food").focus();
alert(message);
return false;
}
if ( $("#content").val().trim() == "" )
{
var message = "비고사항을 입력해주세요";
......