Did you like the countdown display?
OK, here is one more hack of the same template to show the progress bar of the Contract From/To field.
For implementation the code must be inserted in default.php in folder:
...home.../docs/components/com_projectlog/views/project/tmpl/
between lines:
<div class="right_details">
<span class="content_header"><?php echo JText::_('CONTRACT FROM TO'); ?>:</span><br />
<?php echo ($this->project->contract_from != '0000-00-00') ? $contract_from->toFormat('%d %b %Y' ) : '--N/A--'; ?>
-
<?php echo ($this->project->contract_to != '0000-00-00') ? $contract_to->toFormat('%d %b %Y' ) : '--N/A--'; ?>
//put here the code from attached file
</div>
<div class="right_details">
<span class="content_header"><?php echo JText::_('DEPLOYMENT FROM TO'); ?>:</span><br />
<?php echo $deploy_from->toFormat('%d %b %Y' ) . ' - ' . $deploy_to->toFormat('%d %b %Y' ); ?>
</div>
//There are comments in attach to help you configure appearance of the bar...
So you can make independent bars for some other fields (for instance Team Deployment):
NB: To make every next bar you have to rename $variables. And don't forget to make backups!
Have a fun!
Attachment prgrss_bar_hack.zip not found