function generateClassForm() { echo "<form method=\"GET\" action=\"classes.php\">"; // Radio buttons to choose what to search for makeRadioButtons("selectMode", array("className", "repeatedOn", "instructor.name")); echo " "; // Allow user to type in a string to compare to makeTextInput("select", "Search..."); // Choose which attributes to project from query echo "<br>Display:"; makeCheckbox("activity_ID", 1); echo "Activity ID"; makeCheckbox("name", 1); echo "Name"; makeCheckbox("day", 1); echo "Start Date"; makeCheckbox("start_time", 1, TRUE); echo "Start Time"; makeCheckbox("end_time", 1, TRUE); echo "End Time"; makeCheckbox("repeatedOn", 1); echo "Repeats On"; makeCheckbox("NumOfSessions", 1); echo "#ofSessions"; makeCheckbox("roomNum", 1); echo "Room"; makeCheckbox("maxSize", 1); echo "Max Size"; makeCheckbox("price", 1); echo "Price"; makeCheckbox("teaches.name", 1); echo "Instructor"; echo "<br>"; echo "<input class=\"pure-button\"type=\"submit\" value=\"Filter\"></form>"; }
<div class="col-sm-6"> <p class="form-control-static"><?php echo $listing->approvedDate; ?> </p> </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 control-label">Approved</label> <div class="col-sm-6"> <div class="panel panel-success"> <div class="panel-heading">Approve this pet listing and make it public?</div> <div class="panel-body"> <?php makeRadioButtons('approved', array(1, 0), array("Yes", "No"), $listing->approved); ?> </div> </div> </div> </div> <div class="form-group"> <div class="col-sm-3"> <a role="button" href="<?php echo $listURL; ?> " class="btn btn-default btn-lg">Cancel</a> </div> <div class="col-sm-3"> <button type="submit" name="submit" value="delete" class="btn btn-danger">Delete</button>