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
|
<?php require_once("check_login.php");
$ospageid = (int)$_GET["ospageid"];
$sql = "SELECT * FROM otherspage WHERE ospageid=? "; $parameters = array($ospageid); $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"); ?>
<!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> tinymce_init(".ospagedesc", 1160, 500); //1.target element 2.width 3.height </script>
</head> <body>
<form action="otherspage_modify.php" method="post" name="modifyform" enctype="multipart/form-data"> <input type="hidden" name="ospageid" value="<?= $row{'ospageid'}; ?>"> <input type="hidden" name="link_or_page" value="<?= $row{'link_or_page'}; ?>">
<table width="1250" 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> 儲存 </td> <td width="50" align="center"> <a href="otherspage_index.php?ospageid=<?=$ospageid?>&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> <span style="float:left;" class="pagetitletxt"> <b><img src="images/iconList.jpg" width="48" height="48" align="absmiddle"/> 修改 <?php echo $row{"page_tc"} ?> </b></span><span style="float:right;" class="msg">最近更新: <?= $row99{'cmsusername'} . ' ' . $row{'lastupdate'}; ?></span> </td> </tr> <tr> <td align="left" valign="middle"><!-- Content --> <table border="0" cellpadding="0" cellspacing="0">
<?php /*foreach ($arraylangcode as $langcode => $langname) { ?> <tr> <td width="120" align="right" valign="top" class='content'>頁面<br/>[<?= $langname; ?> ] </td> <td width="5" valign="top" class='content'>: </td> <td class='content'> <input type="text" name="page_<?= $langcode ?>" value="<?= $row{'page_' . $langcode} ?>" style="width: 150px; <?php if ($langcode == "tc") echo "background: #c9c9c9;"; ?>" <?php if ($langcode == "tc") echo "readonly"; ?>/> <br><br> </td> </tr> <?php } */?>
<?php if ($row{"link_or_page"} == "link") { ?> <tr class="link"> <td width="75" align="right" valign="top" class='content'>Link To</td> <td width="5" valign="top" class='content'>: </td> <td class='content'> <input type="text" name="link_to" value="<?= $row{"link_to"} ?>" style="width: 400px;"/> <br><br> </td> </tr> <?php } else { ?>
<?php foreach ($arraylangcode as $langcode => $langname) { ?> <tr> <td width="120" align="right" valign="top" class='content'> 內容<br/>[<?= $langname; ?>] </td> <td width="5" valign="top" class='content'>: </td> <td class='content'>
<textarea class="ospagedesc" name="ospagedesc_<?= $langcode ?>"><?= $row{'ospagedesc_' . $langcode}; ?></textarea> <br><span class="msg">最大寬度: 1140px;</span><br><br> </td> </tr> <?php } ?> <?php } ?> </table> </td> </tr> </table> </form> </body> </html>
|