Procházet zdrojové kódy

Initial commit, added raw webpage

3ndur4nce před 3 roky
revize
32263ab4a2

+ 123 - 0
WebPage/api/v1.php

@@ -0,0 +1,123 @@
+<?php
+define('DB_SERVER', 'dbhost');
+define('DB_USERNAME', 'dbuser');
+define('DB_PASSWORD', 'dbpasswd');
+define('DB_NAME', 'dbname');
+
+
+$link = mysqli_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_NAME);
+
+if (!$link->set_charset("utf8")) {
+    printf("Error loading character set utf8: %s\n", $link->error);
+} 
+if($link === false){
+    die("ERROR: Could not connect. " . mysqli_connect_error());
+}
+
+if(isset($_GET['a'])){
+    $a = $_GET['a'];
+}
+if(isset($_GET['srvnm'])){
+    $srvnm = trim($_GET['srvnm']);
+}
+if(isset($_GET['usrnm'])){
+    $usrnm = trim($_GET['usrnm']);
+}
+if(isset($_GET['pwd'])){
+    $pwd = trim($_GET['pwd']);
+}
+if(isset($_GET['sct'])){
+    $sct = trim($_GET['sct']);
+}
+if(isset($_GET['technm'])){
+    $technm = trim($_GET['technm']);
+}
+if(isset($_GET['kee'])){
+    $kee = trim($_GET['kee']);
+}
+if(isset($_GET['scrpt'])){
+    $scrpt = trim($_GET['scrpt']);
+}
+
+$getreqqry = mysqli_query($link, "SELECT * from request where servername = '$usrnm' AND passwd = '$pwd'");
+while($row = mysqli_fetch_array($getreqqry)){
+  $reqid = $row['id'];
+}
+
+if($a == "reqacc" & $kee == "alsdjhfawer34667847694742456sgdfgraereajek"){
+    $instreq = "INSERT into request (tech, servername, passwd) values (?, ?, ?)";
+    if($stmt = mysqli_prepare($link, $instreq)){
+        mysqli_stmt_bind_param($stmt, "sss", $technm, $usrnm, $pwd);
+        if(mysqli_stmt_execute($stmt)){
+            echo 1;
+        }else{
+            echo "noreqacc";
+        }
+    }
+}
+if($a == "accdoi" & $kee == "alsdjhfawer34667847694742456sgdfgraereajek"){
+    $getreqqry = mysqli_query($link, "SELECT * from request where servername = '$usrnm' AND passwd = '$pwd'");
+    while($row = mysqli_fetch_array($getreqqry)){
+        echo $row['approved'];
+    }
+}
+if($a == "addentry" & $reqid != ""){
+    $getrepqry = mysqli_query($link, "SELECT EXISTS(SELECT * from repports where reqid = '$reqid' AND server_name = '$srvnm')");
+    while($row = mysqli_fetch_array($getrepqry)){
+        $repext = $row[0];
+    }
+    if($repext == 1){
+        $getrepqry = mysqli_query($link, "SELECT * from repports where reqid = '$reqid' AND server_name = '$srvnm'");
+        while($row = mysqli_fetch_array($getrepqry)){
+            $repid = $row['id'];
+            $cltid = $row['client_id'];
+        }
+    }else{
+        $instrep = "INSERT into repports (reqid, server_name, devicetype) values (?, ?, ?)";
+        if($stmt = mysqli_prepare($link, $instrep)){
+            $devicetype = 1;
+            mysqli_stmt_bind_param($stmt, "isi", $reqid, $srvnm, $devicetype);
+            if(mysqli_stmt_execute($stmt)){
+            }else{
+            }
+        }
+        $getrepqry = mysqli_query($link, "SELECT * from repports where reqid = '$reqid' AND server_name = '$srvnm'");
+        while($row = mysqli_fetch_array($getrepqry)){
+            $repid = $row['id'];
+            $cltid = $row['client_id'];
+        }
+    }
+
+    $data = explode(',', $_POST["data"]);
+    $data1 = $data[0];
+    $data2 = $data[1];
+    $data3 = $data[2];
+    $data4 = $data[3];
+    $data5 = $data[4];
+    $data6 = $data[5];
+    $data7 = $data[6];
+
+    $instentry = "INSERT into entries (repportid, servername, section, data1, data2, data3, data4, data5, data6, data7) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";
+    if($stmt = mysqli_prepare($link, $instentry)){
+        mysqli_stmt_bind_param($stmt, "isssssssss", $repid, $srvnm, $sct, $data1, $data2, $data3, $data4, $data5, $data6, $data7);
+        if(mysqli_stmt_execute($stmt)){
+            echo 1;
+        }else{
+            echo "noinsertentry";
+        }
+    }
+}
+if($a == "getscript" & $reqid != ""){
+    if($scrpt == "start"){
+        $script = file_get_contents("/home/maintenance/repo/dev/startup");
+        $myfile = fopen("/home/maintenance/repo/dev/startup", "r") or die("Unable to open file!");
+        echo fread($myfile,filesize("/home/maintenance/repo/dev/startup"));
+        fclose($myfile);
+    }elseif($scrpt == "mod"){
+        $script = file_get_contents("/home/maintenance/repo/dev/modules");
+        $myfile = fopen("/home/maintenance/repo/dev/modules", "r") or die("Unable to open file!");
+        echo fread($myfile,filesize("/home/maintenance/repo/dev/modules"));
+        fclose($myfile);
+    }
+}
+?>

+ 20 - 0
WebPage/config.php

@@ -0,0 +1,20 @@
+<?php
+
+define('DB_SERVER', 'dbhost');
+define('DB_USERNAME', 'dbuser');
+define('DB_PASSWORD', 'dbpasswd');
+define('DB_NAME', 'dbname');
+
+
+$link = mysqli_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_NAME);
+
+if (!$link->set_charset("utf8")) {
+    printf("Error loading character set utf8: %s\n", $link->error);
+} 
+
+if($link === false){
+    die("ERROR: Could not connect. " . mysqli_connect_error());
+}
+
+
+?>

binární
WebPage/images/U-MAAS.png


binární
WebPage/images/U-MAASbasckground.png


binární
WebPage/images/Umbrella MAAS 2.png


binární
WebPage/images/Umbrella MAAS.png


binární
WebPage/images/logofull.png


+ 12 - 0
WebPage/index.php

@@ -0,0 +1,12 @@
+<?php
+
+require_once "config.php";
+session_start();
+
+if(!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true){
+    require "place/login.php";
+}else{
+    require "place/getvalues.php";
+}
+
+?>

