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


PHP System::ExpandRelativePath方法代码示例

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


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

示例1: RenderContent

    protected function RenderContent()
    {
        ?>
<div class="Panel">
	<h3 class="PanelTitle">Forums</h3>
	<div class="PanelContent">
		<div class="ProfilePage">
			<div class="ProfileTitle">
		<?php 
        $forums = Forum::Get();
        $count = count($forums);
        ?>
				<span class="ProfileUserName">
					<?php 
        echo "There ";
        if ($count == 1) {
            echo "is ";
        } else {
            echo "are ";
        }
        echo $count;
        if ($count == 1) {
            echo " forum";
        } else {
            echo " forums";
        }
        echo ".";
        ?>
				</span>
				<span class="ProfileControlBox">
					<a href="<?php 
        echo System::ExpandRelativePath("~/community/forums/create.mmo");
        ?>
" onclick="ForumCreateDialog.Show();">Create Forum</a>
				</span>
			</div>
			<div class="ProfileContent">
			<?php 
        $grpForums = new WebButtonGroupControl("grpForums");
        foreach ($forums as $item) {
            $grpForums->Items[] = new WebButtonGroupButton("~/community/forums/" . $item->Name, $item->Title, "~/community/forums/" . $item->Name . "/images/avatar/thumbnail.png", "ForumInformationDialog.ShowDialog(" . $item->ID . ");");
        }
        $grpForums->Render();
        ?>
			</div>
		</div>
	</div>
</div>
<?php 
    }
开发者ID:alcexhim,项目名称:PhoenixSNS,代码行数:50,代码来源:Browse.inc.php

示例2: AutoSuggestTextBox

						<td><textarea id="txtPageDescription" name="description" accesskey="d" cols="40" rows="5"></textarea></td>
					</tr>
					<tr>
						<td>Invite friends to page:</td>
						<td>
						<?php 
/*
	$ttx = new AutoSuggestTextBox();
	$ttx->RequireSelectionFromChoices = true;
	$ttx->Name = "txtPromoteToFriends";
	$ttx->PlaceholderText = "Enter a friend's name...";
	$ttx->Render();
*/
?>
						</td>
					</tr>
					<tr>
						<td colspan="2" style="text-align: right;">
							<input type="submit" value="Finish" />
							<a class="Button" href="<?php 
echo System::ExpandRelativePath("~/community/pages");
?>
">Cancel</a>
						</td>
					</tr>
				</table>
			</form>
		</div>
	</div>
	<?php 
$page->EndContent();
开发者ID:alcexhim,项目名称:PhoenixSNS,代码行数:31,代码来源:Create.inc.php

示例3: echo

<form action="<?php 
echo \System::ExpandRelativePath("~/community/members/" . $id . "/customize/");
?>
" method="POST">
	<div class="Panel">	
		<h3 class="PanelTitle">Profile Settings</h3>
		<div class="Panel">
			<div class="TabContainer TabContainerVertical">
				<div class="TabContainerTabArea">
					<a id="aContent" class="TabContainerTab Selected" href="#" onclick="SwitchTab('tabContent', 'aContent');">Content</a>
					<a id="aAppearance" class="TabContainerTab" href="#" onclick="SwitchTab('tabAppearance', 'aAppearance');">Appearance</a>
				</div>
				<div class="TabContainerContentArea">
					<div class="TabContainerContent" id="tabContent" style="display: block;">
						<?php 
/*
<label for="txtAbout" style="display: block;">About me:</label>
*/
?>
						<textarea id="txtAbout" name="pc" rows="5" style="width: 100%"><?php 
echo $thisuser->ProfileContent->Description;
?>
</textarea>
						<?php 
