示例#1
0
<?php

trace(__FILE__, 'begin');
set_page_title(lang('project links'));
project_tabbed_navigation(PROJECT_TAB_LINKS);
project_crumbs(array(array(lang('links'), get_url('links', 'index')), array(lang('index'))));
if (ProjectLink::canAdd(logged_user(), active_project())) {
    add_page_action(lang('add link'), get_url('links', 'add_link'));
}
// if
add_stylesheet_to_page('project/files.css');
$counter = 0;
?>
<div id="files">
<?php 
if (isset($links) && is_array($links) && count($links)) {
    ?>
<div class="filesList">
<?php 
    foreach ($links as $link) {
        $counter++;
        ?>
  <div class="listedFile <?php 
        echo $counter % 2 ? 'even' : 'odd';
        ?>
">
  <div class="fileInfo">
      <div class="fileName"><a href="<?php 
        echo $link->asUrl();
        ?>
" title="<?php 
示例#2
0
<?php

set_page_title(lang('search results'));
project_tabbed_navigation();
project_crumbs(lang('search results'));
add_stylesheet_to_page('project/search_results.css');
?>
<div id="searchForm">
  <form action="<?php 
echo active_project()->getSearchUrl();
?>
" method="get">
    <?php 
echo input_field('search_for', array_var($_GET, 'search_for'));
?>
    <input type="hidden" name="c" value="project" />
    <input type="hidden" name="a" value="search" />
    <input type="hidden" name="active_project" value="<?php 
echo active_project()->getId();
?>
" />
    <?php 
echo submit_button(lang('search'));
?>
    <?php 
echo lang('search hint');
?>
  </form>
</div>

<?php 
示例#3
0
<?php

set_page_title(lang('tags'));
project_tabbed_navigation('tags');
project_crumbs(array(array(lang('tags'), get_url('project', 'tags')), array($tag)));
if (isset($tagged_objects) && is_array($tagged_objects) && count($tagged_objects)) {
    ?>
<p><?php 
    echo lang('total objects tagged with', $total_tagged_objects, clean($tag));
    ?>
:</p>

<?php 
    if (isset($tagged_objects['messages']) && is_array($tagged_objects['messages']) && count($tagged_objects['messages'])) {
        ?>
<h2><?php 
        echo lang('messages');
        ?>
</h2>
<ul>
<?php 
        foreach ($tagged_objects['messages'] as $message) {
            ?>
  <li><a href="<?php 
            echo $message->getViewUrl();
            ?>
"><?php 
            echo clean($message->getTitle());
            ?>
</a>
<?php 
示例#4
0
<?php

  set_page_title(lang('milestones'));
  project_tabbed_navigation(PROJECT_TAB_MILESTONES);
  project_crumbs(lang('milestones'));
  if(ProjectMilestone::canAdd(logged_user(), active_context())) {
    add_page_action(lang('add milestone'), get_url('milestone', 'add'), 'ico-milestone');
  } // if

?>
<?php if($late_milestones || $today_milestones || $upcoming_milestones) { ?>
<div id="milestones">
<?php if(is_array($late_milestones) && count($late_milestones)) { ?>
  <div id="lateMilestones">
  <h2><?php echo lang('late milestones') ?></h2>
<?php 
  foreach($late_milestones as $milestone) {
    $this->assign('milestone', $milestone);
    $this->includeTemplate(get_template_path('view_milestone', 'milestone'));
  } // foreach 
?>
  </div>
<?php } // if ?>

<?php if(is_array($today_milestones) && count($today_milestones)) { ?>
  <div id="todayMilestones">
  <h2><?php echo lang('today milestones') ?></h2>
<?php 
  foreach($today_milestones as $milestone) {
    $this->assign('milestone', $milestone);
    $this->includeTemplate(get_template_path('view_milestone', 'milestone'));
示例#5
0
<?php
  require_javascript("og/modules/addProjectForm.js");
  set_page_title($project_form->isNew() ? lang('add form') : lang('edit form'));
  project_tabbed_navigation(PROJECT_TAB_FORMS);
  project_crumbs(array(
    array(lang('forms'), get_url('form')),
    array($project_form->isNew() ? lang('add form') : lang('edit form'))
  ));
  //add_stylesheet_to_page('project/forms.css');
  
?>
<form class="internalForm" action="<?php echo $project_form->isNew() ? get_url('form', 'add') : $project_form->getEditUrl() ?>" method="post">


<?php tpl_display(get_template_path('form_errors')) ?>

  <div>
    <?php echo label_tag(lang('name'), 'projectFormName', true) ?>
    <?php echo text_field('project_form[name]', array_var($project_form_data, 'name'), array('id' => 'projectFormName', 'class' => 'long')) ?>
  </div>
  
  <div>
    <?php echo label_tag(lang('description'), 'projectFormDescription') ?>
    <?php echo textarea_field('project_form[description]', array_var($project_form_data, 'description'), array('id' => 'projectFormDescription', 'class' => 'short')) ?>
  </div>
  
  <div>
    <?php echo label_tag(lang('success message'), 'projectFormSuccessMessage',true) ?>
    <?php echo textarea_field('project_form[success_message]', array_var($project_form_data, 'success_message'), array('id' => 'projectFormSuccessMessage', 'class' => 'short')) ?>
  </div>
  
示例#6
0
<?php

/**
 * @author ALBATROS INFORMATIQUE SARL - CARQUEFOU FRANCE - Damien HENRY
 * @licence Honest Public License
 * @package ProjectPier Gantt
 * @version $Id$
 * @access public
 */
set_page_title(lang('reports'));
project_tabbed_navigation(PROJECT_TAB_REPORTS);
project_crumbs(array(array(lang('reports'))));
//object height
$ObjHeight = '500px';
$urlMindMap = externalUrl(html_entity_decode(get_url('reports', 'mindmap')));
$urlGantt = externalUrl(html_entity_decode(get_url('reports', 'Gantt_Chart')));
//$urlMindMap = html_entity_decode('http://freemind.sourceforge.net/wiki/images/a/a5/FreemindFlash.mm&startCollapsedToLevel=5&mm_title=FreemindFlash.mm');
add_page_action(lang('gantt'), 'javascript:show_gantt();');
add_page_action(lang('mindmap'), 'javascript:show_mindmap();');
?>
<script>
show_gantt = function() {
  document.getElementById('MM').style.display = 'none';
  document.getElementById('GANTT').style.display = 'block';
  document.getElementById('GRAPH').style.display = 'block';
  var now = new Date();
  document.getElementById('GRAPH').src = '<?php 
echo $urlGantt;
?>
&'+ now.valueOf();
}
示例#7
0
<?php

set_page_title($message->getTitle());
project_tabbed_navigation('messages');
project_crumbs(array(array(lang('messages'), get_url('message', 'index')), array(lang('view message'))));
if (ProjectMessage::canAdd(logged_user(), active_project())) {
    add_page_action(lang('add message'), get_url('message', 'add'));
}
// if
add_stylesheet_to_page('project/messages.css');
$createdBy = $message->getCreatedBy();
?>
<div class="message block">
  <div class="header">
<?php 
if ($message->isPrivate()) {
    ?>
    <div class="private" title="<?php 
    echo lang('private message');
    ?>
"><span><?php 
    echo lang('private message');
    ?>
</span></div>
<?php 
}
// if
if ($message->getCreatedBy() instanceof User) {
    ?>
    <div class="author"><?php 
    echo lang('posted on by', format_datetime($message->getCreatedOn()), $message->getCreatedBy()->getCardUrl(), clean($message->getCreatedBy()->getDisplayName()));
示例#8
0
<?php

set_page_title(lang('tags'));
project_tabbed_navigation(PROJECT_TAB_TAGS);
project_crumbs(array(array(lang('tags'), get_url('project', 'tags')), array($tag)));
if (isset($tagged_objects) && is_array($tagged_objects) && count($tagged_objects)) {
    ?>
<p><?php 
    echo lang('total objects tagged with', $total_tagged_objects, clean($tag));
    ?>
:</p>

<?php 
    if (isset($tagged_objects['messages']) && is_array($tagged_objects['messages']) && count($tagged_objects['messages'])) {
        ?>
<h2><?php 
        echo lang('messages');
        ?>
</h2>
<ul>
<?php 
        foreach ($tagged_objects['messages'] as $message) {
            ?>
  <li><a class="internalLink" href="<?php 
            echo $message->getViewUrl();
            ?>
"><?php 
            echo clean($message->getTitle());
            ?>
</a>
<?php 
示例#9
0
<?php

// Set page title and set crumbs to index
set_page_title(lang('add ticket'));
project_tabbed_navigation(PROJECT_TAB_TICKETS);
project_crumbs(array(array(lang('tickets'), get_url('tickets')), array(lang('add ticket'))));
add_stylesheet_to_page('project/tickets.css');
?>
<h2><?php 
echo lang('ticket #', $ticket->getId());
?>
</h2>

<form action="<?php 
echo get_url('tickets', 'add_ticket');
?>
" method="post" enctype="multipart/form-data">

<?php 
tpl_display(get_template_path('form_errors'));
?>


  <div>
    <?php 
echo label_tag(lang('summary'), 'ticketFormSummary', true);
?>
    <?php 
echo text_field('ticket[summary]', array_var($ticket_data, 'summary'), array('id' => 'ticketFormSummary', 'class' => 'title'));
?>
  </div>
示例#10
0
<?php

set_page_title($message->getTitle());
project_tabbed_navigation(PROJECT_TAB_MESSAGES);
project_crumbs(array(array(lang('messages'), get_url('message')), array(lang('view message'))));
if (ProjectMessage::canAdd(logged_user(), active_project())) {
    add_page_action(lang('add message'), get_url('message', 'add'));
}
// if
add_stylesheet_to_page('project/messages.css');
?>
<div class="message">
  <div class="messageDetails">
<?php 
if ($message->isPrivate()) {
    ?>
    <div class="private" title="<?php 
    echo lang('private message');
    ?>
"><span><?php 
    echo lang('private message');
    ?>
</span></div>
<?php 
}
// if
if ($message->getCreatedBy() instanceof User) {
    ?>
    <div class="messageAuthor"><?php 
    echo lang('posted on by', format_datetime($message->getCreatedOn()), $message->getCreatedBy()->getCardUrl(), clean($message->getCreatedBy()->getDisplayName()));
    ?>
<?php

set_page_title($milestone->isNew() ? lang('add milestone') : lang('edit milestone'));
project_tabbed_navigation('milestones');
project_crumbs(array(array(lang('milestones'), get_url('milestone')), array($milestone->isNew() ? lang('add milestone') : lang('edit milestone'))));
if ($milestone->isNew()) {
    ?>
<form action="<?php 
    echo get_url('milestone', 'add');
    ?>
" method="post">
<?php 
} else {
    ?>
<form action="<?php 
    echo $milestone->getEditUrl();
    ?>
" method="post">
<?php 
}
// if
?>

<?php 
tpl_display(get_template_path('form_errors'));
?>

  <div>
    <?php 
echo label_tag(lang('name'), 'milestoneFormName', true);
?>
示例#12
0
<?php

set_page_title($comment->isNew() ? lang('add comment') : lang('edit comment'));
project_tabbed_navigation(PROJECT_TAB_OVERVIEW);
project_crumbs(array($comment->isNew() ? lang('add comment') : lang('edit comment')));
// project_crumbs
if ($comment->isNew()) {
    ?>
<form action="<?php 
    echo Comment::getAddUrl($comment_form_object);
    ?>
" method="post">
<?php 
} else {
    ?>
<form action="<?php 
    echo $comment->getEditUrl();
    ?>
" method="post">
<?php 
}
// if
?>

<?php 
tpl_display(get_template_path('form_errors'));
?>

<?php 
if ($comment_form_object->columnExists('comments_enabled') && !$comment_form_object->getCommentsEnabled() && logged_user()->isAdministrator()) {
    ?>
示例#13
0
<?php

set_page_title(lang('settings'));
project_tabbed_navigation('settings');
project_crumbs(lang('settings'));
?>
<div id="configuration">
<?php 
if (logged_user()->isAdministrator() || active_project()->canEdit(logged_user())) {
    ?>
  <h2><a href="<?php 
    echo $project->getEditUrl();
    ?>
"><?php 
    echo lang('edit project');
    ?>
</a></h2>
<?php 
}
// if
if (logged_user()->isAdministrator() || active_project()->canChangePermissions(logged_user())) {
    ?>
  <h2><a href="<?php 
    echo get_url('project_settings', 'users');
    ?>
"><?php 
    echo lang('users');
    ?>
</a></h2>
<?php 
}
示例#14
0
<div style="padding:10px">
<?php 
require_javascript('og/modules/updatePermissionsForm.js');
set_page_title(lang('permissions'));
project_tabbed_navigation(PROJECT_TAB_PEOPLE);
project_crumbs(array(array(lang('people'), get_url('project', 'people')), array(lang('permissions'))));
//add_stylesheet_to_page('project/permissions.css');
$quoted_permissions = array();
foreach ($permissions as $permission_id => $permission_text) {
    $quoted_permissions[] = "'{$permission_id}'";
}
// foreach
?>
<script>
  App.modules.updatePermissionsForm.owner_company_id = <?php 
echo owner_company()->getId();
?>
;
  App.modules.updatePermissionsForm.project_permissions = new Array(<?php 
echo implode(', ', $quoted_permissions);
?>
);
</script>

<label><b><?php 
echo lang('edit permissions');
?>
</b></label>
<label><i><?php 
echo lang('edit permissions explanation');
?>
<?php

set_page_title($file->getObjectName());
project_tabbed_navigation(PROJECT_TAB_FILES);
$files_crumbs = array(0 => array(lang('files'), get_url('files')));
// array
if ($folder instanceof ProjectFolder) {
    $files_crumbs[] = array($folder->getName(), $folder->getBrowseUrl());
}
// if
$files_crumbs[] = lang('file details');
project_crumbs($files_crumbs);
if (ProjectFile::canAdd(logged_user(), active_project())) {
    if ($folder instanceof ProjectFolder) {
        add_page_action(lang('add file'), $folder->getAddFileUrl());
    } else {
        add_page_action(lang('add file'), get_url('files', 'add_file'));
    }
    // if
}
// if
if (ProjectFolder::canAdd(logged_user(), active_project())) {
    add_page_action(lang('add folder'), get_url('files', 'add_folder'));
}
// if
add_stylesheet_to_page('project/files.css');
?>
<div id="fileDetails" class="block">
<?php 
if ($file->isPrivate()) {
    ?>
示例#16
0
<?php

/**
 * @author Alex Mayhew
 * @copyright 2008
 */
set_page_title($revision->getName());
project_tabbed_navigation(PROJECT_TAB_WIKI);
project_crumbs(array(array(lang('wiki'), get_url('wiki', 'index')), array(lang('index'))));
if ($page->canAdd(logged_user(), active_project())) {
    add_page_action(lang('add wiki page'), $page->getAddUrl());
}
// if
if ($page->canEdit(logged_user(), active_project()) && !$page->isNew()) {
    add_page_action(lang('edit wiki page'), $page->getEditUrl());
    add_page_action(lang('view page history'), $page->getViewHistoryUrl());
}
// if
if ($page->canDelete(logged_user(), active_project()) && !$page->isNew() && (isset($iscurrev) && $iscurrev || !isset($currev))) {
    add_page_action(lang('delete wiki page'), $page->getDeleteUrl());
}
// if
add_page_action(lang('wiki all pages'), $page->getAllPagesUrl());
add_inline_css_to_page('.wikiPageLocked{float:right; font-weight:bolder; border: 2px solid #D15151; padding: 2px; color: #fff; background-color: #ED6E6E}');
add_page_action(lang('wiki public wiki'), externalUrl(ROOT_URL . '/' . PUBLIC_FOLDER . '/wiki'));
if ($page->getLocked()) {
    ?>
<div class="wikiPageLocked"><?php 
    echo lang('wiki page locked by', $page->getLockedByUser()->getUserName());
    ?>
</div>
示例#17
0
<?php

set_page_title($time->getName());
project_tabbed_navigation('times');
project_crumbs(array(array(lang('time'), get_url('time')), array($time->getName())));
?>
<div id="times">
<?php 
$this->includeTemplate(get_template_path('view_time', 'time'));
?>
</div>
示例#18
0
<?php

trace(__FILE__, 'begin');
set_page_title(lang('project links'));
project_tabbed_navigation('links');
project_crumbs(array(array(lang('links'), get_url('links', 'index')), array(lang('index'))));
if (ProjectLink::canAdd(logged_user(), active_project())) {
    add_page_action(lang('add link'), get_url('links', 'add_link'));
}
// if
add_stylesheet_to_page('project/files.css');
$counter = 0;
?>
<ul id="links">
<?php 
if (isset($links) && is_array($links) && count($links)) {
    $show_icon = config_option('files_show_icons', '1') == '1';
    foreach ($links as $link) {
        $counter++;
        ?>
  <li class="item <?php 
        echo $counter % 2 ? 'even' : 'odd';
        ?>
">
<?php 
        if ($show_icon) {
            ?>
  <div class="icon">
    <a rel="gallery" href="<?php 
            echo $link->asUrl() . "?mime=text/html";
            ?>