+ 64 - 0
WebPage/place/alerts.php

@@ -0,0 +1,64 @@
+<div class="dashcollumn">
+<?php
+
+$getckqry = mysqli_query($link, "SELECT * FROM checks WHERE id = $chk");
+while($row = mysqli_fetch_array($getckqry)){
+    $chkname = $row['name'];
+    $chksection = $row['section'];
+    $chkstring = $row['string'];
+}
+echo "<a>Rappports avec des résultats</a>";
+$getentryqry = mysqli_query($link, "SELECT * FROM entries WHERE section = '$chksection' AND (
+    data1 LIKE '%$chkstring%' OR
+    data2 LIKE '%$chkstring%' OR
+    data3 LIKE '%$chkstring%' OR
+    data4 LIKE '%$chkstring%' OR
+    data5 LIKE '%$chkstring%' OR
+    data6 LIKE '%$chkstring%' OR
+    data7 LIKE '%$chkstring%') GROUP BY repportid");
+while($row = mysqli_fetch_array($getentryqry)){
+    $getreqid = mysqli_query($link, "SELECT * FROM repports WHERE id = ".$row['repportid']);
+    while($row = mysqli_fetch_array($getreqid)){
+        $repid = $row['id'];
+        $reqid = $row['reqid'];
+        $reptime = $row['inserted'];
+    }
+    $getcltid = mysqli_query($link, "SELECT * FROM request WHERE id = $reqid");
+    while($row = mysqli_fetch_array($getcltid)){
+        $clientid = $row['clientid'];
+    }
+    $getclient = mysqli_query($link, "SELECT * FROM clients WHERE id = $clientid");
+    while($row = mysqli_fetch_array($getclient)){
+        $clientname = $row['full_name'];
+    }
+    echo "<a href='?a=ckvw&chk=$chk&repid=$repid' class='collumnbutton'>$clientname $reptime</a>";
+}
+
+?>
+</div>
+<div class="dashcollumn">
+<?php
+    if(!isset($repportid)){
+        echo "<h1>Éléments à surveiller</h1>";
+        $getcltqry = mysqli_query($link, "SELECT * FROM checks");
+        while($row = mysqli_fetch_array($getcltqry)){
+            echo "<a class='collumnbutton' href='?a=ckvw&chk=".$row['id']."'>".$row['name']."</a><br>";
+        }
+    }else{
+        echo $chkname;
+        $getresqry = mysqli_query($link, "SELECT * FROM entries WHERE section = '$chksection' AND repportid = $repportid AND (
+            data1 LIKE '%$chkstring%' OR
+            data2 LIKE '%$chkstring%' OR
+            data3 LIKE '%$chkstring%' OR
+            data4 LIKE '%$chkstring%' OR
+            data5 LIKE '%$chkstring%' OR
+            data6 LIKE '%$chkstring%' OR
+            data7 LIKE '%$chkstring%')");
+        while($row = mysqli_fetch_array($getresqry)){
+            echo "<a class='collumnbutton'>".$row['data1']." ".$row['data2']." ".$row['data3']." ".$row['data4']." ".$row['data5']." ".$row['data6']." ".$row['data7']."</a><br>";
+        }
+    }
+    
+
+?>
+</div>

+ 1 - 0
WebPage/place/bug.php

@@ -0,0 +1 @@
+test

+ 34 - 0
WebPage/place/checks.php

@@ -0,0 +1,34 @@
+<div class="launchcollumn">
+    <a>Vérifications</a><br>
+    <?php
+    
+    $getcltqry = mysqli_query($link, "select * from checks");
+    while($row = mysqli_fetch_array($getcltqry)){
+        echo "<a href='?a=cklst&chk=".$row['id']."' class='collumnbutton'>".$row['name']."</a>";
+    }
+    echo "<a href='?a=cklst&chkadd' class='button'>Ajouter</a>";
+
+    ?>
+</div>
+
+<?php
+
+if(isset($chk)){
+    echo "<div class='launchcollumn'>";
+    echo "<a>Visualiser</a>";
+    $getreqqry = mysqli_query($link, "SELECT * from checks where id = $chk");
+    while($row = mysqli_fetch_array($getreqqry)){
+        echo "<a href='?a=repports&clt=$cltid&req=".$row['id']."' class='collumnbutton'>Titre: ".$row['name']."</a>";
+        echo "<a href='?a=repports&clt=$cltid&req=".$row['id']."' class='collumnbutton'>Section: ".$row['section']."</a>";
+        echo "<a href='?a=repports&clt=$cltid&req=".$row['id']."' class='collumnbutton'>Valeur: ".$row['string']."</a>";
+    }
+    echo "</div>";
+}
+
+if(isset($_GET['chkadd'])){
+    echo "<div class='launchcollumn'>";
+    echo "<a>Ajouter une vérification</a>";
+    echo "</div>";
+}
+
+?>

+ 30 - 0
WebPage/place/clients.php

@@ -0,0 +1,30 @@
+<div class="launchcollumn">
+    <a>Clients</a><br>
+    <?php
+    
+    $getcltqry = mysqli_query($link, "select * from clients where active=1 ORDER BY full_name ASC");
+    while($row = mysqli_fetch_array($getcltqry)){
+        echo "<a href='?a=clients&clt=".$row['id']."' class='collumnbutton'>".$row['full_name']."</a>";
+    }
+
+    ?>
+</div>
+
+<?php
+
+if(isset($cltid)){
+    echo "<div class='launchcollumn'>";
+    echo "<a>Infos</a>";
+    $getreqqry = mysqli_query($link, "SELECT * from clients where id = $cltid");
+    while($row = mysqli_fetch_array($getreqqry)){
+        echo "<a class='collumnbutton'>Nom complet: ".$row['full_name']."</a>";
+        echo "<a class='collumnbutton'>Préfix: ".$row['prefix']."</a>";
+        echo "<a class='collumnbutton'>Identifiant CRM: ".$row['num']."</a>";
+    }
+    echo "<a class='button button-left'>Sauvegarder</a>";
+    echo "<a class='button button-left'>Désactiver</a>";
+    echo "</div>";
+}
+
+
+?>

+ 35 - 0
WebPage/place/dashboard.php

