-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathadvice-make.php
54 lines (51 loc) · 1.79 KB
/
advice-make.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
include('check.php');
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>意见反馈</title>
<link href="style/bootstrap.min.css" rel="stylesheet">
<link href="style/site.css" rel="stylesheet">
<link href="style/advice-make.css" rel="stylesheet">
<script src="script/jquery-1.11.1.min.js"></script>
<script src="script/bootstrap.min.js"></script>
<script>
$(function() {
$("#w0").bind("submit", function() {
var empty = /^\s+$/;
if(empty.test($("#advice-advice_content").val()) || $("#advice-advice_content").val() == "") {
$("#advice-advice_content").focus();
return false;
}
return true;
});
});
</script>
</head>
<body>
<div class="wrap">
<div class="container">
<div class = "advice-head">
<p>亲爱的校友,如果我们现在提供的所有功能不能满足您的需求,请在下面的输入框中向我们反馈,我们会尽力为您提供更好的服务!</p>
</div>
<div class="advice-make">
<form id="w0" action="controllers/index.php?r=Advice/save" method="post">
<div class="form-group field-advice-advice_mate required">
<input type="hidden" id="advice-advice_mate" class="form-control" name="Advice[advice_mate]" value = "<?= $_GET['mate_openid'] ?>">
</div>
<div class="form-group field-advice-advice_content required">
<textarea id="advice-advice_content" class="form-control" name="Advice[advice_content]"></textarea>
</div>
<div class="form-group">
<button type="submit" class="btn btn-primary">提交</button>
</div>
</form>
</div><!-- advice-make -->
</div>
</div>
<?php include('footer.html');?>
</body>
</html>