Exemple #1
0
function content()
{
    if (isset($_GET['event'])) {
        $event = new Event($_GET['event']);
        showReport($event);
    } else {
        eventList();
    }
}
<!DOCTYPE html>
<?php 
if (isset($_POST['empReport'])) {
    $val = $_POST['emp'];
    $val2 = $_POST['daterange'];
    showReport($val, $val2);
} else {
    showReport('all', NULL);
}
/* 
 * To run and show CONTACT reports based off each company
 */
function showReport($val, $val2)
{
    $userVal = $val;
    $dates = $val2;
    $from = substr($dates, 10, 10);
    $to = substr($dates, 29, 10);
    include 'Header.php';
    include $_SERVER["DOCUMENT_ROOT"] . '/JGWentworth/Model/database.php';
    ?>
<script type="text/javascript">
 $(document).ready(function() {     
    $('#daterange').daterangepicker( {dateFormat: "yy-mm-dd", applyOnMenuSelect: false} );
         
     function toggleTableRow(){
         $('.hiderow').hide();
         $('.showrow').show();
     }
     function setRowColours(){
        $('table tr:visible:odd').css({"background": "white"});
Exemple #3
0
<?php

session_start();
include 'lib.php';
print_header("Season Report");
?>

<div class="grid_10 prefix_1 suffix_1">

<div id="gatherling_main" class="box">
<div class="uppertitle"> Season Report </div>
<?php 
selectSeason();
if (isset($_GET['series']) && isset($_GET['season'])) {
    $series = new Series($_GET['series']);
    showReport($series, $_GET['season']);
}
?>

</div>
</div>

<?php 
print_footer();
?>

<?php 
function selectSeason()
{
    echo "<form action=\"seriesreport.php\" method=\"get\">";
    echo "<table class=\"form\" style=\"border-width: 0px\" align=\"center\">";
Exemple #4
0
             showIndex($smarty, $userInfo, $db);
             break;
     }
     break;
 case 2:
     // rented
     switch ($_GET['a']) {
         case 'index':
         default:
             showIndex($smarty, $userInfo, $db);
             break;
         case 'scoreRec':
             showScore($smarty, $userInfo, $db);
             break;
         case 'report':
             showReport($smarty, $userInfo, $db);
             break;
         case 'submitReport':
             if (isset($_POST['brokenType']) && isset($_POST['desciption'])) {
                 $db->report($userInfo['ID'], $_POST['brokenType'], $_POST['desciption']);
                 showTip($smarty, "报告成功,感谢您的配合!", $db);
             } else {
                 showError($smarty, '请正确报告问题!', $db);
             }
             break;
         case 'return':
             showReturn($smarty, $userInfo, $db);
             break;
         case 'returnTo':
             if (isset($_GET['s'])) {
                 showConfirmReturn($smarty, $userInfo, $db);
Exemple #5
0
  <a class="button" href="javascript:setStatusAndGo('issue_id', 'STATE_NEW', '../reports/');">mark as new</a>
</div>
<div style="display: block"><p>&nbsp;</p></div>
HTML;
echo str_replace(array("STATE_FIXED", "STATE_INVALID", "STATE_NEW", "issue_id"), array(STATE_FIXED, STATE_INVALID, STATE_NEW, $_GET['issue_id']), $buttons);
// Display Android Versions pie chart
display_crashes_vs_android_versions_pie_chart($_GET[issue_id]);
display_crashes_vs_app_versions_pie_chart($_GET[issue_id]);
// Display reports
$sql = bicou_mysql_select(null, "crashes", "issue_id = ?", array($_GET[issue_id]));
$sql .= " LIMIT 0, " . MAX_REPORTS;
$res = mysql_query($sql);
if (!$res) {
    bicou_log("Unable to query: {$sql}");
    echo "<p>Server error.</p>\n";
    return;
}
echo "<p>" . mysql_num_rows($res) . " crashes match the issue ID #" . $_GET[issue_id] . "</p>\n";
$first = true;
while ($tab = mysql_fetch_assoc($res)) {
    if ($first) {
        $first = false;
    } else {
        echo '<hr style="height: 2px;color: #EEEEEE; width: 95%; clear:both;"/>';
    }
    showReport($tab);
}
?>
</body>
</html>
Exemple #6
0
<?php

session_start();
include 'lib.php';
print_header("Event Report");
?>
<div class="grid_10 prefix_1 suffix_1">
<div id="gatherling_main" class="box">
<div class="uppertitle"> Event Report </div>

<?php 
if (isset($_GET['event'])) {
    $event = new Event($_GET['event']);
    showReport($event);
} else {
    eventList();
}
?>

</div>
</div>

<?php 
print_footer();
?>

<?php 
function eventList($series = "", $season = "")
{
    $db = Database::getConnection();
    $result = $db->query("SELECT e.name AS name, e.format AS format,\n        COUNT(DISTINCT n.player) AS players, e.host AS host, e.start AS start,\n        e.finalized, e.cohost, e.series, e.season\n        FROM events e\n        LEFT OUTER JOIN entries AS n ON n.event = e.name\n        WHERE 1=1 AND e.start < NOW() GROUP BY e.name ORDER BY e.start DESC");
Exemple #7
0
<?php
//-----------------------------
//	Programmer	: SH.Jafarkhani
//	Date		: 94.06
//-----------------------------

require_once '../header.inc.php';
require_once "ReportGenerator.class.php";

if(isset($_REQUEST["show"]))
{
	showReport();
}

function showReport(){
	
	$levelsDescArr = array(
		"l1" => "کل",
		"l2" => "معین",
		"l3" => "جزء معین",
		"l4" => "گروه تفصیلی",
		"l5" => "گروه تفصیلی2",
		"l6" => "تفصیلی",
		"l7" => "تفصیلی2"
		);
	global $level;
	$level = empty($_REQUEST["level"]) ? "l1" : $_REQUEST["level"];
	
	$rpg = new ReportGenerator();
	$whereParam = array();
	$where = "";