<?php

$this->data['header'] = 'OpenID Login';
$this->data['icon'] = 'openid.png';
$this->data['autofocus'] = 'openid-identifier';
$this->includeAtTemplateBase('includes/header.php');

?>
<style>
input.openid-identifier {
   background: url(http://stat.livejournal.com/img/openid-inputicon.gif) no-repeat;
/*   background-color: #fff; */
	border-left: 1px solid #ccc;
	border-right: 1px solid #aaa;
	border-top: 1px solid #aaa;
	border-bottom: 1px solid #ccc;
	color: #555;
   background-position: 0 50%;
   padding-left: 18px;
}
fieldset {
	border-left: 1px solid #aaa;
	border-right: 1px solid #ccc;
	border-top: 1px solid #ccc;
	border-bottom: 1px solid #aaa;
	padding: 1em;
}
legend {
	padding-left: .3em;
	padding-right: .3em;
	color: #555;
}

div.error {
	padding: 1em; margin: 1em;
	background: red;
	color: white;
	border: 1px solid #600;
}
</style>
<div id="content">


    <?php if (isset($this->data['error'])) { print "<div class=\"error\">" . $this->data['error'] . "</div>"; } ?>



	<form method="get" action="consumer.php">
		<fieldset>
			<legend>OpenID Login</legend>

			Identity&nbsp;URL:
			<input type="hidden" name="action" value="verify" />
			<input id="openid-identifier" class="openid-identifier" type="text" name="openid_url" value="http://" />
			<input type="hidden" name="AuthState" value="<?php echo $this->data['AuthState']; ?>" />
			<input type="submit" value="Login with OpenID" />
		</fieldset>
	</form>

    <p style="margin-top: 2em">
       OpenID is a free and easy way to use a single digital identity across the Internet. Enter your OpenID identity URL in the box above to authenticate.
    </p>


<?php
$this->includeAtTemplateBase('includes/footer.php');
?>