@@ -0,0 +1,35 @@
+<div class="dashcollumn">
+    <h1>Événements par Occurence</h1>
+    <table class="dashtable">
+    <tr>
+        <th>Source</th>
+        <th>Log</th>
+        <th>Eventid</th>
+        <th>Occurence</th>
+    </tr>
+<?php
+
+$getcltqry = mysqli_query($link, "SELECT *,COUNT(*) FROM entries WHERE section = 'eventvwr' GROUP BY data2, data3, data4 ORDER BY COUNT(*) DESC");
+while($row = mysqli_fetch_array($getcltqry)){
+    echo "<tr>";
+    echo "<th>".$row['data2']."</th>";
+    echo "<th>".$row['data3']." ".$row['data4']."</th>";
+    echo "<th>".$row['data1']."</th>";
+    echo "<th>".$row['COUNT(*)']."</th>";
+    echo "</tr>";
+}
+
+?>
+    </table>
+</div>
+<div class="dashcollumn">
+    <h1>Éléments à surveiller</h1>
+<?php
+
+$getcltqry = mysqli_query($link, "SELECT * FROM checks");
+while($row = mysqli_fetch_array($getcltqry)){
+    echo "<a class='collumnbutton' href='?a=ckvw&chk=".$row['id']."'>".$row['name']."</a><br>";
+}
+
+?>
+</div>

+ 145 - 0
WebPage/place/getvalues.php

@@ -0,0 +1,145 @@
+<?php
+
+$currentusr = $_SESSION["username"];
+$isadminqry = mysqli_query($link, "select * from users where username='".$currentusr."'");
+while($row = mysqli_fetch_array($isadminqry)){
+  $admin = $row['admin'];
+}
+
+if(isset($_GET['a'])){
+    $place = $_GET['a'];
+}
+if(isset($_GET['req'])){
+    $req = trim($_GET['req']);
+}
+if(isset($_GET['acc'])){
+    $acc = trim($_GET['acc']);
+}
+if(isset($_GET['clt'])){
+    $cltid = trim($_GET['clt']);
+}
+if(isset($_GET['rep'])){
+    $rep = trim($_GET['rep']);
+}
+if(isset($_GET['usr'])){
+    $usr = trim($_GET['usr']);
+}
+if(isset($_GET['chk'])){
+    $chk = trim($_GET['chk']);
+}
+if(isset($_GET['repid'])){
+    $repportid = trim($_GET['repid']);
+}
+if(isset($_GET['searchstring'])){
+    $searchstring = trim($_GET['searchstring']);
+}
+if(isset($_GET['dvctp'])){
+    $dvctp = trim($_GET['dvctp']);
+}
+if(isset($_GET['stpdn'])){
+    $stpdn = trim($_GET['stpdn']);
+}
+if(isset($_GET['repdn'])){
+    $repdn = trim($_GET['repdn']);
+}
+
+if($place == "logout"){
+    session_destroy();
+    header("Refresh:0");
+    exit;
+}
+
+if($_SERVER["REQUEST_METHOD"] == "POST"){
+    require "place/postactions.php";
+}
+
+if(isset($acc)){
+    if($acc == "yes"){
+        $sql = "UPDATE request SET treated_by = ?, approved = 1 WHERE id = ?";
+        if($stmt = mysqli_prepare($link, $sql)){
+            mysqli_stmt_bind_param($stmt, "si", $currentusr, $req);
+            if(mysqli_stmt_execute($stmt)){
+                header("location: ?a=launch&req=$req");
+                exit();
+            } else{
+                echo "Oops! Something went wrong. Please try again later.";
+            }
+        }
+    }elseif($acc == "cltclass"){
+        $sql = "UPDATE request SET clientid = ? WHERE id = ?";
+        if($stmt = mysqli_prepare($link, $sql)){
+            mysqli_stmt_bind_param($stmt, "ii", $cltid, $req);
+            if(mysqli_stmt_execute($stmt)){
+                header("location: ?a=launch&req=$req");
+                exit();
+            } else{
+                echo "Oops! Something went wrong. Please try again later.";
+            }
+        }
+    }elseif($acc == "reqend"){
+        $sql = "UPDATE request SET approved = 3 WHERE id = ?";
+        if($stmt = mysqli_prepare($link, $sql)){
+            mysqli_stmt_bind_param($stmt, "i", $req);
+            if(mysqli_stmt_execute($stmt)){
+                header("location: ?a=launch");
+                exit();
+            } else{
+                echo "Oops! Something went wrong. Please try again later.";
+            }
+        }
+    }
+}
+
+if(isset($stpdn)){
+    $stepqry = mysqli_query($link, "select * from repports where id='$rep'");
+    while($row = mysqli_fetch_array($stepqry)){
+        $stepsdone = $row['stepsdone'];
+    }
+    if(strpos("$stepsdone", "<$stpdn>")){
+        $stepsdone = str_replace("<$stpdn>","",$stepsdone);
+        $delstepqry = "UPDATE repports SET stepsdone = ? WHERE id = $rep";
+        if($stmt = mysqli_prepare($link, $delstepqry)){
+            mysqli_stmt_bind_param($stmt, "s", $stepsdone);
+            if(mysqli_stmt_execute($stmt)){
+                header("location: ?a=launch&acc=rapp&req=$req&rep=$rep");
+                exit();
+            }
+        }
+    }else{
+        $stepsdone = $stepsdone."<$stpdn>";
+        $addstepqry = "UPDATE repports SET stepsdone=? WHERE id=$rep";
+        if($stmt = mysqli_prepare($link, $addstepqry)){
+            mysqli_stmt_bind_param($stmt, "s", $stepsdone);
+            if(mysqli_stmt_execute($stmt)){
+                header("location: ?a=launch&acc=rapp&req=$req&rep=$rep");
+                exit();
+            }
+        }
+    }
+}
+
+if(isset($repdn)){
+    $delrepqry = "UPDATE repports SET repstat = 1 WHERE id = ?";
+    if($stmt = mysqli_prepare($link, $delrepqry)){
+        mysqli_stmt_bind_param($stmt, "i", $rep);
+        if(mysqli_stmt_execute($stmt)){
+            header("location: ?a=launch&acc=rapp&req=$req");
+            exit();
+        }
+    }
+}
+
+if($rep == "done"){
+    $finreqqry = "UPDATE request SET approved = 3 WHERE id = ?";
+    if($stmt = mysqli_prepare($link, $finreqqry)){
+        mysqli_stmt_bind_param($stmt, "i", $req);
+        if(mysqli_stmt_execute($stmt)){
+            header("location: ?a=launch");
+            exit();
+        }
+    }
+}
+
+require "place/theme.php";
+
+?>

+ 129 - 0
WebPage/place/launch.php

