Skip to content

Commit

Permalink
Modern UI functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Aug 5, 2008
1 parent 83eff79 commit 0cad838
Showing 1 changed file with 12 additions and 23 deletions.
35 changes: 12 additions & 23 deletions samba/index.cgi
Expand Up @@ -260,34 +260,23 @@ if (@utitles) {

if ($access{'apply'}) {
$isrun = &is_samba_running();
print &ui_hr();
print &ui_buttons_start();
if ($isrun == 0) {
print &ui_hr();
print "<form action=start.cgi>\n";
print "<table width=100%><tr>\n";
print "<td><input type=submit value=\"$text{'index_start'}\"></td>\n";
print "<td>$text{'index_startmsg'}</td>\n";
print "</tr></table></form>\n";
# Start button
print &ui_buttons_row("start.cgi", $text{'index_start'},
$text{'index_startmsg'});
}
elsif ($isrun == 1) {
print &ui_hr();
print "<table width=100%><tr>\n";
print "<form action=restart.cgi>\n";
print "<td><input type=submit value=\"$text{'index_restart'}\"></td>\n";
print "<td>$text{'index_restartmsg'}\n";
print "$text{'index_restartmsg2'}</td>\n";
print "</tr></form>\n";

print "<form action=stop.cgi>\n";
print "<td><input type=submit value=\"$text{'index_stop'}\"></td>\n";
print "<td>$text{'index_stopmsg'}</td>\n";
print "</tr></form>\n";
print "</table>\n";
# Restart / stop buttons
print &ui_buttons_row("restart.cgi", $text{'index_restart'},
$text{'index_restartmsg'}."\n".
$text{'index_restartmsg2'});
print &ui_buttons_row("stop.cgi", $text{'index_stop'},
$text{'index_stopmsg'});
}
print &ui_buttons_end();
}

&ui_print_footer("/", $text{'index'});

sub show_buttons
{
}

0 comments on commit 0cad838

Please sign in to comment.