ChangeInfo.php
4.23 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
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
<?php
define('EmpireCMSAdmin','1');
require("../../class/connect.php");
require("../../class/db_sql.php");
require("../../class/functions.php");
require '../'.LoadLang("pub/fun.php");
require("../../data/dbcache/class.php");
$link=db_connect();
$empire=new mysqlquery();
$editor=1;
//驗證用戶
$lur=is_login();
$logininid=$lur['userid'];
$loginin=$lur['username'];
$loginrnd=$lur['rnd'];
$loginlevel=$lur['groupid'];
$loginadminstyleid=$lur['adminstyleid'];
//ehash
$ecms_hashur=hReturnEcmsHashStrAll();
$enews=ehtmlspecialchars($_GET['enews']);
$form=RepPostVar($_GET['form']);
$field=RepPostVar($_GET['field']);
$keyboard=RepPostVar($_GET['keyboard']);
//數據表
$tbs='';
$tsql=$empire->query("select tid,tbname,tname from {$dbtbpre}enewstable where intb=0 order by tid");
while($tr=$empire->fetch($tsql))
{
$tbs.="<option value='".$tr[tbname]."'>".$tr[tname]."</option>";
}
//事件
$word='選擇信息';
$word_button='導入選中信息';
if($enews=='LoadInSpInfo')
{
$word='選擇信息';
$word_button='導入選中信息';
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?=$word?></title>
<link href="../adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
<script>
function UpdateChangeInfoid(obj){
var isok;
isok=confirm('確認要操作?');
if(isok==false)
{
return '';
}
opener.ChangeInfoDoAction(obj.truetbname.value,obj.trueinfoid.value);
window.close();
}
function CheckSearchForm(obj){
if(obj.keyboard.value=='')
{
alert('搜索關鍵字不能為空');
obj.keyboard.focus();
return false;
}
return true;
}
</script>
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
<tr>
<td height="25" class="header"><?=$word?></td>
</tr>
<tr>
<td width="100%" height="25" valign="top" bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="1" cellpadding="3" class="tableborder">
<form action="ChangeInfoShow.php" method="POST" name="searchinfoform" target="searchinfopage" id="searchinfoform" onsubmit="return CheckSearchForm(document.searchinfoform);">
<?=$ecms_hashur['eform']?>
<tr>
<td height="25">查詢:
<select name="tbname" id="tbname">
<?=$tbs?>
</select>
<input name="keyboard" type="text" id="keyboard" value="<?=$keyboard?>">
<select name="show" id="show">
<option value="1" selected>標題</option>
<option value="2">關鍵字</option>
<option value="3">ID</option>
</select>
<span id="listfileclassnav"></span> <input type="submit" name="Submit" value="搜索">
<input name="sear" type="hidden" id="sear" value="1">
<input name="enews" type="hidden" id="enews" value="<?=$enews?>">
<font color="#666666">(搜索多個關鍵字可用空格隔開)</font></td>
</tr>
<tr>
<td height="405" valign="top" bgcolor="#FFFFFF"> <IFRAME frameBorder="0" id="searchinfopage" name="searchinfopage" scrolling="yes" src="ChangeInfoShow.php<?=$ecms_hashur['whehref']?>" style="HEIGHT:100%;VISIBILITY:inherit;WIDTH:100%;Z-INDEX:1"></IFRAME></td>
</tr>
</form>
</table></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<form name="truechangeinfoform" id="truechangeinfoform" method="post" action="">
<tr>
<td height="25"><input type="button" name="Submit2" value="<?=$word_button?>" onclick="UpdateChangeInfoid(document.truechangeinfoform);">
(數量:<span id="truechangeinfonum"><strong>0</strong></span>)
<input name="trueinfoid" type="hidden" id="trueinfoid">
<input name="truetbname" type="hidden" id="truetbname"></td>
</tr>
</form>
</table>
<IFRAME frameBorder="0" id="showclassnav" name="showclassnav" scrolling="no" src="../ShowClassNav.php?ecms=5<?=$ecms_hashur['ehref']?>" style="HEIGHT:0;VISIBILITY:inherit;WIDTH:0;Z-INDEX:1"></IFRAME>
</body>
</html>
<?php
db_close();
$empire=null;
?>