@@ -0,0 +1,129 @@
+<div class="launchcollumn">
+    <a>Maintenances</a><br>
+    <?php
+    $getreqqry = mysqli_query($link, "select * from request where approved!=3");
+    while($row = mysqli_fetch_array($getreqqry)){
+        echo "<a href='?a=launch&req=".$row['id']."' class='collumnbutton'>".$row['servername']." ".$row['treated_by']."</a>";
+        $approved = $row['approved'];
+        $servername = $row['servername'];
+        $treated_by = $row['treated_by'];
+        $clientid = $row['clientid'];
+    }
+    ?>
+</div>
+<?php
+
+if(isset($req)){
+    $getreqqry = mysqli_query($link, "select * from request where id = $req");
+    while($row = mysqli_fetch_array($getreqqry)){
+        $approved = $row['approved'];
+        $servername = $row['servername'];
+        $treated_by = $row['treated_by'];
+        $clientid = $row['clientid'];
+    }
+    $getcltqry = mysqli_query($link, "select * from clients where id=$clientid");
+    while($row = mysqli_fetch_array($getcltqry)){
+        $clientname = $row['full_name'];
+    }
+    echo "
+    <div class='launchcollumn'>
+    <a>Info</a><br>
+    <a>Serveur Maitre: $servername</a></br>
+    <a>Traité par: $treated_by</a></br>";
+    if($approved == 0){
+        echo "
+        <a href='?a=launch&req=$req&acc=yes' class='collumnbutton'>accepter</a>";
+    }elseif($approved == 1){
+        echo "<a>Status: Accepted</a><br>";
+        if($clientid != 0){
+            echo "<a href='?a=launch&req=$req&acc=class' class='collumnbutton'>Client: $clientname</a><br>";
+            echo "<a href='?a=launch&req=$req&acc=rapp' class='collumnbutton'>Serveurs/Équipements</a>";
+            #echo "<a href='?a=launch&req=$req&acc=reqend' class='collumnbutton'>Terminer la maintenance</a>";
+            #echo "<a href='?a=launch&req=$req&acc=reqcont' class='collumnbutton'>Continuer la maintenance</a>";
+        }else{
+            echo "<a href='?a=launch&req=$req&acc=class' class='collumnbutton'>Choisir Client</a>";
+        }
+    }else{
+        echo "<a>Status: Refusé</a><br>";
+    }
+    echo "</div>";
+}
+if(isset($acc)){
+    if($acc == "class"){
+        echo "
+        <div class='launchcollumn'>
+        <a>Choisir Client</a>";
+        $getclientqry = mysqli_query($link, "select * from clients where active = 1 ORDER BY full_name ASC");
+        while($row = mysqli_fetch_array($getclientqry)){
+            echo "<a href='?a=launch&acc=cltclass&req=$req&clt=".$row['id']."' class='collumnbutton'>".$row['full_name']."</a><br>";
+        }
+        echo "</div>";
+    }elseif($acc == "rapp"){
+        echo "
+        <div class='launchcollumn'>
+        <a>Serveurs</a><br>";
+        $getreppqry = mysqli_query($link, "select * from repports where reqid = $req AND repstat = 0");
+        while($row = mysqli_fetch_array($getreppqry)){
+            if($row['id'] == $rep){$repselect = "background-color:black;color:white";}
+            echo "<a href='?a=launch&acc=rapp&req=$req&rep=".$row['id']."' class='collumnbutton' style='$repselect'>".$row['server_name']."</a><br>";
+            $repselect = "";
+            $thereisvalue = 1;
+        }
+        echo "<a href='?a=launch&acc=rapp&req=$req&rep=new' class='collumnbutton'>Ajouter</a><br>";
+        if($thereisvalue != 1){
+            echo "<a href='?a=launch&acc=rapp&req=$req&rep=done' class='collumnbutton'>Terminer la maintenance</a><br>";
+        }
+        echo "</div>";
+    }
+}
+if(isset($rep)){
+    if($rep == "new"){
+        if(isset($dvctp)){
+            $getdevicesqry = mysqli_query($link, "select * from devicetypes where id=$dvctp");
+            while($row = mysqli_fetch_array($getdevicesqry)){
+                $devicetype = ": ".$row['name'];
+            }
+        }
+        echo "
+        <a>Nouveau Serveur/Équipement</a>
+        <div class='launchcollumn'>
+        <form action='?a=launch&acc=rapp&req=$req&rep=new&dvctp=$dvctp' method='post'>
+        <input type='text' name='name' class='input' placeholder='Nom'><input type='submit' class='button' placeholder='value'><br>
+        <div class='inputbtn'><a class='collumnbutton'>Type appareil$devicetype</a>";
+        $getdevicesqry = mysqli_query($link, "select * from devicetypes");
+        while($row = mysqli_fetch_array($getdevicesqry)){
+            echo "<span><a class='inputbtn-content' href='?a=launch&acc=rapp&req=$req&rep=new&dvctp=".$row['id']."'>".$row['name']."</a></span>";
+        }
+        echo "</div>
+        </input>
+        </form>";
+        echo "</div>";
+    }else{
+        echo "
+        <div class='launchcollumn'>
+        <a>Étapes</a>";
+        $getrepportqry = mysqli_query($link, "select * from repports where id = $rep");
+        while($row = mysqli_fetch_array($getrepportqry)){
+            $stepsdone = $row['stepsdone'];
+            $servername = $row['server_name'];
+            $devicetype = $row['devicetype'];
+        }
+        echo "<a class='collumnbutton'>".$servername."</a><br>";
+        $getstepsqry = mysqli_query($link, "select * from steps where eqqtypes LIKE '%$devicetype%'");
+        while($row = mysqli_fetch_array($getstepsqry)){
+            $rowname = $row['name'];
+            $rowid = $row['id'];
+            if(strpos("$stepsdone", "<$rowid>")){
+                echo "<div class='collumnsection'>$rowname<a href='?a=launch&acc=rapp&req=$req&rep=$rep&stpdn=$rowid' class='button-small success'>Fait ✓</a></div><br>";
+            }else{
+                echo "<div class='collumnsection'>$rowname<a href='?a=launch&acc=rapp&req=$req&rep=$rep&stpdn=$rowid' class='button-small neutral'>Fait</a></div><br>";
+                $notdone = 1;
+            }
+        }
+        if(!isset($notdone)){
+            echo "<div class='collumnsection'>Équipement terminé<a href='?a=launch&acc=rapp&req=$req&rep=$rep&repdn=1' class='button-small neutral'>Fait</a></div><br>";
+        }
+        echo "</div>";
+    }
+}
+?>

