forked from Kitware/CDash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
groupsDescription.php
79 lines (72 loc) · 2.87 KB
/
groupsDescription.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?php
/*=========================================================================
Program: CDash - Cross-Platform Dashboard System
Module: $Id$
Language: PHP
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Kitware, Inc. All rights reserved.
See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
include("cdash/config.php");
require_once("cdash/pdo.php");
include_once("cdash/common.php");
$db = pdo_connect("$CDASH_DB_HOST", "$CDASH_DB_LOGIN","$CDASH_DB_PASS");
pdo_select_db("$CDASH_DB_NAME",$db);
?>
<html>
<head>
<title>CDash-Groups Description</title>
<meta name="robots" content="noindex,nofollow" />
<link rel="StyleSheet" type="text/css" href="cdash/cssfile"/>
</head>
<body>
<table border="0" cellpadding="3" cellspacing="1" bgcolor="#0000aa" width="100%">
<tr>
<th class="table-heading1"><a href="#" class="jqmClose">[close]</a></th>
<th class="table-heading1">CDash Build Group Description</th>
</tr>
<?php
$i = 0;
$project = htmlspecialchars(pdo_real_escape_string($_GET["project"]));
$projectid = get_project_id($project);
if($projectid<1)
{
?>
</table>
<center><a href="#" class="jqmClose">Close</a></center>
<?php
return;
}
$group = pdo_query("SELECT buildgroup.name,buildgroup.description
FROM buildgroup,buildgroupposition
WHERE buildgroup.projectid='$projectid'
AND buildgroup.id = buildgroupposition.buildgroupid
AND buildgroup.endtime = '1980-01-01 00:00:00'
AND buildgroupposition.endtime = '1980-01-01 00:00:00'
ORDER BY buildgroupposition.position ASC");
while($group_array = pdo_fetch_array($group))
{
?>
<tr class="<?php if($i%2==0) {echo "treven";} else {echo "trodd";} ?>">
<td align="center" width="30%"><b><?php echo $group_array["name"]; ?></b></td>
<td align="left"><?php echo $group_array["description"]; ?></td>
</tr>
<?php
$i++;
} ?>
<tr class="<?php if($i%2==0) {echo "treven";} else {echo "trodd";} $i++;?>">
<td align="center" width="30%"><b>Coverage</b></td>
<td align="left">Check how many current lines of code are currently tested</td>
</tr>
<tr class="<?php if($i%2==0) {echo "treven";} else {echo "trodd";}?>">
<td align="center" width="30%"><b>Dynamic Analysis</b></td>
<td align="left">Check if the current tests have memory defects</td>
</tr>
</table>
<center><a href="#" class="jqmClose">Close</a></center>
</body>
</html>