Showing
2 changed files
with
4 additions
and
44 deletions
| ... | @@ -35,7 +35,7 @@ router.post('/reservation',function(req, res){ | ... | @@ -35,7 +35,7 @@ router.post('/reservation',function(req, res){ |
| 35 | pool.getConnection(function (err, connection) | 35 | pool.getConnection(function (err, connection) |
| 36 | { | 36 | { |
| 37 | // Use the connection | 37 | // Use the connection |
| 38 | - 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+"')"; | 38 | + var sqlForInsertBoard = "insert into menu(creater_id, phone, email, num, restime, resmin,date,content) values('"+creater_id+"', '"+phone+"', '"+email+"','"+num+"','"+restime+"','"+resmin+"','"+date+"','"+content+"')"; |
| 39 | connection.query(sqlForInsertBoard, function (err, rows) { | 39 | connection.query(sqlForInsertBoard, function (err, rows) { |
| 40 | if (err) console.error("err : " + err); | 40 | if (err) console.error("err : " + err); |
| 41 | console.log("rows : " + JSON.stringify(rows)); | 41 | console.log("rows : " + JSON.stringify(rows)); | ... | ... |
| ... | @@ -217,48 +217,16 @@ | ... | @@ -217,48 +217,16 @@ |
| 217 | </div> | 217 | </div> |
| 218 | </div> | 218 | </div> |
| 219 | 219 | ||
| 220 | - <!-- 메뉴체크--> | ||
| 221 | - <div class="form-group"> | ||
| 222 | - <div class="col-md-4 selectContainer"> | ||
| 223 | - <div class="input-group"> | ||
| 224 | - <label class="col-md-4 control-label">메뉴</label> | ||
| 225 | - <div class="checkbox"> | ||
| 226 | - <label> | ||
| 227 | - <image src = "/img/pizza.jpg" width=100 height=100> | ||
| 228 | - <br><input type="checkbox" name="food" value="pizza" /> 피자 | ||
| 229 | - </label> | ||
| 230 | - </div> | ||
| 231 | - | ||
| 232 | - | ||
| 233 | - | ||
| 234 | - <div class="checkbox"> | ||
| 235 | - <label> | ||
| 236 | - <image src = "/img/파스타.jpg" width=100 height=100> | ||
| 237 | - <br><input type="checkbox" name="food" value="pasta" /> 파스타 | ||
| 238 | - </label> | ||
| 239 | - </div> | ||
| 240 | - | ||
| 241 | - | ||
| 242 | - | ||
| 243 | - <div class="checkbox"> | ||
| 244 | - <label> | ||
| 245 | - <image src = "/img/와인.jpg" width=100 height=100> | ||
| 246 | - <br><input type="checkbox" name="food" value="wine" /> 와인 | ||
| 247 | - </label> | ||
| 248 | - </div> | ||
| 249 | - </div> | ||
| 250 | - </div> | ||
| 251 | - </div> | ||
| 252 | 220 | ||
| 253 | <br> | 221 | <br> |
| 254 | 222 | ||
| 255 | - <!-- 요청사항--> | 223 | + <!-- 메뉴 적기--> |
| 256 | <div class="form-group"> | 224 | <div class="form-group"> |
| 257 | <div class="col-md-4 selectContainer"> | 225 | <div class="col-md-4 selectContainer"> |
| 258 | <div class="input-group"> | 226 | <div class="input-group"> |
| 259 | - <label class="col-md-4 control-label">요청 사항</label> | 227 | + <label class="col-md-4 control-label">메뉴</label> |
| 260 | <i class="glyphicon glyphicon-pencil"></i> | 228 | <i class="glyphicon glyphicon-pencil"></i> |
| 261 | - <textarea class="form-control" name="content" placeholder="요청 사항을 적어주세요." style="width:310px; height:100px;"></textarea> | 229 | + <textarea class="form-control" name="content" placeholder="예약할 메뉴를 적어주세요." style="width:310px; height:100px;"></textarea> |
| 262 | </div> | 230 | </div> |
| 263 | </div> | 231 | </div> |
| 264 | </div> | 232 | </div> |
| ... | @@ -338,14 +306,6 @@ | ... | @@ -338,14 +306,6 @@ |
| 338 | alert(message); | 306 | alert(message); |
| 339 | return false; | 307 | return false; |
| 340 | } | 308 | } |
| 341 | - if ( $("#food").val().trim() == "" ) | ||
| 342 | - { | ||
| 343 | - var message = "예약 메뉴를 입력해주세요"; | ||
| 344 | - $("#food").val(""); | ||
| 345 | - $("#food").focus(); | ||
| 346 | - alert(message); | ||
| 347 | - return false; | ||
| 348 | - } | ||
| 349 | if ( $("#content").val().trim() == "" ) | 309 | if ( $("#content").val().trim() == "" ) |
| 350 | { | 310 | { |
| 351 | var message = "비고사항을 입력해주세요"; | 311 | var message = "비고사항을 입력해주세요"; | ... | ... |
-
Please register or login to post a comment