本文整理匯總了PHP中jsalert函數的典型用法代碼示例。如果您正苦於以下問題:PHP jsalert函數的具體用法?PHP jsalert怎麽用?PHP jsalert使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了jsalert函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: saveconfig
function saveconfig()
{
global $db;
$alipay_account = $_POST['alipay_account'];
$alipay_key = $_POST['alipay_key'];
$alipay_partner = $_POST['alipay_partner'];
$array = array('alipay_account' => $alipay_account, 'alipay_key' => $alipay_key, 'alipay_partner' => $alipay_partner);
$db->update('ve123_aipay', $array, "id='1'");
jsalert('修改成功!');
}
示例2: saveform
function saveform()
{
global $db;
$adminname = $_POST["adminname"];
$password = $_POST["password"];
if ($password == "") {
jsalert("���벻��Ϊ��,����������!");
die;
} else {
$db->query("update ve123_admin set adminname='{$adminname}',password='{$password}'");
jsalert("��������,���ס!");
}
}
示例3: checklogin
function checklogin()
{
global $db;
$_obfuscate_RLkTYUq0nZlJ = htmlspecialchars($_POST['adminname']);
$_obfuscate_LyySC3IF7Iÿ = htmlspecialchars($_POST['password']);
$_obfuscate_xs33Yt_k = $db->query("select * from ve123_admin where adminname='" . $_obfuscate_RLkTYUq0nZlJ . "' and password='{$_obfuscate_LyySC3IF7Iÿ}'");
$_obfuscate_Ybai = $db->num_rows($_obfuscate_xs33Yt_k);
if (0 < $_obfuscate_Ybai) {
$_obfuscate_SF4ÿ = $db->fetch_array($_obfuscate_xs33Yt_k);
$_obfuscate_kIVhqJkÿ = array('lastloginip' => $_obfuscate_SF4ÿ['loginip'], 'loginip' => ip(), 'lastlogintime' => $_obfuscate_SF4ÿ['logintime'], 'logintime' => date('Y-y-d H:i:s'));
$db->update('ve123_admin', $_obfuscate_kIVhqJkÿ, 'admin_id=' . $_obfuscate_SF4ÿ['admin_id']);
setcookie('adminname', $_obfuscate_RLkTYUq0nZlJ);
header('location:index.php?somao=ok');
} else {
jsalert('Óû§Ãû»òÃÜÂë´íÎó!', 'lg.php');
}
}
示例4: checklogin
function checklogin()
{
global $db;
$adminname = htmlspecialchars($_POST["adminname"]);
$password = htmlspecialchars($_POST["password"]);
$result = $db->query("select * from ve123_admin where adminname='{$adminname}' and password='{$password}'");
$num = $db->num_rows($result);
if ($num > 0) {
$rs = $db->fetch_array($result);
$array = array('lastloginip' => $rs["loginip"], 'loginip' => ip(), 'lastlogintime' => $rs["logintime"], 'logintime' => date("Y-y-d H:i:s"));
$db->update("ve123_admin", $array, "admin_id={$rs['admin_id']}");
setcookie("adminname", $adminname);
header("location:index.php");
} else {
jsalert("用戶名或密碼錯誤!", "login.php");
}
}
示例5: saveconfig
function saveconfig()
{
global $db;
$default_point = intval($_POST['default_point']);
$zs_points = intval($_POST['zs_points']);
$getpoints = my_addslashes($_POST['getpoints']);
$array = array('default_point' => $default_point, 'getpoints' => $getpoints, 'zs_points' => $zs_points);
$db->update('ve123_zz_config', $array, "config_id='1'");
$config = $db->get_one('select * from ve123_zz_config limit 1');
$str .= '<?php' . chr(13) . chr(10);
$str .= "\$zz_config['default_point']=" . $default_point . ';' . chr(13) . chr(10);
$str .= "\$zz_config['zs_points']=" . $zs_points . ';' . chr(13) . chr(10);
$str .= "\$zz_config['getpoints']=\"" . $getpoints . "\";" . chr(13) . chr(10);
$str .= '?>';
$fp = @fopen('../cache/zz_config.php', 'w') or die('寫方式打開文件失敗,請檢查程序目錄是否為可寫');
@fputs($fp, $str) or die('文件寫入失敗,請檢查程序目錄是否為可寫');
@fclose($fp);
jsalert('修改成功!');
}
示例6: saveconfig
function saveconfig()
{
global $db;
$default_point = intval($_POST["default_point"]);
$zs_points = intval($_POST["zs_points"]);
$getpoints = my_addslashes($_POST["getpoints"]);
$array = array('default_point' => $default_point, 'getpoints' => $getpoints, 'zs_points' => $zs_points);
$db->update("ve123_tg_config", $array, "config_id='1'");
$config = $db->get_one("select * from ve123_tg_config limit 1");
$str .= "<?php" . chr(13) . chr(10);
$str .= "\$tg_config['default_point']=" . $default_point . ";" . chr(13) . chr(10);
$str .= "\$tg_config['zs_points']=" . $zs_points . ";" . chr(13) . chr(10);
$str .= "\$tg_config['getpoints']=\"" . $getpoints . "\";" . chr(13) . chr(10);
$str .= "?>";
$fp = @fopen("../cache/tg_config.php", "w") or die("寫方式打開文件失敗,請檢查程序目錄是否為可寫");
//配置conn.php文件
@fputs($fp, $str) or die("文件寫入失敗,請檢查程序目錄是否為可寫");
@fclose($fp);
jsalert("修改成功!");
}
示例7: checklogin
function checklogin()
{
global $db;
$adminname = htmlspecialchars($_POST['adminname']);
$password = htmlspecialchars($_POST['password']);
$imagecode = trim(HtmlReplace($_POST['entered_imagecode']));
if ($_SESSION['dd_ckstr'] != $imagecode) {
jsalert('驗證碼錯誤!', 'login.php');
break;
}
$result = $db->query("select * from ve123_admin where adminname='{$adminname}' and password='{$password}'");
$num = $db->num_rows($result);
if ($num > 0) {
$rs = $db->fetch_array($result);
$array = array('lastloginip' => $rs['loginip'], 'loginip' => ip(), 'lastlogintime' => $rs['logintime'], 'logintime' => date('Y-y-d H:i:s'));
$db->update('ve123_admin', $array, "admin_id={$rs['admin_id']}");
setcookie('adminname', $adminname);
header('location:index.php');
} else {
jsalert('用戶名或密碼錯誤!', 'login.php');
}
}
示例8: jsalert
} else {
echo jsalert("您沒有填寫廣告內容,返回重新填寫!", "adsadmin.php");
exit;
}
}
if ($action == 'edit') {
$aid = $_POST['aid'];
$adsbody = daddslashes(trim($_POST['editadsbody']));
$position = $_POST['editposition'];
if ($adsbody) {
$db->query("UPDATE et_ads SET position='{$position}',adbody='{$adsbody}' WHERE ad_id='{$aid}'");
@unlink(ET_ROOT . "/include/cache/ads.cache.php");
echo jsalert("廣告位更新成功!", "adsadmin.php");
exit;
} else {
echo jsalert("您沒有填寫廣告內容,返回重新填寫!", "adsadmin.php");
exit;
}
}
if ($act == 'del') {
$adid = $_GET['adid'];
$db->query("DELETE FROM et_ads WHERE ad_id='{$adid}'");
@unlink(ET_ROOT . "/include/cache/ads.cache.php");
header("Location: adsadmin.php");
exit;
}
$query = $db->query("SELECT * FROM et_ads ORDER BY ad_id DESC");
while ($data = $db->fetch_array($query)) {
$ads[] = array("ad_id" => $data['ad_id'], "position" => $data['position'], "adbody" => $data['adbody']);
}
include $template->getfile('adsadmin.htm');
示例9: define
<?php
define('is_admin_path', 'yes');
include '../common.inc.php';
if ($admin_login != "yes" || $my[isadmin] != 1) {
header("Location: login.php");
}
if ($action == "save") {
$cmail_server = daddslashes(trim($_POST['mail_server']));
$cmail_port = daddslashes(trim($_POST['mail_port']));
$cmail_name = daddslashes(trim($_POST['mail_name']));
$cmail_user = daddslashes(trim($_POST['mail_user']));
$cmail_pass = daddslashes(trim($_POST['mail_pass']));
$db->query("UPDATE et_settings SET mail_server = '{$cmail_server}',mail_port='{$cmail_port}',mail_name='{$cmail_name}',mail_user='{$cmail_user}',mail_pass='{$cmail_pass}'");
@unlink(ET_ROOT . "/include/cache/setting.cache.php");
echo jsalert("提示:郵件服務器配置完成", "mailconf.php");
exit;
}
if ($act == "testmail") {
include "../include/mail.class.php";
$title = iconv("utf-8", "gbk", "EasyTalk郵箱測試");
$send = iconv("utf-8", "gbk", "這是一封EasyTalk郵箱測試郵件!");
sendmail($mail_name, $title, $send);
echo jsalert("提示:測試郵件已發送,請注意驗收", "mailconf.php");
exit;
}
include $template->getfile('mailconf.htm');
示例10: saveform
function saveform()
{
global $db;
$url = trim($_POST['url']);
$submit_id = $_POST['submit_id'];
$do_action = $_POST['do_action'];
if ($do_action == 'modify') {
$array = array('url' => $url);
$db->update('ve123_url_submit', $array, "submit_id='{$submit_id}'");
jsalert('修改成功');
} else {
$array = array('url' => $url, 'ip' => ip());
$db->insert('ve123_url_submit', $array);
jsalert('提交成功');
}
}
示例11: del
function del()
{
global $db;
$link_id = intval($_GET["link_id"]);
$db->query("delete from ve123_links where link_id='{$link_id}'");
jsalert("刪除成功");
}
示例12: dell_links
function dell_links($url)
{
global $db;
$db->query("delete from ve123_links where url like '%" . getdomain($url) . "%'");
$db->query("delete from ve123_links_temp");
jsalert("清除成功");
}
示例13: saveform
function saveform()
{
global $db, $config;
$title = addslashes(HtmlReplace(trim($_POST['title'])));
$content = trim($_POST['content']);
$url = HtmlReplace(trim($_POST['url']));
$sortid = intval($_POST['sortid']);
$about_id = intval($_POST['about_id']);
$urlid = intval($_POST['urlid']);
$do_action = HtmlReplace($_POST['do_action']);
$is_show = $_POST['is_show'];
ob_start();
if ($do_action == 'modify') {
$array = array('title' => $title, 'urlid' => $urlid, 'content' => $content, 'url' => $url, 'sortid' => $sortid, 'is_show' => $is_show);
$db->update('ve123_fenlei', $array, "about_id='{$about_id}'");
jsalert('修改成功');
} else {
$array = array('title' => $title, 'urlid' => $urlid, 'content' => $content, 'url' => $url, 'sortid' => $sortid, 'is_show' => $is_show);
$db->insert('ve123_fenlei', $array);
jsalert('提交成功');
}
}
示例14: saveconfig
function saveconfig()
{
global $db;
$name = HtmlReplace($_POST["name"]);
$user_agent = HtmlReplace($_POST["user_agent"]);
$adtitle = $_POST["adtitle"];
$copyright = $_POST["copyright"];
$icp = HtmlReplace($_POST["icp"]);
$url = HtmlReplace($_POST["url"]);
$status_content = HtmlReplace($_POST["status_content"]);
$statcode = $_POST["statcode"];
$Keywords = HtmlReplace($_POST["Keywords"]);
$description = $_POST["description"];
$telephone = $_POST["telephone"];
$qq = $_POST["qq"];
$spider_depth = intval($_POST["spider_depth"]);
$is_tijiao_shoulu = $_POST["is_tijiao_shoulu"];
$filter_word = $_POST["filter_word"];
$array = array('name' => $name, 'user_agent' => $user_agent, 'adtitle' => $adtitle, 'copyright' => $copyright, 'icp' => $icp, 'statcode' => $statcode, 'url' => $url, 'status_content' => $status_content, 'Keywords' => $Keywords, 'description' => $description, 'telephone' => $telephone, 'qq' => $qq, 'is_tijiao_shoulu' => $is_tijiao_shoulu, 'spider_depth' => $spider_depth, 'filter_word' => $filter_word);
$db->update("ve123_siteconfig", $array, "config_id='1'");
$config = $db->get_one("select * from ve123_siteconfig limit 1");
$str .= "<?php" . chr(13) . chr(10);
$str .= "\$config['name']=\"" . $name . "\";" . chr(13) . chr(10);
$str .= "\$config['user_agent']=\"" . $user_agent . "\";" . chr(13) . chr(10);
$str .= "\$config['adtitle']=\"" . $adtitle . "\";" . chr(13) . chr(10);
$str .= "\$config['copyright']=\"" . $copyright . "\";" . chr(13) . chr(10);
$str .= "\$config['icp']=\"" . $icp . "\";" . chr(13) . chr(10);
$str .= "\$config['url']=\"" . $url . "\";" . chr(13) . chr(10);
$str .= "\$config['status_content']=\"" . $status_content . "\";" . chr(13) . chr(10);
$str .= "\$config['statcode']=\"" . addslashes($statcode) . "\";" . chr(13) . chr(10);
$str .= "\$config['Keywords']=\"" . $Keywords . "\";" . chr(13) . chr(10);
$str .= "\$config['description']=\"" . $description . "\";" . chr(13) . chr(10);
$str .= "\$config['telephone']=\"" . $telephone . "\";" . chr(13) . chr(10);
$str .= "\$config['qq']=\"" . $qq . "\";" . chr(13) . chr(10);
$str .= "\$config['is_tijiao_shoulu']=\"" . $is_tijiao_shoulu . "\";" . chr(13) . chr(10);
$str .= "\$config['spider_depth']=" . $spider_depth . ";" . chr(13) . chr(10);
$str .= "\$config['author']=\"" . $config["author"] . "\";" . chr(13) . chr(10);
$str .= "\$config['copyright']=\"" . $copyright . "\";" . chr(13) . chr(10);
$str .= "\$config['filter_word']=" . var_export(explode(",", $filter_word), true) . ";" . chr(13) . chr(10);
$str .= "?>";
$fp = @fopen("../cache/site_config.php", "w") or die("寫方式打開文件失敗,請檢查程序目錄是否為可寫");
//配置conn.php文件
@fputs($fp, $str) or die("文件寫入失敗,請檢查程序目錄是否為可寫");
@fclose($fp);
jsalert("修改成功!");
}
示例15: saveform
function saveform()
{
global $db;
$title = trim($_POST['title']);
$siteurl = trim($_POST['siteurl']);
$type = trim($_POST['type']);
$content = trim($_POST['content']);
$ad_id = $_POST['ad_id'];
$sortid = intval($_POST['sortid']);
$is_show = intval($_POST['is_show']);
$do_action = $_POST['do_action'];
if ($do_action == 'modify') {
$array = array('title' => $title, 'siteurl' => $siteurl, 'type' => $type, 'content' => $content, 'sortid' => $sortid, 'is_show' => $is_show);
$db->update('ve123_ad', $array, "ad_id='{$ad_id}'");
jsalert('Ð޸ijɹ¦');
} else {
$array = array('title' => $title, 'siteurl' => $siteurl, 'type' => $type, 'content' => $content, 'sortid' => $sortid, 'is_show' => $is_show);
$db->insert('ve123_ad', $array);
jsalert('Ìá½»³É¹¦');
}
}