本文整理汇总了PHP中BigTree::getFieldSelectOptions方法的典型用法代码示例。如果您正苦于以下问题:PHP BigTree::getFieldSelectOptions方法的具体用法?PHP BigTree::getFieldSelectOptions怎么用?PHP BigTree::getFieldSelectOptions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BigTree
的用法示例。
在下文中一共展示了BigTree::getFieldSelectOptions方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: htmlspecialchars
} 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"]);
示例2:
<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>
示例3: htmlspecialchars
<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
}
示例4:
<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">
示例5: isset
<?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>
示例6:
?>
<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
示例7:
<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
示例8: htmlspecialchars
<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>
示例9: htmlspecialchars
} 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"]);
示例10: isset
<?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>
示例11: isset
<?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>
示例12: isset
<?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"]) {
?>