mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
*Replace more links with &ui_link call
This commit is contained in:
@@ -11,8 +11,7 @@ if (@schedules) {
|
||||
print &ui_form_start("delete_schedules.cgi", "post");
|
||||
@links = ( &select_all_link("d"),
|
||||
&select_invert_link("d"),
|
||||
"<a href='edit_schedule.cgi?new=1'>".
|
||||
"$text{'schedules_add'}</a>" );
|
||||
&ui_link("edit_schedule.cgi?new=1",$text{'schedules_add'}) );
|
||||
print &ui_links_row(\@links);
|
||||
@tds = ( "width=5", "width=30%", "width=70%" );
|
||||
print &ui_columns_start([ "", $text{'schedules_name'},
|
||||
|
||||
@@ -33,8 +33,7 @@ foreach $t (@t) {
|
||||
push(@titles, $def == $i ? "<b>$tt</b>" : $tt);
|
||||
push(@links, "edit_title.cgi?idx=$t->{'index'}");
|
||||
push(@befores, $i == 0 ? "<< | " :
|
||||
"<a href='up.cgi?idx=$i'>".
|
||||
"<<</a> | ");
|
||||
&ui_link("up.cgi?idx=$i","<<") | ");
|
||||
push(@afters, $i == @t-1 ? " | >>" :
|
||||
" | <a href='down.cgi?idx=$i'>".
|
||||
">></a>");
|
||||
|
||||
@@ -46,8 +46,7 @@ if (@plist) {
|
||||
next if (!$ed && !$jb && !$access{'view'});
|
||||
local $l;
|
||||
if ($ed) {
|
||||
$l = "<a href='edit_printer.cgi?name=$p'>".
|
||||
"$p</a>\n";
|
||||
$l = &ui_link("edit_printer.cgi?name=$p",$p)\n";
|
||||
}
|
||||
else {
|
||||
$l = $p."\n";
|
||||
|
||||
Reference in New Issue
Block a user