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

odchod o, zvyraznenie - bug fixes

parent c4660a0c
Pipeline #14704 passed with stage
in 1 minute and 1 second
......@@ -3,6 +3,7 @@
<component name="ChangeListManager">
<list default="true" id="f83d2c2f-cc5b-4216-85fb-0f5aa406836d" name="Default" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
<change beforePath="$PROJECT_DIR$/src/index.php" afterPath="$PROJECT_DIR$/src/index.php" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="TRACKING_ENABLED" value="true" />
......@@ -12,50 +13,22 @@
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="FileEditorManager">
<leaf>
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file leaf-file-name="index.php" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/src/index.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="459">
<caret line="119" column="9" lean-forward="false" selection-start-line="119" selection-start-column="9" selection-end-line="119" selection-end-column="9" />
<folding>
<marker date="1523787232037" expanded="true" signature="3992:4029" ph="..." />
<marker date="1523787232037" expanded="true" signature="4424:4498" ph="..." />
<marker date="1523787232037" expanded="true" signature="4424:4554" ph="..." />
<marker date="1523787232037" expanded="true" signature="4773:4844" ph="..." />
<marker date="1523787232037" expanded="true" signature="4773:4900" ph="..." />
<marker date="1523787232037" expanded="true" signature="4909:4982" ph="..." />
<marker date="1523787232037" expanded="true" signature="4909:5038" ph="..." />
<marker date="1523787232037" expanded="true" signature="5047:5119" ph="..." />
<marker date="1523787232037" expanded="true" signature="5047:5175" ph="..." />
<marker date="1523787232037" expanded="true" signature="5184:5256" ph="..." />
<marker date="1523787232037" expanded="true" signature="5184:5312" ph="..." />
<marker date="1523787232037" expanded="true" signature="5321:5395" ph="..." />
<marker date="1523787232037" expanded="true" signature="5321:5451" ph="..." />
<marker date="1523787232037" expanded="true" signature="5460:5533" ph="..." />
<marker date="1523787232037" expanded="true" signature="5460:5589" ph="..." />
<marker date="1523787232037" expanded="true" signature="5598:5671" ph="..." />
<marker date="1523787232037" expanded="true" signature="5598:5727" ph="..." />
</folding>
</state>
</provider>
</entry>
</file>
<file leaf-file-name="style.css" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/style.css">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="691">
<caret line="95" column="22" lean-forward="false" selection-start-line="95" selection-start-column="22" selection-end-line="95" selection-end-column="22" />
<state relative-caret-position="522">
<caret line="124" column="17" lean-forward="false" selection-start-line="124" selection-start-column="17" selection-end-line="124" selection-end-column="17" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="style.css" pinned="false" current-in-tab="false">
<entry file="file://$USER_HOME$/AppData/Local/Temp/Temp1_responstable-2-0-a-responsive-table-solution.zip/css/style.css">
<entry file="file://$PROJECT_DIR$/src/style.css">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="153">
<caret line="9" column="0" lean-forward="false" selection-start-line="9" selection-start-column="0" selection-end-line="92" selection-end-column="1" />
<state relative-caret-position="1360">
<caret line="80" column="21" lean-forward="false" selection-start-line="80" selection-start-column="21" selection-end-line="80" selection-end-column="21" />
<folding />
</state>
</provider>
......@@ -66,7 +39,7 @@
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
<state split_layout="SPLIT">
<first_editor relative-caret-position="136">
<caret line="8" column="0" lean-forward="true" selection-start-line="8" selection-start-column="0" selection-end-line="8" selection-end-column="0" />
<caret line="8" column="0" lean-forward="false" selection-start-line="8" selection-start-column="0" selection-end-line="8" selection-end-column="0" />
<folding />
</first_editor>
<second_editor />
......@@ -106,11 +79,11 @@
<sorting>DEFINITION_ORDER</sorting>
</component>
<component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" interpreter_name="PHP" />
<component name="ProjectFrameBounds" extendedState="7">
<option name="x" value="260" />
<option name="y" value="20" />
<option name="width" value="1400" />
<option name="height" value="1000" />
<component name="ProjectFrameBounds" extendedState="6">
<option name="x" value="1912" />
<option name="y" value="-8" />
<option name="width" value="1936" />
<option name="height" value="1096" />
</component>
<component name="ProjectLevelVcsManager">
<ConfirmationsSetting value="1" id="Add" />
......@@ -130,6 +103,8 @@
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="Scratches" />
<pane id="Scope" />
<pane id="ProjectPane">
<subPane>
<expand>
......@@ -146,8 +121,6 @@
<select />
</subPane>
</pane>
<pane id="Scratches" />
<pane id="Scope" />
</panes>
</component>
<component name="PropertiesComponent">
......@@ -182,34 +155,35 @@
<option name="presentableId" value="Default" />
<updated>1523092902358</updated>
<workItem from="1523092903491" duration="14931000" />
<workItem from="1526846256531" duration="1949000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="14931000" />
<option name="totallyTimeSpent" value="17815000" />
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1936" height="1056" extended-state="7" />
<frame x="1912" y="-8" width="1936" height="1096" extended-state="6" />
<editor active="true" />
<layout>
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.17857143" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.18017058" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
<window_info id="Docker" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="PHP-CGI Server" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Docker" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="PHP-CGI Server" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
</layout>
</component>
......@@ -224,18 +198,34 @@
<watches-manager />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/src/index.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/style.css">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1360">
<caret line="80" column="21" lean-forward="true" selection-start-line="80" selection-start-column="21" selection-end-line="80" selection-end-column="21" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/README.md">
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
<state split_layout="SPLIT">
<first_editor relative-caret-position="136">
<caret line="8" column="0" lean-forward="true" selection-start-line="8" selection-start-column="0" selection-end-line="8" selection-end-column="0" />
<caret line="8" column="0" lean-forward="false" selection-start-line="8" selection-start-column="0" selection-end-line="8" selection-end-column="0" />
<folding />
</first_editor>
<second_editor />
</state>
</provider>
</entry>
<entry file="file://$USER_HOME$/AppData/Local/Temp/Temp1_Table_Fixed_Header.zip/Table_Fixed_Header/css/main.css">
<entry file="file://$PROJECT_DIR$/src/index.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
......@@ -243,45 +233,81 @@
</state>
</provider>
</entry>
<entry file="file://$USER_HOME$/AppData/Local/Temp/Temp1_responstable-2-0-a-responsive-table-solution.zip/css/style.css">
<entry file="file://$PROJECT_DIR$/src/style.css">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="153">
<caret line="9" column="0" lean-forward="false" selection-start-line="9" selection-start-column="0" selection-end-line="92" selection-end-column="1" />
<state relative-caret-position="1615">
<caret line="95" column="22" lean-forward="false" selection-start-line="95" selection-start-column="22" selection-end-line="95" selection-end-column="22" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$USER_HOME$/AppData/Local/Temp/Temp1_responstable-2-0-a-responsive-table-solution.zip/css/style.css" />
<entry file="file://$PROJECT_DIR$/README.md">
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
<state split_layout="SPLIT">
<first_editor relative-caret-position="136">
<caret line="8" column="0" lean-forward="true" selection-start-line="8" selection-start-column="0" selection-end-line="8" selection-end-column="0" />
<folding />
</first_editor>
<second_editor />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/README.md">
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
<state split_layout="SPLIT">
<first_editor relative-caret-position="136">
<caret line="8" column="0" lean-forward="false" selection-start-line="8" selection-start-column="0" selection-end-line="8" selection-end-column="0" />
<folding />
</first_editor>
<second_editor />
</state>
</provider>
</entry>
<entry file="file://$USER_HOME$/AppData/Local/Temp/Temp1_Table_Fixed_Header.zip/Table_Fixed_Header/css/main.css" />
<entry file="file://$USER_HOME$/AppData/Local/Temp/Temp1_responstable-2-0-a-responsive-table-solution.zip/css/style.css" />
<entry file="file://$PROJECT_DIR$/src/style.css">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="691">
<caret line="95" column="22" lean-forward="false" selection-start-line="95" selection-start-column="22" selection-end-line="95" selection-end-column="22" />
<state relative-caret-position="408">
<caret line="81" column="21" lean-forward="true" selection-start-line="81" selection-start-column="21" selection-end-line="81" selection-end-column="21" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/index.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="459">
<caret line="119" column="9" lean-forward="false" selection-start-line="119" selection-start-column="9" selection-end-line="119" selection-end-column="9" />
<folding>
<marker date="1523787232037" expanded="true" signature="3992:4029" ph="..." />
<marker date="1523787232037" expanded="true" signature="4424:4498" ph="..." />
<marker date="1523787232037" expanded="true" signature="4424:4554" ph="..." />
<marker date="1523787232037" expanded="true" signature="4773:4844" ph="..." />
<marker date="1523787232037" expanded="true" signature="4773:4900" ph="..." />
<marker date="1523787232037" expanded="true" signature="4909:4982" ph="..." />
<marker date="1523787232037" expanded="true" signature="4909:5038" ph="..." />
<marker date="1523787232037" expanded="true" signature="5047:5119" ph="..." />
<marker date="1523787232037" expanded="true" signature="5047:5175" ph="..." />
<marker date="1523787232037" expanded="true" signature="5184:5256" ph="..." />
<marker date="1523787232037" expanded="true" signature="5184:5312" ph="..." />
<marker date="1523787232037" expanded="true" signature="5321:5395" ph="..." />
<marker date="1523787232037" expanded="true" signature="5321:5451" ph="..." />
<marker date="1523787232037" expanded="true" signature="5460:5533" ph="..." />
<marker date="1523787232037" expanded="true" signature="5460:5589" ph="..." />
<marker date="1523787232037" expanded="true" signature="5598:5671" ph="..." />
<marker date="1523787232037" expanded="true" signature="5598:5727" ph="..." />
</folding>
<state relative-caret-position="85">
<caret line="61" column="0" lean-forward="true" selection-start-line="61" selection-start-column="0" selection-end-line="61" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/README.md">
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
<state split_layout="SPLIT">
<first_editor relative-caret-position="136">
<caret line="8" column="0" lean-forward="false" selection-start-line="8" selection-start-column="0" selection-end-line="8" selection-end-column="0" />
<folding />
</first_editor>
<second_editor />
</state>
</provider>
</entry>
<entry file="file://$USER_HOME$/AppData/Local/Temp/Temp1_Table_Fixed_Header.zip/Table_Fixed_Header/css/main.css" />
<entry file="file://$USER_HOME$/AppData/Local/Temp/Temp1_responstable-2-0-a-responsive-table-solution.zip/css/style.css" />
<entry file="file://$PROJECT_DIR$/src/style.css">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1360">
<caret line="80" column="21" lean-forward="false" selection-start-line="80" selection-start-column="21" selection-end-line="80" selection-end-column="21" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/index.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="522">
<caret line="124" column="17" lean-forward="false" selection-start-line="124" selection-start-column="17" selection-end-line="124" selection-end-column="17" />
<folding />
</state>
</provider>
</entry>
......
......@@ -29,6 +29,8 @@ curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
$content = curl_exec($ch);
date_default_timezone_set('Europe/Bratislava');
if (curl_errno($ch)) {
echo 'error:' . curl_error($ch);
} else {
......@@ -39,66 +41,75 @@ 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);
$time_to_leave = (strtotime($sxml->body->form->div[2]->div[1]->div[0]->div[0]->div[1]->div[1]->div->div->table->tr[2]->td[0]) - time());
if ($time_to_leave <= 60) { $time_to_leave += 24*3600; }
array_push($first_row, sprintf("%'.02d:%'.02d", intdiv($time_to_leave, 3600), intdiv($time_to_leave%3600, 60)) );
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);
$time_to_leave = strtotime($sxml->body->form->div[2]->div[1]->div[0]->div[0]->div[1]->div[1]->div->div->table->tr[3]->td[0]) - time() ;
if ($time_to_leave <= 60) { $time_to_leave += 24*3600; }
array_push($second_row, sprintf("%'.02d:%'.02d", intdiv($time_to_leave, 3600), intdiv($time_to_leave%3600, 60)) );
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);
$time_to_leave = strtotime($sxml->body->form->div[2]->div[1]->div[0]->div[0]->div[1]->div[1]->div->div->table->tr[4]->td[0]) - time() ;
if ($time_to_leave <= 60) { $time_to_leave += 24*3600; }
array_push($third_row, sprintf("%'.02d:%'.02d", intdiv($time_to_leave, 3600), intdiv($time_to_leave%3600, 60)) );
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);
$time_to_leave = strtotime($sxml->body->form->div[2]->div[1]->div[0]->div[0]->div[1]->div[1]->div->div->table->tr[5]->td[0]) - time() ;
if ($time_to_leave <= 60) { $time_to_leave += 24*3600; }
array_push($fourth_row, sprintf("%'.02d:%'.02d", intdiv($time_to_leave, 3600), intdiv($time_to_leave%3600, 60)) );
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);
$time_to_leave = strtotime($sxml->body->form->div[2]->div[1]->div[0]->div[0]->div[1]->div[1]->div->div->table->tr[6]->td[0]) - time() ;
if ($time_to_leave <= 60) { $time_to_leave += 24*3600; }
array_push($fifth_row, sprintf("%'.02d:%'.02d", intdiv($time_to_leave, 3600), intdiv($time_to_leave%3600, 60)) );
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);
$time_to_leave = strtotime($sxml->body->form->div[2]->div[1]->div[0]->div[0]->div[1]->div[1]->div->div->table->tr[7]->td[0]) - time() ;
if ($time_to_leave <= 60) { $time_to_leave += 24*3600; }
array_push($sixth_row, sprintf("%'.02d:%'.02d", intdiv($time_to_leave, 3600), intdiv($time_to_leave%3600, 60)) );
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);
$time_to_leave = strtotime($sxml->body->form->div[2]->div[1]->div[0]->div[0]->div[1]->div[1]->div->div->table->tr[8]->td[0]) - time() ;
if ($time_to_leave <= 60) { $time_to_leave += 24*3600; }
array_push($seventh_row, sprintf("%'.02d:%'.02d", intdiv($time_to_leave, 3600), intdiv($time_to_leave%3600, 60)) );
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);
$time_to_leave = strtotime($sxml->body->form->div[2]->div[1]->div[0]->div[0]->div[1]->div[1]->div->div->table->tr[9]->td[0]) - time() ;
if ($time_to_leave <= 60) { $time_to_leave += 24*3600; }
array_push($eighth_row, sprintf("%'.02d:%'.02d", intdiv($time_to_leave, 3600), intdiv($time_to_leave%3600, 60)) );
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);
}
$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);
$time_to_leave = strtotime($sxml->body->form->div[2]->div[1]->div[0]->div[0]->div[1]->div[1]->div->div->table->tr[10]->td[0]) - time() ;
if ($time_to_leave <= 60) { $time_to_leave += 24*3600; }
array_push($ninth_row, sprintf("%'.02d:%'.02d", intdiv($time_to_leave, 3600), intdiv($time_to_leave%3600, 60)) );
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($ninth_row, $item);
}
......@@ -109,9 +120,9 @@ if (curl_errno($ch)) {
}
curl_close($ch);
date_default_timezone_set('Europe/Bratislava');
$time_leaving = 20;
$time_leaving = 30;
?>
......@@ -174,7 +185,7 @@ $time_leaving = 20;
<tbody>
<?php
if ( ((strtotime($first_row[0]) - time())/60 <= $time_leaving) and ((strtotime($first_row[0]) - time())/60 >= -60) ){
if ( ((strtotime($first_row[1]) - time())/60 <= $time_leaving) and ((strtotime($first_row[1]) - time())/60 >= -60) ){
echo '<tr class="leaving">';
} else {
echo '<tr>';
......@@ -190,7 +201,7 @@ $time_leaving = 20;
</tr>
<?php
if ( ((strtotime($second_row[0]) - time())/60 <= $time_leaving) and ((strtotime($second_row[0]) - time())/60 >= -60) ){
if ( ((strtotime($second_row[1]) - time())/60 <= $time_leaving) and ((strtotime($second_row[1]) - time())/60 >= -60) ){
echo '<tr class="leaving">';
} else {
echo '<tr>';
......@@ -206,7 +217,7 @@ $time_leaving = 20;
<?php
if ( ((strtotime($third_row[0]) - time())/60 <= $time_leaving) and ((strtotime($third_row[0]) - time())/60 >= -60) ){
if ( ((strtotime($third_row[1]) - time())/60 <= $time_leaving) and ((strtotime($third_row[1]) - time())/60 >= -60) ){
echo '<tr class="leaving">';
} else {
echo '<tr>';
......
Supports Markdown
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