Пример #1
0
?>
</td>
			<td width="100%">
				<textarea name="unittest_expectedresult" cols="60" style="height:100px; font-size:8pt"><?php 
echo dPformSafe($obj->unittest_expectedresult);
?>
</textarea>
			</td>
		</tr>
<?php 
$project = new CProject();
$projects = $project->getAllowedRecords($AppUI->user_id, 'project_id,project_name', 'project_name', null, $extra);
$projects = arrayMerge(array('0' => $AppUI->_('All', UI_OUTPUT_RAW)), $projects);
if ($obj->test_task) {
    $test_task = $obj->unittest_task_id;
    $task_name = $obj->getTaskName();
} else {
    if ($test_task) {
        $q = new DBQuery();
        $q->addTable('tasks');
        $q->addQuery('task_name');
        $q->addWhere("task_id={$test_task}");
        $sql = $q->prepare();
        $q->clear();
        $task_name = db_loadResult($sql);
    } else {
        $task_name = '';
    }
}
?>