/**
 * Load data for specified user.
 * @param int $user_id the id of the user to load.
 * @return array $results fetch non-authorization related data for the specified user
 */
function loadUser($user_id)
{
    // This block automatically checks this action against the permissions database before running.
    if (!checkActionPermissionSelf(__FUNCTION__, func_get_args())) {
        addAlert("danger", "Sorry, you do not have permission to access this resource.");
        return false;
    }
    return fetchUser($user_id);
}
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
require_once '../models/config.php';
// Fetch information for currently logged in user
// Parameters: none
set_error_handler('logAllErrors');
// Request method: GET
$ajax = checkRequestMode("get");
// Check that there is a logged-in user
$user_id = null;
if (isUserLoggedIn()) {
    $user_id = $loggedInUser->user_id;
} else {
    addAlert("danger", "Whoops, looks like you're not logged in!");
    apiReturnError($ajax, getReferralPage());
}
$results = fetchUser($user_id);
if (!$results) {
    apiReturnError($ajax, getReferralPage());
}
$results['csrf_token'] = $loggedInUser->csrf_token;
restore_error_handler();
echo json_encode($results);
        if (!($action_permit = fetchActionPermit($action_id, "user"))) {
            addAlert("danger", "The specified action id does not exist.");
        }
    }
    $action_name = $action_permit['action'];
    $action_permits = $action_permit['permits'];
    if ($render_mode == "panel") {
        $box_title = $action_name;
    }
}
// Otherwise just load user/group data
if ($group_id) {
    $group = fetchGroupDetails($group_id);
    $group_name = $group['name'];
} else {
    $user = fetchUser($user_id);
    $user_name = $user['user_name'];
}
$response = "";
if ($render_mode == "modal") {
    $response .= "<div id='{$box_id}' class='modal fade'>\n        <div class='modal-dialog'>\n            <div class='modal-content'>\n                <div class='modal-header'>\n                    <button type='button' class='close' data-dismiss='modal' aria-hidden='true'>&times;</button>\n                    <h4 class='modal-title'>{$box_title}</h4>\n                </div>\n                <div class='modal-body'>\n                    <form method='post' action='{$target}'>";
} else {
    if ($render_mode == "panel") {
        $response .= "<div class='panel panel-primary'>\n        <div class='panel-heading'>\n            <h2 class='panel-title pull-left'>{$box_title}</h2>\n            <div class='clearfix'></div>\n            </div>\n            <div class='panel-body'>\n                <form method='post' action='{$target}'>";
    } else {
        echo "Invalid render mode.";
        exit;
    }
}
// Load CSRF token
$csrf_token = $loggedInUser->csrf_token;
Example #4
0
<?php

