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
|
<?php require_once ("check_login.php"); ?> <?php require_once("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(".desc", 1000, 500 ); //1.target element 2.width 3.height </script>
<style type="text/css"> .link{ display: none; }
.page{ display: none; } </style> </head> <body>
<form action="otherspage_add.php" method="post" name="modifyform" enctype="multipart/form-data"> <input type="hidden" name="page_category" value="<?=$_GET["page_category"];?>"> <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 </td> <td width="50" align="center"><a href="otherspage_index.php?page_category=<?=$_GET["page_category"]?>&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" /> Add: <?=page_category_name($page_category)?> </b></td> </tr> <tr> <td align="left" valign="middle"><!-- Content --> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="3" align="left" valign="top" class='content' style="padding-left: 10px;"> <p style="margin-bottom: 0">Please Choose One Option</p> <input type="radio" name="link_or_page" value="link" onclick="$('.page').hide();$('.link').show();"/><label>Link</label> <input type="radio" name="link_or_page" value="page" onclick="$('.link').hide();$('.page').show();"/><label>Page</label> <br><br> </td>
</tr>
<?php foreach($arraylangcode as $langcode=>$langname){ ?> <tr> <td width="75" align="right" valign="top" class='content'>Page Title<br />[<?=$langname;?>]</td> <td width="5" valign="top" class='content'>: </td> <td class='content'> <input type="text" name="page_<?=$langcode?>" style="width: 150px;"/> <br><br> </td> </tr> <?php } ?>
<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" style="width: 400px;"/> <br><br> </td> </tr>
<?php foreach($arraylangcode as $langcode=>$langname){ ?> <tr class="page"> <td width="120" align="right" valign="top" class='content'>Description<br />[<?=$langname;?>]</td> <td width="5" valign="top" class='content'>: </td> <td class='content'><?php
$sBasePath = $_SERVER['PHP_SELF'] ; $sBasePath = "fckeditor/";
$oFCKeditor = new FCKeditor('ospagedesc_'.$langcode) ; $oFCKeditor->BasePath = $sBasePath ; $oFCKeditor->Width = 720; $oFCKeditor->Height = 700; $oFCKeditor->Create() ;
?><br><span class="msg">Maxwidth:700px</span><br><br></td> </tr> <?php } ?>
</table> </td> </tr> </table> </form> </body> </html>
|