forked from server/landingpage
extras update
This commit is contained in:
parent
0d1ba93227
commit
aa46fd8a2c
@ -1,47 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Mitglieder der Fachschaft <?php echo $fachschaft; ?> </title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
|
||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<h1>Mitglieder der Fachschaft <?php echo $fachschaft; ?> - Stand <?php
|
||||
echo date(DATE_RFC822)
|
||||
?></h1>
|
||||
<table>
|
||||
<tr><th>Realer Name</th><th>Username</th><th>Email</th><th>Handy</th><th>Festnetz</th><th>ICQ</th><th>Geburtstag</th><th>Amt, Schlüssel</th></tr>
|
||||
<?php
|
||||
include 'include.php';
|
||||
|
||||
$abfrage = "SELECT u.username, u.email, u.userTitle, v.userOption45, v.userOption46, v.userOption47, v.userOption28, v.userOption12, v.userOption15, v.userOption53
|
||||
FROM wcf1_user AS u, wcf1_user_option_value AS v
|
||||
WHERE u.userID = v.userID AND u.userTitle LIKE '%$fachschaft%' AND not u.usertitle LIKE '%ex-$fachschaft%' AND not u.usertitle LIKE '%$fachschaft-extern%'
|
||||
ORDER BY v.userOption47";
|
||||
$ergebnis = mysql_query($abfrage);
|
||||
|
||||
while($data = mysql_fetch_array($ergebnis)){
|
||||
echo "<tr>";
|
||||
echo "<td>".$data['userOption47']."</td>";
|
||||
echo "<td>".$data['username']."</td>";
|
||||
echo "<td>".$data['email']."</td>";
|
||||
echo "<td>".$data['userOption46']."</td>";
|
||||
echo "<td>".$data['userOption45']."</td>";
|
||||
echo "<td>".$data['userOption28']."</td>";
|
||||
echo "<td>".$data['userOption12']."</td>";
|
||||
echo "<td>".$data['userOption15'];
|
||||
if ($data['userOption53'] == "1" || $data['userOption53'] == "Ja") {
|
||||
echo ", Schlüsselbesitzer";
|
||||
}
|
||||
else {echo "";
|
||||
}
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
|
||||
mysql_close($con);
|
||||
|
||||
?>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
4
extras/include.php
Normal file → Executable file
4
extras/include.php
Normal file → Executable file
@ -1,7 +1,5 @@
|
||||
<?php
|
||||
header('Content-Type: text/html; charset=iso-8859-1');
|
||||
|
||||
$mysqli = new mysqli("localhost","extras","extrauser","forum");
|
||||
$mysqli = new mysqli("dbboardold3","board","board","board");
|
||||
if ($mysqli->connect_errno){
|
||||
echo "Error: Failed to make a MySQL connection: \n";
|
||||
echo "Errno: " . $mysqli->connect_errno . "\n";
|
||||
|
||||
0
extras/keys.css
Normal file → Executable file
0
extras/keys.css
Normal file → Executable file
2
extras/list.php
Normal file → Executable file
2
extras/list.php
Normal file → Executable file
@ -46,7 +46,7 @@ while($data = $ergebnis->fetch_assoc()){
|
||||
echo "</tr>";
|
||||
}
|
||||
|
||||
$mysqli->free();
|
||||
#$mysqli->free();
|
||||
$mysqli->close();
|
||||
|
||||
?>
|
||||
|
||||
@ -1,6 +0,0 @@
|
||||
<?php
|
||||
header('Content-Type: text/html; charset=iso-8859-1');
|
||||
|
||||
$con = mysql_connect("localhost","extras","extrauser");
|
||||
mysql_select_db("forum", $con);
|
||||
?>
|
||||
@ -1,50 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Mitglieder der Fachschaft <?php echo $fachschaft; ?> </title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
|
||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<h1>Mitglieder der Fachschaft <?php echo $fachschaft; ?> - Stand <?php
|
||||
echo date(DATE_RFC822)
|
||||
?></h1>
|
||||
<table>
|
||||
<tr><th>Realer Name</th><th>Username</th><th>Email</th><th>Handy</th><th>Festnetz</th><th>ICQ</th><th>Geburtstag</th><th>Amt, Schlüssel</th></tr>
|
||||
<?php
|
||||
include 'include.php';
|
||||
|
||||
$abfrage = "SELECT u.username, u.email, u.userTitle, v.userOption45, v.userOption46, v.userOption47, v.userOption28, v.userOption12, v.userOption15, v.userOption53
|
||||
FROM wcf1_group AS g
|
||||
INNER JOIN wcf1_user_to_groups AS ug ON g.groupID = ug.groupID
|
||||
INNER JOIN wcf1_user AS u ON u.userID = ug.userID
|
||||
INNER JOIN wcf1_user_option_value AS v ON u.userID = v.userID
|
||||
WHERE g.groupName ='$fachschaft'
|
||||
ORDER BY v.userOption47";
|
||||
$ergebnis = mysql_query($abfrage);
|
||||
|
||||
while($data = mysql_fetch_array($ergebnis)){
|
||||
echo "<tr>";
|
||||
echo "<td>".$data['userOption47']."</td>";
|
||||
echo "<td>".$data['username']."</td>";
|
||||
echo "<td>".$data['email']."</td>";
|
||||
echo "<td>".$data['userOption46']."</td>";
|
||||
echo "<td>".$data['userOption45']."</td>";
|
||||
echo "<td>".$data['userOption28']."</td>";
|
||||
echo "<td>".$data['userOption12']."</td>";
|
||||
echo "<td>".$data['userOption15'];
|
||||
if ($data['userOption53'] == "1" || $data['userOption53'] == "Ja") {
|
||||
echo ", Schlüsselbesitzer";
|
||||
}
|
||||
else {echo "";
|
||||
}
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
|
||||
mysql_close($con);
|
||||
|
||||
?>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,4 +0,0 @@
|
||||
<?php
|
||||
$fachschaft = "SOWI";
|
||||
require_once 'list.php';
|
||||
?>
|
||||
@ -1,37 +0,0 @@
|
||||
* {
|
||||
font-family: Trebuchet MS;
|
||||
font-size:10pt;
|
||||
}
|
||||
h1 {
|
||||
font-size:1.2em;
|
||||
text-align:center;
|
||||
}
|
||||
p {
|
||||
font-size: 1em;
|
||||
margin-left:13px;
|
||||
}
|
||||
ul,ol {
|
||||
font-size: 1em;
|
||||
}
|
||||
ul.li {
|
||||
list-style-type:square;
|
||||
}
|
||||
a {
|
||||
text-decoration:none;
|
||||
color:#124AA8;
|
||||
}
|
||||
a:hover {
|
||||
background: #FFFDD5;
|
||||
text-decoration:underline;
|
||||
color: #ff9934
|
||||
}
|
||||
table {
|
||||
border-collapse:collapse;
|
||||
width:100%;
|
||||
}
|
||||
table,th,td {
|
||||
border:1px solid black;
|
||||
font-size: 1.2em;
|
||||
padding: 1px 4px;
|
||||
}
|
||||
|
||||
@ -1,4 +0,0 @@
|
||||
<?php
|
||||
$fachschaft = "WIAI";
|
||||
require_once 'list.php';
|
||||
?>
|
||||
0
extras/sowi.php
Normal file → Executable file
0
extras/sowi.php
Normal file → Executable file
0
extras/sowikeys.php
Normal file → Executable file
0
extras/sowikeys.php
Normal file → Executable file
0
extras/sowitasks.php
Normal file → Executable file
0
extras/sowitasks.php
Normal file → Executable file
0
extras/style.css
Normal file → Executable file
0
extras/style.css
Normal file → Executable file
0
extras/tasks.css
Normal file → Executable file
0
extras/tasks.css
Normal file → Executable file
0
extras/tasks.php
Normal file → Executable file
0
extras/tasks.php
Normal file → Executable file
0
extras/wiai.php
Normal file → Executable file
0
extras/wiai.php
Normal file → Executable file
23
extras/wiaikeys.php
Normal file → Executable file
23
extras/wiaikeys.php
Normal file → Executable file
@ -7,20 +7,31 @@
|
||||
</head>
|
||||
<body>
|
||||
<h1>Schlüsselliste der Fachschaft WIAI - Stand <?php
|
||||
echo date(DATE_RFC822)
|
||||
#echo date(DATE_RFC822)
|
||||
?></h1>
|
||||
<table>
|
||||
<tr><th>Name</th><th>EXEK MU15</th><th>VMU1A</th><th>395</th></tr>
|
||||
<?php
|
||||
include 'include.php';
|
||||
|
||||
$abfrage = "SELECT v.userOption47, v.userOption53
|
||||
FROM wcf1_user AS u, wcf1_user_option_value AS v
|
||||
WHERE u.userID = v.userID AND u.userTitle LIKE '%WIAI%' AND not u.usertitle LIKE '%ex-WIAI%' AND not v.userOption53 LIKE 0 AND not v.userOption53 LIKE '%Nein%' AND not u.usertitle LIKE '%WIAI-extern%'
|
||||
ORDER BY v.userOption47";
|
||||
#$abfrage = "SELECT v.userOption47, v.userOption53
|
||||
# FROM wcf1_user AS u, wcf1_user_option_value AS v
|
||||
# WHERE u.userID = v.userID AND u.userTitle LIKE '%WIAI%' AND not u.usertitle LIKE '%ex-WIAI%' AND not v.userOption53 LIKE 0 AND not v.userOption53 LIKE '%Nein%' AND not u.usertitle LIKE '%WIAI-extern%'
|
||||
# ORDER BY v.userOption47";
|
||||
|
||||
$abfrage = "SELECT u.username, u.email, u.userTitle, v.userOption45, v.userOption46, v.userOption47, v.userOption28, v.userOption12, v.userOption15, v.userOption53
|
||||
FROM wcf1_group AS g
|
||||
INNER JOIN wcf1_user_to_groups AS ug ON g.groupID = ug.groupID
|
||||
INNER JOIN wcf1_user AS u ON u.userID = ug.userID
|
||||
INNER JOIN wcf1_user_option_value AS v ON u.userID = v.userID
|
||||
WHERE g.groupName ='WIAI'
|
||||
ORDER BY v.userOption47";
|
||||
$ergebnis = $mysqli->query($abfrage);
|
||||
|
||||
while($data = $ergebnis->fetch_assoc()){
|
||||
if(!($data['userOption53'] == "1" || $data['userOption53'] == "Ja")) {
|
||||
continue;
|
||||
}
|
||||
echo "<tr>";
|
||||
echo "<td>".$data['userOption47']."</td>";
|
||||
echo "<td> X </td>";
|
||||
@ -29,7 +40,7 @@ while($data = $ergebnis->fetch_assoc()){
|
||||
echo "</tr>";
|
||||
}
|
||||
|
||||
$mysqli->free();
|
||||
#$mysqli->free();
|
||||
$mysqli->close();
|
||||
|
||||
?>
|
||||
|
||||
0
extras/wiaitasks.php
Normal file → Executable file
0
extras/wiaitasks.php
Normal file → Executable file
Loading…
x
Reference in New Issue
Block a user