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 / setup.php

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

93 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
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 WordPress User Accounts</legend>
21
22 <table class="table table-striped table-condensed">
23 <tr>
24 <th>
25 WordPress
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>
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 form_button(
80 array(
81 'type' => 'submit',
82 'name' => 'submit',
83 'class' => 'btn btn-primary'
84 ),
85 lang('setup_setup')
86 );
87 ?>
88 </td>
89 </tr>
90 </table>
91 </fieldset>
92
93 <?php echo form_close();?>