You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pj2rkg5ve/runtime/temp/bb97f9e430d6955fb31921da2c0...

100 lines
4.5 KiB

4 years ago
<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:89:"/alidata/www/myproject/hospital/public/../application/admin/view/drugs_manager/write.html";i:1590930491;}*/ ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>修改药品信息</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="/hospital/public/static/admin/x-admin/css/font.css">
<link rel="stylesheet" href="/hospital/public/static/admin/x-admin/css/xadmin.css">
<script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript" src="/hospital/public/static/admin/x-admin/lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="/hospital/public/static/admin/x-admin/js/xadmin.js"></script>
<!-- 让IE8/9支持媒体查询从而兼容栅格 -->
<!--[if lt IE 9]>
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<meta charset="UTF-8">
<link rel="stylesheet" href="/hospital/public/kindeditor/themes/default/default.css" />
<link rel="stylesheet" href="/hospital/public/kindeditor/plugins/code/prettify.css" />
<script charset="utf-8" src="/hospital/public/kindeditor/kindeditor-all.js"></script>
<script charset="utf-8" src="/hospital/public/kindeditor/lang/zh-CN.js"></script>
<title>CEST</title>
</head>
<body class="layui-anim layui-anim-up">
<form method="post" class="layui-form" action="<?php echo url('DrugsManager/write'); ?>">
<div class="x-body">
<table class="layui-table">
<thead>
<input type="hidden" class="layui-input" name="id" value="<?php echo $drugs['id']; ?>">
<tr>
<td width="80vh" style="background-color: #99CCCC">原药品名称: <?php echo $drugs['name']; ?>
<input type="text" class="layui-input" name="name" value="<?php echo $drugs['name']; ?>" required="" aria-required="true" placeholder="药品名称必须填写"></td>
</tr>
</thead>
<tbody>
<tr>
<td width="80vh">原价格: <?php echo $drugs['price']; ?>
<input type="text" class="layui-input" name="price" value="<?php echo $drugs['price']; ?>" required="" aria-required="true" placeholder="价格必须填写"></td>
</tbody>
<thead>
<tr>
<td width="80vh" style="background-color: #99CCCC">原库存数量: <?php echo $drugs['quantity']; ?>
<br>
<input type="radio" name="quantity" value="1" title="增加">&nbsp;&nbsp;
<input type="radio" name="quantity" value="2" title="减少">
<input type="text" class="layui-input" name="use_amount" value="0" required="" aria-required="true" >
</td>
</tr>
</thead>
<tbody>
<tr>
<td width="80vh">已用量: <?php echo $drugs['use_amount']; ?></td>
</tbody>
<thead>
<tr>
<td width="80vh" style="background-color: #99CCCC">药品描述:
<textarea name="description" style="width:100%;height:350px;"><?php echo $drugs['description']; ?></textarea>
</tr>
</thead>
</table>
<div class="layui-input-block">
<input type="submit" value="立即提交" class="layui-btn"/>
</div>
</div>
</form>
</body>
<script>
KindEditor.ready(function(K) {
var editor1 = K.create('textarea[name="description"]', {
cssPath : '/hospital/public/kindeditor/plugins/code/prettify.css',
uploadJson : '/hospital/public/kindeditor/php/upload_json.php',
fileManagerJson : '/hospital/public/kindeditor/php/file_manager_json.php',
allowFileManager : true,
afterCreate : function() {
var self = this;
K.ctrl(document, 13, function() {
self.sync();
K('form[name=example]')[0].submit();
});
K.ctrl(self.edit.doc, 13, function() {
self.sync();
K('form[name=example]')[0].submit();
});
}
});
prettyPrint();
});
</script>
</html>