<?php /* PROJECTS $Id: reports.php 5874 2009-04-25 13:04:46Z merlinyoda $ */ if (!defined('DP_BASE_DIR')) { die('You should not access this file directly.'); } $project_id = intval(dPgetParam($_REQUEST, 'project_id', 0)); $report_type = dPgetParam($_REQUEST, 'report_type', ''); // check permissions for this record $canRead = getPermission($m, 'view', $project_id); if (!$canRead) { $AppUI->redirect('m=public&a=access_denied'); } $project_list = array('0' => $AppUI->_('All', UI_OUTPUT_RAW)); $obj = new CProject(); $ptrc = $obj->getAllowedProjectsInRows($AppUI->user_id); $nums = db_num_rows($ptrc); echo db_error(); for ($x = 0; $x < $nums; $x++) { $row = db_fetch_assoc($ptrc); if ($row['project_id'] == $project_id) { $display_project_name = '(' . $row['project_short_name'] . ') ' . $row['project_name']; } $project_list[$row['project_id']] = '(' . $row['project_short_name'] . ') ' . $row['project_name']; } if (!$suppressHeaders) { ?> <script language="javascript"> function changeIt() { var f=document.changeMe;