Exemple #1
0
</div>
                                </td>
                                <td>
                                    <div class="smallDescription"><?php 
            echo $space['description'];
            ?>
</div>
                                </td>
                                <td>
                                    <?php 
            echo LinkHelper::getUserProfileLink($space['user_created_id'], SystemProduct::SYS_PRODUCT_DOCUMENTADOR, $space['first_name'], $space['last_name']);
            ?>
                                </td>
                                <td>
                                    <?php 
            echo Util::getFormattedDate($space['date_created'], $clientSettings['timezone']);
            ?>
                                </td>
                            </tr>
                        <?php 
        }
        ?>
                    </tbody>
                </table>
                <div class="ubirimiModalDialog" id="modalDeleteSpace"></div>
            <?php 
    } else {
        ?>
                <div class="infoBox">There are no spaces defined.</div>
            <?php 
    }
Exemple #2
0
            echo $activity['name'];
            ?>
</a> created on <?php 
            echo Util::getFormattedDate($activity['date'], $clientSettings['timezone']);
            ?>
                            <?php 
        } elseif ($activity['action'] == 'edited') {
            ?>
                                <?php 
            echo LinkHelper::getDocumentadorPageLink($activity['id'], $activity['name']) . ' updated on ' . Util::getFormattedDate($activity['date'], $clientSettings['timezone']);
            ?>
                            <?php 
        } elseif ($activity['action'] == 'comment') {
            ?>
                                <?php 
            echo LinkHelper::getDocumentadorPageLink($activity['id'], $activity['name']) . ' commented on ' . Util::getFormattedDate($activity['date'], $clientSettings['timezone']);
            ?>
                            <?php 
        }
        ?>
                        </td>
                    </tr>
                <?php 
    }
    ?>
            </table>
        <?php 
} else {
    ?>
            <div class="infoBox">There is no activity for this user.</div>
        <?php 
Exemple #3
0
        echo $event['id'];
        ?>
?source=/calendar/search?search_query=<?php 
        echo $query;
        ?>
"><?php 
        echo $event['name'];
        ?>
</a>
                            </td>
                            <td>
                                <?php 
        if ($event['date_from'] == $event['date_to']) {
            ?>
                                    <?php 
            echo Util::getFormattedDate($event['date_from'], $clientSettings['timezone']) . ', all day';
            ?>
                                <?php 
        } else {
            ?>
                                    <?php 
            echo $event['date_from'] . ' - ' . $event['date_to'];
            ?>
                                <?php 
        }
        ?>
                            </td>
                            <td><?php 
        echo $event['description'];
        ?>
</td>
                <?php 
}
?>
                <input id="note_enter_new_tag" type="text" value="" placeholder="Add a tag" />
            </div>
        </td>
    </tr>
    <?php 