/*
<table style="width: 100%">
	<tr>
		<td style="width: 50%">
			<label for="txtLikes" style="display: block;">Stuff I like:</label>
			<textarea id="txtLikes" name="likes" rows="3" style="width: 100%"><?php echo($thisuser->ProfileContent->Likes); ?></textarea>
		</td>
开发者ID:alcexhim,项目名称:PhoenixSNS,代码行数:31,代码来源:Customize.inc.php

示例4: count

?>
				</td>
			</tr>
		</table>
		<div class="Panel">
			<?php 
$entries = $journal->GetEntries();
?>
			<h3 class="PanelTitle">Entries (<?php 
echo count($entries);
?>
)<?php 
if ($journal->Creator->ID == $CurrentUser->ID) {
    ?>
<a class="PanelTitleMini" href="<?php 
    echo System::ExpandRelativePath("~/community/members/" . $thisuser->ShortName . "/journals/" . $journal->Name . "/entries/create.mmo");
    ?>
">create entry</a><?php 
}
?>
</h3>
			<div class="PanelContent">
			<?php 
if (count($entries) == 0) {
    ?>
<p>There are no entries in this journal.</p>
			<?php 
} else {
    $lvJournalEntries = new ListView("lvJournalEntries");
    $lvJournalEntries->Columns[] = new ListViewColumn("chTimestampCreated", "Created");
    $lvJournalEntries->Columns[] = new ListViewColumn("chTimestampModified", "Modified");
开发者ID:alcexhim,项目名称:PhoenixSNS,代码行数:31,代码来源:Detail.inc.php

示例5: function

				}
				RefreshList();
			}
			
			var txtFilter = document.getElementById("txtFilter");
			var timeout = null;
			txtFilter.onkeyup = function()
			{
				if (timeout != null)
				{
					window.clearTimeout(timeout);
				}
				timeout = window.setTimeout(function()
				{
					var btngGroupList = document.getElementById("btngGroupList");
					RefreshList();
				}, 50);
			};
		</script>
	</div>
	<div class="ProfileContent">
		<?php 
$buttonGroup = new ButtonGroup("btngGroupList");
$groups = Group::GetByUser($thisuser);
foreach ($groups as $group) {
    $buttonGroup->Items[] = new ButtonGroupButton(null, $group->Title, null, System::ExpandRelativePath("~/community/groups/" . $group->Name . "/images/avatar/thumbnail.png"), "~/community/groups/" . $group->Name, "GroupInformationDialog.ShowDialog(" . $group->ID . "); return false;");
}
$buttonGroup->Render();
?>
	</div>
</div>
开发者ID:alcexhim,项目名称:PhoenixSNS,代码行数:31,代码来源:Groups.inc.php

示例6: PsychaticaWebPage

    return;
} else {
    if ($_POST["confirm"] == "1") {
        $thisgroup->Delete();
        System::Redirect("~/community/groups");
    } else {
        $page = new PsychaticaWebPage();
        $page->BeginContent();
        ?>
<form action="delete.phnx" method="POST">
	<input type="hidden" name="confirm" value="1" />
	<div class="Panel">
		<h3 class="PanelTitle">Are you sure you want to delete this group?</h3>
		<div class="PanelContent">
			<p><?php 
        echo $thisgroup->Title;
        ?>
</p>
			<p>If you delete this group, you will not be able to recover any of its content, including topics and comments.</p>
			<p style="text-align: center;"><input type="submit" value="Delete Group" /> <a class="Button" href="<?php 
        echo System::ExpandRelativePath("~/community/groups/" . $thisgroup->Name);
        ?>
">Cancel</a></p>
		</div>
	</div>
</form>
<?php 
        $page->EndContent();
        return;
    }
}
开发者ID:alcexhim,项目名称:PhoenixSNS,代码行数:31,代码来源:Delete.inc.php

示例7: GetURL

 public function GetURL()
 {
     return System::ExpandRelativePath("~/community/members/" . $this->Creator->ShortName . "/journals/" . $this->Name);
 }
开发者ID:alcexhim,项目名称:PhoenixSNS,代码行数:4,代码来源:Journal.inc.php

示例8: RenderContent

    protected function RenderContent()
    {
        $CurrentUser = User::GetCurrent();
        $entry = $this->Item->GetMarketEntry();
        ?>
			<div class="ProfilePage">
				<div class="ProfileTitle">
					<span class="ProfileUserName"><?php 
        echo $this->Item->Title;
        ?>
</span>
					<span class="ProfileControlBox"><?php 
        if ($CurrentUser != null) {
            if ($entry != null) {
                ?>
								<a href="<?php 
                echo System::ExpandRelativePath("~/market/items/" . $this->Item->Name . "/purchase");
                ?>
">Purchase</a>
							<?php 
            }
            ?>
							<a href="<?php 
            echo System::ExpandRelativePath("~/market/items/" . $this->Item->Name . "/wish.phnx");
            ?>
">Add to Wish List</a>
							<form action="<?php 
            echo System::ExpandRelativePath("~/account/trade.phnx");
            ?>
" method="POST">
								<input type="hidden" name="item_id" value="<?php 
            echo $this->Item->ID;
            ?>
" />
								<input class="LinkButton" type="submit" value="Request a Trade" />
							</form>
						<?php 
        }
        ?>
					</span>
				</div>
				<div class="ProfileContent">
					<table style="width: 100%">
						<tr>
							<td rowspan="3">
								<img src="<?php 
        echo System::ExpandRelativePath("~/market/items/" . $this->Item->Name . "/images/thumbnail.png");
        ?>
" alt="No image available" />
							</td>
							<td>
								<p>
									<?php 
        if ($entry == null) {
            ?>
									<p>
										Sorry, this item is not purchasable at this time.
									</p>
									<?php 
        } else {
            ?>
									Resource cost:
									<?php 
            $resources = $entry->GetRequiredResources();
            foreach ($resources as $resource) {
                ?>
											<div><?php 
                echo $resource->ToHTML();
                ?>
</div>
									<?php 
            }
        }
        ?>
								</p>
								<p>
								<?php 
        if ($CurrentUser != null) {
            $invcount = $CurrentUser->CountInventoryItems($this->Item);
            if ($invcount == 0) {
                ?>
									You do not have this item in your Inventory.
								<?php 
            } else {
                ?>
									You have <?php 
                echo $invcount;
                ?>
 of these in your Inventory.
								<?php 
            }
        } else {
            ?>
									Please log in to purchase this item.
								<?php 
        }
        ?>
								</p>
								<p>
									This item has been purchased <?php 
//.........这里部分代码省略.........
开发者ID:alcexhim,项目名称:PhoenixSNS,代码行数:101,代码来源:Detail.inc.php

示例9: header

        echo "</rss>";
        break;
    case "entries.atom":
        header("Content-Type: text/xml; charset=UTF-8");
        echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\r\n";
        echo "<feed xmlns=\"http://www.w3.org/2005/Atom\">\r\n";
        echo "    <title>" . $journal->Title . "</title>\r\n";
        echo "    <subtitle><![CDATA[" . JH\Utilities::HtmlDecode($journal->Description) . "]]></subtitle>\r\n";
        echo "    <link href=\"" . System::ExpandRelativePath("~/community/members/" . $thisuser->ShortName . "/journals/" . $journal->Name . "/entries.atom") . "\" rel=\"self\" />\r\n";
        echo "    <link href=\"" . System::ExpandRelativePath("~/") . "\" />\r\n";
        echo "    <id>urn:uuid:60a76c80-d399-11d9-b91C-0003939e0af6</id>\r\n";
        echo "    <updated>" . date(DateTime::ATOM, strtotime($entry->TimestampCreated)) . "</updated>\r\n";
        foreach ($entries as $entry) {
            echo "    <entry>\r\n";
            echo "        <title>" . $entry->Title . "</title>\r\n";
            echo "        <link href=\"" . System::ExpandRelativePath("~/community/members/" . $thisuser->ShortName . "/journals/" . $journal->Name . "/entries/" . $entry->Name) . "\" />\r\n";
            // echo("        <link rel=\"alternate\" type=\"text/html\" href=\"http://example.org/2003/12/13/atom03.html\" />\r\n");
            // echo("        <link rel=\"edit\" href=\"http://example.org/2003/12/13/atom03/edit\" />
            echo "        <id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id>\r\n";
            echo "        <updated>" . date(DateTime::ATOM, strtotime($entry->TimestampModified)) . "</updated>\r\n";
            echo "        <summary><![CDATA[" . JH\Utilities::HtmlDecode($entry->Content) . "]]></summary>\r\n";
            echo "        <author>\r\n";
            echo "            <name>" . $journal->Creator->LongName . "</name>\r\n";
            // echo("            <email>johndoe@example.com</email>\r\n");
            echo "        </author>\r\n";
            echo "    </entry>";
        }
        echo "</feed>";
        break;
}
?>
开发者ID:alcexhim,项目名称:PhoenixSNS,代码行数:31,代码来源:Feed.inc.php

示例10: Render

    public function Render()
    {
        $CurrentUser = User::GetCurrent();
        ?>
<div class="Chance" id="Chance_<?php 
        echo $this->Name;
        ?>
" style="background-image: url('<?php 
        echo System::ExpandRelativePath("~/images/chance/" . $this->Chance->ID . "/kiosk_background.png");
        ?>
');">
	<div class="ChanceGlobe" id="Chance_<?php 
        echo $this->Name;
        ?>
_globe">
		<div class="ChanceGlobeEggs" id="Chance_<?php 
        echo $this->Name;
        ?>
_globe_eggs"></div>
		<div class="ChanceGlobeStrip"></div>
		<div class="ChanceGlobeOverlay"></div>
	</div>
	<div class="ChanceControls">
		<a style="background-image: url('<?php 
        echo System::ExpandRelativePath("~/images/chance/" . $this->Chance->ID . "/kiosk_button.png");
        ?>
');" id="Chance_<?php 
        echo $this->Name;
        ?>
_spinbutton" class="ChanceButton" href="<?php 
        echo System::ExpandRelativePath("~/chance/" . $this->Chance->ID . "/spin");
        ?>
" onclick="Chance_<?php 
        echo $this->Name;
        ?>
.spin(); return false;">&nbsp;</a>
		<span class="ChancePrompt">CLICK THE KNOB</span>
	</div>
	<div class="ChanceDisabled" style="display: none;"></div>
	<?php 
        if ($CurrentUser == null) {
            ?>
	<div class="ChanceNotification" id="Chance_<?php 
            echo $this->Name;
            ?>
_bankrupt">
		You must be logged in<br />to spin
	</div>
	<?php 
        } else {
            if (MarketResource::GetByUser($CurrentUser, 1)->Count < 180) {
                ?>
	<div class="ChanceNotification" id="Chance_<?php 
                echo $this->Name;
                ?>
_bankrupt">
		You do not have<br />enough money (<?php 
                echo MarketResource::GetByID(1)->Name;
                ?>
)
	</div>
	<?php 
            }
        }
        ?>
	<script type="text/javascript">
	var Chance_<?php 
        echo $this->Name;
        ?>
 = new Gacha("<?php 
        echo $this->Name;
        ?>
");
	Chance_<?php 
        echo $this->Name;
        ?>
.completed = function()
	{
		window.location.href = "<?php 
        echo System::ExpandRelativePath("~/chance/" . $this->Name . "/spin");
        ?>
";
	};
	</script>
</div>
<?php 
    }
开发者ID:alcexhim,项目名称:PhoenixSNS,代码行数:87,代码来源:Chance.inc.php

示例11: foreach

        echo $topic->Name;
        ?>
">Cancel</a>
													</td>
												</tr>
											</table>
										</form>
									</div>
									<?php 
    } else {
        ?>
									<h3 class="PanelTitle">Comments (<?php 
        echo $topic->CountComments();
        ?>
) <a class="PanelTitleMini" href="<?php 
        echo System::ExpandRelativePath("~/community/groups/" . $thisgroup->Name . "/topics/" . $topic->Name . "/comment.mmo");
        ?>
">Leave a comment</a></h3>
									<div class="PanelContent">
										<table class="CommentListBox" style="width: 100%">
						<?php 
        $comments = $topic->GetComments(5);
        foreach ($comments as $comment) {
            $comment->Render("~/community/groups/WelcomeToPsychatica/topics/welcome/comments");
        }
        ?>
										</table>
									</div>
						<?php 
    }
}
开发者ID:alcexhim,项目名称:PhoenixSNS,代码行数:31,代码来源:Detail.inc.php

示例12:

    if ($_POST["attempt"] != null && $validation_result_name != null) {
        ?>
					<tr>
						<td colspan="2" class="InlineError"><?php 
        echo $validation_result_name;
        ?>
</td>
					</tr>
					<?php 
    }
}
?>
					<tr>
						<td><label for="txtDescription">Forum <u>d</u>escription:</label></td>
						<td><textarea id="txtDescription" name="description" accesskey="d" cols="40" rows="5"></textarea></td>
					</tr>
					<tr>
						<td colspan="2" style="text-align: right;">
							<input type="submit" value="Finish" />
							<a class="Button" href="<?php 
echo System::ExpandRelativePath("~/community/forums");
?>
">Cancel</a>
						</td>
					</tr>
				</table>
			</form>
		</div>
	</div>
	<?php 
$page->EndContent();
开发者ID:alcexhim,项目名称:PhoenixSNS,代码行数:31,代码来源:Create.inc.php

示例13: foreach

    echo $thisuser->ShortName;
    ?>
/journals/create.mmo">Create Journal</a><?php 
}
?>
</h3>
	<div class="PanelContent">
		<div class="ButtonGroup ButtonGroupHorizontal">
		<?php 
$journals = Journal::GetByUser($thisuser);
foreach ($journals as $journal) {
    ?>
		<a class="ButtonGroupButton" href="<?php 
    echo System::ExpandRelativePath("~/community/members/" . $thisuser->ShortName . "/journals/" . $journal->Name);
    ?>
">
			<img class="ButtonGroupButtonImage" src="<?php 
    echo System::ExpandRelativePath("~/community/members/" . $thisuser->ShortName . "/journals/" . $journal->Name . "/images/thumbnail.png");
    ?>
" />
			<span class="ButtonGroupButtonText"><?php 
    echo $journal->Title;
    ?>
</span>
		</a>
		<?php 
}
?>
		</div>
	</div>
</div>
开发者ID:alcexhim,项目名称:PhoenixSNS,代码行数:31,代码来源:Browse.inc.php

示例14:

										<table style="margin-left: auto; margin-right: auto; width: 400px;">
											<tr>
												<td>How many:</td>
												<td><input type="number" name="purchase_quantity" value="1" style="display: block; width: 100%;" /></td>
											</tr>
											<tr>
												<td colspan="2" style="display: none;">
													<input type="checkbox" id="chkAutoEquip" name="purchase_autoequip" value="1" />
													<label for="chkAutoEquip"><u>A</u>utomatically equip after purchasing</label>
												</td>
											</tr>
											<tr>
												<td colspan="2" style="text-align: right;">
													<input type="submit" value="Confirm Payment" />
													<a class="Button" href="<?php 
            echo System::ExpandRelativePath("~/market/items/" . $item->Name);
            ?>
">Cancel</a>
												</td>
											</tr>
										</table>
									</form>
									<?php 
        } else {
            ?>
									<p>
										Please log in to purchase this item.
									</p>
									<?php 
        }
    }
开发者ID:alcexhim,项目名称:PhoenixSNS,代码行数:31,代码来源:Purchase.inc.php

示例15:

									<td style="width: 25%">Created on:</td>
									<td><?php 
                    echo $forum->CreationTimestamp;
                    ?>
</td>
								</tr>
								<tr>
									<td>Created by:</td>
									<td>
										<div class="ButtonGroup ButtonGroupHorizontal">
											<a class="ButtonGroupButton" target="_blank" href="<?php 
                    echo System::ExpandRelativePath("~/community/members/" . $forum->CreationUser->ShortName);
                    ?>
">
												<img class="ButtonGroupButtonImage" src="<?php 
                    echo System::ExpandRelativePath("~/community/members/" . $forum->CreationUser->ShortName . "/images/avatar/thumbnail.png");
                    ?>
" />
												<span class="ButtonGroupButtonText"><?php 
                    echo $forum->CreationUser->LongName;
                    ?>
</span>
											</a>
										</div>
									</td>
								</tr>
							</table>
						</div>
					</div>
					<?php 
                    break;
开发者ID:alcexhim,项目名称:PhoenixSNS,代码行数:31,代码来源:Detail.inc.php


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