+ 118 - 0
WebPage/place/login.php

@@ -0,0 +1,118 @@
+<?php
+// Define variables and initialize with empty values
+$username = $password = "";
+$username_err = $password_err = $login_err = "";
+ 
+// Processing form data when form is submitted
+if($_SERVER["REQUEST_METHOD"] == "POST"){
+ 
+    // Check if username is empty
+    if(empty(trim($_POST["username"]))){
+        $username_err = "Please enter username.";
+    } else{
+        $username = trim($_POST["username"]);
+    }
+    
+    // Check if password is empty
+    if(empty(trim($_POST["password"]))){
+        $password_err = "Please enter your password.";
+    } else{
+        $password = trim($_POST["password"]);
+    }
+    
+    // Validate credentials
+    if(empty($username_err) && empty($password_err)){
+        // Prepare a select statement
+        $sql = "SELECT id, username, passwd FROM users WHERE username = ? and active = 1";
+        
+        if($stmt = mysqli_prepare($link, $sql)){
+            // Bind variables to the prepared statement as parameters
+            mysqli_stmt_bind_param($stmt, "s", $param_username);
+            
+            // Set parameters
+            $param_username = $username;
+            
+            // Attempt to execute the prepared statement
+            if(mysqli_stmt_execute($stmt)){
+                // Store result
+                mysqli_stmt_store_result($stmt);
+                
+                // Check if username exists, if yes then verify password
+                if(mysqli_stmt_num_rows($stmt) == 1){                    
+                    // Bind result variables
+                    mysqli_stmt_bind_result($stmt, $id, $username, $hashed_password);
+                    if(mysqli_stmt_fetch($stmt)){
+                        if(password_verify($password, $hashed_password)){
+                            // Password is correct, so start a new session
+                            session_start();
+                            
+                            // Store data in session variables
+                            $_SESSION["loggedin"] = true;
+                            $_SESSION["id"] = $id;
+                            $_SESSION["username"] = $username;                            
+                            
+                            // Redirect user to welcome page
+                            header("Refresh:0");
+                        } else{
+                            // Password is not valid, display a generic error message
+                            $login_err = "Invalid username or password.";
+                        }
+                    }
+                } else{
+                    // Username doesn't exist, display a generic error message
+                    $login_err = "Invalid username or password.";
+                }
+            } else{
+                echo "Oops! Something went wrong. Please try again later.";
+            }
+
+            // Close statement
+            mysqli_stmt_close($stmt);
+        }
+    }
+    
+    // Close connection
+    mysqli_close($link);
+}
+?>
+ 
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    <title>Connexion</title>
+    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
+    <style>
+        body{ font: 14px sans-serif; }
+        .wrapper{ width: 350px; padding: 20px; }
+    </style>
+</head>
+<body>
+    <div class="wrapper">
+        <img src="images/logofull.png" alt="Umbrella Logo" style="width: 100%;">
+        <p>Entrer votre nom d'utilisateur et mot de passe pour entrer.</p>
+
+        <?php 
+        if(!empty($login_err)){
+            echo '<div class="alert alert-danger">' . $login_err . '</div>';
+        }        
+        ?>
+
+        <form action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>" method="post">
+            <div class="form-group">
+                <label>Nom d'utilisateur</label>
+                <input type="text" name="username" class="form-control <?php echo (!empty($username_err)) ? 'is-invalid' : ''; ?>" value="<?php echo $username; ?>">
+                <span class="invalid-feedback"><?php echo $username_err; ?></span>
+            </div>    
+            <div class="form-group">
+                <label>Mot de passe</label>
+                <input type="password" name="password" class="form-control <?php echo (!empty($password_err)) ? 'is-invalid' : ''; ?>">
+                <span class="invalid-feedback"><?php echo $password_err; ?></span>
+            </div>
+            <div class="form-group">
+                <input type="submit" class="btn btn-primary" value="Connexion">
+            </div>
+        </form>
+    </div>
+</body>
+</html>

+ 20 - 0
WebPage/place/postactions.php

@@ -0,0 +1,20 @@
+<?php
+if($place == "search"){
+    $searchstring = trim($_POST["searchstring"]);
+    header("location: ?a=search&searchstring=$searchstring");
+    exit();
+}elseif($place == "launch"){
+    if(isset($dvctp)){
+        $newname = trim($_POST["name"]);
+        $addrepport = "INSERT INTO repports (reqid, server_name, devicetype) values ($req, ?, ?)";
+        if($stmt = mysqli_prepare($link, $addrepport)){
+            mysqli_stmt_bind_param($stmt, "si", $newname, $dvctp);
+            if(mysqli_stmt_execute($stmt)){
+                header("location: ?a=launch&acc=rapp&req=$req&acc=rapp");
+                exit;
+            }else{
+                echo "Oops! Something went wrong. Please try again later.";
+            }
+        }
+    }
+}

+ 227 - 0
WebPage/place/rep.php