include 'common.php';
include 'db/dbhandler.php';
session_name('app');
session_start();
if (!isset($_SESSION['isLoggedIn'])) {
    redirectUser('login.php');
}
if (!isset($_SESSION['registered'])) {
    redirectUser('register.php');
}
$user = fetchUser();
//var_dump($user);
showEntries($user);
function fetchUser()
{
    $uname = $_SESSION['uname'];
    $user = DBHandler::fetchUser($uname);
    return $user;
}
function showEntries($user)
{
    echo "\n        <!-- http://www.dirtymarkup.com/ -->\n<html>\n<body>\n<head>\n<!-- ################################################################ -->\n    <link rel=\"stylesheet\" href=\"css/styles_new.css\">\n    <link href=\"css/jquery-ui.css\" rel=\"stylesheet\">\n    <script src=\"js/jquery-1.12.0.min.js\"></script>\n    <script src=\"js/jquery-ui.js\"></script>   \n    <script src=\"js/entries.js\"></script>\n<!-- ################################################################ -->\n      <script>\n      \$(function() {\n        \$('.monthYearPicker').datepicker({\n          changeMonth: true,\n          changeYear: true,\n          showButtonPanel: true,\n          dateFormat: 'MM yy'\n        }).focus(function() {\n          var thisCalendar = \$(this);\n          \$('.ui-datepicker-calendar').detach();\n          \$('.ui-datepicker-close').click(function() {\n      var month = \$(\"#ui-datepicker-div .ui-datepicker-month :selected\").val();\n      var year = \$(\"#ui-datepicker-div .ui-datepicker-year :selected\").val();\n      thisCalendar.datepicker('setDate', new Date(year, month, 1));\n          });\n        });\n      });      \n    </script>\n\n<!-- ################################################################ -->\n    <title> Entries Form </title></head>\n    \n<body>\n    <table style=\"width:100%\">\n        <tr>\n            <td align=\"left\" style=\"padding: 0px 0px 0px 100px;\"> \n                <label for=\"login\">Logged in as:</label>\n            </td>\n            <td align=\"right\" style=\"padding: 0px 50px 0px 0px;\">\n                <a href=\"logout.php\">logout</a >                \n            </td>\n        </td>\n    </table>        \n    <br>\n\n    </div>\n<div id=\"body\" class=\"pd1\">  \n    <fieldset>\n    <legend><font color=\"red\"  size=\"4\">Researcher Info</font></legend>  \n        <form action=\"entryhandler.php\" onsubmit=\"return validateForm()\" enctype=\"multipart/form-data\">\n        <table>\n            <tr>\n                <td >\n                     <div style=\"width:350px\">\n                        <label for=\"fname\">First Name:</label><br>\n                        <input disabled id=\"fname\" size=\"35\" type=\"text\" class=\"medium\">\n                    </div>\n                </td>\n\n                 <td >\n                     <div style=\"width:350px\">\n                        <label for=\"lname\">Last Name:</label><br>\n                        <input disabled id=\"lname\" size=\"35\" type=\"text\" class=\"medium\" >\n                    </div>\n                </td>                                  \n                <td >\n                    <div style=\"width:350px\">\n                        <label for=\"institution\">Institution:</label><br>\n                        <input disabled id=\"institution\" type=\"text\" class=\"medium\" >\n                    </div>                    \n                </td>\n            </tr>\n            <tr>\n                <td>\n                    <div style=\"width:350px\">\n                        <label for=\"department\">Department:</label><br>\n                        <input disabled id=\"department\" type=\"text\" class=\"medium\" >\n                    </div>\n                </td>              \n                <td>\n                    <div style=\"width:350px\">\n                        <label for=\"country\">Country:</label><br>\n                        <select disabled id=\"country\" name=\"country\" size=\"1\">\n                        <option value=\"\">Select...</option>\n                        <option value=\"United States\">United States</option>\n                        <option value=\"Canada\">Canada</option>\n                        <option value=\"France\">France</option>\n                        <option value=\"Belgium\">Belgium</option>\n                        <option value=\"Brazil\">Brazil</option>\n                        <option value=\"Chile\">Chile</option>\n                        <option value=\"China\">China</option>\n                        <option value=\"Czech Republic\">Czech Republic</option>\n                        <option value=\"Denmark\">Denmark</option>\n                        <option value=\"Finland\">Finland</option>\n                        <option value=\"Germany\">Germany</option>\n                        <option value=\"Iceland\">Iceland</option>\n                        <option value=\"India\">India</option>\n                        <option value=\"Iran\">Iran</option>\n                        <option value=\"Italy\">Italy</option>\n                        <option value=\"Japan\">Japan</option>\n                        <option value=\"Korea\">Korea</option>\n                        <option value=\"Netherlands\">Netherlands</option>\n                        <option value=\"New Zealand\">New Zealand</option>\n                        <option value=\"Norway\">Norway</option>\n                        <option value=\"Portugal\">Portugal</option>\n                        <option value=\"South Africa\">South Africa</option>\n                        <option value=\"Spain\">Spain</option>\n                        <option value=\"Sweden\">Sweden</option>\n                        <option value=\"Switzerland\">Switzerland</option>\n                        <option value=\"United Kingdom\">United Kingdom</option>\n                        </select>\n                    </div>\n                </td>                   \n                <td>\n                    <div>\n                        <label for=\"email\">Email:</label><br>\n                        <input disabled id=\"email\" type=\"text\" class=\"medium\">\n                    </div>                    \n                </td>              \n            </tr>\n            <td>\n                    <div>\n                        <label for=\"coworker1\">Co-Worker 1 (Last, First):</label><br>\n                        <input id=\"coworker1\" type=\"text\" class=\"medium\" placeholder=\"last, first\">\n                    </div>                    \n                </td>  \n                <td>\n                    <div>\n                        <label for=\"coworker2\">Co-Worker 2 (Last, First):</label><br>\n                        <input disabled id=\"coworker2\" type=\"text\" class=\"medium\" >\n                    </div>                    \n                </td>  \n                <td>\n                    <div>\n                        <label for=\"coworker3\">Co-Worker 3 (Last, First):</label><br>\n                        <input id=\"coworker3\" type=\"text\" class=\"medium\" disabled>\n                    </div>                    \n                </td>\n            <tr>\n            <td>\n            IP Address\n            </td>\n            </tr>\n        </table>\n        <table>\n        <td>\n        </table>\n        </fieldset>\n        <p>\n<!-- ################################################################ -->    \n            <fieldset>\n            <legend><font color=\"red\"  size=\"4\">Data Set</font></legend>\n<table>\n<tr>\n        <td>\n             <div style=\"width:200px\">\n    \n            <label for=\"datasetfirstaction\">Action</label><br>\n                    <select name=\"datasetfirstaction\">\n                    <option value=\"\">Select...</option>\n                    <option value=\"1\">Create new</option>\n                    <option value=\"2\">Load existing</option>\n                    </select>\n         </td>\n    </div>\n        <td>\n            <div style=\"width:200px\">\n                    <label for=\"datasetfirstselection\">Data Set:</label><br/>\n                    <select name=\"datasetfirstselection\">\n                    <option value=\"\">Select...</option>\n                    <option value=\"1\">1</option>\n                    <option value=\"2\">2</option>\n                    <option value=\"3\">3</option>\n                    <option value=\"4\">4</option>\n                    <option value=\"5\">5</option>\n                    </select>\n    </div>\n     </td>\n    <td>\n            <div style=\"width:200px\">\n            <label for=\"currentdataset\">Displayed data set:</label><br>\n            <input id=\"currentdataset\" class=\"small\" type=\"text\" placeholder=\"\">\n    </td> \n    </div>  \n        <td>\n            <div style=\"width:250px\">\n            <label for=\"totnumberdatasets\">Total number of stored data sets:</label><br>\n            <input disabled id=\"currentdataset\" class=\"small\" type=\"text\" placeholder=\"\">\n        </td>\n        <td>\n            <button type=\"button\" id=\"btn01\" text=\"submit\">submit</button>\n        </td>                  \n</table>\n        </fieldset>\n        <p>\n<!-- ################################################################ -->    \n    <fieldset>\n    <legend><font color=\"red\"  size=\"4\">Project Info</font></legend>\n        <table>\n            <tr>\n            <td>\n                     <div style=\"width:350px\">\n                        <label for=\"projtitle\">Project Title*</label><br>\n                        <input required id=\"projtitle\" name=\"projtitle\" class=\"large\" type=\"text\" placeholder=\"title\">\n                    </div>\n                </td>   \n                <td>\n                    <div style=\"width:350px\">\n                        <label for=\"startdate\">Project starting date*</label><br>\n                        <input required type=\"text\"  id=\"startdate\" name=\"startdate\" class=\"monthYearPicker medium\" placeholder=\"Project Starting Date\">\n                    </div>    \n                </td>                    \n                <td>\n                    <div>\n                        <label for=\"enddate\">Project end date*</label><br>\n                        <input  required type=\"text\"  id=\"enddate\" name=\"enddate\" class=\"monthYearPicker medium\" placeholder=\"Project End Date\">\n                    </div>\n                </td>   \n            </tr>\n            <tr>\n            <td>\n                    <div id=\"div_concrete_from\"  style=\"width:350px\">\n                        <label for=\"specimen_from\">Specimen from*</label>\n                        <select required  autocomplete=\"off\"  id=\"concrete_from\" name=\"concrete_from\" onchange=\"changeConcreteFromLoc(this.value)\">\n                        <option value=\"\" selected=\"selected\" disabled=\"disabled\">Select...</option>\n                        <option value=\"1\">Laboratory</option>\n                        <option value=\"2\">Field</option>\n                        </select>\n                     </div>   \n\n            </td>\n \n         <td >\n                    <div id=\"units\"  style=\"width:350px\">\n                        <label for=\"units\">Units*</label>\n                        <select required autocomplete=\"off\"  id=\"project_units\" name=\"project_units\" onchange=\"changeUnits(this.value)\">\n                        <option value=\"\" selected=\"selected\" disabled=\"disabled\">Select...</option>\n                        <option value=\"1\">mm,MPa,deg. C</option>\n                        <option value=\"2\"> in,ksi,degF</option>\n                        </select>\n                     </div>   \n\n\n                </td>  \n         </tr>\n         </table>\n                \n        </fieldset>\n    <p>\n<!-- ################################################################ -->\n    <div id=\"lab_info\">\n    <fieldset>\n        <legend><font color=\"red\"  size=\"4\">Laboratory Info</font></legend>\n        <table>\n         <tr>\n          \n         <td>\n                   <div id=\"code\" style=\"width:350px\">   \n                        <label for=\"code\">Prevailing code*</label>\n                        <select id=\"lab_code\" name=\"lab_code\">\n                        <option value=\"\">Select...</option>\n                        <option value=\"1\">ASTM C1260 (US)</option>\n                        <option value=\"2\">ASTM C1567 (US)</option>\n                        <option value=\"3\">ASTM C1293 (US)</option>\n                        <option value=\"4\">NF P18-454 (FR)</option>\n                        <option value=\"5\">FD P18-542 (FR)</option>\n                        <option value=\"6\">NF P18-594 (FR)</option>\n                        <option value=\"7\">Other</option>\n                        </select>\n                    </div>\n                   \n        </td>\n        <td>\n            <div id=\"code\" style=\"width:350px\">   \n                <label for=\"concretetype\">Concrete Type*</label>\n                <select id=\"concretetype\" name=\"concretetype\">\n                <option value=\"\">Select...</option>\n                <option value=\"1\">Mortar</option>\n                <option value=\"2\">Normal</option>\n                <option value=\"3\">Lightweight</option>\n                <option value=\"4\">High Strength</option>\n                <option value=\"5\">Other</option>\n                </select>\n            </div>    \n        </td>\n        </tr>\n    </table>\n    <table>\n        <tr>\n            <td colspan =\"1\">\n            <p class=\"formfield\">\n            <label for=\"description\">Brief description:</label>\n            <textarea id=\"lab_description\" name=\"lab_description\" ></textarea>\n            </td>\n        </tr>\n</table>\n    </fieldset>\n    <p>\n    </div>\n   \n    <div id=\"field_info\" style=\"display:none\"> \n    <fieldset>\n    <legend><font color=\"red\"  size=\"4\">Field Info:</font></legend>\n    <table>\n        <tr>\n            <td>\n                 <div id=\"size\"  style=\"width:350px\">\n                <label>City*</label>\n                <input id=\"fcity\" name=\"fcity\" type=\"text\" class=\"medium\" placeholder=\"city\">\n                </div>\n            </td>\n            <td>\n                 <div id=\"size\"  style=\"width:350px\">\n                <label>Country*</label>\n                <input id=\"fcountry\" name=\"fcountry\" type=\"text\"  class=\"medium\" placeholder=\"country\">    \n                </div>            \n            </td>    \n        </tr>    \n    </table>\n    <table>\n        <tr>\n            <a href=\"http://www.gps-coordinates.net/\">Gps Coordinates:</a>\n        <tr>    \n        <tr>\n            <td>\n                Altitude*\n            <td>    \n            <input id=\"altitude\" name=\"altitude\" type=\"text\" class=\"small\" placeholder=\"alt\"> m    \n         </tr>   \n        <tr>\n            <td>\n                Latitude*\n            </td>\n            <td>\n                <input autocomplete=\"off\" type=\"radio\" id=\"lat_radio\" name=\"lat_radio\" value=\"1\" > N\n                <input autocomplete=\"off\" type=\"radio\" id=\"lat_radio\" name=\"lat_radio\" value=\"2\"> S\n            </td>\n            <td>    \n                <input id=\"lat_degree\" name=\"lat_degree\" type=\"text\" class=\"small\" placeholder=\"deg\">&deg\n            </td>      \n            <td>\n                <input id=\"lat_min\" name=\"lat_min\" type=\"text\" class=\"small\" placeholder=\"min\">'\n            </td>    \n            <td>\n                <input id=\"lat_sec\" name=\"lat_sec\" type=\"text\" class=\"small\" placeholder=\"sec\">\"\n            </td> \n        </tr>\n\n        <tr>\n             <td>\n                Longitude*\n            </td>\n            <td>\n                <input autocomplete=\"off\" type=\"radio\" id=\"long_radio\" name=\"long_radio\" value=\"1\"> N\n                <input autocomplete=\"off\" type=\"radio\" id=\"long_radio\"  name=\"long_radio\" value=\"2\"> S\n            </td>\n            <td>    \n                <input id=\"long_degree\" name=\"long_degree\" type=\"text\" class=\"small\" placeholder=\"deg\">&deg\n            </td>      \n            <td>\n                <input id=\"long_min\" name=\"long_min\" type=\"text\" class=\"small\" placeholder=\"min\">'\n            </td>    \n            <td>\n                <input id=\"long_sec\" name=\"long_sec\" type=\"text\" class=\"small\" placeholder=\"sec\">\"\n            </td> \n        </tr>               \n\n    </table>   \n         <tr>\n            <td colspan =\"1\">\n            <p class=\"formfield\">\n            <label for=\"description\">Brief description:</label>\n            <textarea name=\"field_desc\" id=\"field_desc\" ></textarea>\n            </td>\n        </tr>    \n    </fieldset>\n    <p>\n    </div>    \n        \n    <fieldset>\n    <legend><font color=\"red\"  size=\"4\">Geometry</font></legend>\n        <table>\n            <tr>\n                <td >\n                    <div id=\"size\"  style=\"width:350px\">\n                        <label for=\"size\">Specimen Size*</label>\n                        <select required autocomplete=\"off\"  id=\"specimen_size\" name=\"specimen_size\" onchange=\"changeDimensions(this.value)\">\n                        <option value=\"\" selected=\"selected\" disabled=\"disabled\" >Select...</option>\n                        <option value=\"1\">Prism.   1 x 1 x 10 inch</option>\n                        <option value=\"2\">Prism.   4 x 4 x 10 inch</option>\n                        <option value=\"3\">Prism.  20 x 20 x 160 mm</option>\n                        <option value=\"4\">Prism.  40 x 40 x 160 mm</option>\n                        <option value=\"5\">Prism.  70 x 70 x 280 mm</option>\n                        <option value=\"6\">Prism. 100 x 100 x 100 mm</option>\n                        <option value=\"7\">Cyl.     2 x 2 inch</option>\n                        <option value=\"8\">Cyl.     4 x 8 inch</option>\n                        <option value=\"9\">Cyl.     6 x 12 inch</option>\n                        <option value=\"10\">Cyl.  110 x 220 mm</option>\n                        <option value=\"11\">Cyl.  160 x 320 mm</option>                      \n                        <option value=\"12\">Custom</option>\n                        </select>\n                     </div>                    \n                </td>                    \n            </tr>                \n        </table>    \n        <br>\n\n        <table>\n            <tr>\n                <td >\n                    <div id=\"diameter\" style=\"width:350px\">\n                        <label id=\"lunit11\" for=\"diameter\">Diameter*</label>\n                        <input name=\"unit1input\" id=\"unit1input\" type=\"text\" class=\"small\" placeholder=\"\">\n                        <label for=\"unit\"  id=\"lunit21\"></label>\n                    </div>\n                </td>\n                <td >\n                    <div id=\"length\" style=\"width:350px\">\n                        <label id=\"lunit12\" for=\"length\">Length*</label>\n                        <input name=\"unit2input\" id=\"unit2input\" type=\"text\" placeholder=\"\" class=\"small\">\n                        <label for=\"unit\"  id=\"lunit22\"></label>\n                    </div>\n                </td>  \n                <td >\n                    <div id='optionaldiv' id=\"length\" style=\"width:350px;visibility:hidden\">\n                        <label id=\"lunit13\" for=\"length\">Length:</label>\n                        <input id=\"unit3input\" name=\"unit3input\" type=\"text\" placeholder=\"\" class=\"small\">\n                        <label for=\"unit\"  id=\"lunit23\"></label>\n                    </div>\n                </td>                    \n            </tr>\n        </table>            \n        <br>\n        <!--table>\n            <tr>\n                <td >\n                    <div id=\"width\" style=\"width:350px\">\n                        <label for=\"width\">Width:</label>\n                        <input id=\"width\" type=\"text\"  class=\"small\" placeholder=\"\">\n                        <label for=\"unit\"  id=\"unitwidth\"></label>\n                    </div>\n                </td>\n                <td >\n                    <div id=\"height\" style=\"width:350px\">\n                        <label for=\"height\">Height:</label>\n                        <input id=\"height\" type=\"text\" class=\"small\" placeholder=\"\">\n                        <label for=\"unit\"  id=\"unitheight\"></label>\n                    </div>\n                </td>           \n            </tr>\n        </table-->            \n    </fieldset>\n    <p>\n    \n\n<!-- ################################################################ -->   \n    <fieldset>\n    <legend><font color=\"red\"  size=\"4\">Chemical analysis of cement</font></legend>\n    \n    <div>\n        <label>Is chemical composition available?:</label>\n        <input  autocomplete=\"off\" type=\"radio\" onclick=\"handleClick(this);\" name=\"chemcomp\" id=\"chemcomp\" value=\"1\"> yes\n        <input autocomplete=\"off\" type=\"radio\" onclick=\"handleClick(this);\" name=\"chemcomp\" id=\"chemcomp\" value=\"2\"> no\n    <div>\n\n    <table border=\"1\">\n        <tr>\n            <td width=\"105\">\n                <label id=\"lchemcompNA\" for=\"chemcompNA\">Na<sub>2</sub>O</label></br>\n                <input id=\"ichemcompNA\" name=\"ichemcompNA\" type=\"text\" placeholder=\"\" class=\"small\">\n            </td>\n            <td width=\"105\">\n                <label id=\"lchemcompK2O\" for=\"chemcompK2O\">K<sub>2</sub>O</label><br>\n                <input id=\"ichemcompK2O\" name=\"ichemcompK2O\" type=\"text\" placeholder=\"\" class=\"small\">\n            </td>            \n            <td width=\"100\">\n                <label id=\"lchemcompSiO2\" for=\"chemcompSiO2\" class=\"center\">SiO<sub>2</sub><br>\n                <input id=\"ichemcompSiO2\" name=\"ichemcompSiO2\" type=\"text\" placeholder=\"\" class=\"small\">\n            </td>\n            <td width=\"105\">\n                <label id=\"lchemcompAl2O4\" for\"chemcompAl2O4\">Al<sub>2</sub>O<sub>4</sub><br>\n                <input id=\"ichemcompAl2O4\" name=\"ichemcompAl2O4\" type=\"text\" placeholder=\"\" class=\"small\">\n            </td>\n            <td width=\"105\">\n                <label id=\"lchemcompFe2O4\" for\"chemcompFe2O4\">Fe<sub>2</sub>O<sub>4</sub><br>\n                <input id=\"ichemcompFe2O4\" name=\"ichemcompFe2O4\" type=\"text\" placeholder=\"\" class=\"small\">\n            </td>                       \n            <td width=\"100\">\n                <label id=\"lchemcompCaO\" for\"chemcompCaO\">CaO<br>\n                <input id=\"ichemcompCaO\" name=\"ichemcompCaO\" type=\"text\" placeholder=\"\" class=\"small\">\n            </td>                       \n            <td width=\"105\">\n                <label id=\"lchemcompMgO\" for\"chemcompMgO\">MgO<br>\n                <input id=\"ichemcompMgO\" name=\"ichemcompMgO\" type=\"text\" placeholder=\"\" class=\"small\">\n            <td width=\"105\">\n                <label id=\"lchemcompSO3\" for\"chemcompSO3\">SO<sub>3</sub><br>\n                <input id=\"ichemcompSO3\" name=\"ichemcompSO3\" type=\"text\" placeholder=\"\" class=\"small\">\n            </td>\n            <td width=\"\">\n                <label id=\"lchemcompNa2Oeq\" for\"chemcompNa2Oeq\">Alkanity as Na<sub>2</sub>O<sub>eq</sub><br>\n                <input id=\"ichemcompNa2Oeq\" name=\"ichemcompNa2Oeq\" type=\"text\" placeholder=\"\" class=\"small\">\n            </td>           \n        </tr>\n    </table>\n    </fieldset>\n    <p>\n<!-- ################################################################ -->\n    <fieldset>\n    <legend><font color=\"red\"  size=\"4\">Siliceous Aggrgeate/Sand</font></legend>\n\n    <div>\n    <label>Is Siliceous Aggrgeate available?*</label>\n    <input required autocomplete=\"off\" type=\"radio\" onclick=\"handleSiliceous(this);\" name=\"siliceousagg\" id=\"siliceousagg\" value=\"1\"> yes\n    <input autocomplete=\"off\" type=\"radio\" onclick=\"handleSiliceous(this);\" name=\"siliceousagg\" id=\"siliceousagg\" value=\"2\"> no\n    <div>\n\n    <div id=\"siliceousaggrgeate\">    \n    <table>\n        <tr>\n            <td><div id=\"finerocktypediv\"  style=\"width:350px\">\n                    <label for=\"finerocktype\">Fine aggregate*</label><br>\n                    <select id=\"finerocktype\" name=\"finerocktype\">\n                    <option value=\"\">Select...</option>\n                    <option value=\"1\">Arenite</option>\n                    <option value=\"2\">Argilite</option>\n                    <option value=\"3\">Arkose</option>\n                    <option value=\"4\">Chert</option>\n                    <option value=\"5\">Flint</option>\n                    <option value=\"6\">Gneiss</option>\n                    <option value=\"7\">Granite</option>\n                    <option value=\"8\">Greywacke</option>\n                    <option value=\"9\">Hormfels</option>\n                    <option value=\"10\">Quartz-arenite</option>\n                    <option value=\"11\">Quartzite</option>\n                    <option value=\"12\">Sandstone</option>\n                    <option value=\"13\">Shale</option>\n                    <option value=\"14\">Silicified carbonate</option>\n                    <option value=\"15\">Silstone</option>\n                    <option value=\"16\">Unknown</option>\n                    </select>\n                </div>\n            </td>           \n            <td><div id=\"aggregate1rocktypediv\"  style=\"width:350px\">\n                    <label for=\"aggregate1rocktype\">Coarse aggregate 1*</label><br>\n                    <select  id=\"aggregate1rocktype\" name=\"aggregate1rocktype\">\n                    <option value=\"\">Select...</option>\n                    <option value=\"1\">Arenite</option>\n                    <option value=\"2\">Argilite</option>\n                    <option value=\"3\">Arkose</option>\n                    <option value=\"4\">Chert</option>\n                    <option value=\"5\">Flint</option>\n                    <option value=\"6\">Gneiss</option>\n                    <option value=\"7\">Granite</option>\n                    <option value=\"8\">Greywacke</option>\n                    <option value=\"9\">Hormfels</option>\n                    <option value=\"10\">Quartz-arenite</option>\n                    <option value=\"11\">Quartzite</option>\n                    <option value=\"12\">Sandstone</option>\n                    <option value=\"13\">Shale</option>\n                    <option value=\"14\">Silicified carbonate</option>\n                    <option value=\"15\">Silstone</option>\n                    <option value=\"16\">Unknown</option>\n                    </select>\n                </div>\n            </td>           \n            <td><div id=\"aggregate2rocktypediv\"  style=\"width:350px\">\n                    <label for=\"aggregate2rocktype\">Coarse aggregate 2*</label><br>\n                    <select id=\"aggregate2rocktype\" name=\"aggregate2rocktype\">\n                    <option value=\"\">Select...</option>\n                    <option value=\"1\">Arenite</option>\n                    <option value=\"2\">Argilite</option>\n                    <option value=\"3\">Arkose</option>\n                    <option value=\"4\">Chert</option>\n                    <option value=\"5\">Flint</option>\n                    <option value=\"6\">Gneiss</option>\n                    <option value=\"7\">Granite</option>\n                    <option value=\"8\">Greywacke</option>\n                    <option value=\"9\">Hormfels</option>\n                    <option value=\"10\">Quartz-arenite</option>\n                    <option value=\"11\">Quartzite</option>\n                    <option value=\"12\">Sandstone</option>\n                    <option value=\"13\">Shale</option>\n                    <option value=\"14\">Silicified carbonate</option>\n                    <option value=\"15\">Silstone</option>\n                    <option value=\"16\">Unknown</option>\n                    </select>\n                </div>\n            </td>           \n        </tr>\n        <tr>\n            <td>\n                <div id=\"Qsand\" style=\"width:250px\">\n                <label for=\"fineness\">Fineness modulus*</label><br>\n                <input   name=\"fineness\" id=\"fineness\" type=\"text\" placeholder=\"Fineness modulus\" class=\"medium\">\n                </div>\n            </td>\n            <td>\n            <div id=\"msa1\" style=\"width:250px\">\n                <label for=\"nominalsize1\">Nominal size*</label><br>\n                <select id=\"nominalsize1\" name=\"nominalsize1\">\n                <option value=\"\">Select...</option>\n                <option value=\"1\">1/4 inch</option>\n                <option value=\"2\">3/8 inch</option>\n                <option value=\"3\">1/2 inch</option>\n                <option value=\"4\">3/4 inch</option>\n                <option value=\"4\">5-12 mm</option>\n                <option value=\"4\">5-16 mm</option>\n                <option value=\"4\">5-20 mm</option>\n                <option value=\"4\">16-22 mm</option>\n                <option value=\"5\">xx mm\"</option>\n                </select>\n            </div>\n        </td>\n        <td>\n            <div id=\"msa2\" style=\"width:250px\">\n                <label for=\"nominalsize2\">Nominal size*</label><br>\n                <select id=\"nominalsize2\" name=\"nominalsize2\">\n                <option value=\"\">Select...</option>\n                <option value=\"1\">1/4 inch</option>\n                <option value=\"2\">3/8 inch</option>\n                <option value=\"3\">1/2 inch</option>\n                <option value=\"4\">3/4 inch</option>\n                <option value=\"5\">xx mm\"</option>\n                </select>\n            </div>\n        </td>\n        <tr>\n        </table>\n     </div>   \n    </fieldset>\n    <p>\n<!-- ################################################################ -->\n    <fieldset>\n    <legend><font color=\"red\"  size=\"4\">Concrete Mix</font></legend>\n        \n        <div>\n        <label>Is concrete mix available?*</label>\n        <input required autocomplete=\"off\" type=\"radio\" onclick=\"handleConcreteMixClick(this);\" name=\"concretemix\" id=\"concretemix\" value=\"1\"> yes\n        <input autocomplete=\"off\" type=\"radio\" onclick=\"handleConcreteMixClick(this);\" name=\"concretemix\" id=\"concretemix\" value=\"2\"> no\n        <div>\n\n    <div id=\"concretemixdetails\">        \n    <table>\n        <tr>\n        <td>\n            <div id=\"Qcement\" style=\"width:250px\">\n                        <label for=\"Qcement\">Cement*</label><br>\n                        <input  name=\"iQcement\" id=\"iQcement\" type=\"text\" placeholder=\"Cement\" class=\"medium\">\n                        <label for=\"unit\"  id=\"unitcement\"></label>\n            </div>\n        </td>\n        <td>\n            <div id=\"Qsand\" style=\"width:250px\">\n                        <label for=\"Qsand\">Fine aggregate*</label><br>\n                        <input  id=\"iQsand\" name=\"iQsand\" type=\"text\" placeholder=\"Sand\" class=\"medium\">\n                        <label for=\"unit\"  id=\"unitsand\"></label>\n            </div>\n        </td>\n            <td>\n            <div id=\"Qagg1\" style=\"width:250px\">\n                        <label for=\"Qagg1\">Coarse aggregate 1*</label>\n                        <input  id=\"iQagg1\" name=\"iQagg1\" type=\"text\" placeholder=\"Aggregate 1\" class=\"medium\">\n                        <label for=\"unit\"  id=\"unitagg1\"></label>\n            </div>\n        </td>\n    </tr>\n        <tr>\n            <td>\n            <div id=\"Qagg2\" style=\"width:250px\">\n                        <label for=\"Qagg2\">Coarse aggregate 2*</label><br>\n                        <input  id=\"iQagg2\" name=\"iQagg2\" type=\"text\" placeholder=\"Aggregate 2\" class=\"medium\">\n                        <label for=\"unit\"  id=\"unitagg2\"></label>\n            </div>\n        </td>\n<td>\n            <div id=\"Qwater\" style=\"width:250px\">\n                        <label for=\"Qwater\">Water*</label><br>\n                        <input  id=\"iQwater\" name=\"iQwater\" type=\"text\" placeholder=\"Water\" class=\"medium\">\n                        <label for=\"unit\"  id=\"unitwater\"></label>\n            </div>\n        </td>\n    </tr>   \n    \n    </table>\n    </div>\n    </fieldset>\n    <p>\n<!-- ################################################################ -->   \n<fieldset>\n    <legend><font color=\"red\"  size=\"4\">Admixture</font></legend>\n    <div>\n    \n    <label>Is Admixture available?*</label>\n    <input required autocomplete=\"off\" type=\"radio\" onclick=\"handleAdmixture(this);\" name=\"admix\" id=\"admix\" value=\"1\"> yes\n    <input autocomplete=\"off\" type=\"radio\" onclick=\"handleAdmixture(this);\" name=\"admix\" id=\"admix\" value=\"2\"> no\n    <div>\n\n    <div id=\"admixture\"> \n\n    <table>\n        <tr>\n        <td>\n            <div id=\"targetalklainity\" style=\"width:250px\">\n                        <label for=\"targetalkalinity\">Target Cement Alkalinity*</label><br>\n                        <input  name=\"targetalkalinity\" id=\"targetalkalinity\" type=\"text\" placeholder=\"\" class=\"small\">\n                        <label for=\"unit\"  id=\"unitadmix1\"></label>\n            </div>\n        </td>\n        \n        <td>\n            <div id=\"cementalklainity\" style=\"width:250px\">\n                        <label for=\"cementalkalinity\">Cement Alkalinity*</label><br>\n                        <input  name=\"cementalkalinity\" id=\"cementalkalinity\" type=\"text\" placeholder=\"\" class=\"small\">\n                        <label for=\"unit\"  id=\"unitadmix2\"></label>\n            </div>\n        </td>\n        <td>\n            <div id=\"SodiumHydroxideAdded\" style=\"width:250px\">\n                        <label for=\"SodiumHydroxideAdded\">Sodium Hydroxide Added*</label><br>\n                        <input  name=\"SodiumHydroxideAdded\" id=\"SodiumHydroxideAdded\" type=\"text\" placeholder=\"\" class=\"small\">\n                        <label for=\"unit\"  id=\"unitadmix3\"></label>\n            </div>\n        </td>\n    </tr>\n    </table>\n    <hr size=1>\n    <table>\n    <tr>\n        <td>\n            <div id=\"flyash\" style=\"width:250px\">\n                        <label for=\"flyash\">Fly Ash*</label><br>\n                        <input  name=\"flyash\" id=\"flyash\" type=\"text\" placeholder=\"\" class=\"small\">\n                        <label for=\"unit\"  id=\"unitash\"></label>\n\n\n            </div>\n        </td>\n        \n        <td>\n            <div id=\"lithium\" style=\"width:250px\">\n                        <label for=\"lithium\">Lithium*</label><br>\n                        <input  name=\"lithium\" id=\"lithium\" type=\"text\" placeholder=\"\" class=\"small\">\n                        <label for=\"unit\"  id=\"unitlithium\"></label>\n\n            </div>\n        </td>\n                <td>\n            <div id=\"metakaolin\" style=\"width:250px\">\n                        <label for=\"metakaolin\">Metakaolin*</label><br>\n                        <input  name=\"metakaolin\" id=\"metakaolin\" type=\"text\" placeholder=\"\" class=\"small\">\n                        <label for=\"unit\"  id=\"unitmetakaolin\"></label>\n\n            </div>\n        </td>\n    </tr>\n    </table>\n    <hr size=1>\n    <table>\n    <tr>\n    <td>\n            <div id=\"waterreduce\" style=\"width:250px\">\n                        <label for=\"waterreduce\">Water Reducing agent*</label><br>\n                        <input  name=\"waterreduce\"  id=\"waterreduce\" type=\"text\" placeholder=\"\" class=\"small\">\n                        <label for=\"unit\"  id=\"unitwaterreducingagent\"></label>\n            </div>\n        </td>\n        <td>\n            <div id=\"airentrain\" style=\"width:250px\">\n                        <label for=\"airentrain\">Air-Entraining agent*</label><br>\n                        <input  name=\"airentrain\" id=\"airentrain\" type=\"text\" placeholder=\"\" class=\"small\">\n                     <label for=\"unit\"  id=\"unitairentrainingagent\"></label>\n            </div>\n        </td>       \n    </tr>\n    </table>\n    </div>\n    </fieldset>\n    <p>\n<!-- ################################################################ -->   \n    <fieldset>\n    <legend><font color=\"red\"  size=\"4\">Fresh Concrete</font></legend>\n    <table>\n        <tr>\n        <td>\n            <div id=\"ambtemp\" style=\"width:150px\">\n                        <label for=\"ambtemp\">Ambient temp.:</label><br>\n                        <input  name=\"ambtemp\" id=\"ambtemp\" type=\"text\" placeholder=\"\" class=\"small\">\n                        <label for=\"unit\"  id=\"unitambienttemp\"></label>                        \n            </div>\n        </td>\n        <td>\n            <div id=\"wetconctemp\" style=\"width:150px\">\n                        <label for=\"wetconctemp\">Wet concrete temp.:</label><br>\n                        <input  name=\"wetconctemp\" id=\"wetconctemp\" type=\"text\" placeholder=\"\" class=\"small\">\n                        <label for=\"unit\"  id=\"unitwetconcretetemp\"></label>                    </div>\n        </td>\n                <td>\n            <div id=\"slump\" style=\"width:150px\">\n                        <label for=\"slump\">Slump:</label><br>\n                        <input  name=\"slump\" id=\"slump\" type=\"text\" placeholder=\"\" class=\"small\">\n                        <label for=\"unit\"  id=\"unitslump\"></label>\n            </div>\n        </td>\n        <td>\n            <div id=\"aircontent\" style=\"width:150px\">\n                        <label for=\"aircontent\">Air content:</label><br>\n                        <input  name=\"aircontent\" id=\"aircontent\" type=\"text\" placeholder=\"\" class=\"small\">\n                        <label for=\"unit\"  id=\"unitaircontent\">\n            </div>\n        </td>\n        <td>\n            <div id=\"unitweight\" style=\"width:150px\">\n                        <label for=\"unitweight\">Unit weight:</label><br>\n                        <input  name=\"unitweight\" id=\"unitweight\" type=\"text\" placeholder=\"\" class=\"small\">\n                        <label for=\"unit\"  id=\"unitwght\">\n\n            </div>\n        </td>\n    </tr>\n    </table>\n    </fieldset>\n    <p>\n<!-- ################################################################ -->   \n<fieldset>\n    <legend><font color=\"red\"  size=\"4\">Conditioning</font></legend>\n    Of specimens after casting, or after site recovery.\n    <p>\n    <table> \n        <tr>\n            <td>\n            <div id=\"precurtime\" style=\"width:250px\">\n                <label for=\"precurtime\">First:</label><br>\n                <select  name=\"precurtime\">\n                <option value=\"\">Select...</option>\n                <option value=\"1\">12 hrs</option>\n                <option value=\"2\">24 hrs</option>\n                <option value=\"3\">48 hrs</option>\n                <option value=\"3\">72 hrs</option>\n            </select>\n            </div>\n            </td>\n            <td>\n            <div id=\"precurstorage\" style=\"width:250px\">\n                <label for=\"precurstorage\">Stored in:</label><br>\n                <select  name=\"precurstorage\">\n                <option value=\"\">Select...</option>\n                <option value=\"1\">Reactor</option>\n                <option value=\"2\">Fog room</option>\n                <option value=\"3\">Lab floor</option>\n                <option value=\"4\">Outside</option>\n                </select>\n            </div>\n            </td>\n            <td>\n            <div id=\"expcondtemp\" style=\"width:150px\">\n                        <label for=\"expcondtemp\">at Temperature:</label><br>\n                        <input  name=\"expcondtemp\" id=\"expcondtemp\" type=\"text\" placeholder=\"Temp.\" class=\"small\">\n                        <label for=\"unit\"  id=\"unitattemp\">\n            </div>\n        </td>\n            <td>\n            <div id=\"massgain\" style=\"width:150px\">\n                        <label for=\"massgain\">Mass gained:</label><br>\n                        <input  name=\"massgain\" id=\"massgain\" type=\"text\" placeholder=\"Temp.\" class=\"small\">\n                        <label for=\"unit\"  id=\"unitmassgained\">\n            </div>\n        </td>\n        <td>\n            <div id=\"initialexpan\" style=\"width:150px\">\n                        <label for=\"initialexpan\">Initial expansion:</label><br>\n                        <input  name=\"initialexpan\" id=\"initialexpan\" type=\"text\" placeholder=\"Temp.\" class=\"small\"> %\n            </div>\n        </td>\n        <tr>\n        </table>\n        <tr>\n        <td>\n        <p class=\"formfield\">\n        <label for=\"exposuredescription\">Exposure Description:</label>\n        <textarea  id=\"exposuredescription\" ></textarea>\n        </td>\n        </tr>\n        </table>\n        </fieldset>\n    <p>\n    <!-- ################################################################ -->   \n    <fieldset>\n    <legend><font color=\"red\"  size=\"4\">Curing conditions</font></legend>\n    <table>\n        <tr>\n            <td>\n                <div id=\"curstorage\" style=\"width:250px\">\n                    <label for=\"curstorage\">Storage location:</label><br>\n                    <select  name=\"curstorage\">\n                    <option value=\"\">Select...</option>\n                    <option value=\"1\">Reactor</option>\n                    <option value=\"2\">Fog room</option>\n                    <option value=\"3\">Lab floor</option>\n                    <option value=\"4\">Outside</option>\n                    </select>\n                 </div>                \n            </td>\n            <td>\n                <div id=\"curmoistcontrol\"  style=\"width:350px\">\n                    <label for=\"curmoistcontrol\">Moisture control:</label><br>\n                    <select  name=\"curmoistcontrol\">\n                    <option value=\"\">Select...</option>\n                    <option value=\"1\">Fully immersed in Water</option>\n                    <option value=\"2\">Fully immersed in NaOH solution</option>\n                    <option value=\"3\">Partially immersed in Water</option>\n                    <option value=\"4\">Partially immersed in NaOH solution</option>\n                    <option value=\"5\">Fog Room</option>\n                    <option value=\"6\">None</option>\n                    </select>\n                </div>                    \n            </td>   \n        <td>\n        <div id=\"Storage relative humidity\" >\n            <label for=\"curstorageRH\">Storage RH %:</label>\n            <input  name=\"curstorageRH\" id=\"curstorageRH\" type=\"text\" placeholder=\"Storage RH (%)\" class=\"small\">\n        </div>\n        </td>\n        <td>\n        <div id=\"curtemperature\" >\n            <label for=\"curtemperature\">Temperature:</label>\n            <input  name=\"curtemperature\" id=\"curtemperature\" type=\"text\" placeholder=\"\" class=\"small\">\n            <label for=\"unit\"  id=\"curingtemp\">\n        </div>\n        </td>\n   </tr>    \n   <tr>\n            <td colspan =\"2\">\n        <p class=\"formfield\">\n        <label for=\"curingdescription\">Curing Description:</label>\n        <textarea  id=\"curingdescription\"  name=\"curingdescription\"></textarea>\n        </td>\n   </tr>\n    </table> \n        \n        \n</fieldset>\n    <p>\n<!-- ################################################################ -->   \n    <fieldset>\n    <legend><font color=\"red\"  size=\"4\">Mechanical Properties</font></legend>\n    <table>\n        <tr>\n        <td>\n            <div id=\"fc7\" style=\"width:250px\">\n                        <label for=\"fc7\">Compressive Strength:</label><br>\n                        7 days <input  id=\"fc7\" name=\"fc7\" type=\"text\" placeholder=\"7 days fc\" class=\"small\">\n                        <label for=\"unit\"  id=\"unitmech1\">\n            </div>\n        </td>\n        \n        <td>\n            <div id=\"ft7\" style=\"width:250px\">\n                        <label for=\"ft7\">Tensile splitting strength:</label><br>\n                        7 days <input  name=\"ft7\" id=\"ft7\" type=\"text\" placeholder=\" 7 days ft\" class=\"small\">\n                        <label for=\"unit\"  id=\"unitmech2\">\n            </div>\n        </td>\n        <td>\n            <div id=\"Young7\" style=\"width:250px\">\n                        <label for=\"young7\">Elastic Modulus:</label><br>\n                        7 days <input  id=\"young7\" name=\"young7\" type=\"text\" placeholder=\"7 days E\" class=\"small\">\n                        <label for=\"unit\"  id=\"unitmech3\">\n            </div>\n        </td>\n    </tr>\n    <tr>\n    <td>\n            <div id=\"fc28\" style=\"width:250px\">\n                        <label for=\"fc28\"></label><br>\n                        28 days <input id=\"fc28\" name=\"fc28\" type=\"text\" placeholder=\"7 days fc\" class=\"small\">\n                        <label for=\"unit\"  id=\"unitmech4\">\n            </div>\n        </td>\n        \n        <td>\n            <div id=\"ft28\" style=\"width:250px\">\n                        <label for=\"ft28\"></label><br>\n                        28 days <input id=\"ft28\" name=\"ft28\" type=\"text\" placeholder=\" 7 days ft\" class=\"small\">\n                        <label for=\"unit\"  id=\"unitmech5\">\n            </div>\n        </td>\n        <td>\n            <div id=\"Young28\" style=\"width:250px\">\n                        <label for=\"young28\"></label><br>\n                        28 days <input id=\"young28\" name=\"young28\" type=\"text\" placeholder=\"7 days E\" class=\"small\">\n                        <label for=\"unit\"  id=\"unitmech6\">\n            </div>\n        </td>\n    </tr>\n    </tr>\n    \n    \n    </table>\n    </fieldset>\n    <p> \n<!-- ################################################################ -->   \n    <fieldset>\n    <legend><font color=\"red\"  size=\"4\">Upload data</font></legend>\n    <p>\n    Note: May upload only one .xlsx, and one .pdf file. The pdf file shall contain all relevant information you would like to share with the research community. The excel file may contain multiple test results and MUST confirm with the specifications of this sample file.\n\n\n    </br></br>\n    Select file to upload: <input type=\"file\" name=\"fileToUpload\" id=\"fileToUpload\">\n\n    </fieldset> \n    <p>\n    <!-- ################################################################ -->    \n\n\n<fieldset>\n                <legend><font color=\"red\"  size=\"4\">Data Set</font></legend>\n<table>\n<tr>\n        <td>\n           <div style=\"width:200px\">\n                    <label for=\"dataset\">Action</label><br>\n                    <select name=\"action\">\n                    <option value=\"\">Select...</option>\n                    <option value=\"1\">Overwrite existing</option>\n                    <option value=\"2\">Save as new</option>\n                    <option value=\"3\">Delete all entries</option>\n                    </select>\n    </div>\n         </td>\n                <td>\n                 <div style=\"width:200px\">\n                    <label for=\"dataset\">Data Set:</label><br>\n                    <select name=\"concrete type\">\n                    <option value=\"\">Select...</option>\n                    <option value=\"1\">1</option>\n                    <option value=\"2\">2</option>\n                    <option value=\"3\">3</option>\n                    <option value=\"4\">4</option>\n                    <option value=\"5\">5</option>\n                    </select>\n                    </div>\n         </td>\n         <td>\n                     <div style=\"width:200px\">\n                        <label for=\"currentdataset\">Displayed data set:</label><br>\n                        <input id=\"currentdataset\" class=\"small\" type=\"text\" placeholder=\"\">\n                    </div>\n                </td>   \n                 <div style=\"width:250px\">\n                         <td>\n                        <label for=\"totnumberdatasets\">Total number of stored data sets:</label><br>\n                <input disabled id=\"currentdataset\" class=\"small\" type=\"text\" placeholder=\"\">\n                    </div>\n                </td>   \n                     <td>\n            <button type=\"button\" id=\"btn01\" text=\"submit\">submit</button>\n                    </div>\n                </td>\n    <tr>\n                  <button onclick=\"window.open('sample.xlsx','_self',false)\" id=\"download_sample\" type=\"button\">Download sample entry file</button> \n     </tr>             \n</table>\n\n        </fieldset>\n        <p>\n\n            <input type=\"submit\" value=\"submit\">\n    \n<div>    \n\n\n<div id=\"disqus_thread\"></div>\n<script>\n    /**\n     *  RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.\n     *  LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables\n     */\n    /*\n    var disqus_config = function () {\n        this.page.url = PAGE_URL;  // Replace PAGE_URL with your page's canonical URL variable\n        this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable\n    };\n    */\n    (function() {  // DON'T EDIT BELOW THIS LINE\n        var d = document, s = d.createElement('script');\n        \n        s.src = '//aarpforum.disqus.com/embed.js';\n        \n        s.setAttribute('data-timestamp', +new Date());\n        (d.head || d.body).appendChild(s);\n    })();\n</script>\n<noscript>Please enable JavaScript to view the <a href=\"https://disqus.com/?ref_noscript\" rel=\"nofollow\">comments powered by Disqus.</a></noscript>\n\n</body>\n\n</html>\n\n";
}
Example #5
0
<?php

// Filter GET data here...
$aUser = fetchUser($_GET['id']);
$oForm->fill($aUser);
if (!empty($_POST)) {
    $oForm->fill($_POST);
}