Esempio n. 1
0
                        <tr>
                            <td colspan="2" class="sectionDetail"><span class="sectionDetailSimple headerPageText">Unresolved Issues By Project</span></td>
                        </tr>
                        <?php 
if ($stats) {
    ?>
                            <?php 
    while ($row = $stats->fetch_array(MYSQLI_ASSOC)) {
        ?>
                                <?php 
        if ($row['name']) {
            ?>
                                    <tr>
                                        <td>
                                            <?php 
            echo LinkHelper::getYongoIssueListPageLink($row['name'], array('page' => 1, 'link_to_page' => '/yongo/issue/search', 'sort' => 'created', 'resolution' => '-2', 'assignee' => $userId, 'project' => $row['project_id'], 'sort_order' => 'desc'));
            ?>
                                        </td>
                                        <td><?php 
            echo $row['total'];
            ?>
</td>
                                    </tr>
                                <?php 
        }
        ?>
                            <?php 
    }
    ?>
                        <?php 
} else {
<?php

use Ubirimi\LinkHelper;
use Ubirimi\Util;
Util::checkUserIsLoggedInAndRedirect();
$projectId = $request->get('id');
?>
<table cellpadding="8px">
    <tr>
        <td colspan="3"><div class="headerPageText">Project predefined filters</div></td>
    </tr>
    <tr>
        <td><?php 
echo LinkHelper::getYongoIssueListPageLink('All Issues', array('page' => 1, 'class' => ' ', 'link_to_page' => '/yongo/issue/search', 'sort' => 'created', 'project' => $projectId, 'sort_order' => 'desc'));
?>
</td>
        <td><?php 
echo LinkHelper::getYongoIssueListPageLink('All Open Issues', array('page' => 1, 'link_to_page' => '/yongo/issue/search', 'sort' => 'created', 'sort_order' => 'desc', 'resolution' => '-2', 'project' => $projectId));
?>
</td>
        <td><?php 
echo LinkHelper::getYongoIssueListPageLink('My Open Issues', array('page' => 1, 'assignee' => $loggedInUserId, 'link_to_page' => '/yongo/issue/search', 'sort' => 'created', 'sort_order' => 'desc', 'resolution' => '-2', 'project' => $projectId));
?>
</td>
    </tr>
</table>
Esempio n. 3
0
} else {
    ?>
                            <tr>
                                <td colspan="3">No Issues</td>
                            </tr>
                        <?php 
}
?>

                        <?php 
foreach ($statsComponent as $key => $value) {
    ?>
                            <tr>
                                <td width="180px">
                                    <?php 
    echo LinkHelper::getYongoIssueListPageLink($key, array('page' => 1, 'project' => $projectId, 'link_to_page' => '/yongo/issue/search', 'sort' => 'created', 'sort_order' => 'desc', 'component' => $value[0], 'resolution' => -2));
    ?>
                                </td>
                                <td width="30" align="right"><?php 
    echo $value[1];
    ?>
</td>
                                <?php 
    $perc = round($value[1] / $count * 100);
    ?>
                                <td valign="top">
                                    <div style="margin-top: 5px; margin-right: 4px; float:left; background-color: #56A5EC; height: 18px; width: <?php 
    echo $perc * 3;
    ?>
px"></div>
                                    <div style="float: left"><?php 
} else {
    ?>
                            <tr>
                                <td colspan="3">No Issues</td>
                            </tr>
                        <?php 
}
?>

                        <?php 
foreach ($statsComponent as $key => $value) {
    ?>
                            <tr>
                                <td width="180px">
                                    <?php 
    echo LinkHelper::getYongoIssueListPageLink($key, array('page' => 1, 'project' => $projectId, 'link_to_page' => '/helpdesk/customer-portal/tickets', 'sort' => 'created', 'sort_order' => 'desc', 'component' => $value[0], 'resolution' => -2));
    ?>
                                </td>
                                <td width="30" align="right"><?php 
    echo $value[1];
    ?>
</td>
                                <?php 
    $perc = round($value[1] / $count * 100);
    ?>
                                <td valign="top">
                                    <div style="margin-top: 5px; margin-right: 4px; float:left; background-color: #56A5EC; height: 18px; width: <?php 
    echo $perc * 3;
    ?>
px"></div>
                                    <div style="float: left"><?php 
Esempio n. 5
0
    public static function renderComponentStatSection($statsSection, $count, $title, $type = null, $projectId = null, $componentId = null, $versionId = null, $urlPrefix)
    {
        ?>
        <table width="100%" cellpadding="2">
            <tr>
                <td colspan="3" class="sectionDetail"><span class="sectionDetailSimple headerPageText"><?php 
        echo $title;
        ?>
</span></td>
            </tr>
            <?php 
        if (!$count) {
            ?>
                <tr>
                    <td>No Issues</td>
                </tr>
            <?php 
        }
        ?>

            <?php 
        foreach ($statsSection as $key => $value) {
            ?>
                <tr>
                    <td width="180px">
                        <?php 
            switch ($type) {
                case 'assignee':
                    echo LinkHelper::getYongoIssueListPageLink(key($value), array('page' => 1, 'assignee' => $key, 'link_to_page' => $urlPrefix, 'sort' => 'created', 'sort_order' => 'desc', 'resolution' => '-2', 'project' => $projectId, 'component' => $componentId, 'fix_version' => $versionId));
                    break;
                case 'type':
                    echo LinkHelper::getYongoIssueListPageLink(key($value), array('page' => 1, 'link_to_page' => $urlPrefix, 'sort' => 'created', 'resolution' => '-2', 'project' => $projectId, 'sort_order' => 'desc', 'type' => $key, 'component' => $componentId, 'fix_version' => $versionId));
                    break;
                case 'priority':
                    echo LinkHelper::getYongoIssueListPageLink(key($value), array('page' => 1, 'link_to_page' => $urlPrefix, 'sort' => 'created', 'resolution' => '-2', 'project' => $projectId, 'sort_order' => 'desc', 'priority' => $key, 'component' => $componentId, 'fix_version' => $versionId));
                    break;
                case 'status':
                    echo LinkHelper::getYongoIssueListPageLink(key($value), array('page' => 1, 'link_to_page' => $urlPrefix, 'sort' => 'created', 'resolution' => -2, 'status' => $key, 'project' => $projectId, 'sort_order' => 'desc', 'component' => $componentId, 'fix_version' => $versionId));
                    break;
            }
            ?>
                    </td>
                    <td width="30" align="right"><?php 
            echo $value[key($value)];
            ?>
</td>
                    <?php 
            $perc = round($value[key($value)] / $count * 100);
            ?>
                    <td valign="bottom">
                        <div style="margin-top: 5px; margin-right: 4px; float:left; background-color: #56A5EC; height: 18px; width: <?php 
            echo $perc * 3;
            ?>
px"></div>
                        <div style="float: left"><?php 
            echo $perc;
            ?>
%</div>
                    </td>
                </tr>
            <?php 
        }
        ?>
        </table>
    <?php 
    }