<?php
/************************************************************************
- * MXChange v0.2.1 Start: 02/12/2004 *
- * ================ Last change: 02/12/2004 *
+ * Mailer v0.2.1-FINAL Start: 02/12/2004 *
+ * =================== Last change: 02/12/2004 *
* *
* -------------------------------------------------------------------- *
* File : what-list_doubler.php *
* svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
// Add description as navigation point
addMenuDescription('admin', __FILE__);
-if (!isGetRequestElementSet('mode')) {
+if (!isGetRequestParameterSet('mode')) {
// Chosse the overview page as default
- setRequestGetElement('mode', 'overview');
+ setGetRequestParameter('mode', 'overview');
} else {
// Set table title automatically
- if (!isGetRequestElementSet('select')) setRequestGetElement('select', 'all');
+ if (!isGetRequestParameterSet('select')) setGetRequestParameter('select', 'all');
// Prepare header
- $content['list_' . strtolower(getRequestElement('mode'))] = getMessage('ADMIN_DOUBLER_LIST_' . strtoupper(getRequestElement('mode')) . '_' . strtoupper(getRequestElement('select')).'');
+ $content['list_' . strtolower(getRequestParameter('mode'))] = '{--ADMIN_DOUBLER_LIST_' . strtoupper(getRequestParameter('mode')) . '_' . strtoupper(getRequestParameter('select')) . '--}';
}
// Load data for the template
-switch (getRequestElement('mode')) {
+switch (getRequestParameter('mode')) {
case 'already': // Already payed out points
break;
case 'overview': // General overview page
// Prepare links
foreach (array('already_direct','already_ref','waiting_direct','waiting_ref') as $entry) {
- $content[$entry . '_link'] = 0;
+ $content[$entry . '_link'] = '0';
} // END - switch
// Init sums
- $sumAlready = 0; $sumWaiting = 0;
+ $sumAlready = '0'; $sumWaiting = '0';
// Number of direct already payouts and referal
$cnt = countSumTotalData('Y','doubler','id','completed',true, " AND `is_ref`='N'");
if ($cnt > 0) {
// Something was payed out
$sumAlready += $cnt;
- $content['already_direct_link'] = "<a href=\"{?URL?}/modules.php?module=admin&what=list_doubler&mode=already&select=direct\">".$cnt."</a>";
+ $content['already_direct_link'] = '<a href="{%url=modules.php?module=admin&what=list_doubler&mode=already&select=direct%}">' . $cnt . '</a>';
} // END - if
$cnt = countSumTotalData('Y','doubler','id','completed',true, " AND `is_ref`='Y'");
if ($cnt > 0) {
// Something was payed out
$sumAlready += $cnt;
- $content['already_ref_link'] = "<a href=\"{?URL?}/modules.php?module=admin&what=list_doubler&mode=already&select=ref\">".$cnt."</a>";
+ $content['already_ref_link'] = '<a href="{%url=modules.php?module=admin&what=list_doubler&mode=already&select=ref%}">' . $cnt . '</a>';
} // END - if
// And the same for waiting pouts (direct and referal)
if ($cnt > 0) {
// Something was payed out
$sumWaiting += $cnt;
- $content['waiting_direct_link'] = "<a href=\"{?URL?}/modules.php?module=admin&what=list_doubler&mode=waiting&select=direct\">".$cnt."</a>";
+ $content['waiting_direct_link'] = '<a href="{%url=modules.php?module=admin&what=list_doubler&mode=waiting&select=direct%}">' . $cnt . '</a>';
} // END - if
$cnt = countSumTotalData('N','doubler','id','completed',true, " AND `is_ref`='Y'");
if ($cnt > 0) {
// Something was payed out
$sumWaiting += $cnt;
- $content['waiting_ref_link'] = "<a href=\"{?URL?}/modules.php?module=admin&what=list_doubler&mode=waiting&select=ref\">".$cnt."</a>";
+ $content['waiting_ref_link'] = '<a href="{%url=modules.php?module=admin&what=list_doubler&mode=waiting&select=ref%}">' . $cnt . '</a>';
} // END - if
// Links for all
- $content['already_all_link'] = "<a href=\"{?URL?}/modules.php?module=admin&what=list_doubler&mode=already&select=all\">".$sumAlready."</a>";
- $content['waiting_all_link'] = "<a href=\"{?URL?}/modules.php?module=admin&what=list_doubler&mode=waiting&select=all\">".$sumWaiting."</a>";
+ $content['already_all_link'] = '<a href="{%url=modules.php?module=admin&what=list_doubler&mode=already&select=all%}">' . $sumAlready . '</a>';
+ $content['waiting_all_link'] = '<a href="{%url=modules.php?module=admin&what=list_doubler&mode=waiting&select=all%}">' . $sumWaiting . '</a>';
// All data is loaded here...
break;
} // END - switch
// Load mode template
-loadTemplate('admin_list_doubler_' . getRequestElement('mode'), false, $content);
+loadTemplate('admin_list_doubler_' . getRequestParameter('mode'), false, $content);
// [EOF]
?>