当前位置: 首页>>代码示例>>PHP>>正文


PHP BigTree::getFieldSelectOptions方法代码示例

本文整理汇总了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 &quot;Other Table&quot;" />
		<?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 &quot;Other Table&quot;" />
		<?php 
}
?>
	</div>
</fieldset>
<fieldset>
	<label>List Parser Function</label>
	<input type="text" name="mtm-list-parser" value="<?php 
echo htmlspecialchars($data["mtm-list-parser"]);
开发者ID:matthisamoto,项目名称:Graphfan,代码行数:31,代码来源:many-to-many.php

示例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 &quot;Other Table&quot;" />
				<?php 
}
?>
			</div>
		</fieldset>
	</article>
</section>
开发者ID:kurt-planet,项目名称:BigTree-CMS,代码行数:31,代码来源:_gbp.php

示例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 
}
开发者ID:kurt-planet,项目名称:BigTree-CMS,代码行数:31,代码来源:rss.php

示例4:

		<input type="text" disabled="disabled" value="Please select &quot;Other Table&quot;" />
		<?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 &quot;Other Table&quot;" />
		<?php 
}
?>
	</div>
</fieldset>

<fieldset>
	<label>Sort Direction</label>
	<select name="ot_sort_direction">
开发者ID:kurt-planet,项目名称:BigTree-CMS,代码行数:31,代码来源:grouped.php

示例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 "&mdash;";
}
?>
<script>BigTreeCustomControls();</script>
开发者ID:kurt-planet,项目名称:BigTree-CMS,代码行数:28,代码来源:load-table-columns.php

示例6:

    ?>
			<input type="text" disabled="disabled" value="Please select &quot;Table&quot;" />
			<?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 &quot;Table&quot;" />
			<?php 
}
?>
		</div>	
	</fieldset>

	<fieldset>
		<label>List Parser Function</label>
		<input type="text" name="parser" value="<?php 
开发者ID:kalle0045,项目名称:BigTree-CMS,代码行数:31,代码来源:list.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 &quot;Other Table&quot;" />
		<?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 
开发者ID:kurt-planet,项目名称:BigTree-CMS,代码行数:31,代码来源:images-grouped.php

示例8: htmlspecialchars

<fieldset>
	<label>Image Prefix <small>(for using thumbnails, i.e. &ldquo;thumb_&rdquo;)</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>
开发者ID:kurt-planet,项目名称:BigTree-CMS,代码行数:31,代码来源:images.php

示例9: htmlspecialchars

} else {
    ?>
		<input type="text" disabled="disabled" value="Please select &quot;Table&quot;" />
		<?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 &quot;Table&quot;" />
		<?php 
}
?>
	</span>
</fieldset>
<fieldset>
	<label>List Parser Function</label>
	<input type="text" name="parser" value="<?php 
echo htmlspecialchars($data["parser"]);
开发者ID:kurt-planet,项目名称:BigTree-CMS,代码行数:31,代码来源:one-to-many.php

示例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>
开发者ID:kurt-planet,项目名称:BigTree-CMS,代码行数:31,代码来源:searchable.php

示例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>
开发者ID:kurt-planet,项目名称:BigTree-CMS,代码行数:13,代码来源:nested.php

示例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"]) {
    ?>
开发者ID:kurt-planet,项目名称:BigTree-CMS,代码行数:31,代码来源:route.php


注:本文中的BigTree::getFieldSelectOptions方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。