<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>添加产品</title> <!--/模板/--> <link rel="stylesheet" href="css/master.css" charset="UTF-8"> <link rel="stylesheet" href="css/ace.min.css" /> <link rel="stylesheet" href="css/bootstrap.min.css" /> <link rel="stylesheet" href="css/font-awesome.min.css" charset="UTF-8"> <link rel="stylesheet" href="css/font-awesome.min.css" charset="UTF-8"> <script src="js/jquery-2.2.4.min.js" type="text/javascript" charset="utf-8"></script> <script src="js/jquery.cookie.js"></script> <script src="js/base_path.js" type="text/javascript" charset="utf-8"></script> <!--<script src="js/xm.js"></script> <script> login(); </script>--> <style type="text/css"> body { font-family: 'Open Sans'; font-size: 13px; line-height: 1.5; } .navbar { margin-left: 0; margin-right: 0; box-shadow: none; margin: 0; padding-left: 0; padding-right: 0; background: #438eb9; width: 100%; } .navbar-default .navbar-brand { color: white; } </style> </head> <body> <!--<div class="navbar navbar-default" style="margin-bottom: 0px;"> <div class="navbar-header "> <a href="#" class="navbar-brand"> <i class="icon-leaf"></i> CS System<sub style="font-size:12px;position: initial;"> <span id="version_txt"></span></sub> </a> </div> </div>--> <!-- 作者:fuhongcheng_fhc@163.com 时间:2016-08-15 描述:今日起---开始修改酒店部分 --> <!--<div id="show_html" style="display:none;" class="warp clearfix"> <div class="control-bar"></div> <div class="control-show">--> <div id=""> <form name="formname" method="post"> <input type="hidden" value="add" name="method"/> <div style="margin-left: 30px; margin-top:30px; width: 1200px;"> <!--添加产品--> <div style="font-weight:bold;" >添加产品</div> <hr style="width: 1200px;margin-top: 20px;border-top:1px dashed lightgray" /> <!--基本信息--> <div id="baseInfo" style="margin-top: 5px; width: 100px;height: 35px; display: inline-block;line-height: 35px;border:1px solid rgb(204,204,204); background-color: rgb(242,242,242); text-align: center;">基本信息</div> <div style="margin-left: 40px; margin-top: 20px;" id="hotelBasicInfo"> <div class="tabbable"> <div class="profile-user-info profile-user-info-striped" style="margin-top: 20px;"> <!--酒店--> <div class="profile-info-row"> <div class="profile-info-name"><span style="letter-spacing:30px;">酒</span>店:</div> <div class="profile-info-value"> <div id="change" style="float: left;"> <input name="hotel_test" type="text" id="hotelnameinput" oninput="hotelname_change(this.value)"style="width: 250px;font-size: 13px;" placeholder="填写名称从下拉框中选择"/> <input name="hotel_testa" type="hidden" id="hotelnameinputa" oninput="hotelname_change(this.value)"style="width: 250px;" placeholder="填写名称从下拉框中选择"/> </div> <div style="float: left; margin-left:10px;margin-top:3px;" id="hoteladdress"> </div> <div style="clear: both;"> </div> <div id="hotel_name_search" style="width:250px; border:1px solid #ccc; border-top:none; height:115px; overflow-y:scroll; position:absolute; z-index:10; background:#fff; display:none;" > </div> <!--<input type="text" oninput="hotelname_change(this.value)" id="hotel_name_search" style="width: 250px;" placeholder="填写名称从下拉框中选择"/> 地址:[地址]--> </div> </div> <!--产品--> <div class="profile-info-row"> <div class="profile-info-name"><span style="letter-spacing:30px;">产</span>品:</div> <div class="profile-info-value"> <div id="getTime"> <span> <select name="product_test" id="selectValue" style="margin-right: 10px;width:150px;"> <option id="option" value="[value]">请选择</option> </select> </span> <span id="addBtn" onclick='addOneLine()' style="width: 80px;height: 30px; display: inline-block;line-height: 30px;border:1px solid rgb(204,204,204); text-align: center;background-color: lightgray;cursor:pointer;">+添加</span> </div> <div class="row" style="margin-top: 20px;"> <div class="col-xs-12"> <div class="table-responsive"> <input type="hidden" name="textcount" id="textcount" value="" /> <table id="sample-table-1" class="table table-striped table-bordered table-hover"> <thead> <tr> <th width="140px">产品名称</th> <th width="100px">房型</th> <th width="120px">床型</th> <th width="120px">早餐</th> <th width="120px">加床</th> <th width="120px">操作</th> </tr> </thead> <tbody id="productInfo"> <tr id="tr_one" style="display: none;"> <td><input type="text" name="[productName]" id="[productName]" value="[txtValue]" style="font-size: 13px;"/></td> <td >aaa <input type="hidden" name="[select_hotelType]" id="[select_hotelType]" value="[bbb]"/> </td> <td> <select name="[select_bed]" id="[select_bed]" style="margin-right: 10px;width:150px;"> <option value="202">大床</option> <option value="203">双床</option> <option value="204">三床</option> <option value="205">四床</option> </select> </td> <td> <select name="[select_breakfast]" id="[select_breakfast]" style="margin-right: 10px;width:150px;"> <option value="206">无早</option> <option value="207">单早</option> <option value="208">双早</option> <option value="209">三早</option> <option value="210">四早</option> </select> </td> <td> <select name="[ifsup]" id="[ifsup]" style="margin-right: 10px;width:150px;"> <option value="0">不允许</option> <option value="1">允许</option> </select> </td> <td name="[del]" id="[del]">删除</td> </tr> </tbody> </table> </div> <!-- /.table-responsive --> </div> <!-- /span --> </div> <!--row end--> </div> </div> <!--供应商--> <div class="profile-info-row"> <div class="profile-info-name"><span style="letter-spacing:9px;">供应</span>商:</div> <div class="profile-info-value"> <input name="supplier_test" type="text" id="suppliernameinput" oninput="suppliername_change(this.value)"style="width: 250px;font-size: 13px;background-color:white;" placeholder="填写名称从下拉框中选择" /> <input name="supplier_test_id" type="hidden" id="suppliernameinput_t" value="1" /> </div> <div id="supplier" style="margin-left: 132px; margin-top:-6px; width:250px; border:1px solid #ccc; border-top:none; height:115px; overflow-y:scroll; position:absolute; z-index:10; background:#fff; display:none;"> </div> </div> <!--上架--> <div class="profile-info-row"> <div class="profile-info-name"><span style="letter-spacing:30px;">上</span>架:</div> <div class="profile-info-value"> <div id="selectCount"> <!--选中为1 未选中为0--> <input name="checkbox_test" id="check_box_sale" type = "checkbox" value = "1"/> </div> </div> </div> </div> </div> <!--tabbable end--> </div> <!--预订设置--> <div id="setInfo" style="margin-top: 40px; width: 100px;height: 35px; display: inline-block;line-height: 35px;border:1px solid rgb(204,204,204); background-color: rgb(242,242,242); text-align: center;">预订设置</div> <div style="margin-left: 40px; margin-top: 20px;" id="hotelBasicInfo"> <div class="tabbable"> <div class="profile-user-info profile-user-info-striped" style="margin-top: 20px;"> <!--酒店--> <div class="profile-info-row"> <div class="profile-info-name">支付方式:</div> <div class="profile-info-value"> <input style="padding-left: 30px;" type="radio" name="readyPay" checked="checked" value="190"> 预付 <span style="margin-left:20px;">支付时限:</span> <input name="payTime" id="paytime" type="text" value="1440" style="width: 60px;font-size: 13px;" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')">分钟 <!--<input name="payTime" id="paytime" type="text" style="width: 60px;" value="1400"> 分钟--> </div> </div> <!--供应商--> <div class="profile-info-row"> <div class="profile-info-name">确认方式:</div> <div class="profile-info-value"> <input type="radio" name="affirmStyle" checked="checked" value="193"/>人工确认 <input style="margin-left: 30px;" type="radio" name="affirmStyle" value="194"/>自动确认 </div> </div> <!--上架--> <div class="profile-info-row"> <div class="profile-info-name">超卖方式:</div> <div class="profile-info-value"> <input type="radio" name="overSale" id="overSale" value="196"/>允许 <input style="margin-left: 57px;" type="radio" id="overSale" name="overSale" checked="checked" value="197"/>不允许 </div> </div> </div> </div> </div> <div style="width: 1200px;height: 1px;border: 2px solid lightgray; margin-top: 50px;"></div> <div id="saveBtn" onclick="save_all_info()" style="margin-top: 30px; width: 80px;height: 30px; display: inline-block;line-height: 30px;border:1px solid rgb(204,204,204); text-align: center;background-color: lightgray;cursor:pointer;">保存</div> <!-- <input type="submit" value="保存" />--> </div> </form> </div> <!--</div>--> </body> <!--<script src="js/master.js"></script> --> <script src="js/add_hotel.js" type="text/javascript" charset="utf-8"></script> </html>