tadd t_degla uncertainty to form - 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 d80838fb0cbf6874c6a168b67827a9f37785bec8
 (DIR) parent 64a10321da291a592e20c300d713eea3d95671b1
 (HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
       Date:   Mon, 24 Aug 2015 10:29:51 +0200
       
       add t_degla uncertainty to form
       
       Diffstat:
         M pages/history.html                  |      22 ++++++++++++++++------
         M uploadhistory.php                   |       6 +++---
       
       2 files changed, 19 insertions(+), 9 deletions(-)
       ---
 (DIR) diff --git a/pages/history.html b/pages/history.html
       t@@ -261,12 +261,11 @@
                        </div>
                        <div class="row">
                            <b>Deglaciation age</b><br>
       -                    Specify the estimated age for the deglaciation at the site
       -                    of sampling. This value is most often estimated from
       -                    traditional exposure ages, calculated with <a
       -                        href="http://hess.ess.washington.edu"
       -                        target="_blank">CRONUS-Earth</a>.<br>
       -                    <div class="input-field col s12">
       +                    Estimate the deglaciation age and its uncertainty at the
       +                    site of sampling. This value is most often constrained from
       +                    best knowledge, <sup>14</sup>C dating, or traditional
       +                    exposure dating.<br>
       +                    <div class="input-field col s6">
                                <a class="prefix">
                                    <i class="material-icons"
                                        onclick="Materialize.toast(
       t@@ -278,6 +277,17 @@
                                <label for="t_degla">Time since deglaciation [a]
                                    <small>Required</small></label>
                            </div>
       +                    <div class="input-field col s6">
       +                        <a class="prefix">
       +                            <i class="material-icons"
       +                                onclick="Materialize.toast(
       +                                'Uncertainty for the deglaciation age',
       +                                5000)">info_outline</i></a>
       +                        <input id="uncer_t_degla" name="uncer_t_degla"
       +                        type="text" class="validate" required>
       +                        <label for="uncer_t_degla">Uncertainty [a]
       +                            <small>Required</small></label>
       +                    </div>
        
                        </div>
        
 (DIR) diff --git a/uploadhistory.php b/uploadhistory.php
       t@@ -148,12 +148,12 @@ if (is_writable($outputfile)) {
            }
        
            // write header to file
       -    foreach ($fieldnames as $fieldname) {
       +    /*foreach ($fieldnames as $fieldname) {
                if (fwrite($handle, addslashes($fieldname) . "\t") === false) {
                    die("The php server could not write $fieldname to $outputfile.");
                }
            }
       -    fwrite($handle, "\n");
       +    fwrite($handle, "\n");*/
        
            // write values to file
            foreach ($fieldnames as $fieldname) {
       t@@ -161,7 +161,7 @@ if (is_writable($outputfile)) {
                    die("The php server could not write $fieldname to $outputfile.");
                }
            }
       -    fwrite($handle, "\n");
       +    //fwrite($handle, "\n");
        
        } else {
            die("The php server output file $outputfile is not writable");