<section> <div class="left last"> <fieldset> <label class="required">Title <small>(for reference only, not shown in the embed)</small></label> <input type="text" class="required" name="title" value="<?php echo $title; ?> " /> </fieldset> <fieldset> <label class="required">Data Table</label> <select name="table" id="form_table" class="required"> <option></option> <?php BigTree::getTableSelectOptions($table); ?> </select> </fieldset> <fieldset> <label>Thank You Message</label> <textarea name="thank_you_message" id="thank_you_message"><?php echo htmlspecialchars($thank_you_message); ?> </textarea> </fieldset> </div> <div class="right last"> <fieldset> <label>Preprocessing Function <small>(passes in post data, returns keyed array of adds/edits)</small></label>
</select> <?php } else { ?> <input type="text" disabled="disabled" value="Please select "Connecting Table"" /> <?php } ?> </div> </fieldset> <fieldset> <label>Other Table</label> <select name="mtm-other-table" class="table_select"> <option></option> <?php BigTree::getTableSelectOptions($data["mtm-other-table"]); ?> </select> </fieldset> <fieldset> <label>Other Descriptor</label> <div data-name="mtm-other-descriptor" class="pop-dependant mtm-other-table"> <?php if ($data["mtm-other-table"]) { ?> <select name="mtm-other-descriptor"><?php BigTree::getFieldSelectOptions($data["mtm-other-table"], $data["mtm-other-descriptor"]); ?> </select> <?php } else {
} ?> "></a> <?php echo $table; ?> </li> <?php } ?> </ul> <div class="add_table adder"> <a class="icon_small icon_small_add" href="#"></a> <select class="custom_control"> <?php BigTree::getTableSelectOptions(); ?> </select> </div> </article> </section> <footer> <input type="submit" class="button blue" value="Continue" /> </footer> </form> </div> <script> $(".add_table a").click(function(ev) { table = $(this).next().val(); if (table) { li = $("<li>");
} else { ?> <input type="text" disabled="disabled" value="Please select "Main Table"" /> <?php } ?> </div> </fieldset> </article> <article> <fieldset> <label>Other Table</label> <select name="gbp[other_table]" class="table_select"> <option></option> <?php BigTree::getTableSelectOptions($gbp["other_table"]); ?> </select> </fieldset> <fieldset name="gbp[title_field]"> <label>Title Field</label> <div> <?php if ($gbp["other_table"]) { ?> <select name="gbp[title_field]"> <?php BigTree::getFieldSelectOptions($gbp["other_table"], $gbp["title_field"]); ?> </select> <?php
} else { ?> <input name="sort" type="text" disabled="disabled" placeholder="Choose a Data Table first." /> <?php } ?> </fieldset> <h4>Grouping Parameters</h4> <fieldset> <label>Other Table</label> <select name="other_table" class="table_select"> <option></option> <?php BigTree::getTableSelectOptions($other_table); ?> </select> </fieldset> <fieldset> <label>Field to Pull for Title</label> <div data-name="title_field"> <?php if ($other_table) { ?> <select name="title_field"> <?php BigTree::getFieldSelectOptions($other_table, $title_field); ?> </select>
></div> <div class="list_type_options" id="db_list_options"<?php if ($data["list_type"] != "db") { ?> style="display: none;"<?php } ?> > <h4>Database Populated List Options</h4> <fieldset> <label>Table</label> <select name="pop-table" class="table_select"> <option></option> <?php BigTree::getTableSelectOptions($data["pop-table"]); ?> </select> </fieldset> <fieldset> <label>Description Field</label> <div data-name="pop-description" class="pop-dependant pop-table"> <?php if ($data["pop-table"]) { ?> <select name="pop-description"><?php BigTree::getFieldSelectOptions($data["pop-table"], $data["pop-description"]); ?> </select> <?php
<section> <div class="left last"> <fieldset> <label class="required">Item Title <small>(for example, "Question" as in "Adding Question")</small></label> <input type="text" name="title" value="<?php echo $form["title"]; ?> " class="required" /> </fieldset> <fieldset> <label class="required">Data Table</label> <select name="table" id="form_table" class="required"> <option></option> <?php BigTree::getTableSelectOptions($form["table"]); ?> </select> </fieldset> <fieldset> <a href="#" id="manage_hooks"><span class="icon_small icon_small_lightning"></span> Manage Hooks</a> <input name="hooks" type="hidden" id="form_hooks" value="<?php echo htmlspecialchars(json_encode($form["hooks"])); ?> " /> <input type="checkbox" name="tagging" <?php if ($form["tagging"]) { ?> checked="checked" <?php