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
|
<?php include 'config.php';
// Check if the user is logged in
if ((!isSet($_SESSION['loginname'])) || ($loggin <> '1')) { header("Location: login.php"); exit; } require("configure.php"); require("fckeditor/fckeditor.php"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <link rel="stylesheet" type="text/css" href="css/style.css" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Content Management System (CMS)</title> <link rel="stylesheet" href="chosen/chosen.css" />
</head> <body> <form action="productdet_add.php" method="post" name="addform" enctype="multipart/form-data"> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td height="70" align="right" valign="middle" class="icontxt"><table border="0" cellpadding="0" cellspacing="0"> <tr> <td width="50" align="center"><a href="#" onClick="addform.submit()"><img src="images/iconSave.png" alt="Save" width="32" height="32" border="0"><br> 储存 </a></td> <td width="50" align="center"><a href="productdet_index.php?msg=取消"><img src="images/iconCancel.png" alt="Cancel" width="32" height="32" border="0"><br> 取消 </a></td> <td> </td> </tr> </table></td> </tr> <tr> <td class="pagetitletxt"> <b><img src="images/iconList.jpg" width="48" height="48" align="absmiddle" />建立: 产品项目</b></td> </tr> <tr> <td align="left" valign="middle"><!-- Content --> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td width="120" align="right" valign="top" class='content'>产品类别</td> <td class='content' valign="top">: </td> <td class='content'><div class="side-by-side clearfix"><div> <select data-placeholder="選擇产品类别" class="chzn-select" multiple style="width:800px;" tabindex="4" name="pdcatidSelect[]"> <?php $result3 = mysql_query("SELECT * FROM product_cat ORDER BY levelnum ASC, pdcatsort ASC "); while ($row3 = mysql_fetch_array($result3,MYSQL_ASSOC)) { echo "<option value='". $row3{'pdcatid'} ."' "; //if (array_search($row4{'utilitiesid'} ,$a_inc2)!= false ) {echo "selected='selected'";} echo " >". $row3{'pdcattitlesc'} ."</option>\n"; } ?> </select></div> </div></td> </tr> <tr><td width="120" align="right" valign="top" class='content'>编号</td> <td width="5" valign="top" class='content'>: </td> <td class='content'><input type="text" class="content" name="pdcode" size="50" maxlength="20"><br><span class="msg">最多长度:20</span></td> </tr> <?php for($i=1;$i<=6;$i++){ ?> <tr> <td width="120" align="right" valign="top" class='content'>照片 <?=$i;?></td> <td width="5" valign="top" class='content'>: </td> <td class='content'><input name="pimgfile[<?=$i;?>]" type="file" class="content" size="50"><br /> <span class="msg">圖片格式: bmp,gif,jpg,png | 大小: 800px(W) x 600px(H)</span><br /><br /></td> </tr> <?php } ?> <tr> <td width="120" align="right" valign="top" class='content'><b>英文</b></td> <td class='content' valign="top"> </td> <td class='content'> </td> </tr> <tr> <td width="120" align="right" valign="top" class='content'>产品名称</td> <td width="5" valign="top" class='content'>: </td> <td class='content'><input type="text" class="content" name="pdtitleen" size="50" maxlength="500"><br><span class="msg">最多长度:500</span></td> </tr> <tr> <td width="120" align="right" valign="top" class='content'>特色</td> <td width="5" valign="top" class='content'>: </td> <td class='content'><?php $sBasePath = $_SERVER['PHP_SELF'] ; $sBasePath = "fckeditor/"; $oFCKeditor = new FCKeditor('pdfeaten') ; //$oFCKeditor->ToolbarSet = 'Basic'; $oFCKeditor->BasePath = $sBasePath ; $oFCKeditor->Value = ""; $oFCKeditor->Width = 460; $oFCKeditor->Height = 300; $oFCKeditor->Create() ; ?><br><span class="msg">总阔度:440</span><br></td> </tr> <tr> <td width="120" align="right" valign="top" class='content'>优势</td> <td width="5" valign="top" class='content'>: </td> <td class='content'><?php $sBasePath = $_SERVER['PHP_SELF'] ; $sBasePath = "fckeditor/"; $oFCKeditor = new FCKeditor('pdadven') ; $oFCKeditor->BasePath = $sBasePath ; $oFCKeditor->Value = ""; $oFCKeditor->Width = 650; $oFCKeditor->Height = 500; $oFCKeditor->Create() ; ?><br><span class="msg">总阔度:630</span><br></td> </tr> <tr> <td width="120" align="right" valign="top" class='content'>参数</td> <td width="5" valign="top" class='content'>: </td> <td class='content'><?php $sBasePath = $_SERVER['PHP_SELF'] ; $sBasePath = "fckeditor/"; $oFCKeditor = new FCKeditor('pdparen') ; $oFCKeditor->BasePath = $sBasePath ; $oFCKeditor->Value = ""; $oFCKeditor->Width = 650; $oFCKeditor->Height = 500; $oFCKeditor->Create() ; ?><br><span class="msg">总阔度:630</span><br></td> </tr> <tr> <td width="120" align="right" valign="top" class='content'><b>简体中文</b></td> <td class='content' valign="top"> </td> <td class='content'> </td> </tr> <tr> <td width="120" align="right" valign="top" class='content'>产品名称</td> <td width="5" valign="top" class='content'>: </td> <td class='content'><input type="text" class="content" name="pdtitlesc" size="50" maxlength="200"><br><span class="msg">最多长度:200</span></td> </tr> <tr> <td width="120" align="right" valign="top" class='content'>特色</td> <td width="5" valign="top" class='content'>: </td> <td class='content'><?php $sBasePath = $_SERVER['PHP_SELF'] ; $sBasePath = "fckeditor/"; $oFCKeditor = new FCKeditor('pdfeatsc') ; //$oFCKeditor->ToolbarSet = 'Basic'; $oFCKeditor->BasePath = $sBasePath ; $oFCKeditor->Value = ""; $oFCKeditor->Width = 460; $oFCKeditor->Height = 300; $oFCKeditor->Create() ; ?><br><span class="msg">总阔度:440</span><br></td> </tr> <tr> <td width="120" align="right" valign="top" class='content'>优势</td> <td width="5" valign="top" class='content'>: </td> <td class='content'><?php $sBasePath = $_SERVER['PHP_SELF'] ; $sBasePath = "fckeditor/"; $oFCKeditor = new FCKeditor('pdadvsc') ; $oFCKeditor->BasePath = $sBasePath ; $oFCKeditor->Value = ""; $oFCKeditor->Width = 650; $oFCKeditor->Height = 500; $oFCKeditor->Create() ; ?><br><span class="msg">总阔度:630</span><br></td> </tr> <tr> <td width="120" align="right" valign="top" class='content'>参数</td> <td width="5" valign="top" class='content'>: </td> <td class='content'><?php $sBasePath = $_SERVER['PHP_SELF'] ; $sBasePath = "fckeditor/"; $oFCKeditor = new FCKeditor('pdparsc') ; $oFCKeditor->BasePath = $sBasePath ; $oFCKeditor->Value = ""; $oFCKeditor->Width = 650; $oFCKeditor->Height = 500; $oFCKeditor->Create() ; ?><br><span class="msg">总阔度:630</span><br></td> </tr> </table> <!-- End Content --></td> </tr> <tr> <td align="left" valign="middle"> </td> </tr> </table> </form> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"></script> <script src="chosen/chosen.jquery.js" type="text/javascript"></script> <script type="text/javascript"> $(".chzn-select").chosen(); $(".chzn-select-deselect").chosen({allow_single_deselect:true}); </script> </body> </html>
|