php 输出类

php 输出类 代码片段

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
class output{
public function alertmsg($msg){
echo "<script type='text/javascript'>";
echo "alert(\"$msg\");";
echo "<\/script>";
}
public function locationmsg($msg,$goto){
echo "<script type='text/javascript'>";
echo "alert(\"$msg\")";
if($goto){
echo "location=\"$goto\";";
}else{
echo "history.go(-1);";
}
echo "<\/script>";
}
public function httpequivmsg($im,$goto){
echo "<meta http-equiv=\'Refresh\' content=".$im.";URL=".$goto.">";
}
}
你是本站第位访客 本站访客数人次
Fork me on GitHub