Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // The controller for Weeklyroster
- <div class="weeklyrosters form">
- <?php echo $this->Form->create('Weeklyroster'); ?>
- <fieldset>
- <legend><?php echo __('Add Weeklyroster'); ?></legend>
- <?php
- echo $this->Form->input('week');
- echo $this->Form->input('user_id', array(
- 'label' => __('Users',true),
- 'type' => 'select',
- 'multiple' => 'checkbox',
- 'options' => $users
- ));
- echo $this->Form->input('shift_id', array(
- 'label' => __('Shifts',true),
- 'type' => 'select',
- 'multiple' => 'checkbox',
- 'options' => $shifts
- ));
- ?>
- <?php echo $this->Form->end(__('Submit')); ?>
- </div>
- <div class="actions">
- <h3><?php echo __('Actions'); ?></h3>
- <ul>
- <li><?php echo $this->Html->link(__('List Weeklyrosters'), array('action' => 'index')); ?></li>
- <li><?php echo $this->Html->link(__('List Users'), array('controller' => 'users', 'action' => 'index')); ?> </li>
- <li><?php echo $this->Html->link(__('New User'), array('controller' => 'users', 'action' => 'add')); ?> </li>
- <li><?php echo $this->Html->link(__('List Shifts'), array('controller' => 'shifts', 'action' => 'index')); ?> </li>
- <li><?php echo $this->Html->link(__('New Shift'), array('controller' => 'shifts', 'action' => 'add')); ?> </li>
- </ul>
- </div>
- // The View For Generate
- <div class="weeklyrosters form">
- <?php echo $this->Form->create('Weeklyroster'); ?>
- <fieldset>
- <legend><?php echo __('Add Weeklyroster'); ?></legend>
- <?php
- echo $this->Form->input('week');
- echo $this->Form->input('user_id', array(
- 'label' => __('Users',true),
- 'type' => 'select',
- 'multiple' => 'checkbox',
- 'options' => $users
- ));
- echo $this->Form->input('shift_id', array(
- 'label' => __('Shifts',true),
- 'type' => 'select',
- 'multiple' => 'checkbox',
- 'options' => $shifts
- ));
- ?>
- <?php echo $this->Form->end(__('Submit')); ?>
- </div>
- <div class="actions">
- <h3><?php echo __('Actions'); ?></h3>
- <ul>
- <li><?php echo $this->Html->link(__('List Weeklyrosters'), array('action' => 'index')); ?></li>
- <li><?php echo $this->Html->link(__('List Users'), array('controller' => 'users', 'action' => 'index')); ?> </li>
- <li><?php echo $this->Html->link(__('New User'), array('controller' => 'users', 'action' => 'add')); ?> </li>
- <li><?php echo $this->Html->link(__('List Shifts'), array('controller' => 'shifts', 'action' => 'index')); ?> </li>
- <li><?php echo $this->Html->link(__('New Shift'), array('controller' => 'shifts', 'action' => 'add')); ?> </li>
- </ul>
- </div>
- //How I need the data
- Users Shift1 shift2 shift3 shift4
- user1 [] [] [] []
- user2 [] [] [] []
- user3 [] [] [] []
- user4 [] [] [] []
- user5 [] [] [] []
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement