3 Star 3 Fork 0

Gitee 极速下载 / scuttle

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/scronide/scuttle
克隆/下载
search.inc.php 1.72 KB
一键复制 编辑 原始数据 按行查看 历史
<form id="search" action="<?php echo createURL('search'); ?>" method="post">
<table>
<tr>
<?php
$logged_on = FALSE;
if ($userservice->isLoggedOn()) {
$currentUser = $userservice->getCurrentUser();
$currentUsername = $currentUser[$userservice->getFieldName('username')];
$logged_on = TRUE;
}
if ($logged_on || isset($user)) {
?>
<td><?php echo T_('Search' /* Search ... for */); ?></td>
<td>
<select name="range">
<?php if (!in_array($range, array($currentUsername, 'all', 'watchlist')) && $user != $currentUsername): ?>
<option value="<?php echo $user ?>"<?php echo $selectUser; ?>><?php echo T_("this user's bookmarks"); ?></option>
<?php
endif;
if ($logged_on) {
?>
<option value="<?php echo $currentUsername; ?>"<?php echo $selectMy; ?>><?php echo T_('my bookmarks'); ?></option>
<option value="watchlist"<?php echo $select_watchlist; ?>><?php echo T_('my watchlist'); ?></option>
<?php
}
?>
<option value="all"<?php echo $select_all; ?>><?php echo T_('all bookmarks'); ?></option>
</select>
</td>
<td><?php echo T_('for' /* Search ... for */); ?></td>
<?php
} else {
?>
<td><input type="hidden" name="range" value="all" /></td>
<?php
}
?>
<td><input type="text" name="terms" size="50" value="<?php echo filter($terms); ?>" /></td>
<td><input type="submit" value="<?php echo T_('Search' /* Submit button */); ?>" /></td>
</tr>
</table>
</form>
1
https://gitee.com/mirrors/scuttle.git
git@gitee.com:mirrors/scuttle.git
mirrors
scuttle
scuttle
master

搜索帮助