AddInfo.php
2.58 KB
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
<?php
if(!defined('InEmpireCMS'))
{
exit();
}
?>
<?php
$public_diyr['pagetitle']=$word;
$url="<a href='../../'>首頁</a> > <a href='../member/cp/'>會員中心</a> > <a href='ListInfo.php?mid=".$mid."'>管理信息</a> > ".$word." (".$mr[qmname].")";
require(ECMS_PATH.'e/template/incfile/header.php');
?>
<script src="../data/html/setday.js"></script>
<script>
function bs(){
var f=document.add
if(f.title.value.length==0){alert("標題還沒寫");f.title.focus();return false;}
if(f.classid.value==0){alert("請選擇欄目");f.classid.focus();return false;}
}
function foreColor(){
if(!Error()) return;
var arr = showModalDialog("../data/html/selcolor.html", "", "dialogWidth:18.5em; dialogHeight:17.5em; status:0");
if (arr != null) document.add.titlecolor.value=arr;
else document.add.titlecolor.focus();
}
function FieldChangeColor(obj){
if(!Error()) return;
var arr = showModalDialog("../data/html/selcolor.html", "", "dialogWidth:18.5em; dialogHeight:17.5em; status:0");
if (arr != null) obj.value=arr;
else obj.focus();
}
</script>
<script src="../data/html/postinfo.js"></script>
<form name="add" method="POST" enctype="multipart/form-data" action="ecms.php" onsubmit="return EmpireCMSQInfoPostFun(document.add,'<?=$mid?>');">
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
<tr class="header">
<td height="25" colspan="2">
<?=$word?>
<input type=hidden value="<?=$enews?>" name=enews> <input type=hidden value="<?=$classid?>" name=classid>
<input name=id type=hidden id="id" value="<?=$id?>"> <input type=hidden value="<?=$filepass?>" name=filepass>
<input name=mid type=hidden id="mid" value="<?=$mid?>"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td>提交者</td>
<td><b>
<?=$musername?>
</b></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="16%">欄目</td>
<td>
<?=$postclass?> </td>
</tr>
</table>
<?php
@include($modfile);
?>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
<?=$showkey?>
<tr class="header">
<td width="16%"> </td>
<td><input type="submit" name="addnews" value="提交"> <input type="reset" name="Submit2" value="重置"></td>
</tr>
</table>
</form>
<?php
require(ECMS_PATH.'e/template/incfile/footer.php');
?>