Commit 2705536d authored by Thomas Zeitlhofer's avatar Thomas Zeitlhofer
Browse files

Commit 03: Konfiguration Apache + Start CGI-Scripts

parent 26c8b8c0
#!"C:\xampp\perl\bin\perl.exe"
print "Content-Type: text/html\n\n";
print "Calculate Matrices - DONE";
#!"C:\xampp\perl\bin\perl.exe"
print "Content-Type: text/html\n\n";
print "Delete Matrix - DONE";
#!"C:\xampp\perl\bin\perl.exe"
print "Content-Type: text/html\n\n";
print "Generate Matrix - DONE";
#!"C:\xampp\perl\bin\perl.exe"
print "Content-Type: text/html\n\n";
print "List Matrices - DONE";
#!"C:\xampp\perl\bin\perl.exe"
print "Content-Type: text/html\n\n";
print "Show Matrices - DONE";
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<title>Matrix Vergleich</title>
</head>
<nav class="navbar navbar-dark bg-dark">
<a class="navbar-brand" href="#">
Matrix Calculator
</a>
</nav>
<body>
<div class = "container">
<div class = "row">
<div class = "col-5">
<h3>Multiply two Matrices</h3>
<form action="/cgi-bin/calculate.cgi" method="post">
<label for="variable1">ID for Matrix 1:</label>
<input type="text" id="variable1" class="form-control" name="multi1" value="Json/99.json" required>
<label for="variable2">ID for Matrix 2:</label>
<input type="text" id="variable2" class="form-control" name="multi2" value="Json/1.json" required>
<label for="result1">ID for Result Matrix:</label>
<input type="text" id="result1" class="form-control" name="result1" value="Json/21.json" required>
<button type="submit" class="btn btn-success">
Multiply matrix by ID
</button>
</form>
</div>
<div class = "col-5">
<h3>Generate a Matrix</h3>
<form action="/cgi-bin/generate.cgi" method="post">
<input type="text" class="form-control" name="dimension" value="1000" required>
<button type="submit" class="btn btn-primary">
generate matrix
</button>
</form>
</div>
<div class = "col-5">
<h3>Show Matrix</h3>
<form action="/cgi-bin/show.cgi" method="get">
<button type="submit" class="btn btn-primary">
render matrix
</button>
</form>
</div>
<div class = "col-5">
<h3>Delete Matrix</h3>
<form action="/cgi-bin/delete.cgi" method="get" color="red">
<button type="submit" class="btn btn-primary">
delete matrix
</button>
</form>
</div>
<div class = "col-5">
<h3>List all Matrices</h3>
<form action="/cgi-bin/list.cgi" method="get">
<!-- <input type="text" class="form-control" name="dimension" value="1000" required>-->
<button type="submit" class="btn btn-success">
list matrices
</button>
</form>
</div>
</div>
</div>
<br>
<a href="localhost:80/index.html">Back to Start</a></body>
</body>
</html>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment