示例#1
0
文件: addfen.php 项目: zhezhisama/zz
session_start();
if (!$_SESSION['uid']) {
    exit("<script>alert('非法用户,禁止访问...');</script>");
}
if ($_POST["act"] == "save") {
    $wxtitle = clearemoj($_POST["wxtitle"]);
    $sql = "INSERT INTO weixin (`name`,sex,photoimg,codeimg,addr,prov,city,miaoshu,cdate,shuaxin)" . "VALUES(\n\t\t\t\t'{$wxtitle}',\n\t\t\t\t'{$_POST["sex"]}',\n\t\t\t\t'{$_POST["wximg"]}',\n\t\t\t\t'{$_POST["qrcode"]}',\n\t\t\t\t'" . $_POST["addr"] . "',\n\t\t\t\t'{$_POST["province"]}',\n\t\t\t\t'{$_POST["city"]}',\n\t\t\t\t'{$_POST["content"]}',\n\t\t\t\t'" . date('Y-m-d H:i:s') . "',\n\t\t\t\t'3'\n\t\t\t\t)";
    //echo $sql;exit;
    mysql_query($sql);
    if (mysql_affected_rows() == 1) {
        qy_close();
        echo "<script type='text/javascript'>alert('添加成功!');location.href='orderlist.php';</script>";
        exit;
    } else {
        qy_close();
        qy_alert_back('信息添加失败!');
    }
}
//表单部分
?>
	<script type="text/javascript" src="js/jquery.cityselect.js?0709"></script>
<script type="text/javascript">
var myprovince='' ; 
var mycity='' ;


$(function(){ 

	$("#set_city").citySelect({ 
		prov:myprovince,  
		city:mycity 
示例#2
0
文件: repass.php 项目: zhezhisama/zz
<?php 
if ($_GET['act'] == "mod") {
    if ($_POST['passwd'] != $_POST['repasswd']) {
        qy_alert_back('两次密码不一致,请重新填写!');
    }
    $bl = 'lyk';
    $password = md5(md5($_POST['passwd'] . $bl));
    $sql = "update admin set password='******' where id=" . $_SESSION['admin_id'] . "";
    mysql_query($sql);
    if (mysql_affected_rows() == 1) {
        qy_close();
        echo "<script type='text/javascript'>alert('修改成功!');art.dialog.close();</script>";
        exit;
    } else {
        qy_close();
        qy_alert_back('信息修改失败!');
    }
}
?>
<div class="admin">
	<form method="post" action="?act=mod">
    <div class="panel admin-panel">
    	<div class="panel-head"><strong></strong></div>
        <div class="padding border-bottom" align="center">
           输入密码:<input type="password" name="passwd" ><br><br>
		   确认密码:<input type="password" name="repasswd" ><br><br>
			<input type="submit" class="button button-small border-yellow" value="确定" onclick="add_goods()"/>
        </div>
         
    </div>
    </form>
示例#3
0
文件: refresh.php 项目: zhezhisama/zz
    if ($price < $need_price) {
        exit("<script>alert('对不起您没有足够的积分,请充值');location.href='refresh.php'</script>");
    }
    if ($count['num'] >= 3 && $top == 3) {
        exit("<script>alert('对不起,现在没有土豪置顶名额');location.href='refresh.php'</script>");
    }
    $sql = "UPDATE weixin SET \n\t\ttop='" . $top . "',\n\t\ttop_time='" . $top_time . "'\n\t\tWHERE uid='{$uid}'";
    mysql_query($sql);
    if (mysql_affected_rows() == 1) {
        mysql_query("UPDATE `wemall_user` SET `price`= price-{$need_price} WHERE `uid`='" . $uid . "'") or die(mysql_error());
        qy_close();
        echo "<script type='text/javascript'>alert('置顶成功!');location.href='list.php';</script>";
        exit;
    } else {
        qy_close();
        qy_alert_back('置顶失败!');
    }
}
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<meta name="format-detection" content="telephone=no">
<title>超级人脉 - 置顶刷新</title>
<script type="text/javascript" src="js/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="js/jquery.form.js?0709"></script>
<script type="text/javascript" src="js/jquery.cityselect.js?0709"></script>
<script type="text/javascript" src="http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js"></script>
示例#4
0
文件: top.php 项目: zhezhisama/zz
<?php

$url = $_SERVER["SCRIPT_NAME"];
$filename = substr($url, strrpos($url, '/') + 1, strlen($url));
$script_php = substr($filename, 0, strrpos($filename, '.'));
$roles = explode('_', $filename);
define('IN_QY', true);
define('SCRIPT', $script_php);
session_start();
require 'include/common.inc.php';
require "check.php";
if ($roles[0] == 'admin' && $_SESSION['admin_role'] != "administrator") {
    qy_alert_back('您没有浏览此页面的权限,请用与管理员联系!');
}
?>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>微信管理系统-后台管理</title>
    <link rel="stylesheet" href="css/pintuer.css">
    <link rel="stylesheet" href="css/admin.css">
    <script src="js/jquery.js"></script>
    <script src="js/pintuer.js"></script>
    <script src="js/respond.js"></script>
    <script src="js/admin.js"></script>
	<script src="js/common.js"></script>
	<script src="js/jquery.min.js"></script>