-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathadd_job.php
144 lines (125 loc) · 6.48 KB
/
add_job.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<?php session_start(); ?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="author" content="GaryHsu">
<!--<link rel="stylesheet" href="assets/css/main.css" />-->
<noscript><link rel="stylesheet" href="assets/css/noscript.css" /></noscript>
<title>待處理公文</title>
<!-- Bootstrap core CSS -->
<link href="../../../../dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="navbar-top-fixed.css" rel="stylesheet">
</head>
<body>
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
<a class="navbar-brand" href="">公文回報系統</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="user.php">處理中 <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="finish_list.php">已結案</a>
</li>
<li class="nav-item">
<a class="nav-link" href="all_list.php">顯示全部</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="add_job.php">新增公文</a>
</li>
</ul>
<form action="searchbyname.php" class="form-inline mt-2 mt-md-0" style="margin: 0 0 0 0;">
<input class="form-control mr-sm-2" name="title" type="text" placeholder="對象搜尋" aria-label="對象搜尋" required="required">
<button class="btn btn-secondary my-2 my-sm-0" style="margin-right: 10px;" type="submit">搜尋</button>
</form>
<form action="searchbytitle.php" class="form-inline mt-2 mt-md-0" style="margin: 0 0 0 0;">
<input class="form-control mr-sm-2" name="title" type="text" placeholder="公文字號搜尋" aria-label="公文字號搜尋" required="required">
<button class="btn btn-secondary my-2 my-sm-0" type="submit">搜尋</button>
</form>
</div>
</nav>
<!-- <main role="main" class="container">
<div class="jumbotron">
<h1>Navbar example</h1>
<p class="lead">This example is a quick exercise to illustrate how fixed to top navbar works. As you scroll, it will remain fixed to the top of your browser's viewport.</p>
<a class="btn btn-lg btn-primary" href="../../components/navbar/" role="button">View navbar docs »</a>
</div>
</main> -->
<div id="wrapper" style="margin-top: 60px;">
<?php
if($_SESSION['username'] != null){
echo " 歡迎您 ".$_SESSION['username'].' <a href="logout.php">登出</a>';
}
else{
echo "<script>alert('who are you!?'); location.href = 'index.html';</script>";
// header("Refresh:0;url=index.html");
}
?>
<?php
/*if($_SESSION['username'] != null){
echo "歡迎您 ".$_SESSION['username'].'<a href="logout.php">登出</a>';
}
else{
echo "<script>alert('who are you!?'); location.href = 'index.html';</script>";
// header("Refresh:0;url=index.html");
}*/
?>
<div class="col-12">
<p class="h3" style="text-align: center;">新增資料</p><br />
<div class="col-4" style="margin: 0 auto;">
<form action="letter_addfile.php" method="POST" enctype="multipart/form-data">
<div class="col-11">發函單位:
<input type="radio" name="unit" required="required" checked value="教育局"/>教育局
<input type="radio" name="unit" required="required" value="法務局"/>法務部
<input type="radio" name="unit" required="required" value="國稅局"/>國稅局
<input type="radio" name="unit" required="required" value="消保會"/>消保會
<input type="radio" name="unit" required="required" value="其他"/>其他
</div><br />
<div class="col-11">發函日期:
<input type="text" size="1" name="startdate_year" required="required"/>西元年
<input type="text" size="1" name="startdate_month" required="required"/>月
<input type="text" size="1" name="startdate_day" required="required"/>日
</div><br />
<div class="col-11">發文字號:
<input type="text" name="title" size="30" required="required"/>
</div><br />
<div class="col-11">對象姓名:
<input type="text" name="name" size="5" />
</div><br />
<div class="col-11">是否前往開會:
<input type="radio" name="meeting" required="required" value="否" checked="" />否
<input type="radio" name="meeting" required="required" value="是"/>是
</div><br />
<div class="col-11">函件檔案:
<input type="file" name="unit_file" required="required"/>
</div><br />
<div class="col-11">截止日期:
<input type="text" name="Deadline_year" size="1"/>西元年
<input type="text" name="Deadline_month" size="1"/>月
<input type="text" name="Deadline_day" size="1"/>日
</div><br />
<div>備註:<br />
<textarea name="ps" style="width: 550px;height: 100px;"></textarea>
</div><br />
<div>
<input type="submit" value="送出"/>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- Bootstrap core JavaScript -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ" crossorigin="anonymous"></script>
</body>
</html>