本文整理匯總了PHP中Tasks::getThemAll方法的典型用法代碼示例。如果您正苦於以下問題:PHP Tasks::getThemAll方法的具體用法?PHP Tasks::getThemAll怎麽用?PHP Tasks::getThemAll使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Tasks
的用法示例。
在下文中一共展示了Tasks::getThemAll方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: task_Management
public function task_Management()
{
$data['task'] = Tasks::getThemAll();
$data['vaccine'] = Vaccines::getThemAll();
$data['content_view'] = "add_task_view";
$data['title'] = "New task";
$this->base_params($data);
}
示例2:
?>
<table border="0" class="data-table">
<tr>
<th class="subsection-title" colspan="2">Input Parameters</th>
</tr>
<tbody>
<tr>
<td><span class="mandatory">*</span>Task name</td>
<td>
<select id="combo1" name="combo1">
<option value="chose">Choose One</option>
<?php
$task = Tasks::getThemAll();
foreach ($task as $tasks)
{
echo '<option value="'. $tasks['id'].'">'. $tasks['name'].'</option>';
}
?>
</select></td>
</tr>
<tr>
<td><span class="mandatory">*</span>Vaccine</td>