echo $question->text; ?> </textarea></br> <?php // // If this is a new question (that isn't in the db yet), just show the Add button. // Otherwise, show Modify, Delete and New buttons. // if ($mode == "insert") { echo '<button type="submit" class="btn btn-lg btn-primary btn-block" value="add" name="add-submit" />Add</button>'; } else { echo '<button type="submit" class="btn btn-lg btn-primary btn-block" value="modify" name="modify-submit" />Modify</button>'; echo '<button data-toggle="modal" href="#myModal" class="btn btn-lg btn-primary btn-block" value="delete">Delete</button>'; echo '<button type="submit" class="btn btn-lg btn-primary btn-block" value="new" name="new-submit" />New</button>'; } confirmDeleteModal("question"); ?> </form> <?php print $error; ?> </div> <!-- Bootstrap core JavaScript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <script src="//code.jquery.com/jquery-latest.min.js"></script> <script src="js/bootstrap.js"></script> </body> </html>
} // // If this is a new form (that isn't in the db yet), just show the Add button. // Otherwise, show Modify, Delete and New buttons. // if ($mode == "insert") { echo '<button type="submit" class="btn btn-lg btn-primary btn-block" value="add" name="add-submit" />Add</button>'; } else { echo '<button type="submit" class="btn btn-lg btn-primary btn-block" value="modify" name="modify-submit" />Modify</button>'; echo '<button data-toggle="modal" href="#myModal" class="btn btn-lg btn-primary btn-block" value="delete">Delete</button>'; echo '<button type="submit" class="btn btn-lg btn-primary btn-block" value="new" name="new-submit" />New</button>'; } // // Code for a modal dialog shown on delete requests. // confirmDeleteModal("form"); ?> </form> // // Show errors (or messages). // <?php print $error; ?> </div> <!-- Bootstrap core JavaScript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <script src="//code.jquery.com/jquery-latest.min.js"></script> <script src="js/bootstrap.js"></script> </body>