當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。