예제 #1
0
<script type="text/javascript">
$(document).ready(function(){
	
	$('#selStatus').val('<?php 
    echo $accepted->getStatus();
    ?>
');	
	// $('#btnEditUpdate').click(function(){
		// buildPost({
			// 'processPage':'<?php 
    echo Url::updateProcess($update->getID());
    ?>
',
			// 'info': $('#frmEditItem').serialize(),
			// 'buttonID':'#btnEditUpdate'
		// });
	// });
	
	$("#update .editButton").click(function(){
		$(this).hide();
		$("#update .view").hide();
		$("#update .edit").fadeIn();
		initializeUploader();
		$('#txtTitle').focus();			
	});
	
	$("#btnCancelUpdate").click(function(){
		$("#update .edit").hide();
		$("#update .view").fadeIn();
		$("#update .editButton").fadeIn();
예제 #2
0
<?php

$fork = $SOUP->fork();
$fork->set('pageTitle', "Help");
$fork->set('headingURL', Url::help());
$fork->startBlockSet('body');
?>

<td class="left">

<div class="help">


<h3 id="help-bug">What if I notice something is broken?</h3>

<p>Sorry it broke! Pipeline is still in beta and we are actively testing and fixing bugs. If you notice a problem, please <a href="mailto:<?php 
echo CONTACT_EMAIL;
?>
">email us</a> and let us know. Give as much information as possible about what you were doing when the problem occurred, as well as your browser and operating system (including version numbers, if possible). We will file a bug report and try to resolve it as soon as possible.</p>

<div class="line"> </div>

<h3 id="help-feature">What if I have a feature request?</h3>

<p>We're excited to hear what our users want out of Pipeline. We encourage you to <a href="mailto:<?php 
echo CONTACT_EMAIL;
?>
">email us</a> your ideas and feature requests. We can't guarantee we will make it happen, but we will read and consider all ideas.</p>

<div class="line"> </div>
예제 #3
0
// member invites
if ($hasInvitePermission && !empty($memberInvites)) {
    foreach ($memberInvites as $mi) {
        // don't list accepted invites
        if ($mi->getResponse() == Invitation::ACCEPTED) {
            continue;
        }
        $inviterLink = formatUserLink($mi->getInviterID(), $project->getID());
        $inviteeLink = $mi->getInviteeID() != null ? formatUserLink($mi->getInviteeID(), $project->getID()) : '<a href="mailto:' . $mi->getInviteeEmail() . '">' . $mi->getInviteeEmail() . '</a>';
        echo '<li class="invited">';
        // View Invitation button
        echo '<input id="invitation-' . $mi->getID() . '" type="button" class="viewInvite" value="View Invitation" />';
        // invite box
        echo '<div id="invite-box-' . $mi->getID() . '" class="invite-box hidden">';
        if ($mi->getTrusted()) {
            echo '<p>' . $inviterLink . ' invited ' . $inviteeLink . ' to join this project as a <a href="' . Url::help() . '">trusted member</a>. (' . formatTimeTag($mi->getDateCreated()) . ')</p>';
        } else {
            echo '<p>' . $inviterLink . ' invited ' . $inviteeLink . ' to join this project. (' . formatTimeTag($mi->getDateCreated()) . ')</p>';
        }
        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>';
        }
예제 #4
0
    foreach ($emails as $e) {
        // generate code
        //		$code = sha1(microtime(true).mt_rand(10000,90000));
        // send invitation
        $invite = new Invitation(array('inviter_id' => Session::getUserID(), 'invitee_email' => $e, 'project_id' => $project->getID(), 'trusted' => $trusted, 'invitation_message' => $message));
        $invite->save();
        // log event
        $logEvent = new Event(array('event_type_id' => 'invite_member_email', 'project_id' => $project->getID(), 'user_1_id' => Session::getUserID(), 'item_1_id' => $invite->getID(), 'data_1' => $e, 'data_2' => $message, 'data_3' => $trusted));
        $logEvent->save();
        // compose email
        $body = "<p>" . formatUserLink(Session::getUserID()) . ' invited you to join the project ' . formatProjectLink($project->getID()) . '.</p>';
        if (!empty($message)) {
            $body .= '<blockquote>' . formatInvitationMessage($message) . '</blockquote>';
        }
        if ($trusted) {
            $body .= '<p>If you accept this invitation, you will become a <a href="' . Url::help() . '">trusted member</a> of this project.</p>';
        }
        $body .= '<p>To respond to this invitation, <a href="' . Url::consent($e) . '">register</a> a free account on ' . PIPELINE_NAME . ' using this email address (' . $e . ').</p>';
        $email = array('to' => $e, 'subject' => '[' . PIPELINE_NAME . '] Invitation to join the project ' . $project->getTitle(), 'message' => $body);
        // send email
        Email::send($email);
    }
    // send us back
    $numInvitations = count($users) + count($emails);
    Session::setMessage(formatCount($numInvitations, 'invitation', 'invitations') . ' sent.');
    $json = array('success' => '1');
    echo json_encode($json);
} else {
    $json = array('error' => 'Invalid action.');
    exit(json_encode($json));
}
예제 #5
0
        initializeUploader();
});

        function uploadComplete() {
                
	}

</script>

<?php 
$fork->set('title', 'Import Tasks');
$fork->startBlockSet('body');
?>

<p>You are able to import tasks into Pipeline if they are in a .CSV file. Check out <a href='<?php 
echo Url::help() . "#help-uploadCSV";
?>
'>this</a> if it's your first time.</p>
<p>This utility will add tasks to your project, and will not override the tasks that you currently have in your project.</p>

<form action="<?php 
echo Url::adminUtilitiesProcess();
?>
" method="post" id="frmNewItem" enctype="multipart/form-data">
    <?php 
//If we don't have a project id, then we are probably in the context of the
// Admin tab which can select any project. Therefore, we want to return a
// drop down box will all projects to select form.
if (empty($loadedProject)) {
    echo "<div class='clear'>\n                    <label for='selProject'>Step 1: Select a Project that you want to import the tasks into<span class='required'>*</span></label>\n                    <div class='input'>\n                            <select id='selProject' type='text' value='' name='selProject'>";
    echo "<option value=-1></option>";
예제 #6
0
<?php 
if (empty($unrespondedInvites)) {
    echo '<li class="none">(none)</li>';
}
foreach ($invitations as $i) {
    // project title
    $project = Project::load($i->getProjectID());
    $projectTitle = $project->getTitle();
    if ($i->getResponse() != null) {
        echo '<li id="invitation-' . $i->getID() . '" class="responded hidden">';
    } else {
        echo '<li id="invitation-' . $i->getID() . '">';
    }
    if ($i->getTrusted()) {
        echo '<p class="project">' . formatUserLink($i->getInviterID(), $project->getID()) . ' invited you to join the project ' . formatProjectLink($i->getProjectID()) . ' as a <a href="' . Url::help() . '">trusted member</a>. (' . formatTimeTag($i->getDateCreated()) . ')</p>';
    } else {
        echo '<p class="project">' . formatUserLink($i->getInviterID(), $project->getID()) . ' invited you to join the project ' . formatProjectLink($i->getProjectID()) . '. (' . formatTimeTag($i->getDateCreated()) . ')</p>';
    }
    // show the invitation message, if it exists
    if ($i->getInvitationMessage() != null) {
        echo '<blockquote>' . formatInvitationMessage($i->getInvitationMessage()) . '</blockquote>';
    }
    // only show response buttons if user hasn't responded yet
    if ($i->getResponse() === null) {
        echo '<div class="buttons">';
        // don't allow accept invitation if already affiliated
        if (!$project->isAffiliated($i->getInviteeID())) {
            echo '<input class="accept" type="button" value="Accept" /> ';
        }
        echo '<input class="decline" type="button" value="Decline" /></div>';
예제 #7
0
파일: format.php 프로젝트: malimu/Pipeline
function formatUserLink($userID = null, $projectID = null)
{
    if ($userID == null) {
        return null;
    }
    $user = User::load($userID);
    $formatted = '<a href="' . Url::user($userID) . '">' . $user->getUsername() . '</a>';
    // add star to trusted users
    if ($projectID != null) {
        if (ProjectUser::isTrusted($userID, $projectID) || ProjectUser::isCreator($userID, $projectID)) {
            $formatted .= '<a href="' . Url::help() . '#help-roles" title="trusted member">*</a>';
        }
    }
    return $formatted;
}
예제 #8
0
} elseif ($project->isFollower(Session::getUserID())) {
    ?>
	
	// $('#btnUnfollow').click(function(){
		// buildPost({
			// 'processPage': '<?php 
    echo Url::peopleProcess($project->getID());
    ?>
',
			// 'info':{
				// 'action': 'unfollow'
			// },
			// 'buttonID': '#btnUnfollow'
		// });
	// });	
	
	<?php 
} elseif (!$project->isAffiliated(Session::getUserID())) {
    ?>
	
	// $('#btnFollow').click(function(){
		// buildPost({
			// 'processPage': '<?php 
    echo Url::peopleProcess($project->getID());
    ?>
',
			// 'info':{
				// 'action': 'follow'
			// },
			// 'buttonID': '#btnFollow'
		// });