当前位置: 首页>>代码示例>>PHP>>正文


PHP Url::help方法代码示例

本文整理汇总了PHP中Url::help方法的典型用法代码示例。如果您正苦于以下问题:PHP Url::help方法的具体用法?PHP Url::help怎么用?PHP Url::help使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Url的用法示例。


在下文中一共展示了Url::help方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: system

<?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>
开发者ID:malimu,项目名称:Pipeline,代码行数:30,代码来源:help.tpl.php

示例2: foreach

// 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>';
        }
开发者ID:malimu,项目名称:Pipeline,代码行数:31,代码来源:members.tpl.php

示例3: foreach

    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));
}
开发者ID:malimu,项目名称:Pipeline,代码行数:31,代码来源:credits.process.php

示例4: initializeUploader

        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>";
开发者ID:malimu,项目名称:Pipeline,代码行数:31,代码来源:adminUtilities.tpl.php

示例5: foreach

<?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>';
开发者ID:malimu,项目名称:Pipeline,代码行数:30,代码来源:invitations.tpl.php

示例6: formatUserLink

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;
}
开发者ID:malimu,项目名称:Pipeline,代码行数:15,代码来源:format.php

示例7:

<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();
开发者ID:malimu,项目名称:Pipeline,代码行数:30,代码来源:update.tpl.php

示例8: elseif

} 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'
		// });
开发者ID:malimu,项目名称:Pipeline,代码行数:31,代码来源:yourRole.tpl.php


注:本文中的Url::help方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。