本文整理汇总了PHP中AdminHelper::echoSettingsOptions方法的典型用法代码示例。如果您正苦于以下问题:PHP AdminHelper::echoSettingsOptions方法的具体用法?PHP AdminHelper::echoSettingsOptions怎么用?PHP AdminHelper::echoSettingsOptions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AdminHelper
的用法示例。
在下文中一共展示了AdminHelper::echoSettingsOptions方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
?>
" />
<div class="row_seperator">.</div>
<label for="connection_id">Connect To</label><br />
<select id="connection_id" name="connection_id">
<option value="0"<?php
if ($current_list['connection_id'] == 0) {
?>
selected="selected"<?php
}
?>
>None (local list only)</option>
<?php
AdminHelper::echoSettingsOptions('lists', $current_list['connection_id']);
?>
</select>
</div>
<div class="col_oneoftwo lastcol">
<h3> </h3>
<label for="list_description">Description</label><br />
<textarea rows="3" id="list_description" name="list_description"><?php
echo $current_list['description'];
?>
</textarea>
</div>
<div class="row_seperator">.</div><br />
<div>
示例2: str_replace
" />
<div class="row_seperator">.</div>
<label for="asset_description">Description</label><br />
<textarea rows="3" id="asset_description" name="asset_description"><?php
echo str_replace('"', '"', $current_asset['description']);
?>
</textarea>
<div class="row_seperator">.</div>
<div class="col_oneoftwo">
<label for="connection_id">Use Settings</label><br />
<select id="connection_id" name="connection_id">
<option value="0" selected="selected">None (Normal http:// link)</option>
<?php
AdminHelper::echoSettingsOptions('assets', $current_asset['connection_id']);
?>
</select>
</div>
<div class="col_oneoftwo lastcol">
<label for="asset_location">Location (URI)</label><br />
<input type="text" id="asset_location" name="asset_location" value="<?php
echo str_replace('"', '"', $current_asset['location']);
?>
" />
</div>
<div class="row_seperator">.</div><br />
<div class="col_oneoftwo">
示例3:
<h2>Add A New List</h2>
<form method="post" action="<?php
echo ADMIN_WWW_BASE_PATH . '/people/lists/add/';
?>
" id="lists">
<input type="hidden" name="dolistadd" value="makeitso" />
<label for="list_name">Name</label><br />
<input type="text" id="list_name" name="list_name" value="" placeholder="Give It A Name" />
<div class="row_seperator">.</div>
<label for="list_description">Description</label><br />
<textarea rows="3" id="list_description" name="list_description"></textarea>
<div class="row_seperator">.</div>
<label for="connection_id">Connect To</label><br />
<select id="connection_id" name="connection_id">
<option value="0" selected="selected">None (local list only)</option>
<?php
AdminHelper::echoSettingsOptions('lists');
?>
</select>
<div class="row_seperator">.</div><br />
<div>
<input class="button" type="submit" value="Add The New List" />
</div>
</form>
</div>
示例4:
<h3>Asset Details</h3>
<label for="asset_title">Title / Name</label><br />
<input type="text" id="asset_title" name="asset_title" value="" placeholder="Give It A Name" />
<div class="row_seperator">.</div>
<label for="asset_description">Description</label><br />
<textarea rows="3" id="asset_description" name="asset_description"></textarea>
<div class="row_seperator">.</div>
<div class="col_oneoftwo">
<label for="connection_id">Use Settings</label><br />
<select id="connection_id" name="connection_id">
<option value="0" selected="selected">None (Normal http:// link)</option>
<?php
AdminHelper::echoSettingsOptions('assets');
?>
</select>
</div>
<div class="col_oneoftwo lastcol">
<label for="asset_location">Location (URI)</label><br />
<input type="text" id="asset_location" name="asset_location" value="" placeholder="URL, S3 path, or SoundCloud URL" />
</div>
<div class="row_seperator">.</div><br />
<div class="col_oneoftwo">
<div>
<label>Tags</label><br />
<a href="#" class="injectbefore" rev="<input type='text' name='tag' value='' placeholder='Tag' />"><small>+ ADD TAG</small></a>