diff --git a/css/style.css b/css/style.css index 6ae395e..ce2dd5d 100644 --- a/css/style.css +++ b/css/style.css @@ -11,7 +11,7 @@ body { } #thesesbox{ - min-height: 250px; + min-height: 150px; } .button-wrapper .btn { margin-bottom: 10px; @@ -37,4 +37,8 @@ body { .pagination > .active.pagination-no > a { background-color: #ff4136; border-color: #00CC66; +} + +.m-t-5 { + margin-top: 5px; } \ No newline at end of file diff --git a/mahlowat.php b/mahlowat.php index 3792b65..ef01945 100644 --- a/mahlowat.php +++ b/mahlowat.php @@ -4,119 +4,119 @@ include 'includes/elements.php'; //include 'includes/theses.php'; $data_content = file_get_contents("config/data.json"); if(!$data_content){ -echo "ERROR READING CONFIG"; + echo "ERROR READING CONFIG"; } else { -$data = json_decode($data_content, true); -if($data == NULL){ -echo "ERROR PARSING CONFIG"; -} + $data = json_decode($data_content, true); + if($data == NULL){ + echo "ERROR PARSING CONFIG"; + } //$theses = get_theses_array(); -$theses = $data['theses']; -$theses_count = sizeof($theses); -$ans = Array(); -$emph = Array(); -$answerstring = ''; -$warning = false; -$count = 'undefined'; -if(isset($_POST['count'])){ -$count = $_POST['count']; -} -if(isset($_POST['ans'])){ -$answerstring = $_POST['ans']; -$retval = result_from_string($answerstring, $theses_count); -$ans = $retval[0]; -$emph = $retval[1]; -} elseif(isset($_GET['ans'])){ -$answerstring = $_GET['ans']; -$retval = result_from_string($answerstring, $theses_count); -$ans = $retval[0]; -$emph = $retval[1]; -} else { -$warning = true; -for($i = 0; $i < $theses_count; $i++){ -$ans[$i] = 'skip'; -$emph[$i] = 1; -} -} + $theses = $data['theses']; + $theses_count = sizeof($theses); + $ans = Array(); + $emph = Array(); + $answerstring = ''; + $warning = false; + $count = 'undefined'; + if(isset($_POST['count'])){ + $count = $_POST['count']; + } + if(isset($_POST['ans'])){ + $answerstring = $_POST['ans']; + $retval = result_from_string($answerstring, $theses_count); + $ans = $retval[0]; + $emph = $retval[1]; + } elseif(isset($_GET['ans'])){ + $answerstring = $_GET['ans']; + $retval = result_from_string($answerstring, $theses_count); + $ans = $retval[0]; + $emph = $retval[1]; + } else { + $warning = true; + for($i = 0; $i < $theses_count; $i++){ + $ans[$i] = 'skip'; + $emph[$i] = 1; + } + } } ?> -
-