require_once('includes/common.php');
require_once('includes/SI_ProjectStatus.php');
require_once('includes/SI_ProjectPriority.php');
require_once('includes/SI_TaskStatus.php');
require_once('includes/SI_TaskPriority.php');

checkLogin("admin");

$project_status = new SI_ProjectStatus();
$project_statuses = $project_status->retrieveSet();
if($project_statuses === FALSE){
	$error_msg .= "Error getting project statuses!\n";
	debug_message($project_status->getLastError());
}

$project_priority = new SI_ProjectPriority();
$project_prioirities = SI_ProjectPriority::retrieveSet();
if($project_prioirities === FALSE){
	$error_msg .= "Error getting project priorities!\n";
	debug_message($project_priority->getLastError());
}

$task_priority = new SI_TaskPriority();
$task_prioirities = $task_priority->retrieveSet();
if($task_prioirities === FALSE){
	$error_msg .= "Error getting list of task priorities!\n";
	debug_message($task_priority->getLastError());
}

$task_status = new SI_TaskStatus();
$task_statuses = SI_TaskStatus::retrieveSet();
Beispiel #2
0
<tr>
	<td class="form_field_header_cell">Project Status:</td>
	<td class="form_field_cell">
		<select name="project_status_id" class="input_text" tabindex="3">
			<?php 
echo SI_ProjectStatus::getSelectTags();
?>
		</select>
	</td>
</tr>
<tr>
	<td class="form_field_header_cell">Project Priority:</td>
	<td class="form_field_cell">
		<select name="project_priority_id" class="input_text" tabindex="4">
			<?php 
echo SI_ProjectPriority::getSelectTags();
?>
		</select>
	</td>
</tr>
<tr>
	<td class="form_field_header_cell">Default Item Code:</td>
	<td class="form_field_cell">
		<select name="default_item_code_id" class="input_text" tabindex="5">
			<option value="0">None</option>
			<?php 
echo SI_ItemCode::getSelectTags();
?>
		</select>
	</td>
</tr>
Beispiel #3
0
<tr>
	<td class="form_field_header_cell">Status:</td>
	<td class="form_field_cell">
		<select name="project_status_id" class="input_text">
			<?php 
echo SI_ProjectStatus::getSelectTags($project->project_status_id);
?>
		</select>
	</td>
</tr>
<tr>
	<td class="form_field_header_cell">Priority:</td>
	<td class="form_field_cell">
		<select name="project_priority_id" class="input_text">
			<?php 
echo SI_ProjectPriority::getSelectTags($project->project_priority_id);
?>
		</select>
	</td>
</tr>
<tr>
	<td class="form_field_header_cell">Owner:</td>
	<td class="form_field_cell">
		<select name="owner_id" class="input_text">
			<?php 
echo SI_User::getSelectTags($project->owner_id);
?>
		</select>
	</td>
</tr>
<tr>