protected function RenderContent() { $wndCreateUser = new Window(); $wndCreateUser->ID = "wndCreateUser"; $wndCreateUser->Title = "Create User"; $wndCreateUser->BeginContent(); ?> <form method="POST" action="<?php echo System::ExpandRelativePath("~/users/modify"); ?> " onsubmit="wndCreateUser.Hide();"> <div class="FormView" style="width: 100%"> <div class="Field"> <label for="txtLoginID" style="width: 280px;">Login ID:</label> <input type="text" id="txtLoginID" name="user_LoginID" /> </div> <div class="Field"> <label for="txtDisplayName">Display name:</label> <input type="text" id="txtDisplayName" name="user_DisplayName" /> </div> <div class="Field"> <label for="chkAccountLocked">Lock account</label> <input type="checkbox" name="user_AccountLocked" id="chkAccountLocked" /> </div> <div class="Field"> <label for="chkForcePasswordChange">Require password reset at next logon</label> <input type="checkbox" name="user_ForcePasswordChange" id="chkForcePasswordChange" /> </div> </div> <?php $wndCreateUser->BeginButtons(); ?> <input type="submit" class="Button Default" value="Save Changes" /> <a class="Button" href="#" onclick="wndCreateUser.Hide(); return false;">Discard Changes</a> <?php $wndCreateUser->EndButtons(); ?> </form> <?php $wndCreateUser->EndContent(); $users = User::Get(); $lv = new ListView(); $lv->Width = "100%"; $lv->Columns = array(new ListViewColumn("lvcLoginID", "Login ID"), new ListViewColumn("lvcDisplayName", "Display Name"), new ListViewColumnCheckBox("lvcAccountLocked", "Account Locked"), new ListViewColumnCheckBox("lvcPasswordChangeRequired", "Password Change Required")); foreach ($users as $user) { $lv->Items[] = new ListViewItem(array(new ListViewItemColumn("lvcLoginID", "<a href=\"" . System::ExpandRelativePath("~/users/modify/" . $user->ID . "\">" . $user->UserName . "</a>", $user->UserName)), new ListViewItemColumn("lvcDisplayName", $user->DisplayName), new ListViewItemColumn("lvcAccountLocked", $user->AccountLocked), new ListViewItemColumn("lvcPasswordChangeRequired", $user->ForcePasswordChange))); } $lv->Render(); }
protected function RenderContent() { $wndHelpWithServer = new Window("wndHelpWithServer", "About the "Server" parameter"); $wndHelpWithServer->Width = 600; $wndHelpWithServer->Visible = false; $wndHelpWithServer->BeginContent(); ?> <p> Enter the server name on which you registered your PhoenixSNS account. Because PhoenixSNS accounts are decentralized, you may log into multiple sites using the same credentials. Whenever you log in, PhoenixSNS will contact your identity provider and retrieve information that you have shared between your identity provider and <?php echo System::GetConfigurationValue("Application.Name"); ?> . </p> <p> You have total control over what information gets sent from <?php echo System::GetConfigurationValue("Application.Name"); ?> to your Identity Provider and vice versa. Your privacy and cross-posting options can be changed from your User Control Panel. </p> <?php $wndHelpWithServer->BeginButtons(); ?> <div style="text-align: center;"><input type="submit" value="OK" onclick="wndHelpWithServer.Hide(); return false;" /></div> <?php $wndHelpWithServer->EndButtons(); $wndHelpWithServer->EndContent(); ?> <div class="LogoAndLoginArea"> <div class="LogoArea"> <img class="Logo" src="<?php echo System::ExpandRelativePath("~/images/Logo.png"); ?> " alt="<?php echo System::GetConfigurationValue("Application.Name"); ?> " /> <p class="Slogan"><?php echo System::GetConfigurationValue("Application.Slogan"); ?> </p> </div> <form class="LoginForm" method="POST" action="<?php echo System::ExpandRelativePath(System::GetConfigurationValue("Account.LoginPath")); ?> " style="margin-left: auto; margin-right: auto;"> <div class="Field"> <label for="txtUserName">Login <u>n</u>ame:</label> <input type="text" id="txtUserName" name="member_username" value="" style="width: 100%;" /> </div> <div class="Field"> <label for="txtPassword"><u>P</u>assword:</label> <input type="password" id="txtPassword" name="member_password" value="" style="width: 100%;" /> </div> <div class="Field"> <label for="txtServerName" id="lblServerName"><u>S</u>erver:</label> <input type="text" id="txtServerName" accesskey="S" name="member_servername" value="<?php echo System::GetConfigurationValue("Application.DomainName"); ?> " style="width: 100%;" /> <a href="#" onclick="wndHelpWithServer.ShowDialog();"><img style="vertical-align: middle;" src="<?php echo System::ExpandRelativePath("~/images/icons/help.png"); ?> " alt="(?)" title="More information" /></a> </div> <?php if ($this->InvalidCredentials) { ?> <div class="Message Error"> The login name or password you specified is invalid. Please try again. </div> <?php } ?> <div class="Buttons"> <input type="submit" value="Log In" onclick="frmLogin.submit(); return false;" /> </div> </form> <p class="LoginMessage" style="font-style: oblique;"><?php echo $this->Message; ?> </p> <div class="ActionList"> <a class="Action" href="<?php echo System::ExpandRelativePath(System::GetConfigurationValue("Account.RegisterPath")); ?> "> <span class="ActionTitle">Don't have an account?</span> <span class="ActionLink">Register now!</span> </a> <a class="Action" href="<?php echo System::ExpandRelativePath(System::GetConfigurationValue("Account.ResetPasswordPath")); ?> "> <span class="ActionTitle">Forgot your password?</span> <span class="ActionLink">Reset it here.</span> </a> <a class="Action" href="<?php echo System::ExpandRelativePath("~/contribute"); ?> "> <span class="ActionTitle">Want to help out?</span> <span class="ActionLink">See ways you can contribute.</span> </a> </div> </div> <script type='text/javascript'> // TEST!!! /* var supportsVibrate = "vibrate" in navigator; // Vibrate multiple times for multiple durations // Vibrate for three seconds, wait two seconds, then vibrate for one second navigator.vibrate([500, 500, 500, 500, 500]); */ </script> <?php }
?> " + messageID + "/praise.mmo"; dlgPraises.ShowDialog(); } else { // dlgError.ShowDialog(); } } }); } </script> <?php $wndCommentPrivacy = new Window("wndCommentPrivacy", "Comment Privacy Settings"); $wndCommentPrivacy->Visible = false; $wndCommentPrivacy->BeginContent(); ?> <table style="width: 100%;"> <tr> <td><label for="cboCommentVisibility">Visibility:</label></td> <td> <select id="cboCommentVisibility" name="comment_visibility"> <option <?php if ($message->Visibility == ShoutoutMessageVisibility::Hidden) { echo "selected=\"selected\" "; } ?> value="0">Hidden</option> <option <?php
protected function RenderContent2() { ?> <div class="PhoenixVision" id="PhoenixVision_<?php echo $this->ID; ?> "> <div class="World" id="PhoenixVision_<?php echo $this->ID; ?> _Content" style="display: none; <?php if ($this->CurrentPlace != null) { echo "background-image: url('" . System::ExpandRelativePath("~/images/world/places/" . $this->CurrentPlace->ID . "/backgrnd.png") . "');"; } else { echo "background-color: #000000;"; } ?> "> <div class="WorldContent"> <?php if ($this->CurrentPlace != null) { echo "<!-- ** CLIPPING REGIONS ** \n"; $pcrs = $this->CurrentPlace->GetClippingRegions(); foreach ($pcrs as $pcr) { echo "{\n"; $points = $pcr->GetPoints(); foreach ($points as $point) { echo "\t(" . $point->Left . ", " . $point->Top . "), \n"; } echo "}, \n"; } echo "-->"; $hotspots = $this->CurrentPlace->GetHotspots(); if (count($hotspots) > 0) { ?> <div class="WorldHotspots"> <?php foreach ($hotspots as $hotspot) { echo "<a class=\"WorldHotspotEntry\" "; if ($hotspot->TargetType == PlaceHotspotTargetType::URL || $hotspot->TargetType == PlaceHotspotTargetType::Script) { if ($hotspot->TargetURL == null) { echo "href=\"#\""; } else { echo "href=\"" . $hotspot->TargetURL . "\" target=\"_blank\""; } if ($hotspot->TargetScript != null) { echo " onclick=\"" . $hotspot->TargetScript . "\""; } } else { if ($hotspot->TargetType == PlaceHotspotTargetType::Place) { echo "href=\"" . System::ExpandRelativePath("~/world/places/" . $hotspot->TargetPlace->Name) . "\" onclick=\"" . $this->ID . ".SetCurrentPlace(Place.GetByID(" . $hotspot->TargetPlace->ID . "); return false;\""; } } echo " style=\"left: " . $hotspot->Left . "px; top: " . $hotspot->Top . "px; width: " . $hotspot->Width . "px; height: " . $hotspot->Height . "px;\""; echo ">"; if ($hotspot->Title != null) { echo "<span class=\"Title\">" . $hotspot->Title . "</span>"; } echo "</a>"; } ?> </div> <?php } ?> <!-- chat log --> <?php $wndChatLog = new Window("wndChatLog_" . $this->ID); $wndChatLog->Title = "Messages"; $wndChatLog->Height = "177px"; $wndChatLog->Style = "z-index: 4;"; $wndChatLog->BeginContent(); ?> <table class="ChatMessages" id="chatLog"> </table> <?php $wndChatLog->EndContent(); ?> <div class="WorldPersonaContent" id="personas" style="position: relative;"> </div> <?php } else { ?> <div style="text-align: center; font-size: 18pt; font-weight: bold; color: #FF0000; padding-top: 240px;">place cannot be null</div> <?php } ?> </div> </div> <div class="WorldProgress" id="PhoenixVision_<?php echo $this->ID; ?> _Progress" style="display: none; background-color: #000000; position: relative;"> <div class="ProgressBarWrapper"> <?php $pb1 = new ProgressBar("PhoenixVision_" . $this->ID . "_ProgressBar"); $pb1->Text = "Please wait while the World loads..."; $pb1->Render(); ?> </div> <script type="text/javascript"> var <?php echo $this->ID; ?> = new PhoenixVision("<?php echo $this->ID; ?> "); <?php echo $this->ID; ?> .BootstrapObjects = [ <?php $i = 0; $places = Place::Get(); foreach ($places as $place) { ?> { "Place": <?php echo $place->ToJSON(); ?> , "ImageURL": "<?php echo System::$Configuration["Application.BasePath"]; ?> /world/places/<?php echo $place->Name; ?> /images/preview.png", "Title": "Map objects" },<?php /* if ($i < count($places) - 1) { echo (", "); } $i++; */ ?> <?php } ?> ]; <?php echo $this->ID; ?> .ProgressBar = PhoenixVision_<?php echo $this->ID; ?> _ProgressBar; <?php echo $this->ID; ?> .Refresh(); </script> </div> </div> <?php }
protected function BeforeContent() { $this->Ribbon->Render(); $BanUserDialog = new Window("BanUserDialog", "Ban User"); $BanUserDialog->Visible = false; $BanUserDialog->BeginContent(); ?> <table style="width: 100%;"> <tr> <td style="width: 100px;"><label for="txtBanUserName">User to ban:</label></td> <td> <?php $txtBanUserName = new SearchTextBox("txtBanUserName"); $txtBanUserName->SearchScopes[] = "Users"; $txtBanUserName->Render(); ?> </td> </tr> <tr> <td><label for="txtBanReason">Reason:</label></td> <td> <textarea id="txtBanReason" rows="5" style="width: 512px;" placeholder="Describe the situation which led up to the ban"></textarea> </td> </tr> <tr> <td colspan="2"><input type="checkbox" id="chkBanReasonVisible" /> <label for="chkBanReasonVisible">Allow user to see ban reason</label></td> </tr> </table> <?php $BanUserDialog->BeginButtons(); ?> <a class="Button" href="#">Ban User</a> <a class="Button" href="#" onclick="BanUserDialog.Hide();">Cancel</a> <?php $BanUserDialog->EndButtons(); $BanUserDialog->EndContent(); $PlacePropertiesDialog = new Window("PlacePropertiesDialog", "Place Properties"); $PlacePropertiesDialog->Visible = false; $PlacePropertiesDialog->BeginContent(); ?> <table style="width: 100%; font-family: 'Segoe UI'; font-size: 8pt;"> <tr> <td style="width: 200px;"><label for="txtPlaceName">Place name:</label></td> <td><input type="text" id="txtPlaceName" name="place_name" /></td> </tr> </table> <?php $PlacePropertiesDialog->BeginButtons(); ?> <a id="PlacePropertiesDialog_cmdCreate" class="Button" href="#">Create</a> <a id="PlacePropertiesDialog_cmdCancel" class="Button" href="#">Cancel</a> <?php $PlacePropertiesDialog->EndButtons(); $PlacePropertiesDialog->EndContent(); ?> <script type="text/javascript"> PlacePropertiesDialog.Buttons = { "cmdCreate": { "NativeObject": document.getElementById("PlacePropertiesDialog_cmdCreate") }, "cmdCancel": { "NativeObject": document.getElementById("PlacePropertiesDialog_cmdCancel") } }; PlacePropertiesDialog.Buttons.cmdCreate.NativeObject.addEventListener("click", function(e) { alert("Creating a Place!"); }); PlacePropertiesDialog.Buttons.cmdCancel.NativeObject.addEventListener("click", function(e) { PlacePropertiesDialog.Hide(); }); </script> <?php $ResourceTransferDialog = new Window("ResourceTransferDialog", "Transfer Resources"); $ResourceTransferDialog->Visible = false; $ResourceTransferDialog->BeginContent(); ?> <table style="width: 100%;"> <tr> <td style="width: 200px;"><label for="txtResourceTransferSender">From user (or blank):</label></td> <td> <?php $txtResourceTransferSender = new SearchTextBox("txtResourceTransferSender"); $txtResourceTransferSender->SearchScopes[] = "Users"; $txtResourceTransferSender->Render(); ?> </td> </tr> <tr> <td><label for="txtResourceTransferSender">To user:</label></td> <td> <?php $txtResourceTransferReceiver = new SearchTextBox("txtResourceTransferReceiver"); $txtResourceTransferReceiver->SearchScopes[] = "Users"; $txtResourceTransferReceiver->Render(); ?> </td> </tr> </table> <?php $ResourceTransferDialog->BeginButtons(); ?> <a class="Button" href="#">Transfer</a> <a class="Button" href="#" onclick="ResourceTransferDialog.Hide();">Cancel</a> <?php $ResourceTransferDialog->EndButtons(); $ResourceTransferDialog->EndContent(); }