@@ -0,0 +1,227 @@
+<?php
+
+$getcltqry = mysqli_query($link, "SELECT * from entries where repportid = $rep AND section = 'Server'");
+while($row = mysqli_fetch_array($getcltqry)){
+    $servername = $row['data1'];
+    $repdate = $row['data2'];
+}
+
+?>
+<div class="repcollumn">
+    <a class="reptitle"><?php echo $servername; ?> <?php echo $repdate; ?></a>
+
+    <a class="reptitle2">Performance</a>
+    <table class="reptable">
+        <tr>
+            <th>CPU / Utilisation</th>
+            <th>RAM / Utilisation</th>
+            <th>Disques / Espace Disponible</th>
+        </tr>
+    <?php
+    $getappqry = mysqli_query($link, "SELECT * from entries where repportid = $rep AND servername = '$servername' AND section = 'SystemInfo'");
+    while($row = mysqli_fetch_array($getappqry)){
+        echo "
+        <tr>
+            <th>".$row['data2']."</th>
+            <th>".$row['data3']."</th>
+            <th>".$row['data4']."</th>
+        </tr>
+        ";
+    }
+    ?>
+
+    <a class="reptitle2">Applications</a>
+    <table class="reptable">
+        <tr>
+            <th>Nom</th>
+            <th>Emplacement</th>
+            <th>Désinstallé</th>
+        </tr>
+    <?php
+    $getappqry = mysqli_query($link, "SELECT * from entries where repportid = $rep AND servername = '$servername' AND section = 'Apps'");
+    while($row = mysqli_fetch_array($getappqry)){
+        echo "
+        <tr>
+            <th>".$row['data1']."</th>
+            <th>".$row['data2']."</th>
+            <th>".$row['data3']."</th>
+        </tr>
+        ";
+    }
+    ?>
+    </table>
+    <a class="reptitle2">Event Log</a>
+    <table class="reptable">
+        <tr>
+            <th>Log</th>
+            <th>Sévérité</th>
+            <th>Source</th>
+            <th>Dernière Occurence</th>
+            <th>EventID</th>
+            <th>Occurence</th>
+        </tr>
+    <?php
+    $getevntqry = mysqli_query($link, "SELECT *,COUNT(*) from entries where repportid = $rep AND servername = '$servername' AND section = 'eventvwr' GROUP BY data2");
+    while($row = mysqli_fetch_array($getevntqry)){
+        $style = "";
+        $style2 = "";
+        if($row['COUNT(*)'] > 50 && $row['COUNT(*)'] < 150){
+            $style = "style='background-color:yellow;'";
+        }elseif($row['COUNT(*)'] > 149 && $row['COUNT(*)'] < 500){
+            $style = "style='background-color:red;'";
+        }elseif($row['COUNT(*)'] > 499){
+            $style = "style='background-color:darkred;'";
+            $style2 = "style='background-color:darkred;'";
+        }elseif($row['COUNT(*)'] < 5){
+            continue;
+        }
+        echo "
+        <tr>
+            <th $style2>".$row['data3']."</th>
+            <th $style2>".$row['data4']."</th>
+            <th $style2 class='tooltip'>".$row['data2']."
+                <span class='tooltiptext'>".$row['data6']."</span>
+            </th>
+            <th $style2>".$row['data5']."</th>
+            <th $style2>".$row['data1']."</th>
+            <th $style>".$row['COUNT(*)']."</th>
+        </tr>
+        ";
+    }
+    ?>
+    </table>
+    </table>
+    <a class="reptitle2">Certificats</a>
+    <table class="reptable">
+        <tr>
+            <th>Nom Commun</th>
+            <th>Expiration</th>
+            <th>Thmubprint</th>
+        </tr>
+    <?php
+    $getevntqry = mysqli_query($link, "SELECT * from entries where repportid = $rep AND servername = '$servername' AND section = 'Certificates'");
+    while($row = mysqli_fetch_array($getevntqry)){
+        echo "
+        <tr>
+            <th>".$row['data1']."</th>
+            <th>".$row['data2']."</th>
+            <th>".$row['data3']."</th>
+        </tr>
+        ";
+    }
+    echo "</table>";
+
+    $getveeamqry = mysqli_query($link, "SELECT * from entries where repportid = $rep AND servername = '$servername' AND section = 'Veeam'");
+    if (mysqli_num_rows($getveeamqry) > 0){
+        echo "<a class='reptitle2'>État Veeam</a>
+        <table class='reptable'>
+            <tr>
+                <th>Nom de la tâche</th>
+                <th>Erreurs dans le dernier mois</th>
+                <th>Avertissements dans le dernier mois</th>
+                <th>Dernière exécution</th>
+                <th>Type de repo</th>
+                <th>Dernier résultat</th>
+            </tr>";
+        while($row = mysqli_fetch_array($getveeamqry)){
+            echo "
+            <tr>
+                <th>".$row['data1']."</th>
+                <th>".$row['data2']."</th>
+                <th>".$row['data3']."</th>
+                <th>".$row['data4']."</th>
+                <th>".$row['data5']."</th>
+                <th>".$row['data6']."</th>
+            </tr>
+            ";
+        }
+        echo "</table>";
+    }
+
+    $getveeamqry = mysqli_query($link, "SELECT * from entries where repportid = $rep AND servername = '$servername' AND section = 'VMwareHosts'");
+    if (mysqli_num_rows($getveeamqry) > 0){
+        echo "<a class='reptitle2'>Hôtes VMware</a>
+        <table class='reptable'>
+            <tr>
+                <th>Nom d'hôte</th>
+                <th>Utilisation du CPU</th>
+                <th>Utilisation de la RAM</th>
+                <th>Version</th>
+            </tr>";
+        while($row = mysqli_fetch_array($getveeamqry)){
+            echo "
+            <tr>
+                <th>".$row['data1']."</th>
+                <th>".$row['data2']."</th>
+                <th>".$row['data3']."</th>
+                <th>".$row['data4']."</th>
+            </tr>
+            ";
+        }
+        echo "</table>";
+    }
+
+    $getveeamqry = mysqli_query($link, "SELECT * from entries where repportid = $rep AND servername = '$servername' AND section = 'VMwareVMs'");
+    if (mysqli_num_rows($getveeamqry) > 0){
+        echo "<a class='reptitle2'>VM sans démarrage automatique</a>
+        <table class='reptable'>
+            <tr>
+                <th>Nom</th>
+                <th>Démarrage</th>
+            </tr>";
+        while($row = mysqli_fetch_array($getveeamqry)){
+            echo "
+            <tr>
+                <th>".$row['data1']."</th>
+                <th>".$row['data2']."</th>
+            </tr>
+            ";
+        }
+        echo "</table>";
+    }
+
+    $getveeamqry = mysqli_query($link, "SELECT * from entries where repportid = $rep AND servername = '$servername' AND section = 'VMwareDatastores'");
+    if (mysqli_num_rows($getveeamqry) > 0){
+        echo "<a class='reptitle2'>Datastores VMware</a>
+        <table class='reptable'>
+            <tr>
+                <th>Nom</th>
+                <th>Espace libre</th>
+                <th>Espace total</th>
+            </tr>";
+        while($row = mysqli_fetch_array($getveeamqry)){
+            echo "
+            <tr>
+                <th>".$row['data1']."</th>
+                <th>".$row['data2']."</th>
+                <th>".$row['data3']."</th>
+            </tr>
+            ";
+        }
+        echo "</table>";
+    }
+
+    $getveeamqry = mysqli_query($link, "SELECT * from entries where repportid = $rep AND servername = '$servername' AND section = 'VMwareAlerts'");
+    if (mysqli_num_rows($getveeamqry) > 0){
+        echo "<a class='reptitle2'>Alertes VMware</a>
+        <table class='reptable'>
+            <tr>
+                <th>Titre</th>
+                <th>Description</th>
+                <th>Temps</th>
+            </tr>";
+        while($row = mysqli_fetch_array($getveeamqry)){
+            echo "
+            <tr>
+                <th>".$row['data1']."</th>
+                <th>".$row['data2']."</th>
+                <th>".$row['data3']."</th>
+            </tr>
+            ";
+        }
+        echo "</table>";
+    }
+
+    ?>
+    </table>
+</div>

