예제 #1
0
$sDolVerLatest = $aVer[1];
//==========================================================================================
//==========================================================================================
$logged['admin'] = member_auth(1);
if ((int) $_GET['admin_categ']) {
    TopCodeAdmin();
    getAdminCategIndex();
    BottomCode();
}
$_page['css_name'] = 'index.css';
$_page['header'] = "Dashboard";
$free_mode = getParam("free_mode") == "on" ? 1 : 0;
// Finance
if (!$free_mode) {
    $tr_array = array();
    $fin = getFinanceStat($tr_array);
    $full_amount = $fin['total'];
}
$iMembers = db_value("SELECT COUNT(*) FROM `Profiles`");
//members count
$iPhotos = db_value("SELECT COUNT(*) FROM `media` WHERE `med_type`='photo' AND `med_prof_id`!=0");
//photos count
$iBlogs = db_value("SELECT COUNT(*) FROM `BlogPosts`");
//posts count
$iSPolls = db_value("SELECT COUNT(*) FROM `polls_q`");
//site polls count
$iGalls = db_value("SELECT COUNT(*) FROM `GalleryAlbums`");
//galleries count
$iEvents = db_value("SELECT COUNT(*) FROM `SDatingEvents`");
//events count
$iLinks = db_value("SELECT COUNT(*) FROM `Links`");
예제 #2
0
            $between_date2 = strtotime($_POST['tr_between_date2']);
        }
        $tr['between_date1'] = process_pass_data($_POST['tr_between_date1']);
        $tr['between_date2'] = process_pass_data($_POST['tr_between_date2']);
        if ($between_date1 != -1 && $between_date2 != -1) {
            $tr_query = "SELECT * FROM `Transactions` WHERE ( TO_DAYS( FROM_UNIXTIME({$between_date1}) ) <= TO_DAYS( `Date` ) AND TO_DAYS( FROM_UNIXTIME({$between_date2}) ) >= TO_DAYS( `Date` ) ) AND `Status` = 'approved' ORDER BY `Date` DESC";
        } else {
            $tr_query = "";
            $tr['error_text'] = "Please specify correct dates";
        }
        $between_disabled = "";
        break;
}
// Calculations
if (strlen($tr_query)) {
    $fin = getFinanceStat($tr);
}
// Transactions
if (strlen($tr_query)) {
    $tr_res = db_res($tr_query);
    $tr_num = mysql_num_rows($tr_res);
} else {
    $tr_num = 0;
}
$_page['header'] = "Finance";
$_page['header_text'] = "Calculations and transactions";
ob_start();
?>

<div id="helpDivId" style="width: 200px; height: auto; background-color: #F5F5F5; color: #000000; border: 1px solid silver; position: absolute; left: 0px; top: 0px; z-index: 1000; display: none;">
	<div id="helpTypeId" style="position: relative; margin: 2px; padding: 1px; white-space: nowrap;">CONTENT</div>