<?php } ?> </table> <table class="contentTable" style="width: 100%"> <tr> <td> <div class="itemInfo ticketInfo"> <div class="itemInfoContainer"> <div class="itemDescription"><?php echo replaceTextToLinks($tickets->getDescription()); ?> </div> <div id="extraFieldsInDescription"><?php echo ExtraFieldsList::renderDescriptionFileds('tickets', $tickets, $sf_user); ?> </div> <div><?php include_component('attachments', 'attachmentsList', array('bind_type' => 'tickets', 'bind_id' => $tickets->getId())); ?> </div> </div> </div> <br> <?php echo input_hidden_tag('item_name', $tickets->getName()) . input_hidden_tag('item_description', $tickets->getDescription()); $comments_access = Users::getAccessSchema('ticketsComments', $sf_user, isset($projects) ? $projects->getId() : false); if ($comments_access['view']) { $lc = new cfgListingController($sf_context->getModuleName(), 'tickets_id=' . $tickets->getId() . (isset($projects) ? '&projects_id=' . $projects->getId() : '')); ?>
<?php include_component('projects', 'shortInfo', array('projects' => $projects)); ?> <table class="contentTable" style="width: 100%"> <tr> <td> <div class="itemInfo projectInfo"> <div class="itemInfoContainer"> <div class="itemDescription"><?php echo replaceTextToLinks($projects->getDescription()); ?> </div> <div id="extraFieldsInDescription"><?php echo ExtraFieldsList::renderDescriptionFileds('projects', $projects, $sf_user); ?> </div> <div><?php include_component('attachments', 'attachmentsList', array('bind_type' => 'projects', 'bind_id' => $projects->getId())); ?> </div> </div> </div> <br> <?php $comments_access = Users::getAccessSchema('projectsComments', $sf_user, $projects->getId()); if ($comments_access['view']) { $lc = new cfgListingController($sf_context->getModuleName(), 'projects_id=' . $sf_request->getParameter('projects_id')); ?>
<table class="contentTable" style="width: 100%"> <tr> <td> <div class="itemInfo taskInfo"> <div class="itemInfoContainer"> <div class="itemDescription"><?php echo replaceTextToLinks($tasks->getDescription()); ?> </div> <div id="extraFieldsInDescription"><?php echo ExtraFieldsList::renderDescriptionFileds('tasks', $tasks, $sf_user); ?> </div> <div><?php include_component('attachments', 'attachmentsList', array('bind_type' => 'tasks', 'bind_id' => $tasks->getId())); ?> </div> </div> </div> <br> <?php echo input_hidden_tag('item_name', $tasks->getName()) . input_hidden_tag('item_description', $tasks->getDescription()); ?> <?php
} ?> </table> <table class="contentTable" style="width: 100%"> <tr> <td> <div class="itemInfo discussionInfo"> <div class="itemInfoContainer"> <div class="itemDescription"><?php echo replaceTextToLinks($discussions->getDescription()); ?> </div> <div id="extraFieldsInDescription"><?php echo ExtraFieldsList::renderDescriptionFileds('discussions', $discussions, $sf_user); ?> </div> <div><?php include_component('attachments', 'attachmentsList', array('bind_type' => 'discussions', 'bind_id' => $discussions->getId())); ?> </div> </div> </div> <br> <?php echo input_hidden_tag('item_name', $discussions->getName()) . input_hidden_tag('item_description', $discussions->getDescription()); $comments_access = Users::getAccessSchema('discussionsComments', $sf_user, $projects->getId()); if ($comments_access['view']) { $lc = new cfgListingController($sf_context->getModuleName(), 'projects_id=' . $sf_request->getParameter('projects_id') . '&discussions_id=' . $discussions->getId()); ?>