//提示跳转函数
Function goBack($msg, $url = '') {
if ($url == "exit"){
echo "<script language=javascript>\n";
echo "window.alert('$msg');";
echo "</script>\n";
echo $msg;
exit;
}
echo "<script language=javascript>\n";
if ($msg != '') {
echo "window.alert('$msg');";
}
if ($url == "close"){
echo "self.close();";
} elseif ($url != '') {
if (strstr($url, '|')) {
$url_ary = explode('|', $url);
echo $url_ary[0] . ".location.href='" . $url_ary[1] . "'\n";
} else {
echo "document.location.href='$url'\n";
}
} else {
echo "window.history.go(-1);";
}
echo "</script>\n";
exit();
}
Function goBack($msg, $url = '') {
if ($url == "exit"){
echo "<script language=javascript>\n";
echo "window.alert('$msg');";
echo "</script>\n";
echo $msg;
exit;
}
echo "<script language=javascript>\n";
if ($msg != '') {
echo "window.alert('$msg');";
}
if ($url == "close"){
echo "self.close();";
} elseif ($url != '') {
if (strstr($url, '|')) {
$url_ary = explode('|', $url);
echo $url_ary[0] . ".location.href='" . $url_ary[1] . "'\n";
} else {
echo "document.location.href='$url'\n";
}
} else {
echo "window.history.go(-1);";
}
echo "</script>\n";
exit();
}