mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-25 17:08:42 +00:00
feat(web/hack_list): my hacks improvement
This commit is contained in:
parent
47d54be437
commit
62941dbea5
@ -78,11 +78,18 @@
|
|||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input type="text" class="form-control form-control-sm" name="hacker" id="input-hacker" value="<?= $q_hacker ?>" maxlength="20" style="width:10em" />
|
<input type="text" class="form-control form-control-sm" name="hacker" id="input-hacker" value="<?= $q_hacker ?>" maxlength="20" style="width:10em" />
|
||||||
<?php if (Auth::check()): ?>
|
<?php if (Auth::check()): ?>
|
||||||
<a href="/hacks?hacker=<?= Auth::id() ?>" class="btn btn-outline-secondary btn-sm">
|
<a id="my-hacks" href="/hacks?hacker=<?= Auth::id() ?>" class="btn btn-outline-secondary btn-sm">
|
||||||
我的
|
我的
|
||||||
</a>
|
</a>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</div>
|
</div>
|
||||||
|
<script>
|
||||||
|
$('#my-hacks').click(function(event) {
|
||||||
|
event.preventDefault();
|
||||||
|
$('#input-hacker').val('<?= Auth::id() ?>');
|
||||||
|
$('#form-search').submit();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
</div>
|
</div>
|
||||||
<div id="form-group-owner" class="col-auto">
|
<div id="form-group-owner" class="col-auto">
|
||||||
<label for="input-owner" class="form-label">
|
<label for="input-owner" class="form-label">
|
||||||
@ -91,11 +98,18 @@
|
|||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input type="text" class="form-control form-control-sm" name="owner" id="input-owner" value="<?= $q_owner ?>" maxlength="20" style="width:10em" />
|
<input type="text" class="form-control form-control-sm" name="owner" id="input-owner" value="<?= $q_owner ?>" maxlength="20" style="width:10em" />
|
||||||
<?php if (Auth::check()): ?>
|
<?php if (Auth::check()): ?>
|
||||||
<a href="/hacks?owner=<?= Auth::id() ?>" class="btn btn-outline-secondary btn-sm">
|
<a id="my-owners" href="/hacks?owner=<?= Auth::id() ?>" class="btn btn-outline-secondary btn-sm">
|
||||||
我的
|
我的
|
||||||
</a>
|
</a>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</div>
|
</div>
|
||||||
|
<script>
|
||||||
|
$('#my-owners').click(function(event) {
|
||||||
|
event.preventDefault();
|
||||||
|
$('#input-owner').val('<?= Auth::id() ?>');
|
||||||
|
$('#form-search').submit();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
</div>
|
</div>
|
||||||
<div id="form-group-status" class="col-auto">
|
<div id="form-group-status" class="col-auto">
|
||||||
<label for="input-status" class="form-label">
|
<label for="input-status" class="form-label">
|
||||||
|
Loading…
Reference in New Issue
Block a user