81 lines
1.9 KiB
PHP
81 lines
1.9 KiB
PHP
|
<?php
|
||
|
require(__DIR__ . "/../language.php");
|
||
|
?>
|
||
|
<style type="text/css">
|
||
|
|
||
|
html body {
|
||
|
margin-top: 50px !important;
|
||
|
position: relative;
|
||
|
}
|
||
|
|
||
|
#top_form {
|
||
|
position: fixed;
|
||
|
top: 0;
|
||
|
left: 0;
|
||
|
width: 100%;
|
||
|
|
||
|
margin: 0;
|
||
|
|
||
|
z-index: 2100000000;
|
||
|
-moz-user-select: none;
|
||
|
-khtml-user-select: none;
|
||
|
-webkit-user-select: none;
|
||
|
-o-user-select: none;
|
||
|
|
||
|
border-bottom: 1px solid #151515;
|
||
|
|
||
|
background: #CCCCCC;
|
||
|
|
||
|
height: 45px;
|
||
|
line-height: 45px;
|
||
|
}
|
||
|
|
||
|
#top_form input[name=url] {
|
||
|
width: 550px;
|
||
|
height: 20px;
|
||
|
padding: 5px;
|
||
|
font: 13px "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||
|
border: 0px none;
|
||
|
background: none repeat scroll 0% 0% #FFF;
|
||
|
}
|
||
|
|
||
|
</style>
|
||
|
|
||
|
<script>
|
||
|
var url_text_selected = false;
|
||
|
|
||
|
function smart_select(ele) {
|
||
|
|
||
|
ele.onblur = function () {
|
||
|
url_text_selected = false;
|
||
|
};
|
||
|
|
||
|
ele.onclick = function () {
|
||
|
if (url_text_selected == false) {
|
||
|
this.focus();
|
||
|
this.select();
|
||
|
url_text_selected = true;
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<div id="top_form">
|
||
|
|
||
|
<div style="width:800px; margin:0 auto;">
|
||
|
|
||
|
<form method="post" action="index.php" target="_top" style="margin:0; padding:0;">
|
||
|
<input type="button" value="<?php echo $lang["home"]; ?>" onclick=" window.location.href='index.php'">
|
||
|
<input type="text" name="url" value="<?php echo $url; ?>" autocomplete="off">
|
||
|
<input type="hidden" name="form" value="1">
|
||
|
<input type="submit" value="<?php echo $lang["go"]; ?>">
|
||
|
</form>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<script type=" text/javascript">
|
||
|
smart_select(document.getElementsByName("url")[0]);
|
||
|
</script>
|