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 require_once('check_login.php');
$id = (int)$_GET["id"];
$sql = "SELECT * FROM news WHERE id=? "; $parameters = array($id); $row = bind_pdo($sql, $parameters, "selectone");
$sql99 = "SELECT * FROM sys_cms_login WHERE cmsloginid=?"; $parameters99 = array((int)$row{'lastupby'}); $row99 = bind_pdo($sql99, $parameters99, "selectone");
$type_info = get_master_type_code("NEWS", $row["typeid"]); ?> <!DOCTYPE html> <html> <head> <?php require_once('html_head.php'); ?> <script type="text/javascript" src="editor/tinymce.min.js"></script> <script type="text/javascript" src="editor/tinymce_init.js"></script> <script type="text/javascript"> tinymce_init(".desc", 1200, 500); //1.target element 2.width 3.height </script>
<link href="js/jquery-ui-timepicker-addon.css" rel="stylesheet" /> <script src="js/jquery-ui-timepicker-addon.js" type="text/javascript"></script> <script src="js/jquery-ui-sliderAccess.js" type="text/javascript"></script>
<script type="text/javascript"> $(function () { $("#posted_date").datepicker({dateFormat: 'yy-mm-dd'}); $("#published_from").datetimepicker({dateFormat: 'yy-mm-dd', showSecond: true,timeFormat: 'HH:mm:ss'}); $("#published_to").datetimepicker({dateFormat: 'yy-mm-dd', showSecond: true,timeFormat: 'HH:mm:ss'}); }); </script> <!--- End Select Calendar Date ---> </head> <body>
<form action="news_modify.php" method="post" name="modifyform" enctype="multipart/form-data"> <input type="hidden" name="id" value="<?= $row{'id'}; ?>"> <table width="1400" 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" style="font-size: 12px;"> <input type="image" alt="submit" src="images/iconSave.png" width="32" height="32" border="0"><br> Save </a></td> <td width="50" align="center"> <a href="news_index.php?msg=4&typeid=<?=$_GET["typeid"]?>"><img src="images/iconCancel.png" alt="Cancel" width="32" height="32" border="0"><br> Cancel </a></td> <td> </td> </tr> </table> </td> </tr> <tr> <td> <span style="float:left;" class="pagetitletxt"> <b><img src="images/iconList.jpg" width="48" height="48" align="absmiddle"/> Modify <?=$type_info["name_en"]?> </b></span><span style="float:right;" class="msg">Last Update: <?= $row99{'cmsusername'} . ' ' . $row{'lastupdate'}; ?></span> </td> </tr> <tr> <td align="left" valign="middle"><!-- Content --> <table border="0" cellpadding="0" cellspacing="0">
<?php if($row["typeid"] != "SPECIAL_OFFERS"){ ?> <tr> <td width="150" align="right" valign="top" class='content required'>Published From</td>
<td width="5" valign="top" class='content'>: </td> <td class='content'> <input type="text" class="content" name="published_from" id="published_from" value="<?=$row{"published_from"}?>" required="required"> <br><br> </td> </tr>
<tr> <td width="150" align="right" valign="top" class='content required'>Published To</td>
<td width="5" valign="top" class='content'>: </td> <td class='content'> <input type="text" class="content" name="published_to" id="published_to" value="<?=$row{"published_to"}?>" required="required"> <br><br> </td> </tr> <?php } ?>
<tr> <td width="150" align="right" valign="top" class='content required'>Posted Date</td>
<td width="5" valign="top" class='content'>: </td> <td class='content'> <input type="text" class="content" name="posted_date" id="posted_date" value="<?=$row{"posted_date"}?>" required="required"> <br><br> </td> </tr>
<tr> <td width="150" align="right" valign="top" class='content'>Show Home</td>
<td width="5" valign="top" class='content'>: </td> <td class='content'> <input type="checkbox" class="content" name="show_home" value="1" <?php if($row{"show_home"} == 1) echo "checked"; ?>/> <span class="vt">Yes</span> <br><br> </td> </tr>
<?php foreach ($arraylangcode as $langcode => $langname) { ?> <tr> <td width="150" align="right" valign="top" class='content required'>Title</td> <td class='content' valign="top">: </td> <td class='content'> <input type="text" class="content" name="title_<?= $langcode ?>" value="<?=$row{"title_".$langcode}?>" maxlength="255" required="required" style="width: 800px;"/><br><span class="msg">Max character number:255</span> <br><br> </td> </tr> <?php } ?>
<?php foreach ($arraylangcode as $langcode => $langname) { ?> <tr> <td width="150" align="right" valign="top" class='content required'>Cover Image (Home)</td> <td width="5" valign="top" class='content'>: </td> <td class='content'><?php if ($row{'cover_img_' . $langcode} <> '') { ?> <img src="../images/news/<?= $row{'cover_img_' . $langcode}; ?>" style="width: 300px;"/> <br> <input type="checkbox" name="delimage_<?= $langcode; ?>" value="1">Delete<br/><br/> <?php } ?> <input name="cover_img_<?= $langcode; ?>" type="file" class="content" size="100"/><br/>
<span class="msg">Image Format: gif,jpg,png | Width: 150px; Height: auto; | Size: < 10MB</span> <br><br> </td>
</tr> <?php } ?>
<?php foreach ($arraylangcode as $langcode => $langname) { ?> <tr> <td width="150" align="right" valign="top" class='content required'>Cover Image</td> <td width="5" valign="top" class='content'>: </td> <td class='content'><?php if ($row{'cover_img2_' . $langcode} <> '') { ?> <img src="../images/news/<?= $row{'cover_img2_' . $langcode}; ?>" style="width: 300px;"/> <br> <input type="checkbox" name="delimage2_<?= $langcode; ?>" value="1">Delete<br/><br/> <?php } ?> <input name="cover_img2_<?= $langcode; ?>" type="file" class="content" size="100"/><br/>
<span class="msg">Image Format: gif,jpg,png | Width: 600px; Height: auto; | Size: < 10MB</span> <br><br> </td>
</tr> <?php } ?>
<?php foreach ($arraylangcode as $langcode => $langname) { ?> <tr> <td width="150" align="right" valign="top" class='content'>Short Description </td> <td width="5" valign="top" class='content'>: </td> <td class='content'> <textarea name="short_desc_<?= $langcode ?>" style="width: 800px; height: 100px;"><?=$row{"short_desc_".$langcode}?></textarea> <br><br> </tr> <?php } ?>
<?php foreach ($arraylangcode as $langcode => $langname) { ?> <tr> <td width="150" align="right" valign="top" class='content'>Description </td> <td width="5" valign="top" class='content'>: </td> <td class='content'>
<textarea class="desc" name="desc_<?= $langcode ?>"><?=$row{"desc_".$langcode}?></textarea> <br><span class="msg">Max width:1200px</span><br><br> </td> </tr> <?php } ?>
<tr> <td width="150" align="right" valign="top" class='content'></td> <td class='content' valign="top"></td> <td class='content red'> <br> * Required Field <br><br><br> </td> </tr> </table> </td> </tr> </table> </form> </body> </html>
|