You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
information-system/webht/third_party/workflow/views/index/changemyrota.php

86 lines
3.7 KiB
PHP

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>值班更换</title>
<link href="/css/webht/bootstrap.min.css" rel="stylesheet">
<link href="/css/nav/nav.css?v=20150723" rel="stylesheet">
<link href="/css/webht/jquery-ui-1.10.0.custom.css" rel="stylesheet">
<link type="text/css" rel="stylesheet" href="/css/webht/jquery.suggest.css" />
<script src="/min?f=/js/jquery.min.js,/js/bootstrap.min.js,/js/navigation.js"></script>
<script src="/js/jquery-ui.min.js?v=1"></script>
<!--[if lt IE 9]>
<script src="/js/respond.min.js" type="text/javascript"></script>
<![endif]-->
<style type="text/css">
.admin-list-unstyled{top: 35px !important;}
</style>
</head>
<div class="col-xs-24 genghuanbox">
<form class="row" id="form-changerota" method="post" action="<?php echo site_url('apps/workflow/index/dochangerota'); ?>">
<div class="modal-body row">
<div class="form-group">
<label class="col-xs-24 control-label">你的名字</label>
<div class="col-xs-24">
<input type="text" class="form-control" name="yusername" autocomplete="off" value="<?php $userdata=$this->session->userdata('admin_chtcdn'); echo $userdata['OPI_Name']; ?>">
</div>
<div class="btn-sm col-xs-24"></div>
</div>
<div class="form-group">
<label class="col-xs-24 control-label">你的值班日期</label>
<div class="col-xs-24">
<input readonly type="text" class="form-control" id="y-rotadate" name="yrotadate" autocomplete="off" value="<?php echo $yrotadate; ?>" placeholder="如果你当月没有值班,此处请留空">
</div>
<div class="btn-sm col-xs-24"></div>
</div>
<div class="form-group">
<label class="col-xs-24 control-label">TA的名字</label>
<div class="col-xs-24 msg_list_box" style="position:relative;">
<input type="text" class="form-control changeruser" name="tausername" autocomplete="off" value="">
</div>
<div class="btn-sm col-xs-24"></div>
</div>
<div class="form-group">
<label class="col-xs-24 control-label">TA的值班日期</label>
<div class="col-xs-24">
<input readonly type="text" class="form-control" id="ta-rotadate" name="tarotadate" autocomplete="off" placeholder="如果TA当月没有值班此处请留空">
</div>
<div class="btn-sm col-xs-24"></div>
</div>
</div>
<div class="modal-footer text-center">
<button type="button" class="btn btn-danger btn-block" id="btn-changerota" onclick="ajaxSubmit('#form-changerota');"> 保存&更换 </button>
</div>
</form>
</div>
<script type="text/javascript" src="/js/jquery.suggest.js"></script>
<script type="text/javascript">
$('#y-rotadate').datepicker({"dateFormat":"yy-mm-d"});
$('#ta-rotadate').datepicker({"dateFormat":"yy-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>
</body>
</html>