tgive form components name values - cosmo - front and backend for Markov-Chain … | |
git clone git://src.adamsgaard.dk/cosmo | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit c56b2085f4fa3ed02663dde9dfdd89e20ffc08b9 | |
parent 3efdaaa956db07a11d463f34d7cd2a4b3801a465 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Mon, 17 Aug 2015 15:58:09 +0200 | |
give form components name values | |
Diffstat: | |
M pages/front.html | 6 ++++-- | |
M pages/history.html | 97 ++++++++++++++++++-----------… | |
M pages/history2.html | 5 ----- | |
3 files changed, 62 insertions(+), 46 deletions(-) | |
--- | |
diff --git a/pages/front.html b/pages/front.html | |
t@@ -25,7 +25,8 @@ | |
<div class="col s12 m12"> | |
<a href="#/exposure-age" | |
- class="btn-large waves-effect waves-light orange darken-4"> | |
+ class="btn-large waves-effect waves-light orange darken-4 | |
+ disabled"> | |
<i class="material-icons left">schedule</i> | |
Calculate <b>exposure age</b></a> | |
<br> | |
t@@ -36,7 +37,8 @@ | |
<div class="col s12 m12"> | |
<a href="#/erosion-rate" | |
- class="btn-large waves-effect waves-light orange darken-4"> | |
+ class="btn-large waves-effect waves-light orange darken-4 | |
+ disabled"> | |
<i class="material-icons left">call_missed</i> | |
Calculate <b>erosion rate</b></a> | |
</div> | |
diff --git a/pages/history.html b/pages/history.html | |
t@@ -8,33 +8,36 @@ | |
<div class="row"> | |
<!-- method: GET or POST --> | |
- <form class="col s12" action="#/history2" method="POST"> | |
+ <form class="col s12" action="uploadhistory.php" method="POST"> | |
<div class="row"> | |
<b>General information</b><br> | |
<div class="input-field col s6"> | |
- <input placeholder="" id="sample_id" | |
+ <input placeholder="" id="sample_id" name="sample_id" | |
type="text" class="validate"> | |
<label for="sample_id">Sample ID</label> | |
</div> | |
<div class="input-field col s6"> | |
- <input id="your_name" type="text" class="validate"> | |
+ <input id="your_name" name="your_name" type="text" | |
+ class="validate"> | |
<label for="yourast_name">Your Name</label> | |
</div> | |
</div> | |
<div class="row"> | |
<div class="input-field col s12"> | |
- <input id="email" type="email" class="validate"> | |
+ <input id="email" name="email" type="email" | |
+ class="validate"> | |
<label for="email">Email</label> | |
</div> | |
</div> | |
<div class="row"> | |
<div class="input-field col s6"> | |
- <input id="lat" type="text" class="validate"> | |
+ <input id="lat" name="lat" type="text" class="validate… | |
<label for="lat">Latitude </label> | |
</div> | |
<div class="input-field col s6"> | |
- <input id="long" type="text" class="validate"> | |
+ <input id="long" name="long" type="text" | |
+ class="validate"> | |
<label for="long">Longitude</label> | |
</div> | |
</div> | |
t@@ -44,19 +47,23 @@ | |
[?]</b> <br>Fill in at least one field, | |
leave unknown values blank<br> | |
<div class="input-field col s3"> | |
- <input id="conc_10Be" type="text" class="validate"> | |
+ <input id="conc_10Be" name="conc_10Be" type="text" | |
+ class="validate"> | |
<label for="conc_10Be"><sup>10</sup>Be</label> | |
</div> | |
<div class="input-field col s3"> | |
- <input id="conc_26Al" type="text" class="validate"> | |
+ <input id="conc_26Al" name="conc_26Al" type="text" | |
+ class="validate"> | |
<label for="conc_26Al"><sup>26</sup>Al</label> | |
</div> | |
<div class="input-field col s3"> | |
- <input id="conc_14C" type="text" class="validate"> | |
+ <input id="conc_14C" name="conc_14C" type="text" | |
+ class="validate"> | |
<label for="conc_14C"><sup>14</sup>C</label> | |
</div> | |
<div class="input-field col s3"> | |
- <input id="conc_21Ne" type="text" class="validate"> | |
+ <input id="conc_21Ne" name="conc_21Ne" type="text" | |
+ class="validate"> | |
<label for="conc_21Ne"><sup>21</sup>Ne</label> | |
</div> | |
</div> | |
t@@ -64,26 +71,26 @@ | |
<div class="row"> | |
<b>TCN concentration uncertainty [%]</b><br> | |
<div class="input-field col s3"> | |
- <input id="uncer_10Be" type="text" class="validate" | |
- placeholder="5"> | |
+ <input id="uncer_10Be" name="uncer_10Be" type="text" | |
+ class="validate" placeholder="5"> | |
<label for="uncer_10Be" | |
class="active"><sup>10</sup>Be</label> | |
</div> | |
<div class="input-field col s3"> | |
- <input id="uncer_26Al" type="text" class="validate" | |
- placeholder="5"> | |
+ <input id="uncer_26Al" name="uncer_26Al" type="text" | |
+ class="validate" placeholder="5"> | |
<label for="uncer_26Al" | |
class="active"><sup>26</sup>Al</label> | |
</div> | |
<div class="input-field col s3"> | |
- <input id="uncer_14C" type="text" class="validate" | |
- placeholder="5"> | |
+ <input id="uncer_14C" name="uncer_14C" type="text" | |
+ class="validate" placeholder="5"> | |
<label for="uncer_14C" | |
class="active"><sup>14</sup>C</label> | |
</div> | |
<div class="input-field col s3"> | |
- <input id="uncer_21Ne" type="text" class="validate" | |
- placeholder="5"> | |
+ <input id="uncer_21Ne" name="uncer_21Ne" type="text" | |
+ class="validate" placeholder="5"> | |
<label for="uncer_21Ne" | |
class="active"><sup>21</sup>Ne</label> | |
</div> | |
t@@ -95,19 +102,23 @@ | |
using <a href="http://hess.ess.washington.edu" | |
target="_blank">CRONUS-Earth</a> <br> | |
<div class="input-field col s3"> | |
- <input id="prod_10Be" type="text" class="validate"> | |
+ <input id="prod_10Be" name="prod_10Be" type="text" | |
+ class="validate"> | |
<label for="prod_10Be"><sup>10</sup>Be</label> | |
</div> | |
<div class="input-field col s3"> | |
- <input id="prod_26Al" type="text" class="validate"> | |
+ <input id="prod_26Al" name="prod_26Al" type="text" | |
+ class="validate"> | |
<label for="prod_26Al"><sup>26</sup>Al</label> | |
</div> | |
<div class="input-field col s3"> | |
- <input id="prod_14C" type="text" class="validate"> | |
+ <input id="prod_14C" name="prod_14C" type="text" | |
+ class="validate"> | |
<label for="prod_14C"><sup>14</sup>C</label> | |
</div> | |
<div class="input-field col s3"> | |
- <input id="prod_21Ne" type="text" class="validate"> | |
+ <input id="prod_21Ne" name="prod_21Ne" type="text" | |
+ class="validate"> | |
<label for="prod_21Ne"><sup>21</sup>Ne</label> | |
</div> | |
</div> | |
t@@ -115,34 +126,37 @@ | |
<div class="row"> | |
<b>Rock density [kg m<sup>-3</sup>]</b><br> | |
<div class="input-field col s12"> | |
- <input id="rock_density" type="text" class="validate" | |
- placeholder="2650"> | |
- <label for="rock_density" | |
- class="active">Density</label> | |
+ <input id="rock_density" name="rock_density" type="tex… | |
+ class="validate" placeholder="2650"> | |
+ <label for="rock_density" class="active">Density</labe… | |
</div> | |
</div> | |
<div class="row"> | |
<b>Inversion parameter bounds</b><br> | |
<div class="input-field col s6"> | |
- <input id="epsilon_gla_min" type="text" class="validat… | |
+ <input id="epsilon_gla_min" name="epsilon_gla_min" | |
+ type="text" class="validate"> | |
<label for="epsilon_gla_min">Min. glacial erosion rate | |
[mm a<sup>-1</sup>]</label> | |
</div> | |
<div class="input-field col s6"> | |
- <input id="epsilon_gla_max" type="text" class="validat… | |
+ <input id="epsilon_gla_max" name="epsilon_gla_max" | |
+ type="text" class="validate"> | |
<label for="epsilon_gla_max">Max. glacial erosion rate | |
[mm a<sup>-1</sup>]</label> | |
</div> | |
</div> | |
<div class="row"> | |
<div class="input-field col s6"> | |
- <input id="epsilon_int_min" type="text" class="validat… | |
+ <input id="epsilon_int_min" name="epsilon_int_min" | |
+ type="text" class="validate"> | |
<label for="epsilon_int_min">Min. inter-glacial erosion | |
rate [mm a<sup>-1</sup>]</label> | |
</div> | |
<div class="input-field col s6"> | |
- <input id="epsilon_int_max" type="text" class="validat… | |
+ <input id="epsilon_int_max" name="epsilon_int_max" | |
+ type="text" class="validate"> | |
<label for="epsilon_int_max">Max. inter-glacial erosion | |
rate [mm a<sup>-1</sup>]</label> | |
</div> | |
t@@ -151,22 +165,23 @@ | |
<div class="row"> | |
<div class="input-field col s12"> | |
- <input id="t_degla" type="text" class="validate"> | |
+ <input id="t_degla" name="t_degla" type="text" | |
+ class="validate"> | |
<label for="t_degla">Time since deglaciation [a]</labe… | |
</div> | |
</div> | |
<div class="row"> | |
<div class="input-field col s6"> | |
- <input id="d18O_threshold_min" type="text" | |
- class="validate"> | |
+ <input id="d18O_threshold_min" name="d18O_threshold_mi… | |
+ type="text" class="validate"> | |
<label for="d18O_threshold_min">Min. | |
δ<sup>18</sup>O | |
threshold [‰]</label> | |
</div> | |
<div class="input-field col s6"> | |
- <input id="d18O_threshold_max" type="text" | |
- class="validate"> | |
+ <input id="d18O_threshold_max" name="d18O_threshold_ma… | |
+ type="text" class="validate"> | |
<label for="d18O_threshold_max">Max. | |
δ<sup>18</sup>O | |
threshold [‰]</label> | |
t@@ -176,7 +191,8 @@ | |
<div class="row"> | |
<b>Select climate record</b> | |
<p> | |
- <input name="d18O_smoothing" type="radio" id="rec_5kyr… | |
+ <input name="d18O_smoothing" type="radio" id="rec_5kyr" | |
+ name="rec_5kyr"> | |
<label for="rec_5kyr">Benthic δ<sup>18</sup>O | |
record (<a | |
href="http://onlinelibrary.wiley.com/doi/10.10… | |
t@@ -184,7 +200,8 @@ | |
triangular smoothing, 5 kyr width)</label> | |
</p> | |
<p> | |
- <input name="d18O_smoothing" type="radio" id="rec_20ky… | |
+ <input name="d18O_smoothing" type="radio" id="rec_20ky… | |
+ name="rec_20kyr"> | |
<label for="rec_20kyr">Benthic δ<sup>18</sup>O | |
record (<a | |
href="http://onlinelibrary.wiley.com/doi/10.10… | |
t@@ -192,7 +209,8 @@ | |
triangular smoothing, 20 kyr width)</label> | |
</p> | |
<p> | |
- <input name="d18O_smoothing" type="radio" id="rec_30ky… | |
+ <input name="d18O_smoothing" type="radio" id="rec_30ky… | |
+ name="rec_30kyr"> | |
<label for="rec_30kyr">Benthic δ<sup>18</sup>O | |
record (<a | |
href="http://onlinelibrary.wiley.com/doi/10.10… | |
t@@ -200,7 +218,8 @@ | |
triangular smoothing, 30 kyr width)</label> | |
</p> | |
<p> | |
- <input name="d18O_smoothing" type="radio" id="rec_own"> | |
+ <input name="d18O_smoothing" type="radio" id="rec_own" | |
+ name="rec_own"> | |
<label for="rec_own">Upload own record (format | |
specification)</label> | |
</p> | |
diff --git a/pages/history2.html b/pages/history2.html | |
t@@ -5,11 +5,6 @@ | |
<h1 class="header center orange-text">Calculate Exposure and Erosion | |
History</h1> | |
- <?php | |
- if(isset($_POST['sample_id']) { | |
- echo "sample_id set"; | |
- } | |
- ?> | |
</div> | |