if ($note) {
    ?>
        <tr>
            <td colspan="2" style="border-bottom: 2px solid #c6c6c6; background-color: #DDDDDD">
                <div style="padding-left: 8px">Created <?php 
    echo Util::getFormattedDate($note['date_created']);
    if (isset($note['date_updated'])) {
        echo ', Modified ' . Util::getFormattedDate($note['date_updated']);
    }
    ?>
</div>

            </td>
        </tr>
        <tr>
            <td colspan="2">
                <div contenteditable="true"  id="qn_note_title" style="padding-left: 8px; border-bottom: 1px solid #DDDDDD; font-size: 18px; margin-top: 8px;"><?php 
    echo $note['summary'];
    ?>
</div>
            </td>
        </tr>
    <?php 
Exemple #5
0
                echo Util::getFormattedDate($issue['date_created'], $clientSettings['timezone']);
                ?>
                            </td>
                        <?php 
            }
            ?>

                        <?php 
            if ($columns[$i] == 'updated') {
                ?>
                            <td class="issueDU">
                                <?php 
                if ($issue['date_updated']) {
                    ?>
                                    <?php 
                    echo Util::getFormattedDate($issue['date_updated'], $clientSettings['timezone']);
                    ?>
                                <?php 
                }
                ?>
                            </td>
                        <?php 
            }
            ?>

                        <?php 
            if ($columns[$i] == 'reporter') {
                ?>
                            <td class="issueUR">
                                <?php 
                echo LinkHelper::getUserProfileLink($issue[Field::FIELD_REPORTER_CODE], $selectedProductId, $issue['ur_first_name'], $issue['ur_last_name']);
Exemple #6
0
     echo '<input ' . $requiredHTML . ' id="field_custom_type_' . $field['field_id'] . '_' . $field['type_code'] . '" class="inputTextLarge mousetrap" type="text" value="' . htmlspecialchars($fieldValue['value'], ENT_QUOTES) . '" name="' . $field['type_code'] . '" />';
     break;
 case Field::CUSTOM_FIELD_TYPE_BIG_TEXT_CODE:
     echo '<textarea ' . $requiredHTML . ' id="field_custom_type_' . $field['field_id'] . '_' . $field['type_code'] . '" rows="2" class="inputTextAreaLarge mousetrap" name="' . $field['field_code'] . '">' . $fieldValue['value'] . '</textarea>';
     break;
 case Field::CUSTOM_FIELD_TYPE_DATE_PICKER_CODE:
     $stringDate = '';
     if ($fieldValue['value']) {
         $stringDate = Util::getFormattedDate($fieldValue['value'], $clientSettings['timezone']);
     }
     echo '<input ' . $requiredHTML . ' class="inputText" value="' . $stringDate . '" name="' . $field['field_code'] . '" type="text" value="" id="field_custom_type_' . $field['field_id'] . '_' . $field['type_code'] . '" />';
     break;
 case Field::CUSTOM_FIELD_TYPE_DATE_TIME_PICKER_CODE:
     $stringDate = '';
     if ($fieldValue['value']) {
         $stringDate = Util::getFormattedDate($fieldValue['value'], $clientSettings['timezone']);
     }
     echo '<input ' . $requiredHTML . ' class="inputText" value="' . $stringDate . '" name="' . $field['field_code'] . '" type="text" value="" id="field_custom_type_' . $field['field_id'] . '_' . $field['type_code'] . '" />';
     break;
 case Field::CUSTOM_FIELD_TYPE_NUMBER_CODE:
     echo '<input ' . $requiredHTML . ' id="field_custom_type_' . $field['field_id'] . '_' . $field['type_code'] . '" class="inputTextLarge mousetrap" type="text" value="' . $fieldValue['value'] . '" name="' . $field['type_code'] . '" />';
     break;
 case Field::CUSTOM_FIELD_TYPE_SELECT_LIST_SINGLE_CHOICE_CODE:
     $possibleValues = UbirimiContainer::get()['repository']->get(Field::class)->getDataByFieldId($field['field_id']);
     echo '<select ' . $requiredHTML . ' id="field_custom_type_' . $field['field_id'] . '_' . $field['type_code'] . '" name="' . $field['type_code'] . '" class="mousetrap select2InputMedium">';
     echo '<option value="">None</option>';
     while ($possibleValues && ($customValue = $possibleValues->fetch_array(MYSQLI_ASSOC))) {
         $selectedHTML = '';
         if ($fieldValue['value'] == $customValue['id']) {
             $selectedHTML = 'selected="selected"';
         }
                        ?>
</a>
                                        <br />
                                        <?php 
                        echo str_replace("\n", '<br />', $event['comment_content']);
                        ?>
                                    <?php 
                    }
                    ?>

                                <?php 
                }
                ?>

                                <div><?php 
                echo Util::getFormattedDate($dateEvent, $clientSettings['timezone']);
                ?>
 &nbsp; <a href="#" id="add_project_history_comment_<?php 
                echo $eventDatas[0]['issue_id'] . '_' . $index;
                ?>
">Comment</a></div>
                                <div id="project_history_comment_<?php 
                echo $eventDatas[0]['issue_id'];
                ?>
_<?php 
                echo $index;
                ?>
"></div>
                                <div style="width: 100%; height: 1px; display: block" class="sectionDetail"></div>
                            <?php 
            }
