use CGI ':standard';
-require settings_subs;
+use settings_subs;
# our @ISA = qw/has_settings/; # assimilate the methods of the has_settings class
-#use pmt_ro;
-#use table_control;
+use pmt_ro;
+use table_control;
-require misc_subs;
+use misc_subs;
## methods
};
bless($self, $class);
- #$self->{pmt_ro} = pmt_ro->new();
- #$self->{pmt_control} = table_control->new();
+ $self->{pmt_ro} = pmt_ro->new();
+ $self->{pmt_control} = table_control->new();
return $self;
}
print "<p id='show_pmt_ro_settings' class='quasibutton' >pmt_ro settings</p>";
print "<div id='pmt_ro_settings_container' class='stylishBox hidden_by_default'>";
- $self->settings_form();
+ $self->{pmt_ro}->settings_form();
print "</div>";
+package misc_subs;
+BEGIN {
+ require Exporter;
+ # set the version for version checking
+ our $VERSION = 1.00;
+ # Inherit from Exporter to export functions and variables
+ our @ISA = qw(Exporter);
+ # Functions and variables which are exported by default
+ our @EXPORT = qw(printHeader min max echo require_run test);
+ # Functions and variables which can be optionally exported
+ #our @EXPORT_OK = qw($Var1 %Hashit func3);
+}
+
sub test {
my $self = shift;
my %options = @_;
use FileHandle;
use regio;
-require settings_subs;
-require misc_subs;
+use settings_subs;
+use misc_subs;
## methods
-
+package settings_subs;
use Storable qw(lock_store lock_retrieve);
-require misc_subs;
+use misc_subs;
+
+BEGIN {
+ require Exporter;
+ # set the version for version checking
+ our $VERSION = 1.00;
+ # Inherit from Exporter to export functions and variables
+ our @ISA = qw(Exporter);
+ # Functions and variables which are exported by default
+ our @EXPORT = qw(load_settings save_settings reset_settings settings_form);
+ # Functions and variables which can be optionally exported
+ #our @EXPORT_OK = qw($Var1 %Hashit func3);
+}
+
sub load_settings {
my $self=shift;
# use has_settings;
# our @ISA = qw/has_settings/; # assimilate the methods of the has_settings class
-require settings_subs;
-require misc_subs;
+use settings_subs;
+use misc_subs;
## methods