From 8f6e9cec967c122da82db08a8fa57ca9a92d4f49 Mon Sep 17 00:00:00 2001 From: Nawawi Jamili Date: Mon, 16 Dec 2013 03:26:08 +0800 Subject: [PATCH] ui-lib conversion dhcpd/edit_shared.cgi - not finish yet --- dhcpd/edit_shared.cgi | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/dhcpd/edit_shared.cgi b/dhcpd/edit_shared.cgi index 295e48013..bfa5018f0 100755 --- a/dhcpd/edit_shared.cgi +++ b/dhcpd/edit_shared.cgi @@ -23,23 +23,23 @@ else { # display &ui_print_header(undef, $in{'new'} ? $text{'esh_crheader'} : $text{'esh_eheader'}, ""); +print &ui_form_start("save_shared.cgi", "post"); +print &ui_table_start($text{'esh_tabhdr'}, "width=100%", 4); -print "
\n"; -print "\n"; -print "\n"; -print "
$text{'esh_tabhdr'}
\n"; +print "\n"; +print ""; +print ""; -print "\n"; -printf "\n", - $sha ? &html_escape($sha->{'comment'}) : ""; - -print "\n"; -printf "\n", - $sha ? $sha->{'values'}->[0] : ""; +print "\n"; +print ""; &display_params($sconf, "shared-network"); -print "
$text{'esh_desc'}"; +print &ui_textbox("desc", ( $sha ? &html_escape($sha->{'comment'}) : "" ), 60); +print "
$text{'esh_desc'}
$text{'esh_netname'}
$text{'esh_netname'}"; +print &ui_textbox("name", ( $sha ? $sha->{'values'}->[0] : "" ), 15); +print "
\n"; +print "\n"; -print "
\n"; foreach $h (&find("host", $conf)) { push(@host, $h) if &can('r', \%access, $h); } @@ -129,7 +129,8 @@ if (!$in{'new'}) { } print "
\n"; +print &ui_table_end(); + if (!$in{'new'}) { print "\n"; print "\n"; @@ -178,6 +179,6 @@ if ($config{'dhcpd_version'} >= 3 && !$in{'new'}) { "$text{'esub_pooladd'}
\n"; } -print "\n"; +print &ui_form_end(); &ui_print_footer("", $text{'esh_return'});