Exemple #8
0
use Ubirimi\Container\UbirimiContainer;
use Ubirimi\LinkHelper;
use Ubirimi\SystemProduct;
use Ubirimi\Util;
$index = 0;
echo '<td></td>';
echo '<td colspan="3">';
echo '<table width="100%">';
echo '<tr>';
echo '<td style="border: none">Version History</td>';
echo '<td style="border: none">User</td>';
echo '<td style="border: none">Date</td>';
echo '</tr>';
while ($revisions && ($revision = $revisions->fetch_array(MYSQLI_ASSOC))) {
    $revisionNumber = $revisions->num_rows - $index;
    echo '<tr>';
    echo '<td style="border: none"><a href="/assets' . UbirimiContainer::get()['asset.documentador_filelists_attachments'] . $file['documentator_entity_id'] . '/' . $fileId . '/' . $revisionNumber . '/' . $file['name'] . '">Version ' . ($revisions->num_rows - $index) . '</a></td>';
    echo '<td style="border: none">';
    if ($revisions->num_rows - $index == 1) {
        echo 'Created by ';
    } else {
        echo 'Modified by ';
    }
    echo LinkHelper::getUserProfileLink($revision['user_id'], SystemProduct::SYS_PRODUCT_DOCUMENTADOR, $revision['first_name'], $revision['last_name']);
    echo '</td>';
    echo '<td style="border: none">' . Util::getFormattedDate($revision['date_created']) . '</td>';
    echo '</tr>';
    $index++;
}
echo '</table>';
echo '</td>';
Exemple #9
0
use Ubirimi\Container\UbirimiContainer;
use Ubirimi\LinkHelper;
use Ubirimi\SystemProduct;
use Ubirimi\Util;
echo '<td></td>';
echo '<td colspan="3">';
echo '<table width="100%">';
echo '<tr>';
echo '<td style="border: none;">Version History</td>';
echo '<td style="border: none;">User</td>';
echo '<td style="border: none;">Date</td>';
echo '</tr>';
while ($revision = $revisions->fetch_array(MYSQLI_ASSOC)) {
    $revisionNumber = $revisions->num_rows - $index;
    echo '<tr>';
    echo '<td style="border: none;"><a href="/assets' . UbirimiContainer::get()['asset.documentador_entity_attachments'] . $spaceId . '/' . $entity['id'] . '/' . $attachmentId . '/' . $revisionNumber . '/' . $attachment['name'] . '">Version ' . ($revisions->num_rows - $index) . '</a></td>';
    echo '<td style="border: none;">';
    if ($revisions->num_rows - $index == 1) {
        echo 'Created by ';
    } else {
        echo 'Modified by ';
    }
    echo LinkHelper::getUserProfileLink($revision['user_id'], SystemProduct::SYS_PRODUCT_DOCUMENTADOR, $revision['first_name'], $revision['last_name']);
    echo '</td>';
    echo '<td style="border: none;">' . Util::getFormattedDate($revision['date_created'], $clientSettings['timezone']) . '</td>';
    echo '</tr>';
    $index++;
}
echo '</table>';
echo '</td>';
Exemple #10
0
 public static function renderIssueTables($params, $columns, $clientSettings)
 {
     $htmlOutput = '';
     $htmlOutput .= '<div>';
     $issues = $params['issues'];
     $atLeastOneIssueRendered = false;
     if ($issues && $issues->num_rows) {
         $htmlOutput .= '<table width="100%" id="table_list" class="table table-hover table-condensed">';
         if (isset($params['show_header']) && $params['show_header']) {
             $htmlOutput .= Util::renderTableHeader($params, $columns);
         } else {
             $htmlOutput .= '<tr></tr>';
             // hack ca sa mearga selectul pe prima linie
         }
         $disabledText = '';
         if (isset($params['checkbox_disabled']) && $params['checkbox_disabled']) {
             $disabledText = 'disabled="disabled"';
         }
         while ($issue = $issues->fetch_array(MYSQLI_ASSOC)) {
             $atLeastOneIssueRendered = true;
             $htmlOutput .= '<tr';
             if ($params['render_checkbox']) {
                 $htmlOutput .= ' id="table_row_' . $issue['id'];
             }
             $htmlOutput .= '">';
             if ($params['render_checkbox']) {
                 $htmlOutput .= '<td width="22">';
                 $checkId = 'el_check_' . $issue['id'];
                 $htmlOutput .= '<input ' . $disabledText . ' type="checkbox" value="1" id="' . $checkId . '"/>';
                 if (array_key_exists('in_backlog', $params)) {
                     $htmlOutput .= '<input type="hidden" value="1" id="backlog_' . $checkId . '"/>';
                 } else {
                     $htmlOutput .= '<input type="hidden" value="0" id="backlog_' . $checkId . '"/>';
                 }
                 $htmlOutput .= '</td>';
             }
             for ($indexColumn = 0; $indexColumn < count($columns); $indexColumn++) {
                 if ($columns[$indexColumn] == 'code') {
                     $htmlOutput .= '<td class="issuePC">';
                     $htmlOutput .= '<img title="' . $issue['type'] . ' - ' . $issue['issue_type_description'] . '" height="16px" src="/yongo/img/issue_type/' . $issue['issue_type_icon_name'] . '" /> ';
                     $htmlOutput .= '<a href="/yongo/issue/' . $issue['id'] . '">' . $issue['project_code'] . '-' . $issue['nr'] . '</a>';
                     $htmlOutput .= "</td>\n";
                 }
                 if ($columns[$indexColumn] == 'summary') {
                     $htmlOutput .= '<td class="issueSummary"><a href="/yongo/issue/' . $issue['id'] . '">' . htmlentities($issue['summary']) . "</a></td>\n";
                 }
                 if ($columns[$indexColumn] == 'priority') {
                     $htmlOutput .= '<td class="issuePriority">' . "\n";
                     $htmlOutput .= '<img title="' . $issue['priority'] . ' - ' . $issue['issue_priority_description'] . '" height="16px" src="/yongo/img/issue_priority/' . $issue['issue_priority_icon_name'] . '" />';
                     $htmlOutput .= "</td>\n";
                 }
                 if ($columns[$indexColumn] == 'status') {
                     $htmlOutput .= '<td class=" issueStatus">' . $issue['status_name'] . '</td>';
                 }
                 if ($columns[$indexColumn] == 'date_created') {
                     $htmlOutput .= '<td class="issueDC">' . Util::getFormattedDate($issue['date_created'], $clientSettings['timezone']) . "</td>\n";
                 }
                 if ($columns[$indexColumn] == 'date_updated') {
                     $htmlOutput .= '<td class="issueDU">';
                     if ($issue['date_updated']) {
                         $htmlOutput .= Util::getFormattedDate($issue['date_updated'], $clientSettings['timezone']);
                     }
                     $htmlOutput .= '</td>';
                 }
                 if ($columns[$indexColumn] == 'reporter') {
                     $htmlOutput .= '<td class="issueUR">' . LinkHelper::getUserProfileLink($issue[Field::FIELD_REPORTER_CODE], SystemProduct::SYS_PRODUCT_YONGO, $issue['ur_first_name'], $issue['ur_last_name']) . '</td>';
                 }
                 if ($columns[$indexColumn] == 'assignee') {
                     $htmlOutput .= '<td class="issueUA">' . LinkHelper::getUserProfileLink($issue[Field::FIELD_ASSIGNEE_CODE], SystemProduct::SYS_PRODUCT_YONGO, $issue['ua_first_name'], $issue['ua_last_name']) . '</td>';
                 }
                 if ($columns[$indexColumn] == 'resolution') {
                     $htmlOutput .= '<td>' . $issue['resolution_name'] . '</td>';
                 }
                 if ($columns[$indexColumn] == 'updated') {
                     $htmlOutput .= '<td>' . $issue['date_updated'] . '</td>';
                 }
                 if ($columns[$indexColumn] == 'created') {
                     $htmlOutput .= '<td>' . $issue['date_created'] . '</td>';
                 }
             }
             $htmlOutput .= '</tr>';
         }
         $htmlOutput .= '</table>';
     }
     $htmlOutput .= '</div>';
     echo $htmlOutput;
     return $atLeastOneIssueRendered;
 }
/<?php 
            echo $noteInList['id'];
            ?>
"><?php 
            echo $noteInList['summary'];
            ?>
<a/></b>
                            <?php 
        }
        ?>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td><div><?php 
        echo Util::getFormattedDate($noteInList['date_created']);
        if ($noteInList['content']) {
            echo ' - ' . substr(strip_tags($noteInList['content']), 0, 70);
        }
        ?>
</div></td>
                </tr>
            </table>
            <?php 
        if (isset($tagId)) {
            ?>
                <input type="hidden" value="/quick-notes/tag/<?php 
            echo $viewType;
            ?>
/<?php 
            echo $tagId;