2011-03-28 14:21:28 +00:00
< ?
/*
2013-01-15 08:00:37 +00:00
* This is the outline page for auto reports . It calls the AJAX functions
2011-03-28 14:21:28 +00:00
* that actually populate the page and shows the proper header and footer .
* The important function is AddMore () .
*/
if ( ! check_perms ( 'admin_reports' )){
error ( 403 );
}
2012-10-11 08:00:15 +00:00
View :: show_header ( 'Reports V2!' , 'reportsv2' );
2011-03-28 14:21:28 +00:00
?>
2013-01-15 08:00:37 +00:00
< script type = " text/javascript " >//<! [ CDATA [
2011-03-28 14:21:28 +00:00
function Taste ( torrent_id , report_id , taste ) {
ajax . get ( 'reportsv2.php?action=ajax_taste&torrent_id=' + torrent_id + '&report_id=' + report_id + '&taste=' + taste , function ( data ) {
if ( data == '1' ) {
$ ( '#taste' + torrent_id ) . raw () . innerHTML = '[Omnomnom]' ;
Grab ( report_id );
} else {
alert ( data );
}
});
}
2013-01-15 08:00:37 +00:00
//]]></script>
2012-08-19 08:00:19 +00:00
< div class = " header " >
< h2 > New reports , auto assigned !</ h2 >
< ? include ( 'header.php' ); ?>
</ div >
2011-03-28 14:21:28 +00:00
< div class = " buttonbox thin center " >
< input type = " button " onclick = " AddMore(); " value = " Add More " />< input type = " text " name = " repop_amount " id = " repop_amount " size = " 2 " value = " 10 " />
2012-09-19 08:00:35 +00:00
| < span title = " Changes whether to automatically replace resolved ones with new ones " >< input type = " checkbox " checked = " checked " id = " dynamic " /> < label for = " dynamic " > Dynamic </ label ></ span >
2011-03-28 14:21:28 +00:00
| < span title = " Resolves *all* checked reports with their respective resolutions " >< input type = " button " onclick = " MultiResolve(); " value = " Multi-Resolve " /></ span >
| < span title = " Un-In Progress all the reports currently displayed " >< input type = " button " onclick = " GiveBack(); " value = " Give back all " /></ span >
</ div >
< br />
< div id = " all_reports " style = " width: 80%; margin-left: auto; margin-right: auto " >
</ div >
< ?
2012-10-11 08:00:15 +00:00
View :: show_footer ();
2011-03-28 14:21:28 +00:00
?>