timprove appearance of error page - cosmo - front and backend for Markov-Chain Monte Carlo inversion of cosmogenic nuclide concentrations
 (HTM) git clone git://src.adamsgaard.dk/cosmo
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 05fbddc084ca8c20c4e3b844429a70be4bccbd38
 (DIR) parent 977b796d99f0338c7057a1cf60f6525209ecc1be
 (HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
       Date:   Wed, 21 Oct 2015 13:04:58 +0200
       
       improve appearance of error page
       
       Diffstat:
         M uploadhistory.php                   |      10 ++++++++--
       
       1 file changed, 8 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/uploadhistory.php b/uploadhistory.php
       t@@ -102,7 +102,13 @@ if ((isset($_POST['ne_conc']) && $_POST['ne_conc'] != '') &&
        if (count($missing_fields) > 0) {
            //$error_msg = '<html><body>' .
                //'<h2>Invalid input</h2>';
       -    $error_msg = '<main><h2>Invalid input</h2>';
       +    $error_msg = '
       +<main>
       +<div class="section no-pad-bot" id="index-banner">
       +    <div class="container">
       +        <br><br>
       +        <!-- page header -->
       +        <h1 class="header center orange-text">Invalid input</h1>';
        
            // generate comma-separated list of missing field names
            for ($i = 0; $i < count($missing_fields); $i++) {
       t@@ -117,7 +123,7 @@ if (count($missing_fields) > 0) {
                $error_msg .= '<li>' . $missing_fields[$i] . '</li>';
            }
            $error_msg .= '</ul></p><p>Please <a href="javascript:history.back()">go' .
       -       ' back</a> and fill in the missing fields.</p></main>';
       +       ' back</a> and fill in the missing fields.</p></div></div></main>';
               //' back</a> and fill in the missing fields.</p></main></html>';
            //die($error_msg); // end this script, print error
            include('head.html');