Revision 6da3044f
Von Moritz Bunkus vor mehr als 7 Jahren hinzugefügt
bin/mozilla/am.pl | ||
---|---|---|
1028 | 1028 |
|
1029 | 1029 |
$main::auth->assert('config'); |
1030 | 1030 |
|
1031 |
setup_am_show_history_search_action_bar(); |
|
1032 |
|
|
1031 | 1033 |
$form->{title} = $locale->text("History Search"); |
1032 | 1034 |
$form->header(); |
1033 | 1035 |
|
... | ... | |
1103 | 1105 |
my ($sort, $sortby) = split(/\-\-/, $form->{order}); |
1104 | 1106 |
$sort =~ s/.*\.(.*)$/$1/; |
1105 | 1107 |
|
1108 |
setup_am_show_am_history_action_bar(); |
|
1109 |
|
|
1106 | 1110 |
$form->{title} = $locale->text("History Search"); |
1107 | 1111 |
$form->header(); |
1108 | 1112 |
|
... | ... | |
1632 | 1636 |
); |
1633 | 1637 |
} |
1634 | 1638 |
} |
1639 |
|
|
1640 |
sub setup_am_show_history_search_action_bar { |
|
1641 |
my %params = @_; |
|
1642 |
|
|
1643 |
for my $bar ($::request->layout->get('actionbar')) { |
|
1644 |
$bar->add( |
|
1645 |
action => [ |
|
1646 |
t8('Show'), |
|
1647 |
submit => [ '#form' ], |
|
1648 |
accesskey => 'enter', |
|
1649 |
], |
|
1650 |
); |
|
1651 |
} |
|
1652 |
} |
|
1653 |
|
|
1654 |
sub setup_am_show_am_history_action_bar { |
|
1655 |
my %params = @_; |
|
1656 |
|
|
1657 |
for my $bar ($::request->layout->get('actionbar')) { |
|
1658 |
$bar->add( |
|
1659 |
action => [ |
|
1660 |
t8('Back'), |
|
1661 |
call => [ 'kivi.history_back' ], |
|
1662 |
], |
|
1663 |
); |
|
1664 |
} |
|
1665 |
} |
templates/webpages/common/search_history.html | ||
---|---|---|
3 | 3 |
[% USE HTML %] |
4 | 4 |
<h1>[% 'history search engine' | $T8 %]</h1> |
5 | 5 |
|
6 |
<form method="post" action="am.pl"> |
|
6 |
<form method="post" action="am.pl" id="form">
|
|
7 | 7 |
|
8 | 8 |
<input type="hidden" name="action" value="show_am_history"> |
9 | 9 |
|
... | ... | |
67 | 67 |
</td> |
68 | 68 |
</tr> |
69 | 69 |
</table> |
70 |
|
|
71 |
<hr> |
|
72 |
<input type="submit" class="submit" value="[% 'submit' | $T8 %]"> |
|
73 |
<input type="reset" class="submit" value="[% 'reset' | $T8 %]" id='reset_button'> |
|
74 |
|
|
75 | 70 |
</form> |
76 | 71 |
|
77 | 72 |
<script type="text/javascript"> |
Auch abrufbar als: Unified diff
ActionBar: Verwendung bei »System« → »Historiensuchmaschine«