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
|
<?php require_once("check_login.php");
$id = $_GET["id"];
$sql = "SELECT * FROM text_config 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");
?> <!DOCTYPE html> <html> <head> <?php require_once("html_head.php"); ?> </head> <body>
<form action="text_config_modify.php" method="post" name="modifyform" enctype="multipart/form-data"> <input type="hidden" name="id" value="<?= $row{'id'}; ?>"> <table width="800" 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="text_config_index.php?msg=Cancel"><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 Text Config </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">
<tr> <td width="120" align="right" valign="top" class='content'>Line Number</td> <td width="5" valign="top" class='content'>: </td> <td class='content'> <?=$row{"id"}?> <br><br> </td>
</tr>
<tr> <td width="120" align="right" valign="top" class='content required_field'>Text Content</td> <td width="5" valign="top" class='content'>: </td> <td class='content'> <input name="text_content" value="<?=$row{"text_content"}?>" style="width: 700px;"> <br><br> </td>
</tr>
<tr> <td width="120" align="right" valign="top" class='content required_field'>Text Font</td> <td width="5" valign="top" class='content'>: </td> <td class='content'> <select name="text_font"> <?php $text_font_array = array("Arial", "Times New Roman", "細明體"); foreach($text_font_array as $text_font){ if($text_font == $row{"text_font"}) $selected = "selected"; else $selected = "";
echo "<option value='".$text_font."' ".$selected.">".$text_font."</option>"; } ?> </select> <br><br> </td>
</tr>
<tr> <td width="120" align="right" valign="top" class='content required_field'>Text Alignment</td> <td width="5" valign="top" class='content'>: </td> <td class='content'> <select name="text_align"> <?php $text_align_array = array("Left", "Center", "Right"); foreach($text_align_array as $text_align){ if($text_align == $row{"text_align"}) $selected = "selected"; else $selected = "";
echo "<option value='".$text_align."' ".$selected.">".$text_align."</option>"; } ?> </select> <br><br> </td>
</tr>
<tr> <td width="120" 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>
|