Admin Area

Update the reports and state area
This commit is contained in:
IMRAN HASSAN 2014-03-03 10:07:07 +00:00
parent 558da412ee
commit ec914972f0

View file

@ -1,59 +1,4 @@
<style type="text/css">
.flot_chart{
height: 200px;
width: 800px;
}
</style>
<div class="clearfix"></div>
<div id="my_chart">
</div>
<script type="text/javascript">
var daily_activity = "{$baseurl}/admin_area/charts/daily_activity.php";
//swfobject.embedSWF("{$baseurl}/player/open-flash-chart.swf", "my_chart", "99%", "300", "9.0.0", "expressInstall.swf",{literal} {"data-file":daily_activity}{/literal} );
</script>
<div style="height:20px"></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50%" valign="top"><table width="100%" border="0" cellpadding="2" cellspacing="0" class="block ">
<tr>
<td colspan="3"><h2>Videos Reports</h2></td>
</tr>
<tr>
<td width="120">All Time</td>
<td>Total <strong>{get_videos count_only=yes}</strong> &#8211; Active <strong>{get_videos count_only=yes active="yes"}</strong> &#8211; Processing <strong>{get_videos count_only=yes status='Processing'}</strong></td>
</tr>
<tr>
<td width="120">Todays Videos</td>
<td>Total <strong>{get_videos count_only=yes date_span=today}</strong> &#8211; Active <strong>{get_videos count_only=yes active="yes" date_span=today}</strong> &#8211; Processing <strong>{get_videos count_only=yes status='Processing' date_span=today}</strong></td>
</tr>
<tr>
<td width="120">This Week</td>
<td>Total <strong>{get_videos count_only=yes date_span=this_week}</strong> &#8211; Active <strong>{get_videos count_only=yes active="yes" date_span=this_week}</strong> &#8211; Processing <strong>{get_videos count_only=yes status='Processing' date_span=this_week}</strong></td>
</tr>
<tr>
<td>Last Week</td>
<td>Total <strong>{get_videos count_only=yes date_span=last_week}</strong> &#8211; Active <strong>{get_videos count_only=yes active="yes" date_span=last_week}</strong> &#8211; Processing <strong>{get_videos count_only=yes status='Processing' date_span=last_week}</strong></td>
</tr>
<tr>
<td>This Month</td>
<td>Total <strong>{get_videos count_only=yes date_span=this_month}</strong> &#8211; Active <strong>{get_videos count_only=yes active="yes" date_span=this_month}</strong> &#8211; Processing <strong>{get_videos count_only=yes status='Processing' date_span=this_month}</strong></td>
</tr>
<tr>
<td>Last Month</td>
<td>Total <strong>{get_videos count_only=yes date_span=last_month}</strong> &#8211; Active <strong>{get_videos count_only=yes active="yes" date_span=last_month}</strong> &#8211; Processing <strong>{get_videos count_only=yes status='Processing' date_span=last_month}</strong></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table></td>
<td width="50%" valign="top"><div id="videos_stats">
<div id="videos_stats">
<div>
<h3 class="pull-left inline">Today</h3>
<h3 class="pull-left inline">
@ -64,50 +9,51 @@ var daily_activity = "{$baseurl}/admin_area/charts/daily_activity.php";
<div id="daily_chart_id" class="flot_chart">
<img class="loading-image" src="./styles/cb_2014/images/ajax-loader.gif"/></div>
</div>
<script type="text/javascript">
var daily_activity = "{$baseurl}/admin_area/charts/videos_activity.php";
//swfobject.embedSWF("{$baseurl}/player/open-flash-chart.swf", "videos_stats", "98%", "200", "9.0.0", "expressInstall.swf",{literal} {"data-file":daily_activity}{/literal} );
</script></td>
</tr>
</table>
<div class="table-responsive">
<table class="table table-striped table-hover">
<div class="widget-body">
<thead>
<span><legend>Video Reports</legend></span>
<tr>
<th>All Time</th>
<th>Today's Videos</th>
<th>This Week</th>
<th>Last Week</th>
<th>This Month</th>
<th>Last Month</th>
</thead>
<tbody class="reports">
<tr>
<td><span class="show">Total: <strong>{get_videos count_only=yes}</strong></span>
<span class="show">Active: <strong>{get_videos count_only=yes active="yes"}</strong></span>
<span class="show">Processing: <strong>{get_videos count_only=yes status='Processing'}</strong></span></td>
<td><span class="show">Total: <strong>{get_videos count_only=yes date_span=today}</strong></span>
<span class="show">Active: <strong>{get_videos count_only=yes active="yes" date_span=today}</strong></span>
<span class="show">Processing: <strong>{get_videos count_only=yes status='Processing' date_span=today}</strong></span></td>
<div style="height:25px"></div>
<td><span class="show">Total: <strong>{get_videos count_only=yes date_span=this_week}</strong></span>
<span class="show">Active: <strong>{get_videos count_only=yes active="yes" date_span=this_week}</strong></span>
<span class="show">Processing: <strong>{get_videos count_only=yes status='Processing' date_span=this_week}</strong></span></td>
<td><span class="show">Total: <strong>{get_videos count_only=yes date_span=last_week}</strong></span>
<span class="show">Active: <strong>{get_videos count_only=yes active="yes" date_span=last_week}</strong></span>
<span class="show">Processing: <strong>{get_videos count_only=yes status='Processing' date_span=last_week}</strong></span></td>
<td><span class="show">Total: <strong>{get_videos count_only=yes date_span=this_month}</strong></span>
<span class="show">Active: <strong>{get_videos count_only=yes active="yes" date_span=this_month}</strong></span>
<span class="show">Processing: <strong>{get_videos count_only=yes status='Processing' date_span=this_month}</strong></span></td>
<td><span class="show">Total: <strong>{get_videos count_only=yes date_span=last_month}</strong></span>
<span class="show">Active: <strong>{get_videos count_only=yes active="yes" date_span=last_month}</strong></span>
<span class="show">Processing: <strong>{get_videos count_only=yes status='Processing' date_span=last_month}</strong></span></td>
</tr>
</tbody>
</div>
</table>
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50%" valign="top"><table width="100%" border="0" cellpadding="2" cellspacing="0" class="block">
<tr>
<td colspan="3"><h2>User Reports</h2></td>
</tr>
<tr>
<td width="120">All Time</td>
<td>Total <strong>{get_users count_only=yes}</strong> &#8211; Active <strong>{get_users count_only=yes status='Ok'}</strong> &#8211; Inactive <strong>
{get_users count_only=yes status='ToActivate'}</strong></td>
</tr>
<tr>
<td width="120">Todays Users</td>
<td>Total <strong>{get_users count_only=yes date_span='today'}</strong> &#8211; Active <strong>{get_users count_only=yes status='Ok' date_span='today'}</strong> &#8211; Inactive <strong>{get_users count_only=yes status='ToActivate' date_span='today'}</strong></td>
</tr>
<tr>
<td width="120">This Week</td>
<td>Total <strong>{get_users count_only=yes date_span='this_week'}</strong> &#8211; Active <strong>{get_users count_only=yes status='Ok' date_span='this_week'}</strong> &#8211; Inactive <strong>{get_users count_only=yes status='ToActivate' date_span='this_week'}</strong></td>
</tr>
<tr>
<td width="120">Last Week</td>
<td>Total <strong>{get_users count_only=yes date_span='last_week'}</strong> &#8211; Active <strong>{get_users count_only=yes status='Ok' date_span='last_week'}</strong> &#8211; Processing <strong>{get_users count_only=yes status='ToActivate' date_span='last_week'}</strong></td>
</tr>
<tr>
<td>This Month</td>
<td>Total <strong>{get_users count_only=yes date_span='this_month'}</strong> &#8211; Active <strong>{get_users count_only=yes status='Ok' date_span='this_month'}</strong> &#8211; Inactive <strong>{get_users count_only=yes status='ToActivate' date_span='this_month'}</strong></td>
</tr>
<tr>
<td>Last Month</td>
<td>Total <strong>{get_users count_only=yes date_span='last_month'}</strong> &#8211; Active <strong>{get_users count_only=yes status='Ok' date_span='last_month'}</strong> &#8211; Inactive <strong>{get_users count_only=yes status='ToActivate' date_span='last_month'}</strong></td>
</tr>
</table></td>
<td width="50%" valign="top"><div id="user_stats">
<div>
<h3 class="pull-left inline">This week</h3>
@ -119,66 +65,55 @@ var daily_activity = "{$baseurl}/admin_area/charts/videos_activity.php";
<div id="weekly_chart_id" class="flot_chart"><img class="loading-image" src="./styles/cb_2014/images/ajax-loader.gif"/></div>
</div>
<script type="text/javascript">
var daily_activity = "{$baseurl}/admin_area/charts/users_activity.php";
//swfobject.embedSWF("{$baseurl}/player/open-flash-chart.swf", "user_stats", "98%", "200", "9.0.0", "expressInstall.swf",{literal} {"data-file":daily_activity}{/literal} );
</script></td>
</tr>
</table>
</td>
<div class="table-responsive">
<table class="table table-striped table-hover">
<div class="widget-body">
<thead>
<span><legend>User Reports</legend></span>
<tr>
<th>All Time</th>
<th>Today's Users</th>
<th>This Week</th>
<th>Last Week</th>
<th>This Month</th>
<th>Last Month</th>
</thead>
<tbody class="reports">
<tr>
<td><span class="show">Total: <strong>{get_users count_only=yes}</strong></span>
<span class="show">Active: <strong>{get_users count_only=yes status='Ok'}</strong></span>
<span class="show">Processing: <strong>{get_users count_only=yes status='ToActivate'}</strong></span></td>
<td><span class="show">Total: <strong>{get_users count_only=yes date_span='today'}</strong></span>
<span class="show">Active: <strong>{get_users count_only=yes status='Ok' date_span=today}</strong></span>
<span class="show">Processing: <strong>{get_videos count_only=yes status='ToActivate' date_span=today}</strong></span></td>
<td><span class="show">Total: <strong>{get_users count_only=yes date_span='this_week'}</strong> </span>
<span class="show">Active: <strong>{get_users count_only=yes status='Ok' date_span=this_week}</strong></span>
<span class="show">Processing: <strong>{get_users count_only=yes status='ToActivate' date_span=this_week}</strong></span></td>
<td><span class="show">Total: <strong>{get_users count_only=yes date_span='last_week'}</strong></span>
<span class="show">Active: <strong>{get_users count_only=yes status='Ok' date_span=last_week}</strong></span>
<span class="show">Processing: <strong>{get_users count_only=yes status='ToActivate' date_span=last_week}</strong></span></td>
<td><span class="show">Total: <strong>{get_users count_only=yes date_span=this_month}</strong></span>
<span class="show">Active: <strong>{get_users count_only=yes status='Ok' date_span=this_month}</strong></span>
<span class="show">Processing: <strong>{get_users count_only=yes status='ToActivate' date_span=this_month}</strong></span></td>
<div style="height:25px"></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50%" valign="top"><table width="100%" border="0" cellpadding="2" cellspacing="0" class="block">
<tr>
<td colspan="3"><h2>Group Reports</h2></td>
</tr>
<tr>
<td width="120">All Time</td>
<td>Total <strong>{get_groups count_only=yes}</strong> &#8211;
Active <strong> {get_groups count_only=yes active='yes'}</strong> &#8211;
Inactive <strong> {get_groups count_only=yes active='no'}</strong>
</td>
<td><span class="show">Total: <strong>{get_users count_only=yes date_span=last_month}</strong></span>
<span class="show">Active: <strong>{get_users count_only=yes status='Ok' date_span=last_month}</strong></span>
<span class="show">Processing: <strong>{get_users count_only=yes status='ToActivate' date_span=last_month}</strong></span></td>
</tr>
<tr>
<td width="120">Today</td>
<td>Total <strong>{get_groups count_only=yes date_span=today}</strong> &#8211;
Active <strong> {get_groups count_only=yes active='yes' date_span=today}</strong> &#8211;
Inactive <strong> {get_groups count_only=yes active='no' date_span=today}</strong></td>
</tr>
<tr>
<td width="120">This Week</td>
<td>Total <strong>{get_groups count_only=yes date_span=this_week}</strong> &#8211;
Active <strong> {get_groups count_only=yes active='yes' date_span=this_week}</strong> &#8211;
Inactive <strong> {get_groups count_only=yes active='no' date_span=this_week}</strong></td>
</tr>
<tr>
<td width="120">Last Week</td>
<td>Total <strong>{get_groups count_only=yes date_span=last_week}</strong> &#8211;
Active <strong> {get_groups count_only=yes active='yes' date_span=last_week}</strong> &#8211;
Inactive <strong> {get_groups count_only=yes active='no' date_span=last_week}</strong></td>
</tr>
<tr>
<td>This Month</td>
<td>Total <strong>{get_groups count_only=yes date_span=this_month}</strong> &#8211;
Active <strong> {get_groups count_only=yes active='yes' date_span=this_month}</strong> &#8211;
Inactive <strong> {get_groups count_only=yes active='no' date_span=this_month}</strong></td>
</tr>
<tr>
<td>Last Month</td>
<td>Total <strong>{get_groups count_only=yes date_span=last_month}</strong> &#8211;
Active <strong> {get_groups count_only=yes active='yes' date_span=last_month}</strong> &#8211;
Inactive <strong> {get_groups count_only=yes active='no' date_span=last_month}</strong></td>
</tr>
</table></td>
<td width="50%" valign="top"><div id="group_stats">
</tbody>
</div>
</table>
</div>
<td width="50%" valign="top">
<div id="group_stats">
<div>
<h3 class="pull-left inline">This Month</h3>
<h3 class="pull-left inline">
@ -187,65 +122,130 @@ var daily_activity = "{$baseurl}/admin_area/charts/users_activity.php";
<small class="muted">Enable Tooltip</small></h3></div>
<div class="clearfix"></div>
<div id="monthly_chart_id" class="flot_chart"><img class="loading-image" src="./styles/cb_2014/images/ajax-loader.gif"/></div>
</div>
<script type="text/javascript">
var daily_activity = "{$baseurl}/admin_area/charts/groups_activity.php";
//swfobject.embedSWF("{$baseurl}/player/open-flash-chart.swf", "group_stats", "98%", "200", "9.0.0", "expressInstall.swf",{literal} {"data-file":daily_activity}{/literal} );
</script></td>
</tr>
</table>
</div></td>
<div style="height:25px"></div>
<div class="table-responsive">
<table class="table table-striped table-hover">
<div class="widget-body">
<thead>
<span><legend>Group Reports</legend></span>
<tr>
<th>All Time</th>
<th>Today's Groups</th>
<th>This Week</th>
<th>Last Week</th>
<th>This Month</th>
<th>Last Month</th>
</thead>
<tbody class="reports">
<tr>
<td><span class="show">Total: <strong>{get_groups count_only=yes}</strong></span>
<span class="show">Active: <strong>{get_groups count_only=yes active='yes'}</strong></span>
<span class="show">Processing: <strong>{get_groups count_only=yes active='no'}</strong></span></td>
<td><span class="show">Total: <strong>{get_groups count_only=yes date_span='today'}</strong></span>
<span class="show">Active: <strong>{get_groups count_only=yes active='yes' date_span=today}</strong></span>
<span class="show">Processing: <strong>{get_groups count_only=yes active='yes' date_span=today}</strong></span></td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="block">
<tr>
<td width="25%"><h2>Comments</h2></td>
<td width="25%"><h2>Flags</h2></td>
<td width="25%"><h2>Playlists</h2></td>
<td width="25%"><h2>Favorites</h2></td>
</tr>
<tr>
<td valign="top"><ul>
<li><strong>{$myquery->get_comments('wildcard',v,TRUE)} </strong>video comments</li>
<li><strong>{$myquery->get_comments('wildcard',t,TRUE)} </strong>Group Discussions</li>
<li><strong>{$myquery->get_comments('wildcard',c,TRUE)} </strong>Profile Comments</li>
</ul></td>
<td valign="top"><ul>
<li><strong>{$cbvid->action->count_flagged_objects()}</strong> videos are reported</li>
<li><strong>{$userquery->action->count_flagged_objects()}</strong> groups are reported</li>
<li><strong>{$cbgroup->action->count_flagged_objects()}</strong> profiles are reported</li>
</ul>
<p>&nbsp;</p></td>
<td valign="top"><ul>
<li><strong>{$cbvid->action->count_total_playlist()}</strong> Video Playlists are created</li>
<li><strong>{$cbvid->action->count_total_playlist(true)}</strong> Video Items are in playlist</li>
</ul></td>
<td valign="top"><ul>
<li><strong>{$cbvid->action->total_favorites()}</strong> favorite videos</li>
</ul></td>
</tr>
</table>
<td><span class="show">Total: <strong>{get_groups count_only=yes date_span='this_week'}</strong></span>
<span class="show">Active: <strong>{get_users count_only=yes active='yes' date_span=this_week}</strong></span>
<span class="show">Processing: <strong>{get_users count_only=yes active='no' date_span=this_week}</strong></span></td>
<div style="height:25px"></div>
<td><span class="show">Total: <strong>{get_groups count_only=yes date_span='last_week'}</strong></span>
<span class="show">Active: <strong>{get_users count_only=yes active='yes' date_span=last_week}</strong></span>
<span class="show">Processing: <strong>{get_users count_only=yes active='no' date_span=last_week}</strong></span></td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="block">
<tr>
<td width="25%"><h2>Files and Sizes</h2></td>
</tr>
<tr>
<td valign="top"><ul>
<li>Video Files : <strong>{$vid_dir.count|number_format}</strong> &#8211; Folder Size : <strong>{$vid_dir.size|formatfilesize}</strong></li>
<li>Thumb Files : <strong>{$thumb_dir.count|number_format}</strong> &#8211; Folder Size : <strong>{$thumb_dir.size|formatfilesize}</strong></li>
<li>Original Video Files : <strong>{$orig_dir.count|number_format}</strong> &#8211; Folder Size : <strong>{$orig_dir.size|formatfilesize}</strong></li>
<li>User Thumb Files : <strong>{$user_thumbs.count|number_format}</strong> &#8211; Folder Size : <strong>{$user_thumbs.size|formatfilesize}</strong></li>
<li>User Background Files <strong>{$user_bg.count|number_format}</strong> &#8211; Folder Size : <strong>{$user_bg.size|formatfilesize}</strong></li>
<li>Groups Thumb Files : <strong>{$grp_thumbs.count|number_format}</strong> &#8211; Folder Size : <strong>{$grp_thumbs.size|formatfilesize}</strong></li>
<li>Category Thumb Files <strong>{$cat_thumbs.count|number_format}</strong> &#8211; Folder Size : <strong>{$cat_thumbs.size|formatfilesize}</strong></li>
<li>Database Size : <strong>{$db_size}</strong></li>
</ul></td>
</tr>
</table>
<td><span class="show">Total: <strong>{get_groups count_only=yes date_span=this_month}</strong></span>
<span class="show">Active: <strong>{get_users count_only=yes active='yes' date_span=this_month}</strong></span>
<span class="show">Processing: <strong>{get_users count_only=yes active='no' date_span=this_month}</strong></span></td>
<td><span class="show">Total: <strong>{get_groups count_only=yes date_span=last_month}</strong></span>
<span class="show">Active: <strong>{get_users count_only=yes active='yes' date_span=last_month}</strong></span>
<span class="show">Processing: <strong>{get_users count_only=yes active='no' date_span=last_month}</strong></span></td>
</tr>
</tbody>
</div>
</table>
</div>
<div class="table-responsive">
<table class="table table-striped table-hover">
<div class="widget-body">
<thead>
<span><legend>Other Reports</legend></span>
<tr>
<th>Comments</th>
<th>Flags</th>
<th>Playlists</th>
<th>Favorites</th>
</thead>
<tbody class="reports">
<tr>
<td><li><span class="show">Video Comments: <strong>{$myquery->get_comments('wildcard',v,TRUE)}</strong></span>
<li><span class="show">Groups Discussion:<strong>{$myquery->get_comments('wildcard',t,TRUE)}</strong></span></li>
<li><span class="show">Profile Comments: <strong>{$myquery->get_comments('wildcard',c,TRUE)}</strong></span></li></td>
<td><li><span class="show">Videos Reported:<strong>{$cbvid->action->count_flagged_objects()}</strong></span></li>
<li><span class="show">Groups Reported: <strong>{$userquery->action->count_flagged_objects()}</strong></span></li>
<li><span class="show">Profiles Reported: <strong>{$myquery->get_comments('wildcard',c,TRUE)}</strong></span></li></td>
<td><li><span class="show">Video PlayList<strong>{$cbvid->action->count_total_playlist()}</strong></span></li>
<li><span class="show">Videos in Playlist: <strong>{$cbvid->action->count_total_playlist(true)}</strong></span></li></td>
<td><li><span class="show">Favorite Videos: <strong>{$cbvid->action->total_favorites()}</strong></span></li></td>
</tr>
</tbody>
</div>
</table>
</div>
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover">
<div class="widget-body">
<thead>
<span><legend>Total files and Sizes</legend></span>
<tr>
<th>Total Files</th>
<th>Sizes</th>
</thead>
<tbody class="reports">
<tr>
<td>
<li><span class="show">Total Files: <strong>{$vid_dir.count|number_format}</strong></span></li>
<li><span class="show">Total Thumbs: <strong>{$thumb_dir.count|number_format}</strong></span> </li>
<li><span class="show">Original Video Files: <strong>{$orig_dir.count|number_format}</strong></span> </li>
<li><span class="show">User Thumbs Files: <strong>{$user_thumbs.count|number_format}</strong></span> </li>
<li><span class="show">User Background Files: <strong>{$user_bg.count|number_format}</strong></span> </li>
<li><span class="show">Groups Thumb Files: <strong>{$grp_thumbs.count|number_format}</strong></span></li>
<li><span class="show">Category Thumb Files: <strong>{$cat_thumbs.count|number_format}</strong></span></li>
<li><span class="show">DataBase Size: <strong>{$db_size}</strong></span></li>
</td>
<td>
<li><span class="show">Folder Size: <strong>{$vid_dir.size|formatfilesize}</strong></span></li>
<li><span class="show">Folder Size: <strong>{$thumb_dir.size|formatfilesize}</strong></span> </li>
<li><span class="show">Folder Size: <strong>{$orig_dir.size|formatfilesize}</strong></span> </li>
<li><span class="show">Folder Size: <strong>{$user_thumbs.size|formatfilesize}</strong></span> </li>
<li><span class="show">Folder Size: <strong>{$user_bg.size|formatfilesize}</strong></span> </li>
<li><span class="show">Folder Size: <strong>{$grp_thumbs.size|formatfilesize}</strong></span></li>
<li><span class="show">Folder Size: <strong>{$cat_thumbs.size|formatfilesize}</strong></span></li>
<li><span class="show">Folder Size: <strong>{$db_size}</strong></span></li>
</td>
</tr>
</tbody>
</div>
</table>
</div>
<style type="text/css">
.flot_chart{
height: 200px;
width: 800px;
}
</style>
<script type="text/javascript">
@ -407,120 +407,5 @@ var daily_activity = "{$baseurl}/admin_area/charts/groups_activity.php";
}
});
}
});
/*$(document).ready(function() {
//get the daily activities
$.ajax({
url: 'charts/daily_activity.php',
dataType: 'json',
beforeSend: function() {
$('#my_chart .loading-image').show();
//$('#my_chart').html('gtegfgdf');
},
success: function(data) {
//$("#my_chart").html('Videos'+data);
//arr = data.split("spliter");
//$("#videos_stats").html(arr[0]);
//$("#user_stats").html(arr[1]);
//$("#group_stats").html(arr[2]);
//data = [["uploads","2"],["processing","1"],["active","5"],["views","15"],["comments","2"],];
//alert(arr[0]);
//data = ["label":"Video","data":[["1999",3],["2000",3.9],["2001",2],["2002",1.2]]];
data = JSON.stringify(data);
alert(JSON.stringify(data));
$.plot("#placeholder", [ data ], {
series: {
bars: {
show: true,
barWidth: 0.6,
align: "center"
}
},
xaxis: {
mode: "categories",
tickLength: 0
}
});
},
error: function() {
$("#my_chart").html("error");
alert('error');
},
complete: function(){
$('#my_chart .loading-image').hide();
}
});
/*
//get the videos stats
$.ajax({
url: 'charts/videos_activity.php',
dataType: 'html',
beforeSend: function() {
//$('#videos_stats').html("Videos loading..");
$('#videos_stats .loading-image').show();
},
success: function(data) {
$("#videos_stats").html(data);
//alert(JSON.stringify(data));
},
error: function() {
$("#videos_stats").html("error");
alert('error');
},
complete: function(){
$('#videos_stats .loading-image').hide();
}
});
//get the users stats
$.ajax({
url: 'charts/users_activity.php',
dataType: 'html',
beforeSend: function() {
$('#user_stats .loading-image').show();
//$('#user_stats').html("Users loading..");
},
success: function(data) {
$("#user_stats").html(data);
//alert(JSON.stringify(data));
},
error: function() {
$("#users_stats").html("error");
alert('error');
},
complete: function(){
$('#user_stats .loading-image').hide();
}
});
//get the gorups stats
$.ajax({
url: 'charts/groups_activity.php',
dataType: 'html',
beforeSend: function() {
$('#group_stats .loading-image').show();
//$('#group_stats').html("Groups loading..");
},
success: function(data) {
$("#group_stats").html(data);
//alert(JSON.stringify(data));
},
error: function() {
$("#group_stats").html("error");
alert('error');
},
complete: function(){
$('#group_stats .loading-image').hide();
}
});
// set the data for flot charts
// Add the Flot version string to the footer
});*/
</script>
});
</script>