예제 #1
0
<div class="srbac">
  <?php 
echo SHtml::beginForm();
?>
  <?php 
echo SHtml::errorSummary($model);
?>
  <table width="100%">
    <tr><th colspan="2"><?php 
echo Helper::translate('srbac', 'Assign Operations to Tasks');
?>
</th></tr>
    <tr>
      <th width="50%">
      <?php 
echo SHtml::label(Helper::translate('srbac', "Task"), 'task');
?>
</th>
      <td width="50%" rowspan="2">
        <div id="operations">
          <?php 
$this->renderPartial('tabViews/taskAjax', array('model' => $model, 'userid' => $userid, 'data' => $data, 'message' => $message));
?>
        </div>
      </td>
    </tr>
    <tr valign="top">
      <td><?php 
echo SHtml::activeDropDownList(Assignments::model(), 'itemname', SHtml::listData(AuthItem::model()->findAll($criteria), 'name', 'name'), array('size' => $this->module->listBoxNumberOfLines, 'class' => 'dropdown', 'ajax' => array('type' => 'POST', 'url' => array('getOpers'), 'update' => '#operations', 'beforeSend' => 'function(){
                      $("#loadMessTask").addClass("srbacLoading");
                  }', 'complete' => 'function(){
예제 #2
0
<div class="srbac">
  <?php 
echo SHtml::beginForm();
?>
  <?php 
echo SHtml::errorSummary($model);
?>
  <table width="100%">
    <tr><th colspan="2"><?php 
echo Helper::translate('srbac', 'Assign Roles to Users');
?>
</th></tr>
    <tr>
      <th width="50%">
      <?php 
echo SHtml::label(Helper::translate('srbac', "User"), 'user');
?>
</th>
      <td width="50%" rowspan="2">
        <div id="roles">
          <?php 
$this->renderPartial('tabViews/userAjax', array('model' => $model, 'userid' => $userid, 'data' => $data, 'message' => $message));
?>
        </div>
      </td>
    </tr>
    <tr valign="top">
      <td><?php 
$criteria = new CDbCriteria();
$criteria->order = $this->module->username;
echo SHtml::activeDropDownList($this->module->getUserModel(), $this->module->userid, SHtml::listData($this->module->getUserModel()->findAll($criteria), $this->module->userid, $this->module->username), array('size' => $this->module->listBoxNumberOfLines, 'class' => 'dropdown', 'ajax' => array('type' => 'POST', 'url' => array('getRoles'), 'update' => '#roles', 'beforeSend' => 'function(){
예제 #3
0
<div class="srbac">
  <?php 
echo SHtml::beginForm();
?>
  <?php 
echo SHtml::errorSummary($model);
?>
  <table width="100%">
    <tr><th colspan="2"><?php 
echo Helper::translate('srbac', 'Assign Tasks to Roles');
?>
</th></tr>
    <tr>
      <th width="50%">
      <?php 
echo SHtml::label(Helper::translate('srbac', "Role"), 'role');
?>
</th>
      <td width="50%" rowspan="2">
        <div id="tasks">
          <?php 
$this->renderPartial('tabViews/roleAjax', array('model' => $model, 'userid' => $userid, 'data' => $data, 'message' => $message));
?>
        </div>
      </td>
    </tr>
    <tr valign="top">
      <td><?php 
echo SHtml::activeDropDownList(AuthItem::model(), 'name[0]', SHtml::listData(AuthItem::model()->findAll($criteria), 'name', 'name'), array('size' => $this->module->listBoxNumberOfLines, 'class' => 'dropdown', 'ajax' => array('type' => 'POST', 'url' => array('getTasks'), 'update' => '#tasks', 'beforeSend' => 'function(){
                      $("#loadMessRole").addClass("srbacLoading");
                  }', 'complete' => 'function(){