document.getElementById("registerDBForm").style.display = "none"; } </script> <?php // Do the work of registering the database if a suitable title is set if(isset($_POST['dbDescription'])) { if(strlen($_POST['dbDescription']) > 3 && strlen($_POST['dbDescription']) < 1022) { $dbDescription = $_POST['dbDescription']; echo '<script type="text/javascript">'; echo 'document.getElementById("registerDBForm").style.display = "none";'; echo '</script>'; registerDatabase(); // this does all the work } else { echo "The database description should be at least 4 characters, and at most 1021 characters long."; } } ?> <!-- Explanation for the user --> <div class="separator_row" style="margin:20px 0;"></div> <h3>Suggested workflow for new databases:</h3> <?php include("includeNewDatabaseWorkflow.html"); ?> </div> </body>
echo "<div class='input-row'><div class='input-header-cell'><b>Please edit the collection metadata " . "describing this database:</b></div><div class='input-cell'>" . "<a href={$url} target=_blank style='color:red;'>Click here to edit</a> (login as person who registered this database - " . " note: use EMAIL ADDRESS as username)</div></div>"; } else { // New registration, display registration form echo '<script type="text/javascript">'; echo 'document.getElementById("registerDBForm").style.display = "block";'; echo '</script>'; } // new registration // Do the work of registering the database if a suitable title is set if (isset($_POST['dbDescription'])) { if (strlen($_POST['dbDescription']) > 39 && strlen($_POST['dbDescription']) < 1000) { $dbDescription = $_POST['dbDescription']; echo '<script type="text/javascript">'; echo 'document.getElementById("registerDBForm").style.display = "none";'; echo '</script>'; registerDatabase(); // this does all the work of registration } else { echo "<p style='color:red;font-weight:bold'>The database description should be an informative description " . "of the content, of at least 40 characters (max 1000)</p>"; } } ?> <!-- Explanation for the user --> <div class="separator_row" style="margin:20px 0;"></div> <h3>Suggested workflow for new databases:</h3> <p>After creating a new database, please use the links: </p> <div class="detailRow"> <div class="detailType" style="width: 180px !important;">Database > <u>Manage structure</u></div>