} else { ?> <input type="text" disabled="disabled" value="Please select "Other Table"" /> <?php } ?> </div> </fieldset> <fieldset> <label>Sort By</label> <div data-name="mtm-sort" class="sort_by pop-dependant mtm-other-table"> <?php if ($data["mtm-other-table"]) { ?> <select name="mtm-sort"><?php BigTree::getFieldSelectOptions($data["mtm-other-table"], $data["mtm-sort"], true); ?> </select> <?php } else { ?> <input type="text" disabled="disabled" value="Please select "Other Table"" /> <?php } ?> </div> </fieldset> <fieldset> <label>List Parser Function</label> <input type="text" name="mtm-list-parser" value="<?php echo htmlspecialchars($data["mtm-list-parser"]);
<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 type="text" disabled="disabled" value="Please select "Other Table"" /> <?php } ?> </div> </fieldset> </article> </section>
<label>Description Content Limit <small>(default is 500 characters)</small></label> <input type="text" name="content_limit" value="<?php echo htmlspecialchars($data["content_limit"]); ?> " /> </fieldset> <fieldset> <label>Link Field</label> <select name="link"> <?php BigTree::getFieldSelectOptions($table, $data["link"]); ?> </select> </fieldset> <fieldset> <label>Link Generator <small>(use field names wrapped in {} to have dynamic links)</small></label> <input type="text" name="link_gen" value="<?php echo htmlspecialchars($data["link_gen"]); ?> " /> </fieldset> <fieldset> <label>Order By</label> <select name="sort"> <?php BigTree::getFieldSelectOptions($table, $data["sort"], true); ?> </select> </fieldset> <?php }
<input type="text" disabled="disabled" value="Please select "Other Table"" /> <?php } ?> </div> </fieldset> <fieldset> <label>Field to Sort By</label> <div data-name="ot_sort_field"> <?php if ($other_table) { ?> <select name="ot_sort_field"> <?php BigTree::getFieldSelectOptions($other_table, $ot_sort_field); ?> </select> <?php } else { ?> <input type="text" disabled="disabled" value="Please select "Other Table"" /> <?php } ?> </div> </fieldset> <fieldset> <label>Sort Direction</label> <select name="ot_sort_direction">
<?php // Notices :( if (count($_GET)) { $field = isset($_GET["field"]) ? $_GET["field"] : ""; $table = isset($_GET["table"]) ? $_GET["table"] : ""; $sort = isset($_GET["sort"]) ? $_GET["sort"] : ""; } else { $field = isset($_POST["field"]) ? $_POST["field"] : ""; $table = isset($_POST["table"]) ? $_POST["table"] : ""; $sort = isset($_POST["sort"]) ? $_POST["sort"] : ""; } if ($table) { ?> <select name="<?php echo htmlspecialchars($field); ?> "> <?php echo BigTree::getFieldSelectOptions($table, $field, $sort); ?> </select> <?php } else { echo "—"; } ?> <script>BigTreeCustomControls();</script>
?> <input type="text" disabled="disabled" value="Please select "Table"" /> <?php } ?> </div> </fieldset> <fieldset> <label>Sort By</label> <div data-name="pop-sort" class="sort_by pop-dependant pop-table"> <?php if ($data["pop-table"]) { ?> <select name="pop-sort"><?php BigTree::getFieldSelectOptions($data["pop-table"], $data["pop-sort"], true); ?> </select> <?php } else { ?> <input type="text" disabled="disabled" value="Please select "Table"" /> <?php } ?> </div> </fieldset> <fieldset> <label>List Parser Function</label> <input type="text" name="parser" value="<?php
<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> <?php } else { ?> <input type="text" disabled="disabled" value="Please select "Other Table"" /> <?php } ?> </div> </fieldset> <fieldset> <label>Group Name Parser <small>($item is the group data, set $value to the new name)</small></label> <textarea name="group_parser"><?php
<fieldset> <label>Image Prefix <small>(for using thumbnails, i.e. “thumb_”)</small></label> <input type="text" name="prefix" value="<?php echo htmlspecialchars($prefix); ?> " /> </fieldset> <fieldset> <label>Image Field</label> <?php if ($table) { ?> <select name="image"> <?php BigTree::getFieldSelectOptions($table, $image); ?> </select> <?php } else { ?> <input name="image" type="text" disabled="disabled" placeholder="Choose a Data Table first." /> <?php } ?> </fieldset> <fieldset> <label>Sort Direction<small>(if not draggable)</small></label> <select name="sort"> <option value="DESC">Newest First</option>
} else { ?> <input type="text" disabled="disabled" value="Please select "Table"" /> <?php } ?> </span> </fieldset> <fieldset> <label>Sort By</label> <span data-name="sort_by_column" class="sort_by pop-dependant table"> <?php if ($data["table"]) { ?> <select name="sort_by_column"><?php BigTree::getFieldSelectOptions($data["table"], $data["sort_by_column"], true); ?> </select> <?php } else { ?> <input type="text" disabled="disabled" value="Please select "Table"" /> <?php } ?> </span> </fieldset> <fieldset> <label>List Parser Function</label> <input type="text" name="parser" value="<?php echo htmlspecialchars($data["parser"]);
<?php // Defaults $sort = isset($options["sort"]) ? $options["sort"] : "id DESC"; $per_page = isset($options["per_page"]) ? $options["per_page"] : 15; ?> <fieldset> <label>Sort By</label> <?php if ($table) { ?> <select name="sort"> <?php BigTree::getFieldSelectOptions($table, $sort, true); ?> </select> <?php } else { ?> <input name="sort" type="text" disabled="disabled" placeholder="Choose a Data Table first." /> <?php } ?> </fieldset> <fieldset> <label>Items Per Page</label> <input type="text" name="per_page" value="<?php echo htmlspecialchars($per_page); ?> " /> </fieldset>
<?php // Defaults $nesting_column = isset($options["nesting_column"]) ? $options["nesting_column"] : ""; ?> <fieldset> <label>Nesting Column <small>(i.e. "parent")</small></label> <select name="nesting_column"> <?php BigTree::getFieldSelectOptions($table, $nesting_column); ?> </select> </fieldset>
<?php // Stop notices $data["source"] = isset($data["source"]) ? $data["source"] : ""; $data["not_unique"] = isset($data["not_unique"]) ? $data["not_unique"] : ""; $data["keep_original"] = isset($data["keep_original"]) ? $data["keep_original"] : ""; ?> <fieldset> <label>Source Field <small>(the table column to use for route generation)</small></label> <select name="source"> <?php echo BigTree::getFieldSelectOptions($_POST["table"], $data["source"]); ?> </select> </fieldset> <fieldset> <input type="checkbox" name="not_unique" <?php if ($data["not_unique"]) { ?> checked="checked" <?php } ?> /> <label class="for_checkbox">Disregard Uniqueness<small>(if this box is checked duplicate routes can exist)</small></label> </fieldset> <fieldset> <input type="checkbox" name="keep_original" <?php if ($data["keep_original"]) { ?>