<?php
//global $wppas_banner_creator;
//$wppas_banner_creator->deleteDir('bDod3f');
//print_r($wppas_banner_creator->load_banner_data(2861));
//echo $wppas_banner_creator->all_banners_item(2861);
//echo encodeURIComponent('<iframe src="http://tunasite.com" width="300px" height="250px"></iframe>');
?>
<div class="wppas_dashboard wppas_purchases wppas_vbc_area">
	<div class="wrap">
    	<!-- Wordpress Messages -->
        <h2 class="messages-position"></h2>
        
        <?php
		if( current_user_can(WP_ADS_ROLE_ADMIN))
       {
		   ?>
        	<div class="wppas_box_container">       
        		<div class="wppas_box_group">
                	
                    
                    <div style="margin: 0 0 10px; text-align:left; padding:10px; background-color:#FFF;">
                        <div style="float:left;"><span class="wppas_logo"></span></div>
                        <div style="float:left; margin: 25px 0 0 15px;">
                            <h3 style="margin:0; font-size:30px; display:inline-block;">WP PRO Advertising</h3>
                            <h4 style="margin: 0px 0 0 5px; font-size:18px; display:inline-block;"><?php _e('- Make money with your website.','wpproads'); ?></h4>
                        </div>
                        <div class="clearFix"></div>
                    </div>
                    
                    
                    <!--
                     /**
                      * WPPROADS PURCHASES
                      */
                    -->
                    <div id="wppas_purchases">
                        
                        <div class="wppas_box">
                            <div class="wppas_box_header">
                                <h3><?php _e('All Purchases','wpproads');?></h3>
                            </div>
                            <div class="wppas_actions">
								  <?php echo WPPAS_BuySell::all_purchases(array('query' => "ORDER BY id DESC")); ?>
                            </div>
                        </div>
                        <!-- end .wppas_box -->
                    </div>
                    <!-- end #wppas_purchases -->
                    
                    
                </div>
                <!-- end .wppas_box_group -->
                
        	</div>
           <!-- end .wppas_box_container -->
           <?php
	   }
	   ?>
    </div>
  
</div>