-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathedit_printing_service.php
240 lines (203 loc) · 10.8 KB
/
edit_printing_service.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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
<?php
error_reporting();
include "db_connection.php";
session_start();
function filterTable($query)
{
$connect = mysqli_connect("localhost", "root", "", "justshing_chinese");
mysqli_query($connect, "SET NAMES 'utf8'");
$filter_Result = mysqli_query($connect, $query);
return $filter_Result;
}
$sql = "SELECT * FROM `printing_service` WHERE `printing_id`='".$_SESSION['editpid']."'";
$tion = filterTable($sql);
?>
<!DOCTYPE html>
<html lang="zh_TW">
<head>
<meta charset="utf-8">
<title>哲興印刷後台 編輯印刷服務</title>
<!-- Mobile specific metas -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!-- Force IE9 to render in normal mode -->
<!--[if IE]><meta http-equiv="x-ua-compatible" content="IE=9" /><![endif]-->
<!-- Import google fonts - Heading first/ text second -->
<link rel='stylesheet' type='text/css' />
<!--[if lt IE 9]>
<!-- jQueryUI -->
<link href="assets/css/sprflat-theme/jquery.ui.all.css" rel="stylesheet" />
<!-- Bootstrap stylesheets (included template modifications) -->
<link href="assets/css/bootstrap.css" rel="stylesheet" />
<!-- Plugins stylesheets (all plugin custom css) -->
<link href="assets/css/plugins.css" rel="stylesheet" />
<!-- Main stylesheets (template main css file) -->
<link href="assets/css/main.css" rel="stylesheet" />
<!-- Custom stylesheets ( Put your own changes here ) -->
<link href="assets/css/custom.css" rel="stylesheet" />
<!-- Fav and touch icons -->
<link rel="stylesheet" href="css/style.css">
</head>
<body data-spy="scroll" data-offset="50" data-target=".navbar-collapse">
<!-- start navigation -->
<nav class="navbar navbar-light" style="background-color: #0066FF;">
<a class="navbar-brand" href="#" style="margin: 0 10% 0 10%;font-size: 30px;color:white;">
哲興印刷 JUST SHING PRINTING
</a>
</nav>
<!-- end navigation -->
<div class="container">
<!-- Start .content-wrapper -->
<div class="content-wrapper">
<div class="row">
<!-- Start .row -->
<!-- Start .page-header -->
<div class="col-lg-12 heading">
<h1 class="page-header"><i class="im-plus"></i>編輯公告</h1>
<!-- Start .bredcrumb -->
<!-- End .breadcrumb -->
</div>
<!-- End .page-header -->
</div>
<!-- End .row -->
<!-- Page start here ( usual with .row ) -->
<div class="outlet">
<!-- Start .outlet -->
<div class="outlet">
<!-- Start .outlet -->
<div class="row">
<!-- Start .row -->
<div class="col-lg-12">
<!-- Start col-lg-12 -->
<div class="panel panel-default">
<!-- Start .panel -->
<div class="panel-heading">
<h3 class="panel-title"></h3>
</div>
<div class="panel-body">
<form method="POST" action="main.php" enctype="multipart/form-data" class="form-horizontal group-border hover-stripped" role="form" id="validate">
<?php
while($row = mysqli_fetch_array($tion)):
?>
<div class="form-group">
<label class="col-lg-2 control-label">公告標題</label>
<div class="col-lg-10">
<input name="p_name" type="text" class="form-control required" value=" <?php echo $row['printing_title']; ?>">
</div>
</div>
<!-- End .form-group -->
<div class="form-group">
<label class="col-lg-2 control-label">詳細內容</label>
<div class="col-lg-10">
<textarea name="textarea" id="texteditor1" class="form-control tinymce-box"><?php echo $row['printing_detail']; ?></textarea>
</div>
</div>
<!-- End .form-group -->
<div class="form-group">
<label class="col-lg-2 control-label">上傳圖片</label>
<div class="col-lg-10">
<input name="upfile" type="file" multiple="multiple" id="file">
</div>
</div>
<!-- End .form-group -->
<div class="form-group">
<div class="col-lg-offset-2">
<button name="editbtn_printing" class="btn btn-default ml15" type="submit">更新完成</button>
</div>
</div>
<?php endwhile;?>
<!-- End .form-group -->
</form>
<!-- </form> -->
</div>
</div>
<!-- End .panel -->
</div>
<!-- End col-lg-12 -->
</div>
<!-- End .row -->
</div>
<!-- Page End here -->
</div>
<!-- End .outlet -->
</div>
</div>
<!-- start footer -->
<footer>
<div class="container">
<div class="row">
<div class="col-md-8 col-sm-7">
<p>Copyright © 2018 JUST SHINE PRINTING</p>
</div>
<div class="col-md-4 col-sm-5">
<ul class="social-icon">
<li><a href="#" class="fa fa-facebook"></a></li>
<li><a href="#" class="fa fa-google"></a></li>
<li><a href="#" class="fa fa-envelope"></a></li>
</ul>
</div>
</div>
</div>
</footer>
<!-- End #content -->
<!-- Javascripts -->
<!-- Load pace first -->
<script src="assets/plugins/core/pace/pace.min.js"></script>
<!-- Important javascript libs(put in all pages) -->
<script src="assets/js/jquery-1.8.3.min.js"></script>
<script>
window.jQuery || document.write('<script src="assets/js/libs/jquery-2.1.1.min.js">\x3C/script>')
</script>
<script src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<script>
window.jQuery || document.write('<script src="assets/js/libs/jquery-ui-1.10.4.min.js">\x3C/script>')
</script>
<!--[if lt IE 9]>
<script type="text/javascript" src="assets/js/libs/excanvas.min.js"></script>
<script type="text/javascript" src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<script type="text/javascript" src="assets/js/libs/respond.min.js"></script>
<![endif]-->
<!-- Bootstrap plugins -->
<script src="assets/js/bootstrap/bootstrap.js"></script>
<!-- Core plugins ( not remove ever) -->
<!-- Handle responsive view functions -->
<script src="assets/js/jRespond.min.js"></script>
<!-- Custom scroll for sidebars,tables and etc. -->
<script src="assets/plugins/core/slimscroll/jquery.slimscroll.min.js"></script>
<script src="assets/plugins/core/slimscroll/jquery.slimscroll.horizontal.min.js"></script>
<!-- Resize text area in most pages -->
<script src="assets/plugins/forms/autosize/jquery.autosize.js"></script>
<!-- Proivde quick search for many widgets -->
<script src="assets/plugins/core/quicksearch/jquery.quicksearch.js"></script>
<!-- Bootbox confirm dialog for reset postion on panels -->
<script src="assets/plugins/ui/bootbox/bootbox.js"></script>
<!-- Other plugins ( load only nessesary plugins for every page) -->
<script src="assets/plugins/core/moment/moment.min.js"></script>
<script src="assets/plugins/charts/sparklines/jquery.sparkline.js"></script>
<script src="assets/plugins/charts/pie-chart/jquery.easy-pie-chart.js"></script>
<script src="assets/plugins/forms/icheck/jquery.icheck.js"></script>
<script src="assets/plugins/forms/tags/jquery.tagsinput.min.js"></script>
<script src="assets/plugins/forms/tinymce/tinymce.min.js"></script>
<script src="assets/plugins/misc/highlight/highlight.pack.js"></script>
<script src="assets/plugins/misc/countTo/jquery.countTo.js"></script>
<script src="assets/js/jquery.sprFlat.js"></script>
<script src="assets/js/app.js"></script>
<script src="assets/js/pages/wysiwyg.js"></script>
<script src="assets/js/pages/form-validation.js"></script>
<script src="assets/plugins/forms/tags/jquery.tagsinput.min.js"></script>
<script src="assets/plugins/forms/tags/jquery.tagsinput.min.js"></script>
<script src="assets/plugins/forms/switch/jquery.onoff.min.js"></script>
<script src="assets/plugins/forms/maxlength/bootstrap-maxlength.js"></script>
<script src="assets/plugins/forms/bootstrap-filestyle/bootstrap-filestyle.js"></script>
<script src="assets/plugins/forms/color-picker/spectrum.js"></script>
<script src="assets/plugins/forms/daterangepicker/daterangepicker.js"></script>
<script src="assets/plugins/forms/datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="assets/plugins/forms/globalize/globalize.js"></script>
<script src="assets/plugins/forms/maskedinput/jquery.maskedinput.js"></script>
<script src="assets/plugins/forms/select2/select2.js"></script>
<script src="assets/plugins/forms/dual-list-box/jquery.bootstrap-duallistbox.js"></script>
<script src="assets/plugins/forms/password/jquery-passy.js"></script>
<script src="assets/plugins/forms/checkall/jquery.checkAll.js"></script>
<script src="assets/plugins/forms/validation/jquery.validate.js"></script>
<script src="assets/plugins/forms/validation/additional-methods.min.js"></script>
</body>
</html>