Exemple #1
0
    <?php 
if (is_array($task_list->getOpenTasks())) {
    ?>
    <div class="openTasks">
      <table class="blank">
        <?php 
    global $the_task;
    foreach ($task_list->getOpenTasks() as $task) {
        $the_task = $task;
        ?>
        <tr id="task-id-<?php 
        echo $task->getId();
        ?>
" class="<?php 
        odd_even_class($task_list_ln);
        ?>
">
          <!-- Task text and options -->
          <td class="taskText">
            <div class="wrapper">
              <?php 
        task_text();
        ?>
              <div class="options">
                <?php 
        task_edit_link();
        ?>
	        <?php 
        task_delete_link();
        ?>
<?php 
if (isset($project_users) && is_array($project_users) && count($project_users)) {
    count($project_users);
    ?>
<div class="sidebarBlock">
  <h2><?php 
    echo lang('users involved in project');
    ?>
</h2>
  <div class="blockContent">
    <ul>
<?php 
    foreach ($project_users as $project_user) {
        ?>
      <li class="<?php 
        echo odd_even_class($users_ln);
        ?>
"><a href="<?php 
        echo $project_user->getCardUrl();
        ?>
"><?php 
        echo clean($project_user->getContact()->getDisplayName());
        ?>
</a></li>
<?php 
    }
    // foreach
    ?>
    </ul>
  </div>
</div>
<?php 
if (isset($project_companies) && is_array($project_companies) && count($project_companies)) {
    ?>
<div class="sidebarBlock">
  <h2><?php 
    echo lang('companies involved in project');
    ?>
</h2>
  <div class="blockContent">
    <ul>
<?php 
    foreach ($project_companies as $project_company) {
        ?>
      <li class="<?php 
        echo odd_even_class($companies_ln);
        ?>
"><a href="<?php 
        echo $project_company->getCardUrl();
        ?>
"><?php 
        echo clean($project_company->getName());
        ?>
</a></li>
<?php 
    }
    // foreach
    ?>
    </ul>
  </div>
</div>
Exemple #4
0
            ?>
</a> (<a href="<?php 
            echo $message->getUnsubscribeUrl();
            ?>
" onclick="return confirm('<?php 
            echo lang('confirm unsubscribe');
            ?>
')"><?php 
            echo lang('unsubscribe from message');
            ?>
</a>)</li>
<?php 
        } else {
            ?>
      <li class="<?php 
            echo odd_even_class($subscriber_ln);
            ?>
"><a href="<?php 
            echo $user->getCardUrl();
            ?>
"><?php 
            echo clean($user->getDisplayName());
            ?>
</a></li>
<?php 
        }
        // if
    }
    // foreach
    ?>
    </ul>
<?php

if (isset($important_messages) && is_array($important_messages) && count($important_messages)) {
    ?>
<div class="sidebarBlock">
  <h2><?php 
    echo lang('important messages');
    ?>
</h2>
  <div class="content">
    <ul class="listWithDetails">
<?php 
    foreach ($important_messages as $important_message) {
        ?>
      <li class="<?php 
        echo odd_even_class($ln);
        ?>
"><a href="<?php 
        echo $important_message->getViewUrl();
        ?>
"><?php 
        echo clean($important_message->getTitle());
        ?>
</a><br />
      <span class="desc"><?php 
        echo lang('comments on message', $important_message->countComments());
        ?>
</span></li>
<?php 
    }
    // foreach
Exemple #6
0
    <div class="desc"><?php echo (do_textile($task_list->getDescription())) ?></div>
    <?php endif ?>

    <?php if (plugin_active('tags')): ?>
    <div class="taskListTags"><span><?php echo lang('tags') ?>:</span> <?php echo project_object_tags($task_list, $task_list->getProject()) ?></div>
    <?php endif ?>

    <?php if (count($task_list_options)): ?>
    <div class="options"><?php echo implode(' | ', $task_list_options) ?></div>
    <?php endif ?>

    <?php if (is_array($task_list->getOpenTasks())): ?>
    <div class="openTasks">
      <ul id="<?php echo $task_list->getId() ?>"><!--table class="blank"-->
        <?php foreach ($task_list->getOpenTasks() as $task): ?>
        <li id="<?php echo $task->getId() ?>" class="<?php odd_even_class($task_list_ln) ?>"><!--tr class="<?php odd_even_class($task_list_ln); ?>"-->
          <!-- Task text and options -->
          <!--td class="taskText"-->
            <div class="task-text">
            <?php echo $task->getText() ?>
            <?php if ($task->getAssignedTo()):?>
            <span class="assignedTo"><?php echo clean($task->getAssignedTo()->getObjectName()) ?></span>
            <?php endif ?>
            </div>
            <?php if (!is_null($task->getDueDate())) { ?>
            <div class="dueDate"><span><?php echo lang('due date') ?>:</span> <?php echo ($task->getDueDate()->getYear() > DateTimeValueLib::now()->getYear()) ? format_date($task->getDueDate(), null, 0) : format_descriptive_date($task->getDueDate(), 0) ?></div>
            <?php } // if ?>


            <?php
            $task_options = array();