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 &quot;Server&quot; 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 
    }
Beispiel #3
0
    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();
    }