assign.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. /**
  3. * assign.php
  4. *
  5. * @author Spyros Soldatos <spyros@valor.gr>
  6. * @link http://code.google.com/p/srbac/
  7. */
  8. /**
  9. * The Assign tabview view
  10. *
  11. * @author Spyros Soldatos <spyros@valor.gr>
  12. * @package srbac.views.authitem
  13. * @since 1.0.0
  14. */
  15. ?>
  16. <?php $this->breadcrumbs = array(
  17. 'Srbac Assign'
  18. )
  19. ?>
  20. <?php if($this->module->getMessage() != ""){ ?>
  21. <div id="srbacError">
  22. <?php echo $this->module->getMessage();?>
  23. </div>
  24. <?php } ?>
  25. <?php if($this->module->getShowHeader()) {
  26. $this->renderPartial($this->module->header);
  27. }
  28. ?>
  29. <div>
  30. <?php
  31. $this->renderPartial("frontpage");
  32. $tabs = array(
  33. 'tab1'=>array(
  34. 'title'=>Helper::translate('srbac','Users'),
  35. 'view'=>'tabViews/roleToUser',
  36. ),
  37. 'tab2'=>array(
  38. 'title'=>Helper::translate('srbac','Roles'),
  39. 'view'=>'tabViews/taskToRole',
  40. ),
  41. 'tab3'=>array(
  42. 'title'=>Helper::translate('srbac','Tasks'),
  43. 'view'=>'tabViews/operationToTask',
  44. ),
  45. );
  46. ?>
  47. <div class="horTab">
  48. <?php
  49. Helper::publishCss($this->module->css);
  50. $this->widget('system.web.widgets.CTabView',
  51. array('tabs'=>$tabs,
  52. 'viewData'=>array('model'=>$model,'userid'=>$userid,'message'=>$message,'data'=>$data),
  53. 'cssFile'=>$this->module->getCssUrl(),
  54. ));
  55. ?>
  56. </div>
  57. </div>
  58. <?php if($this->module->getShowFooter()) {
  59. $this->renderPartial($this->module->footer);
  60. }
  61. ?>