.collaborative-projects .gray-diagonal {
min-height: 30px;
width: 100%;
- background: url(/opnfv-dashboard/media/diagonal-white.png) transparent repeat scroll top left;
+ background: url(../media/diagonal-white.png) transparent repeat scroll top left;
}
.collaborative-projects #collaborative-projects-logo {
margin-top: 10px;
height: 14px;
- background: url(/opnfv-dashboard/media/collaborative-projects-logo.png) no-repeat scroll 10px center transparent;
+ background: url(../media/collaborative-projects-logo.png) no-repeat scroll 10px center transparent;
width: 100%;
max-width: 400px;
float: left;
$(function() {
var dialog, form,
- allFields = $( [] ).add( login_email ).add( login_password );
+ login_email = $( "#login_email" ),
+ login_password = $( "#login_password" ),
+ allFields = $( [] ).add( login_email ).add( login_password ),
emailRegex = /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;
function checkLength( o, n, min, max ) {
<?php
include '../utils/jenkinsAdapter.php';
+ $array = $SLAVES->xpath('computer');
echo '<table id="example" class="table table-striped table-bordered" cellspacing="0" width="100%">';
echo "<thead>";
echo "</tr>";
echo "</thead>";
echo "<tbody>";
-
- foreach ($SLAVES->xpath('computer') as &$value) {
+ foreach ($array as &$value) {
$slave = $value->displayName;
$idle = $value->idle;
}
echo '</tbody>';
echo '</table>';
-
-
?>
<?php
-
+ include '../../../../auth-db.php';
date_default_timezone_set('UTC');
function connectDB() {
- $username = "root";
- $password = "opnfv";
- $hostname = "localhost";
+ global $username;
+ global $password;
+ global $hostname;
+ global $dbname;
+
$dbhandle = mysql_connect($hostname, $username, $password)
- or die("Unable to connect to MySQL.");
- $selected = mysql_select_db("opnfv_pharos",$dbhandle)
+ or die("Unable to connect to MySQL.".mysql_error());
+ $selected = mysql_select_db($dbname,$dbhandle)
or die("Could not select opnfv_pharos DB.");
}