echo lang('new account step start workspace info', '<span class="ico-workspace-add" style="padding: 5px 16px 0 0"> </span>', logged_user()->getPersonalProject()->getName()); ?> <br/><br/> <?php } $step++; ?> <b><?php echo lang('new account step actions', $step); ?> </b> <?php $task_count = ProjectTasks::count('`created_by_id` = ' . logged_user()->getId()); $note_count = ProjectMessages::count('`created_by_id` = ' . logged_user()->getId()); //$contact = ProjectContacts::findOne(array('conditions'=>'created_by_id='.logged_user()->getId())); if ($task_count > 0 || $note_count > 0) { echo '<img src="' . image_url('16x16/complete.png') . '" />'; } ?> <br/> <?php echo lang('new account step actions info'); ?> <br/> <span class="ico-message" style="padding: 5px 16px 0 0"> </span> <a class='internalLink dashboard-link' href='<?php echo get_url('message', 'add'); ?>
/** * Returns true if there is messages in this milestone * * @access public * @param void * @return boolean */ function hasMessages() { return (bool) ProjectMessages::count('`milestone_id` = ' . DB::escape($this->getId())); }
/** * Returns true if there is messages in this milestone * * @access public * @param void * @return boolean */ function hasMessages() { return (bool) ProjectMessages::count('`milestone_id` = ' . DB::escape($this->getId()) . " AND `trashed_on` = " . DB::escape(EMPTY_DATETIME) . " AND " . permissions_sql_for_listings(new ProjectMessages(), ACCESS_LEVEL_READ, logged_user())); }