*Replace more links with &ui_link call

This commit is contained in:
Derrick Hammer
2014-06-08 13:16:38 -04:00
parent e8f26a8854
commit 367236479e
3 changed files with 3 additions and 6 deletions

View File

@@ -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'},

View File

@@ -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 ? "&lt;&lt;&nbsp;|&nbsp;" :
"<a href='up.cgi?idx=$i'>".
"&lt;&lt;</a>&nbsp;|&nbsp;");
&ui_link("up.cgi?idx=$i","&lt;&lt;")&nbsp;|&nbsp;");
push(@afters, $i == @t-1 ? "&nbsp;|&nbsp;&gt;&gt;" :
"&nbsp;|&nbsp;<a href='down.cgi?idx=$i'>".
"&gt;&gt;</a>");

View File

@@ -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";