<div class="modal bs-worktype-modal-lg" tabindex="-1" role="dialog" aria-labelledby="worktypeModalLabel" aria-hidden="true">
  <link type="text/css" rel="stylesheet" href="/css/webht/jquery.suggest.css" />
  <link type="text/css" rel="stylesheet" href="/js/lyydate/skins/default/laydate.css">
  <script type="text/javascript" src="/js/jquery.suggest.js"></script>
  <script src="/js/lyydate/jquery.lyydate.min.js"></script>
  <script type="text/javascript">
    $('#btn-genghuan').button('reset');
    $('#y-rotadate').lyydatepicker({"format":"yyyy-mm-d"});
    $('#ta-rotadate').lyydatepicker({"format":"yyyy-mm-d"});

    //自动提示
    var auto_complete_url="<?php echo site_url('apps/workflow/index/get_user_list'); ?>";
    $(".changeruser").suggest(auto_complete_url,{
          container: '.msg_list_box',
          onSelect: function() {
            var admin_list=$('.changeruser').val();
            var name_arr=admin_list.split(';');
            $('.changeruser').val(name_arr[0]);
          },
          selectClass: '',
          matchClass: 'active',
          resultsClass: 'list-unstyled admin-list-unstyled'
    });
  </script>
  <div class="modal-dialog">
    <div class="modal-content">
      <form class="form-horizontal" id="form-changerota" method="post" action="<?php echo site_url('apps/workflow/index/dochangerota'); ?>">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
          <h4 class="modal-title">更换值班</h4>
        </div>
        <div class="modal-body">
              <div class="form-group">
                <label class="col-xs-6 control-label">你的名字</label>
                <div class="col-xs-18">
                  <input type="text" class="form-control" name="yusername" autocomplete="off" value="<?php $userdata=$this->session->userdata('admin_chtcdn'); echo $userdata['OPI_Name']; ?>">
                </div>
              </div>
              <div class="form-group">
                <label class="col-xs-6 control-label">你的值班日期</label>
                <div class="col-xs-18">
                  <input type="text" class="form-control" id="y-rotadate" name="yrotadate" autocomplete="off" value="" placeholder="如果你当月没有值班，此处请留空">
                </div>
              </div>
              <div class="form-group">
                <label class="col-xs-6 control-label">TA的名字</label>
                <div class="col-xs-18 msg_list_box" style="position:relative;">
                  <input type="text" class="form-control changeruser" name="tausername" autocomplete="off" value="">
                </div>
              </div>
              <div class="form-group">
                <label class="col-xs-6 control-label">TA的值班日期</label>
                <div class="col-xs-18">
                  <input type="text" class="form-control" id="ta-rotadate" name="tarotadate" autocomplete="off" placeholder="如果TA当月没有值班，此处请留空">
                </div>
              </div>
        </div>
        <div class="modal-footer">
          <input type="hidden" name="wf_sn" value="<?php echo $wf_sn; ?>">
          <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
          <button type="button" class="btn btn-info" id="btn-changerota" onclick="ajaxSubmit('#form-changerota');"> 保 存 </button>
        </div>
      </form>
    </div>
  </div>
</div>