+ 39 - 0
WebPage/place/repports.php

@@ -0,0 +1,39 @@
+<div class="launchcollumn">
+    <a>Clients</a><br>
+    <?php
+    
+    $getcltqry = mysqli_query($link, "select * from clients where active=1 ORDER BY full_name ASC");
+    while($row = mysqli_fetch_array($getcltqry)){
+        echo "<a href='?a=repports&clt=".$row['id']."' class='collumnbutton'>".$row['full_name']."</a>";
+    }
+
+    ?>
+</div>
+
+<?php
+
+if(isset($cltid)){
+    echo "<div class='launchcollumn'>";
+    echo "<a>Maintenances</a>";
+    $getreqqry = mysqli_query($link, "SELECT * from request where clientid = $cltid ORDER BY timestamp DESC");
+    while($row = mysqli_fetch_array($getreqqry)){
+        echo "<a href='?a=repports&clt=$cltid&req=".$row['id']."' class='collumnbutton'>".$row['timestamp']."</a>";
+    }
+    echo "</div>";
+}
+
+if(isset($req)){
+    echo "<div class='launchcollumn'>";
+    echo "<a>Rapports</a>";
+    $getrepqry = mysqli_query($link, "SELECT * from repports where reqid = $req ORDER BY inserted DESC");
+    while($row = mysqli_fetch_array($getrepqry)){
+        echo "<a href='?a=repports&clt=$cltid&req=$req&rep=".$row['id']."' class='collumnbutton'>".$row['server_name']."</a>";
+    }
+    echo "</div>";
+}
+
+if(isset($rep)){
+    require "place/rep.php";
+}
+
+?>

+ 20 - 0
WebPage/place/search.php

@@ -0,0 +1,20 @@
+<form action="?a=search" method="post">
+        <input type="text" name="searchstring" class="searchbar" placeholder="Rechercher"></input>
+        <input type="submit" class="button button-right" value="Go">
+</form>
+<?php
+
+if(isset($searchstring)){
+    $getresqry = mysqli_query($link, "SELECT * FROM entries WHERE (
+        data1 LIKE '%$searchstring%' OR
+        data2 LIKE '%$searchstring%' OR
+        data3 LIKE '%$searchstring%' OR
+        data4 LIKE '%$searchstring%' OR
+        data5 LIKE '%$searchstring%' OR
+        data6 LIKE '%$searchstring%' OR
+        data7 LIKE '%$searchstring%')");
+    while($row = mysqli_fetch_array($getresqry)){
+        echo "<a class='collumnbutton'>".$row['data1']." ".$row['data2']." ".$row['data3']." ".$row['data4']." ".$row['data5']." ".$row['data6']." ".$row['data7']."</a><br>";
+    }
+}
+?>

+ 62 - 0
WebPage/place/theme.php

@@ -0,0 +1,62 @@
+<head>
+    <link rel="stylesheet" href="style.css">
+</head>
+
+<body class="body">
+    <maincontent class="maincontent">
+        <header class="headerbox">
+            <img src="images/Umbrella MAAS 2.png" class="headerlogo">
+            <div class="toprightmenu">
+                <a href="?a=logout" class="button button-right">Logout</a>
+                <a onClick="<?php if(!isset($place)){ echo "javascript:history.go(0)"; }else{ echo "javascript:history.go(-1)"; } ?>" class="button button-right">Retour</a>
+                <a onClick="window.location.reload()" class="button button-right">Rafraichir</a>
+            </div>
+        </header>
+        <leftmenu class="leftmenubox">
+            <a href="?" class="leftmenumenu">Dashboard</a><br>
+            <a href="?a=launch" class="leftmenumenu">Exécution</a><br>
+            <a href="?a=clients" class="leftmenumenu">Clients</a><br>
+            <a href="?a=repports" class="leftmenumenu">Rapports</a><br>
+            <a href="?a=search" class="leftmenumenu">Recherche</a><br>
+            <hr>
+            <?php
+
+            if($admin == 1) {
+                echo "
+                <a href='?a=cklst' class='leftmenumenu'>Vérifications</a><br>
+                <a href='?a=users' class='leftmenumenu'>Utilisateurs</a><br>
+                ";
+            }
+
+            ?>
+        </leftmenu>
+        <info class="bottomleftbox">
+             <a href="?a=bug">Problèmes</a>
+        </info>
+        <bodycontent class="contentbox">
+            <?php
+            
+            if($place == "launch"){
+                require "place/launch.php";
+            }elseif($place == "clients"){
+                require "place/clients.php";
+            }elseif($place == "users" & $admin == 1){
+                require "place/users.php";
+            }elseif($place == "repports"){
+                require "place/repports.php";
+            }elseif($place == "cklst"){
+                require "place/checks.php";
+            }elseif($place == "ckvw"){
+                require "place/alerts.php";
+            }elseif($place == "search"){
+                require "place/search.php";
+            }elseif($place == "bug"){
+                require "place/bug.php";
+            }else{
+                require "place/dashboard.php";
+            }
+            
+            ?>
+        </bodycontent>
+    </maincontent>
+</body>

+ 31 - 0
WebPage/place/users.php

@@ -0,0 +1,31 @@
+<div class="launchcollumn">
+    <a>Utilisateurs</a><br>
+    <?php
+    
+    $getcltqry = mysqli_query($link, "select * from users where active=1 AND username != 'ittech'");
+    while($row = mysqli_fetch_array($getcltqry)){
+        echo "<a href='?a=users&usr=".$row['id']."' class='collumnbutton'>".$row['username']."</a>";
+    }
+
+    ?>
+</div>
+
+<?php
+
+if(isset($usr)){
+    echo "<div class='launchcollumn'>";
+    echo "<a>Infos</a>";
+    $getreqqry = mysqli_query($link, "SELECT * from users where id = $usr");
+    while($row = mysqli_fetch_array($getreqqry)){
+        if($row['admin'] == 1){$admin = "Oui";}else{$admin = "Non";}
+        echo "<a class='collumnbutton'>Nom d'utilisateur: ".$row['username']."</a>";
+        echo "<a class='collumnbutton'>Admin: ".$admin."</a>";
+    }
+    echo "<a class='button button-left'>Reset MDP</a>";
+    echo "<a class='button button-left'>Désactiver</a>";
+    echo "<a class='button button-left'>Admin</a>";
+    echo "</div>";
+}
+
+
+?>

