Example #1
0
      <?php 
    }
    ?>
                                    
      <?php 
    if (in_array('Name', $in_listing)) {
        ?>
                              
      <td>
        <?php 
        echo link_to($tasks['name'], 'tasksComments/index?tasks_id=' . $tasks['id'] . '&projects_id=' . $tasks['projects_id']);
        ?>
 
        <?php 
        if ($has_comments_access) {
            echo ' ' . app::getLastCommentByTable('TasksComments', 'tasks_id', $tasks['id']);
        }
        ?>
      </td>
      <?php 
    }
    ?>
      
      <?php 
    if (in_array('TasksStatus', $in_listing)) {
        ?>
      <td><?php 
        echo app::getArrayName($tasks, 'TasksStatus');
        ?>
</td>
      <?php 
Example #2
0
        ?>
      <td><?php 
        echo app::getArrayName($projects, 'ProjectsStatus');
        ?>
</td>
      <?php 
    }
    ?>
                        
      <td>
        <?php 
    echo link_to($projects['name'], 'projects/open?projects_id=' . $projects['id']);
    ?>
        <?php 
    if ($has_comments_access) {
        echo ' ' . app::getLastCommentByTable('ProjectsComments', 'projects_id', $projects['id']);
    }
    ?>
      </td>
      
      <?php 
    if ($is_filter['type']) {
        ?>
      <td><?php 
        echo app::getArrayName($projects, 'ProjectsTypes');
        ?>
</td>
      <?php 
    }
    ?>
            
Example #3
0
        ?>
      <td><?php 
        echo app::getArrayName($tickets, 'TicketsTypes');
        ?>
</td>
      <?php 
    }
    ?>
                  
      <td>
        <?php 
    echo link_to($tickets['name'], 'ticketsComments/index?tickets_id=' . $tickets['id'] . ($tickets['projects_id'] > 0 ? '&projects_id=' . $tickets['projects_id'] : ''));
    ?>
        <?php 
    if ($has_comments_access) {
        echo ' ' . app::getLastCommentByTable('TicketsComments', 'tickets_id', $tickets['id']);
    }
    ?>
      </td>
                  
      <td><?php 
    echo app::getArrayName($tickets, 'Departments');
    ?>
</td>
                        
      <td><?php 
    echo $tickets['Users']['name'];
    ?>
</td>
      <td><?php 
    echo app::dateTimeFormat($tickets['created_at'], 0, true);
Example #4
0
        ?>
      <td><?php 
        echo app::getArrayName($discussions, 'DiscussionsStatus');
        ?>
</td>
      <?php 
    }
    ?>
                  
      <td>
        <?php 
    echo link_to($discussions['name'], 'discussionsComments/index?discussions_id=' . $discussions['id'] . ($discussions['projects_id'] > 0 ? '&projects_id=' . $discussions['projects_id'] : ''));
    ?>
        <?php 
    if ($has_comments_access) {
        echo ' ' . app::getLastCommentByTable('DiscussionsComments', 'discussions_id', $discussions['id']);
    }
    ?>
 
      </td>
                  
      <td><?php 
    echo $discussions['Users']['name'];
    ?>
</td>            
                                                
      <?php 
    $v = ExtraFieldsList::getValuesList($extra_fields, $discussions['id']);
    echo ExtraFieldsList::renderListingTbody($extra_fields, $v);
    $totals = ExtraFieldsList::getListingTotals($totals, $extra_fields, $v);
    ?>