<div class="col-xs-24 btn-lg"></div>
<form class="form-add-watch" method="post" style="background:#fafafa;" action="<?php echo site_url('apps/workflow/index/do_add_work'); ?>">
  <input type="hidden" name="wf_sn" value="<?php if(isset($wf_sn)) echo $wf_sn; ?>">
  <input type="hidden" name="mail_title" value="值班记录">
  <input type="hidden" name="rest_days" value="0">
  <input type="hidden" name="rest_days2" value="3.5">
  <div class="col-xs-24 zhiban-top">
    <div class="col-xs-5"><input type="text" class="datepicker noshadow noborder" style="font-size:14px;color:#666;width:100px;" name="wf_time" value="<?php $cdate=date('Y-m-d');if(isset($wf_time)) $cdate=$wf_time; echo $cdate; ?>" /></div>
    <div class="col-xs-14 text-center">
        <select name="wf_wt_sn" class="noshadow hidden-xs" style="border:1px solid #ddd;height:24px;width:110px;">
          <?php foreach ($typelist as $t) { ?>
            <option value="<?php echo $t->wt_sn.'@'.$t->wt_step; ?>" <?php if(isset($wf_wt_sn) && $wf_wt_sn==$t->wt_sn.'@'.$t->wt_step) echo 'selected' ?>><?php echo $t->wt_name; ?></option>
          <?php } ?>
        </select> 
        <input type="text" name="wf_user" class="text-center noshadow" style="border:1px solid #ddd;width:100px;" value="<?php $userdata=$this->session->userdata('admin_chtcdn'); if(!isset($wf_user)) {echo $userdata['OPI_Name'];}else{echo $wf_user;} ?>" placeholder="姓名">
    </div>
    <div class="col-xs-5">
      <?php if (!isset($wf_sn) || empty($wf_sn)) { ?>
        <button type="button" class="btn btn-danger pull-right btn-add-watch" onclick="$(this).button('loading');setTimeout(function(){ajaxSubmit('.form-add-watch')},500);">提  交</button>
      <?php } ?>
    </div>
  </div>
  <legend></legend>
  <div class="col-xs-24 nopadding normal_input">
    <div class="col-xs-24 text-danger">温馨提示：<strong>补填记录</strong>的同学请把上方的日期改为<span class="lead">值班当天</span>的日期，并确认值班人是<span class="lead">自己的名字</span></div>
  </div>
  <div class="col-xs-24" style="margin:15px 0 20px 0;"><h3>值班情况</h3></div>
  <div class="col-xs-24">
    <table class="worktable table table-condensed" width="1024" border="0" cellpadding="0" cellspacing="1">
      <thead>
        <tr class="fontnormal">
          <th width="13%" height="65">走团个数</th>
          <th width="13%">紧急变更</th>
          <th width="13%">紧急新增</th>
          <th width="13%">次日需要跟踪处理事务</th>
        </tr>
      </thead>
      <tbody style="background:#fff;">
        <tr>
          <td><textarea class="form-control" name="business_order_status"><?php if(isset($business_order_status))echo $business_order_status; ?></textarea></td>
          <td><textarea class="form-control" name="circut_order_status"><?php if(isset($circut_order_status))echo $circut_order_status; ?></textarea></td>
          <td><textarea class="form-control" name="faq_order_status"><?php if(isset($faq_order_status))echo $faq_order_status; ?></textarea></td>
          <td><textarea class="form-control" name="mail_order_status"><?php if(isset($mail_order_status))echo $mail_order_status; ?></textarea></td>
        </tr>
      </tbody>
    </table>
    
  </div>
  <script type="text/javascript">
    $('.datepicker').datepicker({});
  </script>
</form>