ttest php post retrieval - 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 d95c0f7d585b7ec3fc3fe1428f7bbb724c2f8cd9
 (DIR) parent cea27f067b2d09c85a09d8d2af834237653ebec1
 (HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
       Date:   Mon, 17 Aug 2015 15:32:00 +0200
       
       ttest php post retrieval
       
       Diffstat:
         M js/routing.js                       |       3 +++
         M matlab/file_scanner_mcmc_starter.m  |      12 +++++++-----
         M pages/history.html                  |       2 +-
         A pages/history2.html                 |      21 +++++++++++++++++++++
       
       4 files changed, 32 insertions(+), 6 deletions(-)
       ---
 (DIR) diff --git a/js/routing.js b/js/routing.js
       t@@ -20,6 +20,9 @@ cosmoApp.config(function($routeProvider) {
                .when('/history', {
                    templateUrl : 'pages/history.html'
                })
       +        .when('/history2', {
       +            templateUrl : 'pages/history2.html'
       +        })
                .when('/exposure-age', {
                    templateUrl : 'pages/exposure-age.html'
                })
 (DIR) diff --git a/matlab/file_scanner_mcmc_starter.m b/matlab/file_scanner_mcmc_starter.m
       t@@ -1,9 +1,9 @@
       -%% file_scanner_mcmc_starter.m
       +%  file_scanner_mcmc_starter.m
        %  This file is started by run.sh.
        %  The script watches an input folder (infolder) for input files generated
        %  by the web interface. The content of the input files is used to start
        %  calls to the MCMC functions.
       -%%
       +%
        
        % folder of input files
        infolder = '~/src/cosmo/matlab';
       t@@ -12,10 +12,12 @@ infolder = '~/src/cosmo/matlab';
        while 1
        
            infile = 'testinput.txt';
       -
       -    if exist([infolder, '/', infile], 'file') == 2
       +    infile_full_path = strcat(infolder, '/', infile);
       +    
       +    if exist(infile_full_path, 'file') == 2
                disp('file exists')
       -        break
       +        delete(infile_full_path)
       +        %break
            end
        
        end
        \ No newline at end of file
 (DIR) diff --git a/pages/history.html b/pages/history.html
       t@@ -8,7 +8,7 @@
        
                <div class="row">
                    <!-- method: GET or POST -->
       -            <form class="col s12" action="#/exposure-age" method="GET">
       +            <form class="col s12" action="#/history2" method="POST">
        
                        <div class="row">
                            <b>General information</b><br>
 (DIR) diff --git a/pages/history2.html b/pages/history2.html
       t@@ -0,0 +1,21 @@
       +<div class="section no-pad-bot" id="index-banner">
       +    <div class="container">
       +        <br><br>
       +        <!-- page header -->
       +        <h1 class="header center orange-text">Calculate Exposure and Erosion
       +            History</h1>
       +
       +        <?php
       +        if(isset($_POST['sample_id']) {
       +            echo "sample_id set";
       +        }
       +        ?>
       +
       +    </div>
       +
       +</div>
       +<div class="fixed-action-btn" style="top: 26px; right: 12px;">
       +    <a href="#/" class="btn-floating btn-large red">
       +        back
       +    </a>
       +</div>