<?php $lc = new listingController('tickets', $url_params, $sf_request, $sf_user); $extra_fields = ExtraFieldsList::getFieldsByType('tickets', $sf_user); $totals = array(); $is_filter = array(); $is_filter['status'] = app::countItemsByTable('TicketsStatus'); $is_filter['type'] = app::countItemsByTable('TicketsTypes'); $has_comments_access = Users::hasAccess('view', 'ticketsComments', $sf_user); ?> <table width="100%"> <tr> <td> <table> <tr> <?php if ($display_insert_button) { ?> <td style="padding-right: 15px;"><?php echo $lc->insert_button(__('Add Ticket')); ?> </td> <?php } ?> <td style="padding-right: 15px;"><div id="tableListingMultipleActionsMenu"><?php echo $lc->rednerWithSelectedAction($tlId); ?> </div></td> <td><?php
<?php $lc = new listingController('tasks', $url_params, $sf_request, $sf_user); $extra_fields = ExtraFieldsList::getFieldsByType('tasks', $sf_user); $totals = array(); $totals['EstimatedTime'] = 0; $totals['WorkHours'] = 0; $is_filter = array(); $is_filter['TasksPriority'] = app::countItemsByTable('TasksPriority'); $is_filter['TasksLabels'] = app::countItemsByTable('TasksLabels'); $is_filter['TasksStatus'] = app::countItemsByTable('TasksStatus'); $is_filter['TasksTypes'] = app::countItemsByTable('TasksTypes'); $is_filter['TasksGroups'] = app::countItemsByTable('TasksGroups', $sf_request->getParameter('projects_id')); $is_filter['Versions'] = app::countItemsByTable('Versions', $sf_request->getParameter('projects_id')); $is_filter['ProjectsPhases'] = app::countItemsByTable('ProjectsPhases', $sf_request->getParameter('projects_id')); $in_listing = explode(',', sfConfig::get('app_tasks_columns_list')); foreach ($is_filter as $k => $v) { if ($v == 0 and array_search($k, $in_listing) > 0) { unset($in_listing[array_search($k, $in_listing)]); } } $cols = 1; $has_comments_access = Users::hasAccess('view', 'tasksComments', $sf_user); ?> <table width="100%"> <tr> <td> <table> <tr>
<?php $lc = new listingController('projects', $url_params, $sf_request, $sf_user); $extra_fields = ExtraFieldsList::getFieldsByType('projects', $sf_user); $totals = array(); $is_filter = array(); $is_filter['status'] = app::countItemsByTable('ProjectsStatus'); $is_filter['type'] = app::countItemsByTable('ProjectsTypes'); $has_comments_access = Users::hasAccess('view', 'projectsComments', $sf_user); ?> <table width="100%"> <tr> <td> <table> <tr> <?php if ($display_insert_button) { ?> <td style="padding-right: 15px;"><?php echo $lc->insert_button(__('Add Project')); ?> </td> <?php } ?> <td style="padding-right: 15px;"><div id="tableListingMultipleActionsMenu"><?php echo $lc->rednerWithSelectedAction($tlId); ?> </div></td>