Advertisement
Guest User

Mohit_cakephp_roster_management

a guest
Aug 8th, 2012
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.74 KB | None | 0 0
  1. // The controller for Weeklyroster
  2.  
  3. <div class="weeklyrosters form">
  4. <?php echo $this->Form->create('Weeklyroster'); ?>
  5.     <fieldset>
  6.         <legend><?php echo __('Add Weeklyroster'); ?></legend>
  7.     <?php
  8.         echo $this->Form->input('week');
  9.         echo $this->Form->input('user_id', array(
  10.         'label' => __('Users',true),
  11.             'type' => 'select',
  12.             'multiple' => 'checkbox',
  13.             'options' => $users
  14.    
  15.         ));
  16.         echo $this->Form->input('shift_id', array(
  17.         'label' => __('Shifts',true),
  18.             'type' => 'select',
  19.             'multiple' => 'checkbox',
  20.             'options' => $shifts
  21.    
  22.         ));
  23.     ?>
  24.    
  25. <?php echo $this->Form->end(__('Submit')); ?>
  26. </div>
  27. <div class="actions">
  28.     <h3><?php echo __('Actions'); ?></h3>
  29.     <ul>
  30.  
  31.         <li><?php echo $this->Html->link(__('List Weeklyrosters'), array('action' => 'index')); ?></li>
  32.         <li><?php echo $this->Html->link(__('List Users'), array('controller' => 'users', 'action' => 'index')); ?> </li>
  33.         <li><?php echo $this->Html->link(__('New User'), array('controller' => 'users', 'action' => 'add')); ?> </li>
  34.         <li><?php echo $this->Html->link(__('List Shifts'), array('controller' => 'shifts', 'action' => 'index')); ?> </li>
  35.         <li><?php echo $this->Html->link(__('New Shift'), array('controller' => 'shifts', 'action' => 'add')); ?> </li>
  36.     </ul>
  37. </div>
  38.  
  39.  
  40. // The View For Generate
  41.  
  42. <div class="weeklyrosters form">
  43. <?php echo $this->Form->create('Weeklyroster'); ?>
  44.     <fieldset>
  45.         <legend><?php echo __('Add Weeklyroster'); ?></legend>
  46.     <?php
  47.         echo $this->Form->input('week');
  48.         echo $this->Form->input('user_id', array(
  49.         'label' => __('Users',true),
  50.             'type' => 'select',
  51.             'multiple' => 'checkbox',
  52.             'options' => $users
  53.    
  54.         ));
  55.         echo $this->Form->input('shift_id', array(
  56.         'label' => __('Shifts',true),
  57.             'type' => 'select',
  58.             'multiple' => 'checkbox',
  59.             'options' => $shifts
  60.    
  61.         ));
  62.     ?>
  63.    
  64. <?php echo $this->Form->end(__('Submit')); ?>
  65. </div>
  66. <div class="actions">
  67.     <h3><?php echo __('Actions'); ?></h3>
  68.     <ul>
  69.  
  70.         <li><?php echo $this->Html->link(__('List Weeklyrosters'), array('action' => 'index')); ?></li>
  71.         <li><?php echo $this->Html->link(__('List Users'), array('controller' => 'users', 'action' => 'index')); ?> </li>
  72.         <li><?php echo $this->Html->link(__('New User'), array('controller' => 'users', 'action' => 'add')); ?> </li>
  73.         <li><?php echo $this->Html->link(__('List Shifts'), array('controller' => 'shifts', 'action' => 'index')); ?> </li>
  74.         <li><?php echo $this->Html->link(__('New Shift'), array('controller' => 'shifts', 'action' => 'add')); ?> </li>
  75.     </ul>
  76. </div>
  77.  
  78.  
  79. //How I need the data
  80.  
  81. Users   Shift1 shift2 shift3 shift4
  82. user1    []      []     []     []
  83. user2    []      []     []     []
  84. user3    []      []     []     []
  85. user4    []      []     []     []
  86. user5    []      []     []     []
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement