"Fossies" - the Fresh Open Source Software Archive

Member "flyspray-1.0-rc9/themes/CleanFS/templates/details.tabs.efforttracking.tpl" (22 Apr 2019, 2569 Bytes) of package /linux/privat/flyspray-1.0-rc9.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <div id="effort" class="tab">
    2     <?php echo tpl_form(Filters::noXSS(CreateUrl('details', $task_details['task_id'])).'#effort'); ?>
    3         <?php if ($user->perms('track_effort')) { ?>
    4         <input type="hidden" name="action" value="details.efforttracking"/>
    5         <button type="submit" name="start_tracking" value="true"><?php echo Filters::noXSS(L('starteffort')); ?></button>
    6         <br />
    7         <label for="effort_to_add"><?php echo Filters::noXSS(L('manualeffort')); ?></label>
    8         <input id="effort_to_add" name="effort_to_add" class="text" type="text" size="5" maxlength="100" value='00:00'/>
    9         <button type="submit" name="manual_effort" value="true"><?php echo Filters::noXSS(L('addeffort')); ?></button>
   10         <?php } ?>
   11         <table class="userlist history">
   12             <thead>
   13             <tr>
   14                 <th><?php echo Filters::noXSS(L('date')); ?></th>
   15                 <th><?php echo Filters::noXSS(L('user')); ?></th>
   16                 <th><?php echo Filters::noXSS(L('effort')); ?> (H:M)</th>
   17                 <th></th>
   18             </tr>
   19             </thead>
   20             <tbody>
   21             <?php
   22             foreach($effort->details as $details){
   23             ?>
   24             <tr>
   25                 <td><?php echo Filters::noXSS(formatDate($details['date_added'], true)); ?></td>
   26                 <td><?php echo tpl_userlink($details['user_id']); ?></td>
   27                 <td><?php
   28             if($details['effort'] == 0 && $details['end_timestamp']==false)
   29              { ?>
   30                     <?php echo Filters::noXSS(L('trackinginprogress')); ?> (<?php
   31 
   32                     echo effort::SecondsToString(time()-$details['start_timestamp'], $proj->prefs['hours_per_manday'], $proj->prefs['current_effort_done_format']);
   33 
   34                     ?>)
   35                     <?php }
   36              else
   37              {
   38                 echo effort::SecondsToString($details['effort'], $proj->prefs['hours_per_manday'], $proj->prefs['current_effort_done_format']);
   39              } ?>
   40                 </td>
   41                 <td>
   42                     <?php if($user->id == $details['user_id'] & is_null($details['end_timestamp'])){ ?>
   43                     <button type="submit" name="stop_tracking" value="true"><?php echo Filters::noXSS(L('endeffort')); ?></button>
   44                     <button type="submit" name="cancel_tracking" value="true"><?php echo Filters::noXSS(L('cleareffort')); ?></button>
   45                     <?php } ?>
   46                 </td>
   47             </tr>
   48             <?php } ?>
   49             </tbody>
   50         </table>
   51     </form>
   52 </div>