# shiftcontroller/2.1.0/happ/application/views/setup.php

ShiftController Employee Shift Scheduling, version 2.1.0. 50 lines.

- Page: https://pluginprobe.com/plugins/shiftcontroller/2.1.0/code/happ/application/views/setup.php
- Raw: https://pluginprobe.com/plugins/shiftcontroller/2.1.0/raw/happ/application/views/setup.php
- Modified: 2013-11-19T19:08:10+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/shiftcontroller/2.1.0/code/happ/application/views/setup.php#L10-L20`.

```php
<?php
$fields = array(
	array(
		'name' => 'first_name',
		'label' => lang('user_first_name'),
		),
	array(
		'name' => 'last_name',
		'label' => lang('user_last_name'),
		),
	array(
		'name' => 'email',
		'label' => lang('common_email'),
		),
	array(
		'name' => 'password',
		'label' => lang('common_password'),
		'type' => 'password'
		),
	array(
		'name' => 'confirm_password',
		'label' => lang('common_password_confirm'),
		'type' => 'password'
		),
	);
reset( $fields );
?>

<div class="page-header">
<h2><?php echo $page_title; ?></h2>
</div>

<?php echo form_open('setup/run', array('class' => 'well form-horizontal form-condensed')); ?>
<fieldset>
<legend><?php echo lang('setup_admin'); ?></legend>
<?php foreach( $fields as $f ) : ?>
<?php
		echo hc_bootstrap::input(
			$this->hc_form->input($f),
			$f['label'],
			$this->hc_form->error($f['name'])
			);
?>
<?php endforeach; ?>
</fieldset>

<div class="controls">
<?php echo form_button( array('type' => 'submit', 'name' => 'submit', 'class' => 'btn btn-primary'), lang('setup_setup')); ?>
</div>
<?php echo form_close();?>
```
