Example #1
0
 * 
 * You can contact X2Engine, Inc. at P.O. Box 66752,
 * Scotts Valley, CA 95067, USA. or at email address contact@X2Engine.com.
 * 
 * The interactive user interfaces in modified source and object code versions
 * of this program must display Appropriate Legal Notices, as required under
 * Section 5 of the GNU General Public License version 3.
 * 
 * In accordance with Section 7(b) of the GNU General Public License version 3,
 * these Appropriate Legal Notices must retain the display of the "Powered by
 * X2Engine" logo. If the display of the logo is not reasonably feasible for
 * technical reasons, the Appropriate Legal Notices must display the words
 * "Powered by X2Engine".
 ********************************************************************************/

$attributeLabels = ActionChild::attributeLabels();

$template="<a href=".$this->createUrl('search/search?term=%23\\2')."> #\\2</a>";
		$info=$model->actionDescription;
		$info=mb_ereg_replace('(^|\s)#(\w\w+)',$template,$info);
if($model->complete=='Yes')
	$status = Yii::t('actions','FINISHED');
else {
	if($model->dueDate > time())
		$status = Yii::t('actions','INCOMPLETE');
	else
		$status = Yii::t('actions','OVERDUE');
}
if($model->type=='note' || $model->type=='attachment') {
?>
<table class="details">