本文整理汇总了PHP中Projects::getChoices方法的典型用法代码示例。如果您正苦于以下问题:PHP Projects::getChoices方法的具体用法?PHP Projects::getChoices怎么用?PHP Projects::getChoices使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Projects
的用法示例。
在下文中一共展示了Projects::getChoices方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: input_hidden_tag
" method="post">
<?php
echo input_hidden_tag('redirect_to', $sf_request->getParameter('redirect_to'));
if ($sf_request->getParameter('projects_id') > 0) {
echo input_hidden_tag('projects_id', $sf_request->getParameter('projects_id'));
}
echo input_hidden_tag('tickets_id', $sf_request->getParameter('tickets_id'));
?>
<table>
<tr>
<td><?php
echo __('Move To Project');
?>
</td>
<td><?php
echo select_tag('move_to', '', array('choices' => Projects::getChoices('tickets', $sf_user)), array('class' => 'required'));
?>
</td>
</tr>
<tr>
<td></td>
<td><?php
echo __("Note: Destination Project Team should include all Users assigned to selected items.") . '<br>' . __("Users won't have access to Items if they are assigned to these Items but are not in the Project Team");
?>
</td>
</tr>
</table>
<br>
<input type="submit" value="<?php
echo __('Move');
示例2: url_for
?>
</div><br>
<form id="import" action="<?php
echo url_for('tools/xlsTasksImport');
?>
" method="post" enctype="multipart/form-data">
<input type="hidden" name="sf_method" value="put" />
<table class="contentTable">
<tr>
<td><?php
echo __('Project');
?>
</td>
<td><?php
echo select_tag('projects_id', $sf_request->getParameter('project'), array('choices' => Projects::getChoices('', $sf_user)), array('class' => 'required'));
?>
</td>
</tr>
<tr>
<td><?php
echo __('File');
?>
</td>
<td><input type="file" name="import_file" class="required"></td>
</tr>
</table>
<?php
echo submit_tag(__('Load file and bind (map) columns to fields'));
?>