<?php
/**
 * @package		Ad Platform
 * @author		Uta Marian - Alexandru ( -uMarian- )
 * @license		http://codecanyon.net/licenses
 * @link		http://www.uta-marian.com
 * @version		Version 1.0
 */
require_once(dirname(__FILE__).'/../../config.php');
require_once(DIR_SYSTEM.'/admin/session.admin.php');

$ID	=	$prepare->sanitize( $_GET['id'], 'input' );





$view->w	= $w =	$db->Query("SELECT `pub_withdrawal_id`, `pub_withdrawal_user_id`, `pub_withdrawal_type`, `pub_withdrawal_email`, `pub_withdrawal_amount`, `pub_withdrawal_details`, `pub_withdrawal_date`, `pub_withdrawal_status`, `up_user_id`, `up_first_name`, `up_last_name`, `up_phone`, `up_tax_id`, `ppp_first_name`, `ppp_last_name`, `ppp_paypal_id` FROM publishers_withdrawals left join users_profiles on users_profiles.up_user_id = publishers_withdrawals.pub_withdrawal_user_id left join publisher_payment_paypal on publisher_payment_paypal.ppp_profile_user_id = publishers_withdrawals.pub_withdrawal_user_id where pub_withdrawal_id=? limit 1","i",$ID);


$view->clickFraud	=	$db->Query("SELECT `cf_id`, `cf_user_id`, `cf_ad_id`, `cf_keyword`, `cf_value`, `cf_date` FROM click_fraud where cf_user_id=? order by cf_id DESC limit 10","i",$w['0']['pub_withdrawal_user_id']);






//**DEFINE CUSTOM CSS/JS FILLES**//
$view->customCode = '<link href="'.HTTP_SERVER_WEBSITE.'templates/'.ADMIN_TEMPLATE.'/assets/css/dashboard.css" rel="stylesheet">';

/* set page title */
$view->title = $LANG["WBS_ADMIN_REQUESTS_DETAILS"];
$view->description = $LANG["WBS_ADMIN_REQUESTS_DETAILS"];
$view->keywords = $LANG["WBS_ADMIN_REQUESTS_DETAILS"];

$view->header = $view->render(DIR_TEMPLATE.ADMIN_TEMPLATE.'/header.php');
$view->footer = $view->render(DIR_TEMPLATE.ADMIN_TEMPLATE.'/footer.php');

echo $view->render(DIR_TEMPLATE.ADMIN_TEMPLATE.'/requests/details.php');
?>