$('label.sqlite').css('background-color', '#ddd');
$('label.mysql').css('background-color', '#fff');
});
+
+ // Hide and show input field values for login form
+ var textuser = "username";
+ var textpassword = "password";
+ $("#user").focus(function() {
+ if($(this).attr("value") == textuser) $(this).attr("value", "");
+ });
+ $("#user").blur(function() {
+ if($(this).attr("value") == "") $(this).attr("value", textuser);
+ });
+ $("#password").focus(function() {
+ if($(this).attr("value") == textpassword) $(this).attr("value", "");
+ });
+ $("#password").blur(function() {
+ if($(this).attr("value") == "") $(this).attr("value", textpassword);
+ });
});
<form action="#" method="post">
<input type='hidden' name='install' value='true'/>
<fieldset>
- <input type="text" name="login" value="your email" />
+ <input type="text" name="login" value="admin username" />
<input type="password" name="pass" value="password" />
</fieldset>
<fieldset>
<div id="login">
- <img src="<?php echo image_path("", "owncloud-logo-medium-white.png"); ?>" alt="ownCloud" />
+ <img src="<?php echo image_path('', 'owncloud-logo-medium-white.png'); ?>" alt="ownCloud" />
<form action="index.php" method="post">
<!-- <h1>Sign in :</h1> -->
<fieldset>
- <?php if($_["error"]): ?>
+ <?php if($_['error']): ?>
Login failed!
<?php endif; ?>
- <input type="text" name="user" value="" />
- <input type="password" name="password" />
+ <input type="text" name="user" id="user" value="username" />
+ <input type="password" name="password" id="password" value="password" />
<input type="submit" value="Log in" />
</fieldset>
</form>