X7ROOT File Manager
Current Path:
/usr/libexec/usermin/WebminUI
usr
/
libexec
/
usermin
/
WebminUI
/
📁
..
📄
All.pm
(969 B)
📄
Button.pm
(1.16 KB)
📄
Checkbox.pm
(1.19 KB)
📄
Checkboxes.pm
(2.49 KB)
📄
Columns.pm
(1.43 KB)
📄
ConfirmPage.pm
(1.14 KB)
📄
Date.pm
(2.11 KB)
📄
DynamicBar.pm
(2.35 KB)
📄
DynamicHTML.pm
(1.16 KB)
📄
DynamicText.pm
(2.42 KB)
📄
DynamicWait.pm
(2.49 KB)
📄
ErrorPage.pm
(565 B)
📄
File.pm
(1.57 KB)
📄
Form.pm
(7.94 KB)
📄
Group.pm
(1.44 KB)
📄
Icon.pm
(1.09 KB)
📄
Input.pm
(2.27 KB)
📄
InputTable.pm
(2.79 KB)
📄
JavascriptButton.pm
(970 B)
📄
LinkTable.pm
(6.38 KB)
📄
Menu.pm
(1.48 KB)
📄
Multiline.pm
(873 B)
📄
OptTextarea.pm
(2.85 KB)
📄
OptTextbox.pm
(1.94 KB)
📄
Page.pm
(8.41 KB)
📄
Password.pm
(639 B)
📄
PlainText.pm
(1.7 KB)
📄
Properties.pm
(2.6 KB)
📄
Radios.pm
(1.59 KB)
📄
ResultPage.pm
(520 B)
📄
Section.pm
(3.54 KB)
📄
Select.pm
(2.66 KB)
📄
Submit.pm
(788 B)
📄
Table.pm
(15.87 KB)
📄
TableAction.pm
(1.51 KB)
📄
Tabs.pm
(2.86 KB)
📄
Textarea.pm
(2.16 KB)
📄
Textbox.pm
(1.63 KB)
📄
Time.pm
(4.12 KB)
📄
TitleList.pm
(1.51 KB)
📄
Upload.pm
(1.48 KB)
📄
User.pm
(1.44 KB)
Editing: TitleList.pm
package WebminUI::TitleList; use WebminCore; =head2 new WebminUI::TitleList(title, &links, [alt-text]) Generates a title with a list of links under it =cut sub new { my ($self, $title, $links, $alt) = @_; if (defined(&WebminUI::Theme::TitleList::new)) { return new WebminUI::Theme::TitleList(@_[1..$#_]); } $self = { }; bless($self); $self->set_title($title); $self->set_links($links); $self->set_alt($alt) if (defined($alt)); return $self; } =head2 html() Returns the list =cut sub html { my ($self) = @_; my $rv; if (defined(&ui_subheading)) { $rv .= &ui_subheading($self->get_title()); } else { $rv .= "<h3>".$self->get_title()."</h3>\n"; } $rv .= "<hr>\n"; foreach my $l (@{$self->get_links()}) { if ($l->[1]) { $rv .= "<a href='$l->[1]'>$l->[0]</a><br>\n"; } else { $rv .= $l->[0]."<br>\n"; } } return $rv; } sub set_title { my ($self, $title) = @_; $self->{'title'} = $title; } sub get_title { my ($self) = @_; return $self->{'title'}; } sub set_links { my ($self, $links) = @_; $self->{'links'} = $links; } sub get_links { my ($self) = @_; return $self->{'links'}; } sub set_alt { my ($self, $alt) = @_; $self->{'alt'} = $alt; } sub get_alt { my ($self) = @_; return $self->{'alt'}; } =head2 add_link(name, link) Adds a link to be displayed in the list =cut sub add_link { my ($self, $name, $link) = @_; push(@{$self->{'links'}}, [ $name, $link ]); } =head2 set_page(WebminUI::Page) Called when this menu is added to a page =cut sub set_page { my ($self, $page) = @_; $self->{'page'} = $page; } 1;
Upload File
Create Folder