PluginProbe
ShiftController Employee Shift Scheduling / 4.9.95
ShiftController Employee Shift Scheduling v4.9.95
4.9.97 4.9.96 4.9.95 4.9.74 4.9.75 4.9.76 4.9.77 4.9.78 4.9.84 4.9.85 4.9.87 4.9.91 4.9.92 trunk 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 3.2.4 All 38 releases
shiftcontroller / sh4 / conf / html / admin / view / shiftstatus.php

shiftstatus.php in ShiftController Employee Shift Scheduling 4.9.95, at sh4/conf/html/admin/view/shiftstatus.php

81 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if (! defined('ABSPATH')) exit; // Exit if accessed directly
2 #[AllowDynamicProperties]
3 class SH4_Conf_Html_Admin_View_ShiftStatus
4 {
5 protected $ui = NULL;
6 protected $settings = NULL;
7
8 public function __construct(
9 HC3_Hooks $hooks,
10
11 HC3_Ui $ui,
12 HC3_Ui_Layout1 $layout,
13 HC3_Time $t,
14
15 HC3_Settings $settings
16 )
17 {
18 $this->ui = $ui;
19 $this->layout = $layout;
20 $this->t = $t;
21
22 $this->settings = $hooks->wrap($settings);
23 $this->self = $hooks->wrap($this);
24 }
25
26 public function render()
27 {
28 $pnames = array(
29 'shifts_no_draft', 'shifts_confirm_publish',
30 );
31 foreach( $pnames as $pname ){
32 $values[$pname] = $this->settings->get($pname);
33 }
34 $inputs = array();
35
36 $inputs[] = $this->ui->makeInputCheckbox(
37 'shifts_no_draft',
38 '__No Draft Status__',
39 1,
40 $values['shifts_no_draft']
41 );
42 $inputs[] = $this->ui->makeInputCheckbox(
43 'shifts_confirm_publish',
44 '__Confirm Publish Action__',
45 1,
46 $values['shifts_confirm_publish']
47 );
48
49 $inputs = $this->ui->makeList( $inputs );
50
51 $out = $this->ui->makeForm(
52 'admin/conf/shiftstatus',
53 $this->ui->makeList(
54 array( $inputs, $this->ui->makeInputSubmit( '__Save__')->tag('primary') )
55 )
56 );
57
58 $this->layout
59 ->setContent( $out )
60 ->setBreadcrumb( $this->self->breadcrumb() )
61 ->setHeader( $this->self->header() )
62 // ->setMenu( $this->self->menu() )
63 ;
64
65 $out = $this->layout->render();
66 return $out;
67 }
68
69 public function header()
70 {
71 $out = '__Shift Status__';
72 return $out;
73 }
74
75 public function breadcrumb()
76 {
77 $return = array();
78 $return['admin'] = array( 'admin', '__Administration__' );
79 return $return;
80 }
81 }