<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="出差申请">
  <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 }else{ ?>
        <a class="load-modal btn btn-default btn-sm pull-right hidden-xs" style="background:#e0e0e0;width:80px;" href="javascript:void(0);" data-href="<?php echo site_url('apps/workflow/index/print_business/'.$wf_sn.'/'.$wv_status.'/'.$nav_type); ?>" data-modal="bs-print-modal-lg">打  印</a>
    <?php } ?>
    </div>
  </div>
  <legend></legend>

  <div class="<?php if (!isset($wf_sn)) { echo 'col-xs-20 col-md-offset-2';}else{echo 'col-xs-24';} ?>">
    <h2 align="center">出差申请单</h2>
<p align="center" class="text-danger">
  <b>(</b><b>考察类外出要求提前一周发送中华游公告并抄送图片管理员张林)</b>
</p>
<p>
  <span> </span>
</p>
<table class="businesstable table table-condensed table-bordered" cellspacing="0" cellpadding="0">
  <tbody>
    <tr>
      <td width="120" style="padding-left:15px;">
        出差人姓名
      </td>
      <td width="250" colspan="3">
        <textarea class="form-control" name="apply_user" style="font-size:12px;line-height:15px;min-height:45px;"><?php echo isset($apply_user)? $apply_user:''; ?></textarea>
      </td>
      <td  style="padding-left:15px;">
        所属事业部&amp;职务
      </td>
      <td colspan="3">
        <textarea class="form-control" name="user_partment" style="font-size:12px;line-height:15px;min-height:45px;"><?php echo isset($user_partment)? $user_partment:''; ?></textarea>
      </td>
    </tr>
    <tr>
      <td width="188" style="padding-left:15px;">
        出差类型
      </td>
      <td colspan="7" style="padding:10px;">
        <div>
          <label class="radio-inline">
            <input type="radio" name="business_type" value="1" <?php if(isset($business_type) && $business_type==1) echo 'checked'; ?>> 考察
          </label>
          <label class="radio-inline">
            <input type="radio" name="business_type" value="2" <?php if(isset($business_type) && $business_type==2) echo 'checked'; ?>> 奖励旅游
          </label>
          <label class="radio-inline">
            <input type="radio" name="business_type" value="3" <?php if(isset($business_type) && $business_type==3) echo 'checked'; ?>> 展会或旅交会
          </label>
          <label class="radio-inline">
            <input type="radio" name="business_type" value="4" <?php if(isset($business_type) && $business_type==4) echo 'checked'; ?>> 开会或培训
          </label>
          <label class="radio-inline">
            <input type="radio" name="business_type" value="5" <?php if(isset($business_type) && $business_type==5) echo 'checked'; ?>> 其它(请注明)：
            <input type="text" name="business_type_other" style="border:none;border-bottom:1px solid #aaa;" value="<?php echo isset($business_type_other)? $business_type_other:''; ?>">
          </label>
        </div>
      </td>
    </tr>
    <tr>
      <td width="188" style="padding-left:15px;">
        出差地点
      </td>
      <td colspan="3"><textarea class="form-control" name="business_place"><?php echo isset($business_place)? $business_place:''; ?></textarea></td>
      <td style="padding-left:15px;">
        交通工具
      </td>
      <td colspan="3"><textarea class="form-control" name="business_transfer"><?php echo isset($business_transfer)? $business_transfer:''; ?></textarea></td>
    </tr>
    <tr>
      <td width="188" style="padding-left:15px;">
        出发时间
      </td>
      <td colspan="3"><input class="form-control datepicker" style="background:none;" name="business_startdate" value="<?php echo isset($business_startdate)? $business_startdate:''; ?>"/></td>
      <td style="padding-left:15px;">
        返回时间
      </td>
      <td colspan="3"><input class="form-control datepicker" style="background:none;" name="business_enddate" value="<?php echo isset($business_enddate)? $business_enddate:''; ?>"/></td>
    </tr>
    <tr>
      <td colspan="8" style="padding:10px 15px;">
        是否需要地接社接待:
        <span>
          <label class="radio-inline">
            <input type="radio" name="nedd_tripvise" value="1" <?php if(isset($nedd_tripvise) && $nedd_tripvise==1) echo 'checked'; ?>> 是
          </label>
          <label class="radio-inline">
            <input type="radio" name="nedd_tripvise" value="0" <?php if(isset($nedd_tripvise) && $nedd_tripvise==0) echo 'checked'; ?>> 否
          </label>
          <br><span class="small">注：部门规定地接社接待统一由采购经理申请并备案</span>
        </span>
      </td>
    </tr>
    <tr>
      <td colspan="8" style="height:80px;">
        <textarea class="form-control" placeholder="出差事由" name="business_reason"><?php echo isset($business_reason)? $business_reason:''; ?></textarea>
      </td>
    </tr>
    <tr>
      <td colspan="8" style="height:120px;">
        <textarea class="form-control" placeholder="请列出主要预算分项" name="business_pay"><?php echo isset($business_pay)? $business_pay:''; ?></textarea>
      </td>
    </tr>
    <tr>
      <td colspan="2" style="padding-left:15px;">
          1. 直接主管批示
      </td>
      <td colspan="2">
        <textarea class="form-control" name="monitor_ad" <?php if (!isset($wf_sn) || empty($wf_sn) || (isset($is_verify_user) && $is_verify_user==0)) echo 'readonly'; ?> ><?php echo isset($monitor_ad)? $monitor_ad:''; ?></textarea>
      </td>
      <td width="214" style="padding-left:15px;">
        2. 预算负责人<br /><small>(产品经理or后勤中心)</small>
      </td>
      <td colspan="2" style="padding:0px;">
        <textarea class="form-control" name="business_pay_count" placeholder="预算金额" <?php if (!isset($wf_sn) || empty($wf_sn) || (isset($is_verify_user) && $is_verify_user==0)) echo 'readonly'; ?>><?php echo isset($business_pay_count)? $business_pay_count:'预算金额：'; ?></textarea>
      </td>
      <td>
        <textarea class="form-control" name="houqin_ad" placeholder="签字" <?php if (!isset($wf_sn) || empty($wf_sn) || (isset($is_verify_user) && $is_verify_user==0)) echo 'readonly'; ?>><?php echo isset($houqin_ad)? $houqin_ad:'签字：'; ?></textarea>
      </td>
    </tr>
    <tr>
      <td colspan="2" style="padding-left:15px;">3. 部门经理批示</td>
      <td colspan="2">
        <textarea class="form-control" name="partment_ad" <?php if (!isset($wf_sn) || empty($wf_sn) || (isset($is_verify_user) && $is_verify_user==0)) echo 'readonly'; ?>><?php echo isset($partment_ad)? $partment_ad:''; ?></textarea>
      </td>
      <td width="214" style="padding-left:15px;">4. 总经理批示</td>
      <td colspan="3">
        <textarea class="form-control" name="ceo_ad" <?php if (!isset($wf_sn) || empty($wf_sn) || (isset($is_verify_user) && $is_verify_user==0)) echo 'readonly'; ?>><?php echo isset($ceo_ad)? $ceo_ad:''; ?></textarea>
      </td>
    </tr>
    <tr>
      <td colspan="8" style="padding:15px;">
        <p>
          以下部分出差回来后补充填写
        </p>
        <ol style="padding-left: 20px;">
          <li>我已经分享了考察（培训）信息，文档后台存储地址：<input type="text" style="border:none;border-bottom:1px solid #aaa;" name="doc_address" value="<?php echo isset($doc_address)? $doc_address:''; ?>"></li>
          <ol class="list-unstyled" style="padding-left: 0px;">
              <li>预计分享时间：<input type="text" style="border:none;border-bottom:1px solid #aaa;" name="share_date" value="<?php echo isset($share_date)? $share_date:''; ?>"></li>
              <li>审核(产品经理or后勤中心)签字：<input type="text" style="border:none;border-bottom:1px solid #aaa;" name="houqin_share_ad" value="<?php echo isset($houqin_share_ad)? $houqin_share_ad:''; ?>"></li>
          </ol>
          <li style="margin-top:10px;">我已经分享了自己拍摄的照片给部门图片管理员，共：<input type="text" style="border:none;border-bottom:1px solid #aaa;" name="share_img_count" value="<?php echo isset($share_img_count)? $share_img_count:''; ?>">张。</li>
          <ol class="list-unstyled" style="padding-left: 0px;">
            <li>后台存储地址（标准：30张/人/天）：<input type="text" style="border:none;border-bottom:1px solid #aaa;" name="share_img_address" value="<?php echo isset($share_img_address)? $share_img_address:''; ?>"></li>
            <li>图片管理员签字：<input type="text" style="border:none;border-bottom:1px solid #aaa;" name="img_manage_ad" value="<?php echo isset($img_manage_ad)? $img_manage_ad:''; ?>"></li>
          </ol>
          <li style="margin-top:10px;">我已将考察所得信息分享给产品负责人和信息负责人，并跟踪这些信息体现在后台和网前</li>
          <ol class="list-unstyled" style="padding-left: 0px;">
            <li>产品负责人签字：<input type="text" name="producter_ad" style="border:none;border-bottom:1px solid #aaa;" value="<?php echo isset($producter_ad)? $producter_ad:''; ?>"></li>
            <li>信息负责人签字：<input type="text" name="infomanage_ad" style="border:none;border-bottom:1px solid #aaa;" value="<?php echo isset($infomanage_ad)? $infomanage_ad:''; ?>"></li>
          </ol>
        </ol>
      </td>
    </tr>
    <tr>
      <td colspan="8" style="height:120px;">
        <textarea class="form-control" name="business_pay_list"><?php if(isset($business_pay_list)){echo $business_pay_list;}else{ ?>报销明细
1.
2.
3.<?php } ?></textarea>
      </td>
    </tr>
  </tbody>
</table>
<p>
  注：
</p>
<p>
  <span>1. </span>请附上具体考察行程的安排，如果是集体考察，请同时附上考察者的名字和所属的事业部。
</p>
<p>
  <span>2. </span>如果是集体考察，只需团队中的一个代表来帮大家一起填写该申请表。
</p>
<p class="text-danger">
  3.      
考察、旅游或展会类跨周末或法定节假日的不计入加班；“其它”类型如需计加班的，请主管注明。
</p>
<p>
  <span>4. </span>该出差申请单请在出差前一天签字完成后交由后勤存档。
</p>
<p>
  <span>5. </span>报账时需要随发票一并出示本申请单。
</p>
<p>
  <span>6. </span>如果是培训，请确认是否吸收为中华游年度主题培训？ □是<span> </span>□否
</p>
  </div>
  
  
  <script type="text/javascript">
    $('.datepicker').datepicker({});
  </script>
</form>