⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 useramount.inc.php

📁 Phpcms2008 是一款基于 PHP+Mysql 架构的网站内容管理系统
💻 PHP
字号:
<?php
defined('IN_PHPCMS') or exit('Access Denied');
require_once MOD_ROOT.'admin/include/useramount.class.php';

$submenu = array
(
	array($LANG['amount_list'], '?mod='.$mod.'&file='.$file.'&action=list')
);
$menu = admin_menu($LANG['finance_operation'], $submenu);

$action = isset($action) ? $action : 'list';
$useramount = new useramount('0');
switch ($action)
{
	case 'list':
		if (!empty($id))
        {
			$amount = $useramount->view($id);
			include admin_tpl('amount_detail');
		}
        else
        {
			$paytypes = get_payType();
			if(!empty($username))           $condition[] = " username='$username'";
			if(!empty($inputer))            $condition[] = " inputer='$inputer'";
			if(!empty($payment))            $condition[] = " payment='$payment'";
			if($is_paid >= '0')             $condition[] = " ispay = '$is_paid'";
			if ($addtimebe)
            {
                $addtimebe = strtotime($addtimebe);
                $condition[] = "addtime >= '$addtimebe' " ;
            }
			if ($addtimeend)			{ $addtimeend = strtotime($addtimeend); $condition[] = "`addtime` <= '$addtimeend' " ;}

			if ($paidtimebe)			{ $paidtimebe = strtotime($paidtimebe); $condition[] = "`paytime` >= '$paidtimebe' " ;}
			if ($paidtimeend)			{ $paidtimeend = strtotime($paidtimeend); $condition[] = "`paytime` <= '$paidtimeend' " ;}

			$page = isset($page) ? intval($page) : 1;
			$pagesize = $PHPCMS['pagesize'] ? $PHPCMS['pagesize'] : 30;
			$amounts = $useramount->get_list($condition,$page,$pagesize);
			$pages = $amounts['pages'];
			include admin_tpl('amount_view');
		}
	break;
	case 'check':
		if ( $dosubmit )
		{
			if ( $useramount->check($id, $setting) ){
				showmessage('淇

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -