<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="hidden" 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="<?php if (!isset($wf_sn)) { echo 'col-xs-20 col-md-offset-2';}else{echo 'col-xs-24';} ?>">
    <h3 class="text-center">
      电脑更换升级申请
    </h3>
    <table width="100%" border="0" class="resttable table_form_input table table-bordered">
      <tr>
        <td width="14%" height="50" align="center" valign="middle">申　　请　　人</td>
        <td height="50" colspan="7" valign="middle"><input type="text" name="apply_user" class="form-control" value="<?php $userdata=$this->session->userdata('admin_chtcdn'); if(!isset($apply_user)) {echo $userdata['OPI_Name'];}else{echo $apply_user;} ?>"></td>
      </tr>
      <tr>
        <td height="50" align="center" valign="middle">所 属　事 业 部</td>
        <td height="50" colspan="7" valign="middle"><input type="text" name="department" class="form-control" value="<?php echo isset($department)?$department:''; ?>"></td>
      </tr>
      <tr>
        <td height="50" align="center" valign="middle">申　请　日　期</td>
        <td height="50" colspan="7" valign="middle"><input type="text" name="apply_start_date" class="form-control datepicker" style="background:none;" value="<?php echo isset($apply_start_date)?$apply_start_date:date('Y-m-d'); ?>" placeholder="　　年　　月　　日"></td>
      </tr>
      <tr>
        <td height="50" align="center" valign="middle">现用电脑用户名</td>
        <td height="50" colspan="3" valign="middle"><input type="text" name="computer_name" value="<?php echo isset($computer_name)?$computer_name:'CHT（  ）'; ?>" class="form-control"></td>
        <td height="50" align="center" valign="middle">现用电脑IP</td>
        <td height="50" colspan="3" valign="middle"><input type="text" name="computer_ip" value="<?php echo isset($computer_ip)?$computer_ip:'202.103.68.（  ）';?>" class="form-control"></td>
      </tr>
      <tr>
        <td height="141" align="center" valign="middle">申请理由</td>
        <td height="141" colspan="7">
          <textarea class="form-control" name="apply_reason" style="padding-top:20px;" placeholder="电脑速度不能满足办公需要
电脑经常死机耽误工作进度
其它："><?php echo isset($apply_reason)?$apply_reason:''; ?></textarea>
        </td>
      </tr>
      <tr class="qianmingqudep">
        <td width="14%" height="200" align="center" valign="middle">
          <p>工</p><p>程</p><p>师</p><p>意</p><p>见</p>
        </td>
        <td width="12%" height="200" align="center" valign="middle"><textarea class="form-control" name="gongchengshi_ad" <?php if (!isset($wf_sn) || empty($wf_sn) || (isset($is_verify_user) && $is_verify_user==0)) echo 'readonly'; ?>><?php echo isset($gongchengshi_ad)?$gongchengshi_ad:''; ?></textarea></td>
        
        <td width="12%" align="center" valign="middle">
          <p>事</p><p>业</p><p>部</p><p>主</p><p>管</p><p>意</p><p>见</p>
        </td>
        <td width="12%" height="200" align="center" valign="middle"><textarea class="form-control" name="shiyebuzhuguan_ad" <?php if (!isset($wf_sn) || empty($wf_sn) || (isset($is_verify_user) && $is_verify_user==0)) echo 'readonly'; ?>><?php echo isset($shiyebuzhuguan_ad)?$shiyebuzhuguan_ad:''; ?></textarea></td>
        
        <td width="12%" align="center" valign="middle">
          <p>研</p><p>发</p><p>中</p><p>心</p><p>主</p><p>管</p><p>意</p><p>见</p>
        </td>
        <td width="12%" height="200" align="center" valign="middle"><textarea class="form-control" name="jishuzhuguan_ad" <?php if (!isset($wf_sn) || empty($wf_sn) || (isset($is_verify_user) && $is_verify_user==0)) echo 'readonly'; ?>><?php echo isset($jishuzhuguan_ad)?$jishuzhuguan_ad:''; ?></textarea></td>

        <td width="12%" align="center" valign="middle">
          <p>主</p><p>管</p><p>意</p><p>见</p>
        </td>
        <td width="12%" height="200" align="center" valign="middle"><textarea class="form-control" name="zhuguan_ad" <?php if (!isset($wf_sn) || empty($wf_sn) || (isset($is_verify_user) && $is_verify_user==0)) echo 'readonly'; ?>><?php echo isset($zhuguan_ad)?$zhuguan_ad:''; ?></textarea></td>

      </tr>
    </table>

  </div>
  
  
  <script type="text/javascript">
    $('.datepicker').datepicker({
      dateFormat:"yy-mm-dd"
    });
  </script>
</form>