Exemplo n.º 1
0
		} // foreach
	} // if?>
</ul>
<?php } // if ?>


<?php if ($task->hasComments() != '') { ?>
<br/>
<?php echo render_object_comments_for_print($task, $task->getViewUrl()); ?>
<?php } // if ?>

<br/>

<p><b><?php echo lang('custom properties') ?>:</b></p>
<div style="margin-left:14px;padding:6px;border:1px solid #AAA">
<?php echo str_replace(lang('custom properties'), "", render_custom_properties($task));?>
</div>


</div>

<script>
var myListf = document.getElementsByClassName("cpboolfalse");
for (var i=0;i<myListf.length;i++)
{
	myListf[i].innerHTML='<?php echo lang('no') ?>';
};

var myListt = document.getElementsByClassName("cpbooltrue");
for (var i=0;i<myListt.length;i++)
{
Exemplo n.º 2
0
                    </div>
                    <div class="clear"></div>
                    <div style="padding:10px;"><?php
                    
                    $back_color = '';
                    $bc = 'background-color:#EEEEF3;';
                    if($contact->isLinkableObject() && !$contact->isTrashed() && !$contact->isUser()) {
                    	echo '<div style="margin:20px 0; padding: 2px 0 5px;">';
						echo render_object_links_main($contact, $contact->canEdit(logged_user()));
						echo '</div>';
						$back_color = $bc;
                    }
                    
                    if ($contact instanceof ApplicationDataObject) {
                    	echo '<div style="margin:20px 0;'.$back_color.'">';
                    	echo render_custom_properties($contact);
                    	echo '</div>';
                    	$back_color = $back_color == '' ? $bc : '';
                    }
                    	
                    if (!$contact->isUser() && $contact->isCommentable()) {
                    	echo '<div style="margin:20px 0;">';
                    	echo render_object_comments($contact, $contact->getViewUrl());
                    	echo '</div>';
                    	$back_color = $back_color == '' ? $bc : '';
                    }
                    
                    if ($contact->getCommentsField()) {
                    	echo '<div class="commentsTitle">'.lang('notes').'</div>';
                    	echo escape_html_whitespace(convert_to_links(clean($contact->getCommentsField())));
                    }
Exemplo n.º 3
0
</a>
			</div>
			<?php 
}
$more_content_templates = array();
Hook::fire("more_content_templates", $object, $more_content_templates);
foreach ($more_content_templates as $ct) {
    tpl_assign('genid', $genid);
    tpl_assign('object', $object);
    $this->includeTemplate(get_template_path($ct[0], $ct[1], array_var($ct, 2)));
}
if ($object instanceof ContentDataObject) {
    echo render_co_view_member_path($object);
}
if ($object instanceof ApplicationDataObject) {
    echo render_custom_properties($object);
}
$logged_user_pgs = logged_user()->getPermissionGroupIds();
if ($object instanceof ContentDataObject && $object->allowsTimeslots() && can_access_pgids($logged_user_pgs, $object->getMembers(), Timeslots::instance()->getObjectTypeId(), ACCESS_LEVEL_READ)) {
    echo render_object_timeslots($object, $object->getViewUrl());
}
$isUser = $object instanceof Contact && $object->isUser();
if ($object instanceof ContentDataObject && $object->canView(logged_user()) || $isUser && (logged_user()->getId() == get_id() || logged_user()->isAdministrator())) {
    //echo render_object_latest_activity($object); //TODO SE rompe
}
if (!$isUser && $object instanceof ContentDataObject && $object->isCommentable()) {
    echo render_object_comments($object, $object->getViewUrl());
}
?>
			</td>
		</tr>
Exemplo n.º 4
0
				} else {
					$datetime = format_datetime($project->getCreatedOn(), $date_format, logged_user()->getTimezone());
					echo lang('user date', $project->getCreatedByCardUrl(), $username, $datetime, clean($project->getCreatedByDisplayName()));
				}
			 ?></td></tr>
	<?php } 
		if ($project->getUpdatedBy() instanceof User){ ?>
		<tr><td><?php echo lang('modified by') ?>:</td>
		<td style="padding-left:10px"><?php 
				if (logged_user()->getId() == $project->getUpdatedById())
					$username = lang('you');
				else
					$username = clean($project->getUpdatedByDisplayName());

				if ($project->getUpdatedOn()->isToday()){
					$datetime = format_time($project->getUpdatedOn());
					echo lang('user date today at', $project->getUpdatedByCardUrl(), $username, $datetime, clean($project->getUpdatedByDisplayName()));
				} else {
					$datetime = format_datetime($project->getUpdatedOn(), $date_format, logged_user()->getTimezone());
					echo lang('user date', $project->getUpdatedByCardUrl(), $username, $datetime, clean($project->getUpdatedByDisplayName()));
				}
			 ?></td></tr>
	<?php } ?>
	<tr><td colspan="2">
		<?php echo render_custom_properties($project); ?><br/>
	</td></tr>
	<?php if (config_option("show_feed_links")) { ?>
		<tr><td colspan="2"><a target="_blank" class="link-ico ico-rss" href="<?php echo get_url('feed', 'project_activities', array('id' => logged_user()->getId(), 'token' => logged_user()->getTwistedToken(), 'project' => $project->getId())) ?>"><?php echo lang("recent project activities feed", clean($project->getName()))?></a></td></tr>
	<?php } ?>
</table>
</div>