PluginProbe
ShiftController Employee Shift Scheduling / 2.2.5
ShiftController Employee Shift Scheduling v2.2.5
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 / application / modules / wordpress / views / setup.php

setup.php in ShiftController Employee Shift Scheduling 2.2.5, at application/modules/wordpress/views/setup.php

109 lines 2.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 $CI =& ci_get_instance();
3 $app_title = $CI->config->item('nts_app_title');
4 ?>
5
6 <div class="page-header">
7 <h2><?php echo $page_title; ?></h2>
8 </div>
9
10 <?php
11 echo form_open(
12 'wordpress/setup/run',
13 array(
14 'class' => 'form-horizontal form-condensed'
15 )
16 );
17 ?>
18
19 <fieldset>
20 <legend>Copy User Accounts</legend>
21
22 <table class="table table-striped table-condensed">
23 <tr>
24 <th>
25
26 </th>
27 <th>
28 <?php echo $app_title; ?>
29 </th>
30 </tr>
31
32 <?php foreach( $wordpress_roles as $role_value => $role_name ) : ?>
33 <?php
34 $this_role_count = ( isset($wordpress_count_users['avail_roles'][$role_value]) ) ? $wordpress_count_users['avail_roles'][$role_value] : 0;
35 ?>
36 <tr class="<?php echo $this_role_count ? 'success' : ''; ?>">
37 <td>
38 <?php echo $role_name; ?> [<?php echo $this_role_count; ?>]
39 </td>
40 <td>
41 <?php
42 if( $role_value )
43 if( $role_value == 'administrator' )
44 $default = USER_MODEL::LEVEL_ADMIN;
45 else
46 {
47 if( $this_role_count )
48 $default = USER_MODEL::LEVEL_STAFF;
49 else
50 $default = 0;
51 }
52 else
53 $default = 0;
54
55 $field_name = 'role_' . $role_value;
56 echo $this->hc_form->input(
57 array(
58 'type' => 'dropdown',
59 'name' => $field_name,
60 'options' => array(
61 USER_MODEL::LEVEL_STAFF => lang('user_level_staff'),
62 USER_MODEL::LEVEL_ADMIN => lang('user_level_admin'),
63 0 => lang('common_none'),
64 ),
65 'default' => $default,
66 )
67 );
68 ?>
69 </td>
70 </tr>
71 <?php endforeach; ?>
72
73 <tr>
74 <td>
75 &nbsp;
76 </td>
77 <td>
78 <?php
79 echo $this->hc_form->input(
80 array(
81 'type' => 'checkbox',
82 'name' => 'append_role_name',
83 )
84 );
85 ?> Append Original Role Name To Staff Name
86 </td>
87 </tr>
88
89 <tr>
90 <td>
91 &nbsp;
92 </td>
93 <td>
94 <?php
95 echo form_button(
96 array(
97 'type' => 'submit',
98 'name' => 'submit',
99 'class' => 'btn btn-primary'
100 ),
101 lang('setup_setup')
102 );
103 ?>
104 </td>
105 </tr>
106 </table>
107 </fieldset>
108
109 <?php echo form_close();?>