PluginProbe
ShiftController Employee Shift Scheduling / 2.1.0
ShiftController Employee Shift Scheduling v2.1.0
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 / admin / users / sync.php

sync.php in ShiftController Employee Shift Scheduling 2.1.0, at application/modules/wordpress/views/admin/users/sync.php

95 lines 1.9 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 <?php
6 echo form_open(
7 'wordpress/admin/users/syncrun',
8 array(
9 'class' => 'form-horizontal form-condensed'
10 )
11 );
12 ?>
13
14 <fieldset>
15 <legend>Copy WordPress User Accounts</legend>
16
17 <table class="table table-striped table-condensed">
18 <tr>
19 <th>
20 WordPress
21 </th>
22 <th>
23 <?php echo $app_title; ?>
24 </th>
25 </tr>
26
27 <?php foreach( $wordpress_roles as $role_value => $role_name ) : ?>
28 <?php
29 $this_role_count = ( isset($wordpress_count_users['avail_roles'][$role_value]) ) ? $wordpress_count_users['avail_roles'][$role_value] : 0;
30 ?>
31 <tr>
32 <td>
33 <?php echo $role_name; ?> [<?php echo $this_role_count; ?>]
34 </td>
35 <td>
36 <?php
37 if( $role_value )
38 {
39 if( $role_value == 'administrator' )
40 {
41 $default = USER_MODEL::LEVEL_ADMIN;
42 }
43 else
44 {
45 if( $this_role_count )
46 $default = USER_MODEL::LEVEL_STAFF;
47 else
48 $default = 0;
49 }
50 }
51 else
52 $default = 0;
53
54 $field_name = 'role_' . $role_value;
55 $options = array(
56 USER_MODEL::LEVEL_ADMIN => lang('user_level_admin'),
57 USER_MODEL::LEVEL_MANAGER => lang('user_level_manager'),
58 USER_MODEL::LEVEL_STAFF => lang('user_level_staff'),
59 0 => lang('common_none'),
60 );
61
62 echo $this->hc_form->input(
63 array(
64 'type' => 'dropdown',
65 'name' => $field_name,
66 'options' => $options,
67 'default' => $default,
68 )
69 );
70 ?>
71 </td>
72 </tr>
73 <?php endforeach; ?>
74
75 <tr>
76 <td>
77 &nbsp;
78 </td>
79 <td>
80 <?php
81 echo form_button(
82 array(
83 'type' => 'submit',
84 'name' => 'submit',
85 'class' => 'btn btn-primary'
86 ),
87 lang('common_go')
88 );
89 ?>
90 </td>
91 </tr>
92 </table>
93 </fieldset>
94
95 <?php echo form_close();?>