westdc-zf1/application/default/views/scripts/author/navi.phtml

26 lines
1.0 KiB
PHTML

<ul>
<li><a href="/author/">介绍</a></li>
<li><a href="/author/apply">数据认证</a></li>
<li><a href="/author/accept">我的数据</a></li>
<li><a href="/author/inauthor">数据申请管理</a></li>
<li><a href="/author/authored">数据反馈管理</a></li>
<li><a href="/author/help">数据调查</a></li>
<li><a href="/author/help">数据新闻</a></li>
<li><a href="/author/help">信息统计</a></li>
</ul>
<form id="search" enctype="application/x-www-form-urlencoded" action="/author/search" method="post">
<input type="text" name="q" id="q" value="<?php echo (empty($this->key))?'回车搜索标题和摘要':$this->key; ?>" onfocus="myfocus(this);" onblur="myblur(this);">
<input type="hidden" name="submit" value="submit">
</form>
<script>
function myfocus(element) {
if (element.value == '回车搜索标题和摘要') {
element.value = '';
}
}
function myblur(element) {
if (element.value == '') {
element.value = '回车搜索标题和摘要';
}
}
</script>