123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176 |
- <?php
- /**
- * manage.php
- *
- * @author Spyros Soldatos <spyros@valor.gr>
- * @link http://code.google.com/p/srbac/
- */
- /**
- * The auth items main administration page
- *
- * @author Spyros Soldatos <spyros@valor.gr>
- * @package srbac.views.authitem.manage
- * @since 1.0.0
- */
- ?>
- <?php $this->breadcrumbs = array(
- 'Srbac Manage'
- )
- ?>
- <?php if($this->module->getMessage() != ""){ ?>
- <div id="srbacError">
- <?php echo $this->module->getMessage();?>
- </div>
- <?php } ?>
- <?php if(!$full){
- if($this->module->getShowHeader()) {
- $this->renderPartial($this->module->header);
- }
- $this->renderPartial("frontpage");
- ?>
- <div id="wizardButton" style="text-align:left" class="controlPanel marginBottom">
- <?php echo SHtml::ajaxLink(
- SHtml::image($this->module->getIconsPath().'/admin.png',
- Helper::translate('srbac','Manage AuthItem'),
- array('class'=>'icon',
- 'title'=>Helper::translate('srbac','Manage AuthItem'),
- 'border'=>0
- )
- )." " .
- ($this->module->iconText ?
- Helper::translate('srbac','Manage AuthItem') :
- ""),
- array('manage','full'=>true),
- array(
- 'type'=>'POST',
- 'update'=>'#wizard',
- 'beforeSend' => 'function(){
- $("#wizard").addClass("srbacLoading");
- }',
- 'complete' => 'function(){
- $("#wizard").removeClass("srbacLoading");
- }',
- ),
- array(
- 'name'=>'buttonManage',
- 'onclick'=>"$(this).css('font-weight', 'bold');$(this).siblings().css('font-weight', 'normal');",
- )
- );
- ?>
- <?php echo SHtml::ajaxLink(
- SHtml::image($this->module->getIconsPath().'/wizard.png',
- Helper::translate('srbac','Autocreate Auth Items'),
- array('class'=>'icon',
- 'title'=>Helper::translate('srbac','Autocreate Auth Items'),
- 'border'=>0
- )
- )." " .
- ($this->module->iconText ?
- Helper::translate('srbac','Autocreate Auth Items') :
- ""),
- array('auto'),
- array(
- 'type'=>'POST',
- 'update'=>'#wizard',
- 'beforeSend' => 'function(){
- $("#wizard").addClass("srbacLoading");
- }',
- 'complete' => 'function(){
- $("#wizard").removeClass("srbacLoading");
- }',
- ),
- array(
- 'name'=>'buttonAuto',
- 'onclick'=>"$(this).css('font-weight', 'bold');$(this).siblings().css('font-weight', 'normal');",
- )
- );
- ?>
- <?php echo SHtml::ajaxLink(
- SHtml::image($this->module->getIconsPath().'/allow.png',
- Helper::translate('srbac','Edit always allowed list'),
- array('class'=>'icon',
- 'title'=>Helper::translate('srbac','Edit always allowed list'),
- 'border'=>0
- )
- )." " .
- ($this->module->iconText ?
- Helper::translate('srbac','Edit always allowed list') :
- ""),
- array('editAllowed'),
- array(
- 'type'=>'POST',
- 'update'=>'#wizard',
- 'beforeSend' => 'function(){
- $("#wizard").addClass("srbacLoading");
- }',
- 'complete' => 'function(){
- $("#wizard").removeClass("srbacLoading");
- }',
- ),
- array(
- 'name'=>'buttonAllowed',
- 'onclick'=>"$(this).css('font-weight', 'bold');$(this).siblings().css('font-weight', 'normal');",
- )
- );
- ?>
- <?php echo SHtml::ajaxLink(
- SHtml::image($this->module->getIconsPath().'/eraser.png',
- Helper::translate('srbac','Clear obsolete authItems'),
- array('class'=>'icon',
- 'title'=>Helper::translate('srbac','Clear obsolete authItems'),
- 'border'=>0
- )
- )." " .
- ($this->module->iconText ?
- Helper::translate('srbac','Clear obsolete authItems') :
- ""),
- array('clearObsolete'),
- array(
- 'type'=>'POST',
- 'update'=>'#wizard',
- 'beforeSend' => 'function(){
- $("#wizard").addClass("srbacLoading");
- }',
- 'complete' => 'function(){
- $("#wizard").removeClass("srbacLoading");
- }',
- ),
- array(
- 'name'=>'buttonClear',
- 'onclick'=>"$(this).css('font-weight', 'bold');$(this).siblings().css('font-weight', 'normal');",
- )
- );
- ?>
- </div>
- <br />
- <?php } ?>
- <div id="wizard">
- <table class="srbacDataGrid" align="center">
- <tr>
- <th width="50%"><?php echo Helper::translate("srbac","Auth items");?></th>
- <th><?php echo Helper::translate('srbac','Actions')?></th>
- </tr>
- <tr>
- <td style="vertical-align: top;text-align: center">
- <div id="list">
- <?php echo $this->renderPartial('manage/list', array(
- 'models'=>$models,
- 'pages'=>$pages,
- 'sort'=>$sort,
- )); ?>
- </div>
- </td>
- <td style="vertical-align: top;text-align: center">
- <div id="preview">
- </div>
- </td>
- </tr>
- </table>
- </div>
- <?php if(!$full) {
- if($this->module->getShowFooter()) {
- $this->renderPartial($this->module->footer);
- }
- }?>
|