etwas weiter verfeinert
This commit is contained in:
parent
b5b623afcb
commit
1e38404160
@ -16,12 +16,12 @@
|
||||
$sql = "SELECT * FROM employee ORDER BY id";
|
||||
$result = mysqli_query($con, $sql);
|
||||
|
||||
echo "<ons-row>";
|
||||
echo "<ons-list-item><ons-row>";
|
||||
echo "<ons-col>Id</ons-col><ons-col>First name</ons-col><ons-col>Last name</ons-col><ons-col>Function</ons-col><ons-col>Auth</ons-col><ons-col>E-Mail</ons-col><ons-col>Phone</ons-col><ons-col>Mobile</ons-col>";
|
||||
echo "</ons-row>" . PHP_EOL;
|
||||
echo "</ons-row></ons-list-item>" . PHP_EOL;
|
||||
|
||||
while($row = mysqli_fetch_array($result)) {
|
||||
echo "<ons-row>";
|
||||
echo "<ons-list-item><ons-row>";
|
||||
echo "<ons-col>" . $row['id'] . "</ons-col>" . PHP_EOL;
|
||||
echo "<ons-col>" . $row['first_name'] . "</ons-col>" . PHP_EOL;
|
||||
echo "<ons-col>" . $row['last_name'] . "</ons-col>" . PHP_EOL;
|
||||
@ -30,7 +30,7 @@
|
||||
echo "<ons-col>" . $row['email'] . "</ons-col>" . PHP_EOL;
|
||||
echo "<ons-col>" . $row['phone'] . "</ons-col>" . PHP_EOL;
|
||||
echo "<ons-col>" . $row['mobile'] . "</ons-col>" . PHP_EOL;
|
||||
echo "</ons-row>";
|
||||
echo "</ons-row></ons-list-item>";
|
||||
}
|
||||
|
||||
mysqli_close($con);
|
||||
|
||||
@ -27,6 +27,10 @@
|
||||
xmlhttp.send();
|
||||
}
|
||||
|
||||
function addEmployee() {
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
@ -34,11 +38,17 @@
|
||||
<ons-toolbar id="home-toolbar">
|
||||
<ons-icon icon="ion-navicon, material:md-menu"></ons-icon>
|
||||
<div class="center">Home</div>
|
||||
<div class="right">
|
||||
<ons-toolbar-button icon="plus" onclick="addEmployee()"></ons-toolbar-button>
|
||||
</div>
|
||||
</ons-toolbar>
|
||||
Hallo wach
|
||||
<ons-button onclick="alert('clickerick a ding dong')">Click this</ons-button>
|
||||
<ons-button onclick="loadData()">Load data</ons-button>
|
||||
<div id="employeeList"><b>list of employees will be loaded here</b></div>
|
||||
<ons-list>
|
||||
<ons-list-header>Employees</ons-list-header>
|
||||
<div id="employeeList"><b>list of employees will be loaded here</b></div>
|
||||
</ons-list>
|
||||
</ons-page>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in New Issue
Block a user