
<div class="col-xs-24 content">
  <nav class="navbar navbar-default order_action_nav">
      <div class="container-fluid">

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse nopadding" id="bs-example-navbar-collapse-1" >
          <ul class="nav navbar-nav step_by_step">
            <li style="margin:0;">订单处理流程：</li>
            <?php $i=0; foreach ($order_step as $key => $step) { ?>
                <li class="<?php if(($i++)==0)echo 'hidden'; ?>"><span class="glyphicon glyphicon-arrow-right"></span></li>
                <li class="step_li">
                  <button type="button" class="btn btn-default btn-sm set_step_btn <?php echo $step=='已付款'?'step_had_pay':''; ?>" data-osn="<?php echo $orderinfo->o_sn;?>" data-step="<?php echo $step;?>" data-url="<?php echo site_url('index/set_orders'); ?>" <?php echo get_btn_status($orderinfo->o_status,$key,$current_step); ?>>
                      <?php echo $step; ?>
                    </button>
                </li>
            <?php } ?>

            <li>
              <div class="btn-group pull-right">
                <a class="btn btn-sm btn-default" style="height: 30px;line-height: 26px;margin-top: 3px;" href="<?php echo site_url('index/goto_pre_step/'.$orderinfo->o_sn); ?>">返回上一状态</a>
                <button type="button" style="margin-top:3px;" class="btn btn-sm btn-default  dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                  <span class="caret"></span>
                </button>
                <ul class="dropdown-menu">
                  <li><a href="javascript:void(0);" class="set_step_btn" data-osn="<?php echo $orderinfo->o_sn;?>" data-step="不成行" data-url="<?php echo site_url('index/set_orders'); ?>" data-tips="1">不成行</a></li>
                  <li><a href="javascript:void(0);" class="set_step_btn" data-osn="<?php echo $orderinfo->o_sn;?>" data-step="无效订单" data-url="<?php echo site_url('index/set_orders'); ?>" data-tips="1">无效订单</a></li>
                </ul>
              </div>
            </li>
            
            
          </ul>
          <ul class="nav navbar-nav navbar-right step_by_step">
            <li>
              <!-- Single button -->
              <div class="btn-group" style="margin-top: 0px;">
                <button type="button" class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                  新建邮件 <span class="caret"></span>
                </button>
                <ul class="dropdown-menu">
                  <li><a class="small" target="_blank" href="<?php echo site_url('mail/send/'.$orderinfo->o_orderno.'/'.$linkuser->cus_email.';'.$linkuser->cus_backup_email); ?>">新建空白邮件</a></li>
                  <?php foreach ($template_list as $item_tpl) { ?>
                  <li><a target="_blank" href="<?php echo site_url('mail/send/'.$orderinfo->o_orderno.'/'.$linkuser->cus_email.';'.$linkuser->cus_backup_email.'/'.$item_tpl->tp_sn); ?>"><?php echo $item_tpl->tp_title; ?></a></li>
                  <?php } ?>
                </ul>
              </div>
            </li>
          </ul>
        </div>
      </div>
    </nav>

  <div class="col-xs-24 nopadding">
    <form id="form-add-order" class="form-inline form-save-order" method="post" action="<?php echo site_url('index/do_add_order'); ?>">
    <input type="hidden" name="o_sn" id="ordersn" value="<?php echo $orderinfo->o_sn; ?>">
    <input type="hidden" name="sub_order_count" id="sub_order_count" value="<?php echo count($sub_order_list); ?>">

    <div class="bs-example bs-example-tabs" data-example-id="togglable-tabs">
      
      <ul id="myTabs" class="nav nav-tabs" role="tablist">
        <li role="presentation" class="active"><a href="#home" role="tab" data-toggle="tab" aria-controls="home" aria-expanded="true" style="font-size:20px;padding: 6px 12px;">订单信息</a></li>
        <?php $order_total_price=0; foreach ($sub_order_list as $k => $order) { ?>
            <li role="presentation"><a href="#suborderinfo<?php echo $order->occ_sn; ?>" id="home-tab" role="tab" data-toggle="tab" aria-controls="home" aria-expanded="true">产品信息<?php echo $k+1; ?></a></li>
            <?php empty($order->occ_price)?'':$order_total_price+=$order->occ_price; ?>
        <?php } ?>
        <li role="presentation"><a href="javascript:void(0);" id="add_suborder" data-href="<?php echo site_url('index/add_suborder_item/'.$orderinfo->o_sn); ?>" style="font-size:20px;padding: 6px 12px;">+</a></li>
        <div class="btn-group pull-right" style="padding:5px 20px 0 0;">
          <button type="button" class="btn btn-sm btn-primary" onclick="$(this).button('loading');ajaxSubmit('form-add-order');">保存订单</button>
          <button type="button" class="btn btn-sm btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
            <span class="caret"></span>
          </button>
          <ul class="dropdown-menu">
            <li><a href="javascript:void(0);" onclick='do_submit("","<?php echo site_url('index/delete/'.$orderinfo->o_sn) ?>");'>删除订单</a></li>
          </ul>
        </div>
      </ul>

      <div id="myTabContent" class="tab-content" style="padding:30px 15px;">
        <div role="tabpanel" class="tab-pane fade active in" id="home" aria-labelledby="home-tab">
            <div class="row orderinfobox">
              <div class="col-sm-6" style="padding-bottom:10px;"><span>订单号　： </span>
                <input type="text" name="orderNO" class="form-control input-sm" value="<?php echo $orderinfo->o_orderno; ?>" placeholder="系统会自动生成订单号" readonly>
              </div>
              <div class="col-sm-6" style="padding-bottom:10px;"><span>订单状态：</span>
                <input name="status" id="order-step" class="form-control input-sm" value="<?php echo $orderinfo->o_status; if(!empty($payments) && ($orderinfo->o_status=='我的订单' || $orderinfo->o_status=='新订单' || $orderinfo->o_status=='未预定先联系')) echo '(已付款)'; ?>" readonly>
              </div>
              <div class="col-sm-6" style="padding-bottom:10px;"><span>订单总价：</span>
                <input type="text" class="form-control input-sm" value="$<?php echo $order_total_price; ?>" readonly>
              </div>
              <div class="col-sm-6" style="padding-bottom:10px;"><span>订单来源：</span>
                <select name="source" class="form-control input-sm" style="width: 90px;">
                  <?php $skey=0;foreach ($order_sourcetypes as $stype) {$skey++;if($skey>10){break;} ?>
                    <option value="<?php echo $stype; ?>" <?php if($orderinfo->o_source==$stype) echo 'selected'; ?>><?php echo $stype; ?></option>
                  <?php } ?>
                </select>
                <select name="o_device" class="form-control input-sm" style="width: 60px;">
                  <?php foreach ($order_devices as $devices) { ?>
                    <option value="<?php echo $devices; ?>" <?php if($orderinfo->o_device==$devices) echo 'selected'; ?>><?php echo $devices; ?></option>
                  <?php } ?>
                </select>
              </div>
              
              <div class="col-sm-6 hidden" style="padding-bottom:10px;"><span>订单类型：</span>
              <select name="ordertype" class="form-control input-sm" style="width: 150px;">
                            <?php foreach ($order_type as $key => $type) { ?>
                              <option value="<?php echo $key; ?>" <?php if($orderinfo->o_ordertype==$key) echo 'selected'; ?>><?php echo $type; ?></option>
                            <?php } ?>
                      </select>
              </div>

              <div class="col-xs-24">
                <input type="hidden" name="cus_sn" value="<?php echo $linkuser->cus_sn; ?>">
                
                <div class="row">
                    <div class="col-sm-6" style="padding-bottom:10px;"><span>联系人　： </span><input type="text" name="linkname" class="form-control input-sm" value="<?php echo $linkuser->cus_firstname.' '.$linkuser->cus_middlename.' '.$linkuser->cus_lastname; ?>"></div>
                    <div class="col-sm-6" style="padding-bottom:10px;"><span>联系邮箱：</span><input type="text" name="linkemail" class="form-control input-sm" value="<?php echo $linkuser->cus_email; ?>"></div>
                    <div class="col-sm-6" style="padding-bottom:10px;"><span>其他邮箱：</span><input type="text" name="backup_email" class="form-control input-sm" value="<?php echo $linkuser->cus_backup_email; ?>"></div>
                    <div class="col-sm-6" style="padding-bottom:10px;"><span>联系电话：</span><input type="text" name="linkphone" class="form-control input-sm" value="<?php echo $linkuser->cus_phone; ?>"></div>
                    
                    <div class="col-sm-6" style="padding-bottom:10px;"><span>性　　别：</span>
                      <select name="linksex" class="form-control input-sm" style="width:150px;">
                                  <?php foreach ($sex as $key => $s) { ?>
                                    <option value="<?php echo $key; ?>" <?php if($linkuser->cus_sex==$key)echo 'selected'; ?>><?php echo $s; ?></option>
                                  <?php } ?>
                            </select>
                    </div>
                    <div class="col-sm-6" style="padding-bottom:10px;"><span>客人国籍：</span>
                      <select name="linkcountry" class="form-control input-sm" style="width:150px;">
						  <?php if($linkuser->cus_nationality == 0){?>
                                    <option value="" selected="selected" >待告</option>>
                          <?php }?>
                                  <?php foreach ($country as $key => $na) { ?>
                                  
                                    <option value="<?php echo $key; ?>" 
									<?php if($linkuser->cus_nationality==$key)echo 'selected'; ?>>
									<?php echo $na; ?></option>
                                    
                                  <?php } ?>
                           </select>
                    </div>
                    <div class="col-sm-6" style="padding-bottom:10px;"><span>护照号码：</span><input type="text" name="linkpassport" class="form-control input-sm" value="<?php echo $linkuser->cus_passport; ?>"></div>
                    <div class="col-sm-6" ><span>护照有效期：
                    </span>
                    
                    <input type="text" name="linkpassportpaliddate" class="form-control input-sm lyydatepicker" autocomplete="off" value="<?php echo $linkuser->cus_passport_validdate < date('Y-m-d',strtotime(1901-1-1))?'待告':date('Y-m-d',strtotime($linkuser->cus_passport_validdate)); ?>">
                    </div>
                </div>
                <div class="col-xs-24 btn-lg"></div>
              </div>
              
              <div class="col-sm-24">
                  <legend style="border-bottom:none;">订单备注</legend>
                  <div class="row">
                      <div class="col-xs-24 text-center">
                        <textarea name="o_memo" class="form-control" rows="5" style="width:100%;"><?php echo ($orderinfo->o_memo); ?></textarea>
                        <div class="col-xs-24 btn-lg"></div>
                      </div>
                  </div>
              </div>
            </div>
            <!---->
            <div class="" >
              <legend style="border-bottom:none;">
                产品信息总汇
                
              </legend>
              

                <table class="table table-bordered pt_refresh" >
                <div class="" >
                 <tr class="table-title" style="background:#f0f0f0;" >
                    <th width="120">产品代号</th>
                    <th width="80">出发日期</th>
                    <th width="80">订单天数</th>
                    <th width="80">大人数</th>
                    <th width="90">小孩人数</th>
                    <th width="80">婴儿人数</th>
                    <th width="90">订单报价</th>
                    
                  </tr>
                   </div>
                  
                  <?php foreach ($sub_order_list as $key => $value) { ?>
                  <tr class="gus_it" id="ptabc_"<?php echo $value->occ_sn; ?> >
                    <td><?php echo $value->occ_circuitcode; ?></td>
                    <td><?php echo $value->occ_startdate == NULL ? '待告' : date('Y-m-d',strtotime($value->occ_startdate)); ?></td>
                    <td><?php echo $value->occ_days == -1 ? '待告' : $value->occ_days; ?></td>
                    <td><?php echo $value->occ_adultcount; ?></td>
                    <td><?php echo $value->occ_childrencount; ?></td>
                    <td><?php echo $value->occ_babycount; ?></td>
                    <td><?php echo $value->occ_price; ?></td>
                  </tr>
                  <?php } ?>
                  
                 
              </table>
              
            </div>
            
            <div class="col-xs-24 nopadding">
              <legend style="border-bottom:none;">
                付款记录
                <a class="small load-modal" data-modal="editpaymentModal" data-href="<?php echo site_url('index/edit_payment/'.$orderinfo->o_sn.'/0'.'/'.$orderinfo->occ_price) ?>" href="javascript:void(0);">[添加记录]</a>
              </legend>
                <table class="table table-bordered payment-table">
                <tbody>
                  <tr class="table-title" style="background:#f0f0f0;">
                    <th width="120">支付方式</th>
                    <th width="80">支付币种</th>
                    <th width="80">支付金额</th>
                    <th width="90">支付日期</th>
                    <th width="80">实收金额</th>
                    <th width="90">实收日期</th>
                    <th>客人名字</th>
                    <th>客人邮件</th>
                    <th>收款公司</th>
                    <th>备注</th>
                    <th width="45"></th>
                  </tr>
                  <?php foreach ($payments as $key => $pay) { ?>
                  <tr class="gust_input_tr" id="payment_list_<?php echo $pay->pm_sn; ?>">
                    <td><?php echo $pay->pm_money_type; ?></td>
                    <td><?php echo $pay->pm_money_currency; ?></td>
                    <td><?php echo $pay->pm_money; ?></td>
                    <td><?php echo date('Y-m-d',strtotime($pay->pm_money_date)); ?></td>
                    <td><?php echo $pay->pm_rmb; ?></td>
                    <td><?php echo date('Y-m-d',strtotime($pay->pm_rmb_date)); ?></td>
                    <td><?php echo $pay->pm_customer; ?></td>
                    <td><?php echo $pay->pm_customer_email; ?></td>
                    <td><?php echo $pay->pm_company;?></td>
                    <td style="max-width: 250px;"><?php echo $pay->pm_memo;?></td>
                    <td><a class="small load-modal" data-modal="editpaymentModal" data-href="<?php echo site_url('index/edit_payment/'.$orderinfo->o_sn.'/'.$pay->pm_sn.'/'.$orderinfo->occ_price); ?>" href="javascript:void(0);">修改</a></td>
                  </tr>
                  <?php } ?>
                </tbody>
              </table>
              <div class="col-xs-24 btn-lg"></div>
              <div class="col-xs-24 btn-lg"></div>
            </div>

			

            <div class="col-xs-24 nopadding" style="margin-bottom:50px;">
              <legend style="border-bottom:none;">
                来往邮件
                <a class="small" target="_blank" href="<?php echo site_url('mail/send/'.$orderinfo->o_orderno.'/'.$linkuser->cus_email.';'.$linkuser->cus_backup_email); ?>">[新建邮件]</a>
              </legend>
                <table class="table table-striped">
                <tbody>
                  <tr class="table-title" style="background:#f0f0f0;">
                    <th scope="row">发件人</th>
                    <th>邮件主题</th>
                    <th>收/发时间</th>
                    <th>订单号</th>
                    <th>阅读状态</th>
                    <th>操作</th>
                  </tr>
                  <?php foreach ($mails as $mail) { ?>
                  <tr>
                    <td><?php echo $mail->mail_from; ?></td>
                    <td><?php echo $mail->mail_subject; ?></td>
                    <td><?php echo date('Y-m-d h:i:s',strtotime($mail->mail_date)); ?></td>
                    <td><?php echo $mail->mail_o_orderno; ?></td>
                    <td></td>
                    <td>
                      <a href="<?php echo site_url('mail/reply/'.$mail->mail_sn) ?>" >答复</a> | 
                      <a href="<?php echo site_url('mail/reply/'.$mail->mail_sn.'/1') ?>" >全部答复</a> | 
                      <a href="<?php echo site_url('mail/reply/'.$mail->mail_sn.'/2') ?>" >转发</a> | 
                      <a href="<?php echo site_url('mail/detail/'.$mail->mail_sn) ?>" >查看</a>
                    </td>
                  </tr>
                  <?php } ?>
                </tbody>
              </table>
            </div>

        </div>

        <?php foreach ($sub_order_list as $k => $order) { ?>
        <div role="tabpanel" class="tab-pane fade" id="suborderinfo<?php echo $order->occ_sn; ?>" aria-labelledby="home-tab">
        
          <div class="col-xs-24 nopadding">
            <div class="row orderinfobox">
              <input type="hidden" name="sub_order_sn_<?php echo $k;?>" value="<?php echo $order->occ_sn; ?>">
                <div class="col-sm-6" style="padding-bottom:10px;"><span>产品代号： </span>
                  <input type="text" name="ordercolno_<?php echo $k;?>" id="ordercolno_<?php echo $k;?>" class="form-control input-sm" value="<?php echo $order->occ_circuitcode; ?>">
                </div>
                <div class="col-sm-6" style="padding-bottom:10px;"><span>出发日期： </span>
                  <input type="text" name="startdate_<?php echo $k;?>"  class="form-control input-sm lyydatepicker" value="<?php echo empty($order->occ_startdate)?'待告':date('Y-m-d',strtotime($order->occ_startdate)); ?>" autocomplete="off">
                </div>
                <div class="col-sm-6" style="padding-bottom:10px;"><span>订单天数：</span>
                  <select name="orderdays_<?php echo $k;?>" id="orderdays_<?php echo $k;?>" class="form-control input-sm" style="width: 150px;">
                  <option value="-1">未设置</option>
                  <?php for ($i=1; $i < 21; $i++) { ?>
                      <option value="<?php echo $i; ?>" <?php if($order->occ_days==$i)echo 'selected'; ?>><?php echo $i; ?></option>
                   <?php } ?>
                </select>
                </div>

                <div class="col-sm-6" style="padding-bottom:10px;"><span>订单报价：</span>
                  <input type="hidden" name="old_price_<?php echo $k;?>" value="$<?php echo $order->occ_price; ?>">
                  <input type="hidden" name="old_occ_edited_price_<?php echo $k;?>" value="<?php echo empty($order->occ_edited_price)?'0':$order->occ_edited_price; ?>">
                  <input type="text" name="orderprice_<?php echo $k;?>" id="orderprice_<?php echo $k;?>" class="form-control input-sm input-orderprice" value="$<?php echo $order->occ_price; ?>" style="cursor:text;<?php if($order->occ_edited_price=='1')echo 'border-bottom:1px solid red;'; ?>" readonly>
                </div>
                <div class="col-sm-6" style="padding-bottom:10px;">
                  <span>成人数量：</span>
                  <select name="adultcount_<?php echo $k;?>" id="adultcount_<?php echo $k;?>" class="form-control input-sm" style="width: 150px;">
                    <?php for ($i=0; $i < 21; $i++) { ?>
                      <option value="<?php echo $i; ?>" <?php if($order->occ_adultcount==$i)echo 'selected'; ?>><?php echo $i; ?></option>
                   <?php } ?>
                </select>
                </div>
                <div class="col-sm-6" style="padding-bottom:10px;">
                  <span>小孩数量：</span>
                  <select name="childrencount_<?php echo $k;?>" id="childrencount_<?php echo $k;?>" class="form-control input-sm" style="width: 150px;">
                  <?php for ($i=0; $i < 21; $i++) { ?>
                      <option value="<?php echo $i; ?>" <?php if($order->occ_childrencount==$i)echo 'selected'; ?>><?php echo $i; ?></option>
                   <?php } ?>
                </select>
                </div>
                <div class="col-sm-6" style="padding-bottom:10px;"><span>婴儿数量：</span>
                  <select name="babycount_<?php echo $k;?>" id="babycount_<?php echo $k;?>" class="form-control input-sm" style="width: 150px;">
                  <?php for ($i=0; $i < 21; $i++) { ?>
                      <option value="<?php echo $i; ?>" <?php if($order->occ_babycount==$i)echo 'selected'; ?>><?php echo $i; ?></option>
                   <?php } ?>
                </select>
                </div>
                <div class="">
                    <button type="button" class="btn btn-primary " onclick="order_to_rmb(<?php echo $k;?>);">根据产品信息计算价格</button>
                </div>
              </div>
              <div class="col-xs-24 btn-sm"></div>
              <div class="col-xs-24 btn-lg"></div>
            </div><!--产品信息END-->

            <div class="col-xs-24 nopadding">
              <legend style="border-bottom:none;">
                客人列表
                <a href="javascript:void(0);" class="small btn-add-guset-line">[添加一行]</a>
              </legend>
                <table class="table table-bordered guest_list_td_add">
                <tbody>
                  <tr class="table-title" style="background:#eee;">
                    <th>FirstName</th>
                    <th>MiddleName</th>
                    <th>LastName</th>
                    <th>国籍</th>
                    <th>性别</th>
                    <th>护照</th>
                    <th>护照有效期</th>
                    <th class="hidden">邮箱</th>
                    <th width="60"></th>
                  </tr>
                  <?php $customers[$order->occ_sn]=isset($customers[$order->occ_sn])?$customers[$order->occ_sn]:array(); foreach ($customers[$order->occ_sn] as $key => $guest) { if(!empty($guest->cus_firstname) || !empty($guest->cus_middlename) || !empty($guest->cus_lastname)){ ?>
                  <input type="hidden" name="guest_cus_sn_<?php echo $k;?>[]" value="<?php echo $guest->cus_sn; ?>">
                  <tr class="gust_input_tr">
                    <td><input type="text" name="FirstName_<?php echo $k;?>[]" class="guest_td_input" value="<?php echo $guest->cus_firstname; ?>"></td>
                    <td><input type="text" name="MiddleName_<?php echo $k;?>[]" class="guest_td_input" value="<?php echo $guest->cus_middlename; ?>"></td>
                    <td><input type="text" name="LastName_<?php echo $k;?>[]" class="guest_td_input" value="<?php echo $guest->cus_lastname; ?>"></td>
                    <td>
                      <select name="Nationality_<?php echo $k;?>[]" class="guest_td_input">
                              <?php foreach ($country as $key => $na) { ?>
                                <option value="<?php echo $key; ?>" <?php if($guest->cus_nationality==$key)echo 'selected'; ?>><?php echo $na; ?></option>
                              <?php } ?>
                       </select>
                    </td>
                    <td>
                      <select name="sex_<?php echo $k;?>[]" class="guest_td_input">
                              <?php foreach ($sex as $key => $s) { ?>
                                <option value="<?php echo $key; ?>" <?php if($guest->cus_sex==$key)echo 'selected'; ?>><?php echo $s; ?></option>
                              <?php } ?>
                        </select>
                    </td>
                    <td><input type="text" name="passport_<?php echo $k;?>[]" class="guest_td_input" value="<?php echo $guest->cus_passport; ?>"></td>
                    <td><input type="text" name="PassportValidDate_<?php echo $k;?>[]" class="guest_td_input lyydatepicker" autocomplete="off" value="<?php echo date('Y-m-d',strtotime($guest->cus_passport_validdate)); ?>"></td>
                    <td class="hidden"><input type="text" name="Email_<?php echo $k;?>[]" class="guest_td_input" value="<?php echo $guest->cus_email; ?>"></td>
                    <td><a class="small delete_guest" style="padding-left:5px;" href="javascript:void(0);" data-href="<?php echo site_url('index/delete_guest/'.$guest->cus_sn); ?>">删除</a></td>
                  </tr>
                  <?php }} ?>

                  <tr class="gust_input_tr">
                    <td><input type="text" name="FirstName_<?php echo $k;?>[]" class="guest_td_input"></td>
                    <td><input type="text" name="MiddleName_<?php echo $k;?>[]" class="guest_td_input"></td>
                    <td><input type="text" name="LastName_<?php echo $k;?>[]" class="guest_td_input"></td>
                    <td>
                      <select name="Nationality_<?php echo $k;?>[]" class="guest_td_input">
                              <?php foreach ($country as $key => $na) { ?>
                                <option value="<?php echo $key; ?>"><?php echo $na; ?></option>
                              <?php } ?>
                       </select>
                    </td>
                    <td>
                      <select name="sex_<?php echo $k;?>[]" class="guest_td_input">
                              <?php foreach ($sex as $key => $s) { ?>
                                <option value="<?php echo $key; ?>"><?php echo $s; ?></option>
                              <?php } ?>
                        </select>
                    </td>
                    <td><input type="text" name="passport_<?php echo $k;?>[]" class="guest_td_input"></td>
                    <td><input type="text" name="PassportValidDate_<?php echo $k;?>[]" class="guest_td_input lyydatepicker" autocomplete="off"></td>
                    
                    <td class="hidden"><input type="text" name="Email_<?php echo $k;?>[]" class="guest_td_input"></td>
                    <td></td>
                  </tr>
                </tbody>
              </table>
              <div class="col-xs-24 btn-lg"></div>
              <div class="col-xs-24 btn-lg"></div>
            </div>

            <div class="col-sm-24 nopadding">
              <legend style="border-bottom:none;">客人Special Request</legend>
              <div class="row">
                  <div class="col-xs-24 text-center">
                    <textarea name="DetailText_<?php echo $k;?>" class="form-control" rows="10" style="width:100%;background:#fafafa;" readonly><?php echo htmlspecialchars_decode($order->occ_detailtext); ?></textarea>
                    <div class="col-xs-24 btn-lg"></div>
                  </div>
              </div>
            </div>

        </div>
        <?php } ?>

      </div>

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


</div>