+ 281 - 0
WebPage/style.css

@@ -0,0 +1,281 @@
+.body{
+    width:100%;
+    margin-left:0;
+    margin-top:0;
+}
+.maincontent{
+    width:100%;
+    height:100%;
+}
+.headerbox{
+    position: fixed;
+    margin-left:5;
+    margin-right:5;
+    margin-top:5;
+    height:80px;
+    width:100%;
+    border-bottom: 1px solid black;
+    background-color:white;
+}
+.leftmenubox{
+    position:fixed;
+    margin-top:90px;
+    margin-left:5;
+    float:left;
+    width:10%;
+    height:88%;
+    background-color:#0e1824;
+    color:white;
+    text-align:center;
+}
+.bottomleftbox{
+    position:fixed;
+    left:5;
+    bottom:5;
+    width:10%;
+    height:50px;
+    background-color:red;
+    text-align:center;
+    border-radius: .25rem;
+    vertical-align: middle;
+    font-weight: 400;
+
+}
+.headerlogo{
+    width:270px;
+}
+.button{
+    display:inline-block;
+    position:relative;
+    width:100px;
+    height:auto;
+    background-color:#0e1824;
+    color:white;
+    text-align:center;
+    vertical-align: middle;
+    font-weight: 400;
+    border-radius: .25rem;
+    padding: .65rem .75rem;
+    text-decoration:none;
+    cursor:pointer;
+}
+.button:hover{
+    background-color:black;
+    text-decoration:none;
+}
+.button-right{
+    float:right;
+    margin-left:5;
+}
+.button-left{
+    margin-right:5;
+}
+.toprightmenu{
+    position: fixed;
+    top:20;
+    right:5;
+}
+.leftmenumenu{
+    color:white;
+    text-decoration:none;
+    display:inline-block;
+    padding-top:25;
+    padding-bottom:10;
+}
+.leftmenumenu:hover{
+    color:grey;
+}
+.contentbox{
+    display:inline-block;
+    margin-left:11%;
+    width:88.5%;
+    padding-top:90;
+}
+.launchcollumn{
+    display:block;
+    float:left;
+    width:24%;
+    border-right: 10px solid white;
+    height:90%;
+    overflow-y:auto;
+}
+.collumnbutton{
+    display:inline-block;
+    width:100%;
+    min-height:35px;
+    border-bottom: 1px solid black;
+    text-decoration:none;
+    text-align:left;
+    vertical-align: middle;
+    padding-top:20;
+    color: black;
+}
+.collumnbutton:hover{
+    background-color: #0e1824;
+    color: white;
+}
+.repcollumn{
+    position:fixed;
+    margin-left:auto;
+    margin-right:auto;
+    width:88%;
+    height:85%;
+    overflow-y:auto;
+    overflow-x:hidden;
+    background-color:#a8a8a8;
+    border-radius: .25rem;
+    border: 5px solid black;
+}
+.reptitle{
+    display:block;
+    text-align:center;
+    border-radius: .25rem;
+    border: 3px solid black;
+    width:50%;
+    padding: .375rem .75rem;
+    font-size: 35;
+    margin-top: 15px;
+    margin-left: auto;
+    margin-right: auto;
+    color:black;
+}
+.reptitle2{
+    display:block;
+    text-align:center;
+    border-radius: .25rem;
+    border: 3px solid black;
+    width:25%;
+    padding: .375rem .75rem;
+    font-size: 25;
+    font-weight:700;
+    margin-top: 15px;
+    margin-left: auto;
+    margin-right: auto;
+    color:black;
+}
+.reptable{
+    width:90%;
+    margin-top:15px;
+    margin-left: auto;
+    margin-right: auto;
+    border: 3px solid black;
+    font-size:25;
+    border-collapse: collapse;
+    color:black;
+}
+.td, th{
+    border: 3px solid black;
+}
+.dashcollumn{
+    display:block;
+    float:left;
+    width:48%;
+    border-right: 10px solid white;
+    height:90%;
+    overflow-y:auto;
+}
+.dashtable{
+    width:90%;
+    margin-top:15px;
+    margin-left: auto;
+    margin-right: auto;
+    border: 1px solid #bdbdbd;;
+    border-collapse: collapse;
+    color:black;
+}
+.tooltip {
+    position: relative;
+  }
+.tooltip .tooltiptext {
+    visibility: hidden;
+    background-color: black;
+    color: white;
+    text-align: center;
+    border-radius: 6px;
+    padding: 5px 0;
+    position: absolute;
+    z-index: 1;
+}
+.tooltip:hover .tooltiptext {
+    visibility: visible;
+    width: 400px;
+    height:auto;
+}
+.searchbar {
+    display:block;
+    margin-left:auto;
+    margin-right:auto;
+    text-align:center;
+    border-radius: .25rem;
+    border: 3px solid black;
+    width:50%;
+    padding: .375rem .75rem;
+
+}
+.button-small{
+    width:75px;
+    color:white;
+    text-align:center;
+    font-weight: 200;
+    border-radius: .25rem;
+    padding: .30rem .25rem;
+    text-decoration:none;
+    cursor:pointer;
+    float: right;
+}
+.neutral{
+    background-color:#1a29a1;
+}
+.success{
+    background-color:#058b00;
+}
+.button-small:hover{
+    background-color:black;
+    text-decoration:none;
+}
+.collumnsection{
+    display:inline-block;
+    min-height:35px;
+    border-bottom: 1px solid black;
+    width: 100%;
+    text-decoration:none;
+    text-align:left;
+    vertical-align: middle;
+    padding-top:20;
+    color: black;
+}
+.input{
+    margin-top:10px;
+    width:75%;
+    height:40px;
+    border: 3px black solid;
+    border-radius: .5rem;
+}
+.inputbtn{
+    display: inline-block;
+    min-height:35px;
+    vertical-align:middle;
+    height:40px;
+    width:100%
+}
+.inputbtn-content {
+    display:none;
+    margin-left:5px;
+    margin-top:5px;
+    min-width:75px;
+    background-color:#058b00;
+    color:white;
+    text-align:center;
+    font-weight: 200;
+    border-radius: .25rem;
+    padding: .30rem .25rem;
+    text-decoration:none;
+    cursor:pointer;
+}
+.inputbtn:hover .inputbtn-content {
+    display: inline-block;
+}
+.inputbtn:hover .inputbtn-content:hover {
+    background-color:#0e1824;
+    color:white;
+}