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 }
<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();
<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>
?> </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");
} 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>
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; } }
public function GetURL() { return System::ExpandRelativePath("~/community/members/" . $this->Creator->ShortName . "/journals/" . $this->Name); }
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 $count = $this->Item->CountPurchased(); echo $count; if ($count == 1) { echo " time"; } else { echo " times"; } ?> . </p> </td> </tr> <tr> <td><hr /></td> </tr> <tr> <td><?php echo $this->Item->Description; ?> </td> </tr> </table> </div> </div> <?php }
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; } ?>
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;"> </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 }
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 } }
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();
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>
<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 } }
<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;
public function RenderContent() { $CurrentUser = User::GetCurrent(); ?> <div class="Panel"> <h3 class="PanelTitle">Dressing Room</h3> <div class="PanelContent"> <p> Select an item from the list to add it to your Shopping Cart and see how it would look on your avatar. <?php if ($CurrentUser != null) { ?> Click the "Purchase" button to purchase all the items in your Shopping Cart! <?php } else { ?> <strong>You must be logged in to purchase items in your Shopping Cart.</strong> <?php } ?> </p> <table style="width: 100%"> <tr> <td style="width: 200px;"> <div class="Panel"> <h3 class="PanelTitle">Preview</h3> <div class="PanelContent" style="height: 340px;"> <div class="AvatarAdorner" style="position: relative; left: 80px;"> <?php $renderer = new AvatarRenderer("r1DressupPreview"); $renderer->ZoomFactor = 0.2; $renderer->Base = AvatarBase::GetByID(1); $renderer->Render(); ?> </div> </div> </div> </td> <td> <div class="Panel"> <h3 class="PanelTitle">Available Items</h3> <div class="PanelContent"> <script type="text/javascript"> <?php echo $renderer->Name; ?> .OnItemEquipped = function(sender, e) { for (var i = 0; i < e.Item.Images.length; i++) { var image = e.Item.Images[i]; var img = new Image(); img.src = "<?php echo System::ExpandRelativePath("~/images/avatar/items/"); ?> " + e.Item.ID + "/<?php echo $renderer->Base->ID; ?> /" + image.ID + "." + image.FileNameExtension; alert(img.src); } e.Data.Button.className = "ButtonGroupButton Selected"; }; <?php echo $renderer->Name; ?> .OnItemUnequipped = function(sender, e) { e.Data.Button.className = "ButtonGroupButton"; }; function AvatarEquipItem(itemid) { var parent = <?php echo $renderer->Name; ?> ; var btnid = "AvatarClothesBrowser_cb1_Items_" + itemid + "_Button"; var btn = document.getElementById(btnid); if (btn.className == "ButtonGroupButton Selected") { parent.Unequip(itemid, { "Button": btn }); } else { parent.Equip(itemid, { "Button": btn }); } } </script> <div class="ButtonGroup ButtonGroupHorizontal" style="height: 340px; overflow: scroll; overflow-x: hidden;"> <?php $entries = ItemMarketEntry::Get(); foreach ($entries as $entry) { ?> <a class="ButtonGroupButton" id="AvatarClothesBrowser_cb1_Items_<?php echo $entry->Item->ID; ?> _Button" href="#" onclick="AvatarEquipItem(<?php echo $entry->Item->ID; ?> ); return false;"> <img class="ButtonGroupButtonImage" src="<?php echo System::ExpandRelativePath("~/market/items/" . $entry->Item->Name . "/images/thumbnail.png"); ?> " style="width: auto;" /> <span class="ButtonGroupButtonText"><?php echo $entry->Item->Title; ?> </span> </a> <?php } ?> </div> </div> </div> </td> </tr> <?php if ($CurrentUser != null) { ?> <tr> <td colspan="2"> <div class="Panel"> <h3 class="PanelTitle">Shopping Cart</h3> <div class="PanelContent"> <div class="ProfilePage"> <div class="ProfileTitle"> <span class="ProfileUserName"><span id="lblItemCount">No</span> items in cart</span> <span class="ProfileControlBox"> <a href="#">Purchase</a> </span> </div> <div class="ProfileContent"> Please select an item from "Available Items" </div> </div> </div> </div> </td> </tr> <?php } ?> </table> </div> </div> <?php }
<?php $entryUrl = System::ExpandRelativePath("~/community/members/" . $thisuser->ShortName . "/journals/" . $journal->Name . "/entries/" . $entry->Name); if (count($path) > 6 && $path[6] != "") { switch ($path[6]) { case "Modify.mmo": require "Modify.inc.php"; return; case "Remove.mmo": require "Remove.inc.php"; return; case "Impressions.mmo": require "Impressions.inc.php"; return; } } // update the Impressions for this journal entry if ($journal->Creator->ID != $CurrentUser->ID) { $entry->UpdateImpressions(); } ?> <div class="ProfilePage"> <div class="ProfileTitle"> <span class="ProfileUserName"><?php echo $entry->Title; ?> </span> <span class="ProfileControlBox"><?php if ($journal->Creator->ID == $CurrentUser->ID) { ?> <a href="<?php
echo $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/" . $item->Name . "/Images/Thumbnail.png"); ?> " alt="No image available" /> </td> <td> <p> <?php $invcount = $thisuser->CountInventoryItems($item); if ($invcount == 0) { if ($thisuser->IsAuthenticated) { ?> You do not have this item in your Inventory. <?php } else { echo $thisuser->LongName . " does not have this item in their Inventory."; }
<table style="margin-left: auto; margin-right: auto;"> <tr> <td><label for="txtJournalName">Journal <u>n</u>ame:</label></td> <td><input type="text" name="journal_name" id="txtJournalName" maxlength="50" accesskey="n" /></td> </tr> <tr> <td><label for="txtJournalTitle">Journal <u>t</u>itle:</label></td> <td><input type="text" name="journal_title" id="txtJournalTitle" maxlength="50" accesskey="t" /></td> </tr> <tr> <td><label for="txtJournalDescription">Journal <u>d</u>escription (optional):</label></td> <td><textarea name="journal_description" id="txtJournalDescription" accesskey="d"></textarea></td> </tr> <tr> <td><label for="txtJournalIcon">Journal <u>i</u>con (optional):</label></td> <td><input type="file" name="journal_icon" id="txtJournalIcon" accesskey="i" /></td> </tr> <tr> <td colspan="2" style="text-align: right;"> <input type="submit" value="Save Changes" /> <a class="Button" href="<?php echo System::ExpandRelativePath("~/community/members/" . $thisuser->ShortName . "/journals"); ?> ">Cancel</a> </td> </tr> </table> </form> </div> </div> </div>