Commit 5cf33059 authored by Bc. Matúš Bagoňa's avatar Bc. Matúš Bagoňa
Browse files

Odchod o...

parent 89c61f4b
Pipeline #14666 passed with stage
in 1 minute and 16 seconds
......@@ -39,48 +39,67 @@ if (curl_errno($ch)) {
$first_row = array();
$time_to_leave = date("h:i",strtotime($sxml->body->form->div[2]->div[1]->div[0]->div[0]->div[1]->div[1]->div->div->table->tr[2]->td[0]) - time() );
array_push($first_row, $time_to_leave);
foreach ($sxml->body->form->div[2]->div[1]->div[0]->div[0]->div[1]->div[1]->div->div->table->tr[2]->td as $item) {
array_push($first_row, $item);
}
$second_row = array();
$time_to_leave = date("h:i",strtotime($sxml->body->form->div[2]->div[1]->div[0]->div[0]->div[1]->div[1]->div->div->table->tr[3]->td[0]) - time() );
array_push($second_row, $time_to_leave);
foreach ($sxml->body->form->div[2]->div[1]->div[0]->div[0]->div[1]->div[1]->div->div->table->tr[3]->td as $item) {
array_push($second_row, $item);
}
$third_row = array();
$time_to_leave = date("h:i",strtotime($sxml->body->form->div[2]->div[1]->div[0]->div[0]->div[1]->div[1]->div->div->table->tr[4]->td[0]) - time() );
array_push($third_row, $time_to_leave);
foreach ($sxml->body->form->div[2]->div[1]->div[0]->div[0]->div[1]->div[1]->div->div->table->tr[4]->td as $item) {
array_push($third_row, $item);
}
$fourth_row = array();
$time_to_leave = date("h:i",strtotime($sxml->body->form->div[2]->div[1]->div[0]->div[0]->div[1]->div[1]->div->div->table->tr[5]->td[0]) - time() );
array_push($fourth_row, $time_to_leave);
foreach ($sxml->body->form->div[2]->div[1]->div[0]->div[0]->div[1]->div[1]->div->div->table->tr[5]->td as $item) {
array_push($fourth_row, $item);
}
$fifth_row = array();
$time_to_leave = date("h:i",strtotime($sxml->body->form->div[2]->div[1]->div[0]->div[0]->div[1]->div[1]->div->div->table->tr[6]->td[0]) - time() );
array_push($fifth_row, $time_to_leave);
foreach ($sxml->body->form->div[2]->div[1]->div[0]->div[0]->div[1]->div[1]->div->div->table->tr[6]->td as $item) {
array_push($fifth_row, $item);
}
$sixth_row = array();
$time_to_leave = date("h:i",strtotime($sxml->body->form->div[2]->div[1]->div[0]->div[0]->div[1]->div[1]->div->div->table->tr[7]->td[0]) - time() );
array_push($sixth_row, $time_to_leave);
foreach ($sxml->body->form->div[2]->div[1]->div[0]->div[0]->div[1]->div[1]->div->div->table->tr[7]->td as $item) {
array_push($sixth_row, $item);
}
$seventh_row = array();
$time_to_leave = date("h:i",strtotime($sxml->body->form->div[2]->div[1]->div[0]->div[0]->div[1]->div[1]->div->div->table->tr[8]->td[0]) - time() );
array_push($seventh_row, $time_to_leave);
foreach ($sxml->body->form->div[2]->div[1]->div[0]->div[0]->div[1]->div[1]->div->div->table->tr[8]->td as $item) {
array_push($seventh_row, $item);
}
$eighth_row = array();
$time_to_leave = date("h:i",strtotime($sxml->body->form->div[2]->div[1]->div[0]->div[0]->div[1]->div[1]->div->div->table->tr[9]->td[0]) - time() );
array_push($eighth_row, $time_to_leave);
foreach ($sxml->body->form->div[2]->div[1]->div[0]->div[0]->div[1]->div[1]->div->div->table->tr[9]->td as $item) {
array_push($eighth_row, $item);
}
$nineth_row = array();
$ninth_row = array();
$time_to_leave = date("h:i",strtotime($sxml->body->form->div[2]->div[1]->div[0]->div[0]->div[1]->div[1]->div->div->table->tr[10]->td[0]) - time() );
array_push($ninth_row, $time_to_leave);
foreach ($sxml->body->form->div[2]->div[1]->div[0]->div[0]->div[1]->div[1]->div->div->table->tr[10]->td as $item) {
array_push($nineth_row, $item);
array_push($ninth_row, $item);
}
......@@ -139,6 +158,7 @@ $time_leaving = 20;
<table class="responstable">
<thead>
<tr>
<th>Odchod o</th>
<th>Odchod</th>
<th>Kategória</th>
<th>Číslo</th>
......@@ -234,7 +254,7 @@ $time_leaving = 20;
</tr>
<tr>
<?php
foreach ($nineth_row as $item) {
foreach ($ninth_row as $item) {
echo '<td>' . $item . '</td>';
}
?>
......
......@@ -108,7 +108,7 @@ h3 {
h3 span{
font-family: Verdana;
font-weight: normal;
color: #167F92;
color: #005c94;
float: right;
margin-right: 5px;
}
\ No newline at end of file
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