示例#1
0
if ($comments != null) {
    foreach ($comments as $comment) {
        echo '<li id="comment-' . $comment->getID() . '">';
        echo formatUserPicture($comment->getCreatorID(), 'small');
        if ($hasPermission) {
            echo '<input class="replyButton" type="button" value="Reply" />';
        }
        echo '<p class="headline">' . formatUserLink($comment->getCreatorID(), $project->getID()) . ' <span class="slash">/</span> <span class="when">' . formatTimeTag($comment->getDateCreated()) . '</span></p>';
        echo '<p class="message">' . formatComment($comment->getMessage()) . '</p>';
        //echo '<p class="when">'.formatTimeTag($comment->getDateCreated()).'</p>';
        echo '</li>';
        $replies = $comment->getReplies();
        if ($replies != null) {
            foreach ($replies as $reply) {
                echo '<li class="comment-reply">';
                echo formatUserPicture($reply->getCreatorID(), 'small');
                echo '<p class="headline">' . formatUserLink($reply->getCreatorID(), $project->getID()) . ' <span class="slash">/</span> <span class="when">' . formatTimeTag($reply->getDateCreated()) . '</span></p>';
                echo '<p class="message">' . formatComment($reply->getMessage()) . '</p>';
                //echo '<p class="when">'.formatTimeTag($reply->getDateCreated()).'</p>';
                echo '</li>';
            }
        }
    }
} else {
    echo '<li>(none)</li>';
}
?>

<?php 
if ($hasPermission) {
    ?>
示例#2
0
    echo Url::updateProcess($update->getID());
    ?>
',
		'info': $('#frmEditItem').serialize(),
		'buttonID':'#btnEditUpdate'
	});
}
</script>
<div class="edit hidden">
<form id="frmEditItem">
<input type="hidden" name="action" value="edit-update" />
<div class="clear">
	<label for="txtTitle">Title<span class="required">*</span></label>
	<div class="input">
		<input type="text" id="txtTitle" name="txtTitle" maxlength="255" value="<?php 
    echo $update->getTitle();
    ?>
" />
		<p>Short title for the contribution</p>
	</div>
</div>
<div class="clear">
	<label for="txtMessage">Message<span class="required">*</span></label>
	<div class="input">
		<textarea id="txtMessage" name="txtMessage"><?php 
    echo $update->getMessage();
    ?>
</textarea>
		<p>Write your contribution here, <a class="help-link" href="<?php 
    echo Url::help();
    ?>
示例#3
0
        if ($mi->getInvitationMessage() != null) {
            echo '<blockquote>' . formatInvitationMessage($mi->getInvitationMessage()) . '</blockquote>';
        }
        echo '<div class="line"></div>';
        if ($mi->getResponse() == Invitation::DECLINED) {
            echo '<p>' . $inviteeLink . ' declined the invitation. (' . formatTimeTag($mi->getDateResponded()) . ')</p>';
            if ($mi->getResponseMessage() != null) {
                echo '<blockquote>' . formatInvitationMessage($mi->getResponseMessage()) . '</blockquote>';
            }
        } else {
            echo '<p>(no response yet)</p>';
        }
        echo '</div>';
        // invitee picture and username
        if ($mi->getInviteeID() != null) {
            echo formatUserPicture($mi->getInviteeID(), 'small');
        } else {
            echo formatBlankUserPicture('mailto:' . $mi->getInviteeEmail(), 'small');
        }
        echo '<h6 class="primary">' . $inviteeLink . '</h6>';
        // response
        if ($mi->getResponse() == Invitation::DECLINED) {
            echo '<p class="secondary">declined</p>';
        } else {
            echo '<p class="secondary">invited</p>';
        }
        echo '</li>';
    }
}
?>
示例#4
0
				},
				'buttonID':'#btnReply'
			});
		});
	});
</script>

<ul class="segmented-list replies">
	<li><h5><?php 
echo $message->getSubject();
?>
</h5></li>
<?php 
foreach ($replies as $reply) {
    echo '<li>';
    echo formatUserPicture($reply->getSenderID(), 'small');
    echo '<p class="headline">' . formatUserLink($reply->getSenderID()) . ' <span class="slash">/</span> <span class="when">' . formatTimeTag($reply->getDateSent()) . '</span></p>';
    echo '<p class="message">' . formatInboxMessage($reply->getBody()) . '</p>';
    echo '</li>';
}
?>
	<li class="reply">
		<textarea id="txtReplyMessage"></textarea>	
		<div class="buttons">
			<input type="button" class="right" id="btnReply" value="Send Reply" />
			<p class="right"><a class="help-link" href="<?php 
echo Url::help();
?>
#help-html-allowed">Some HTML allowed</a></p>
		</div>
	</li>
示例#5
0
		<input id="btnEditProfile" type="button" value="Save" />
		<input id="btnCancelProfile" type="button" value="Cancel" />
	</div>
</div>
</form>

</div><!-- .edit -->

<?php 
}
?>

<div class="view">

<?php 
echo formatUserPicture($user->getID());
?>
<h5 class="username"><?php 
echo formatUserLink($user->getID());
echo !empty($name) && $age >= 18 ? ' (' . $name . ')' : '';
?>
</h5>
<?php 
echo '<p><a href="mailto:' . $user->getEmail() . '">' . $user->getEmail() . '</a>';
//	echo $age.' years old';
if (!empty($sex) || !empty($loc)) {
    echo $slash;
}
if (!empty($sex)) {
    echo $sex;
}
示例#6
0
<?php 
    $SOUP->render('site/partial/newUpload', array('uploadButtonID' => 'btnEditTask', 'formID' => 'frmEditItem'));
    ?>

</div><!-- end .edit -->

<?php 
}
?>

<div class="view">

<div class="person-box">
	<?php 
echo formatUserPicture($task->getLeaderID(), 'small');
?>
	<div class="text">
		<p class="caption">task leader</p>
		<p class="username"><?php 
echo formatUserLink($task->getLeaderID(), $project->getID());
?>
</p>
	</div>
</div>

<?php 
if ($task->getStatus() == Task::STATUS_OPEN) {
    $status = '<span class="status good">open</span>';
} else {
    $status = '<span class="status bad">closed</span>';
示例#7
0
</script>

<?php 
}
?>
	

<ul class="segmented-list users">

<?php 
if (empty($followers)) {
    echo '<li class="none">(none)</li>';
} else {
    foreach ($followers as $f) {
        echo '<li>';
        if ($hasPermission) {
            echo '<input id="ban-' . $f->getID() . '" type="button" class="ban" value="Ban" />';
        }
        echo formatUserPicture($f->getID(), 'small');
        echo '<h6 class="primary">' . formatUserLink($f->getID()) . '</h6>';
        echo '<p class="secondary">follower</p>';
        echo '</li>';
    }
}
?>

</ul>

<?php 
$fork->endBlockSet();
$fork->render('site/partial/panel');