예제 #1
0
    }
    if (floatval($price) < $glo_remits_low) {
        $hint .= "汇款金额最低{$glo_remits_low}积分\\n";
    }
    if (trim($hktime) == "") {
        $hint .= "请输入汇款时间\\n";
    }
    if ($hint != "") {
        echo "<script>alert('" . $hint . "');history.back();</script>";
        exit;
    }
    $bank = "";
    $sql_bank = "select * from {$db_prefix}bank where id='" . $bankid . "'";
    $rs_bank = $db->get_one($sql_bank);
    $bank = $rs_bank["bank"] . "<br>" . $rs_bank["zhanghao"] . "<br>" . $rs_bank["huzhu"];
    $sql = "insert into {$db_prefix}remits(username,realname,bankid,bank,hkname,price,memo,state,hktime,addtime) values('" . $_SESSION["glo_username"] . "','" . $_SESSION["glo_realname"] . "','" . $bankid . "','" . $bank . "','" . trim($hkname) . "','" . floatval($price) . "','" . $memo . "','0','" . timestr2unix($hktime) . "','" . time() . "')";
    $db->query($sql);
    $log_adminid = $_SESSION["glo_userid"];
    $log_admin = $_SESSION["glo_username"];
    $log_type = 101;
    $log_addtime = time();
    $log_ip = getip();
    setlogstype($log_adminid, $log_admin, $log_type, $log_addtime, $log_ip, $log_memo);
    header("location:myremits.php");
    exit;
}
echo '<script language="javascript" type="text/javascript" src="../my97datepicker/WdatePicker.js"></script>
</HEAD><body>
<form name="form1" method="post" action="?action=remit">

<br>
예제 #2
0
            <td height="22" background="images/bg.gif" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">管理员</span></div></td>
          </tr>
   ';
$pagesize = 20;
$pageno = getparam("pageno");
if ($pageno < 1) {
    $pageno = 1;
}
$sqlc = "select count(id) as c from {$db_prefix}delta where 1";
$filter = "";
if ($action == "query") {
    if (trim($time1) != "") {
        $filter .= " and addtime>='" . timestr2unix($time1) . "'";
    }
    if (trim($time2) != "") {
        $filter .= " and addtime<='" . (timestr2unix($time2) + 3600 * 24) . "'";
    }
    if (trim($username) != "") {
        $filter .= " and username='******'";
    }
}
if ($filter != '') {
    $sqlc .= $filter;
}
$rs = $db->get_one($sqlc);
$recnum = $rs['c'];
$pagenum = ceil($recnum / $pagesize);
if ($pageno > $pagenum) {
    $pageno = intval($pagenum);
}
if ($pageno < 1) {
예제 #3
0
파일: users2.php 프로젝트: ziyou-liu/jiesi
if ($pageno < 1) {
    $pageno = 1;
}
$sqlc = "select count(id) as c from {$db_prefix}users where state=1";
$filter = "";
if ($action == "query") {
    if (trim($username) != "") {
        $filter .= " and username='******'";
    }
}
if ($action == "query1") {
    if (trim($confirmtime1) != "") {
        $filter .= " and confirmtime>='" . timestr2unix($confirmtime1) . "'";
    }
    if (trim($confirmtime2) != "") {
        $filter .= " and confirmtime<='" . (timestr2unix($confirmtime2) + 3600 * 24) . "'";
    }
    if ($emailchk == 1) {
        $filter .= " and ifnull(email,'')=''";
    } else {
        $filter .= " and ifnull(email,'')!=''";
    }
}
if ($filter != '') {
    $sqlc .= $filter;
}
$rs = $db->get_one($sqlc);
$recnum = $rs['c'];
$pagenum = ceil($recnum / $pagesize);
if ($pageno > $pagenum) {
    $pageno = intval($pagenum);