Пример #1
0
        ?>
         <tr class="user_role<?php 
        echo $linecount;
        ?>
">
          <td>
           <?php 
        echo ino_inline_action($form_line_array->user_role_id, array('user_id' => ${$class}->user_id));
        ?>
          </td>
          <td><?php 
        echo form::text_field('user_role_id', $form_line_array->user_role_id, '8', '12', '', '', '', '1');
        ?>
</td>
          <td><?php 
        echo $f->select_field_from_object('role_code', role_access::roles(), 'option_line_code', 'option_line_value', $form_line_array->role_code, '', '', '', $readonly);
        ?>
 					 </td>
         </tr>
         <?php 
        $linecount++;
    }
} else {
    foreach ($user_role_object as $form_line_array) {
        ?>
         <tr class="user_role<?php 
        echo $linecount;
        ?>
">
          <td>   
           <ul class="inline_action">
Пример #2
0
                    </ul>
                   </td>
                   <td><?php 
        form::text_field_wid3sr('sys_process_flow_action_id');
        ?>
</td>
                   <td><?php 
        echo $f->number_field('action_number', ${$class_third}->action_number, '', '', 'detail_number');
        ?>
</td>
                   <td><?php 
        echo $f->select_field_from_array('pf_action_type', sys_process_flow_action::$pf_action_type_a, ${$class_third}->pf_action_type);
        ?>
</td>
                   <td><?php 
        echo $f->select_field_from_object('role_code', role_access::roles(), 'option_line_code', 'option_line_value', ${$class_third}->role_code, 'role_code');
        ?>
</td>
                   <td><?php 
        echo $f->hidden_field('user_id', ${$class_third}->user_id);
        ${$class_third}->username = !empty(${$class_third}->user_id) ? user::find_by_id(${$class_third}->user_id)->username : null;
        echo $f->text_field('username', ${$class_third}->username);
        ?>
                    <img src="<?php 
        echo HOME_URL;
        ?>
themes/default/images/serach.png" class="user_id select_popup clickable">
                   </td>
                  </tr>
                  <?php 
        $detailCount++;
            </td>
            <td><?php 
    $f->text_field_widsr('user_dashboard_config_id');
    ?>
</td>
            <td><?php 
    if ($admin) {
        echo $f->select_field_from_array('config_level', user_dashboard_config::$config_level_a, ${$class}->config_level);
    } else {
        echo $f->select_field_from_array('config_level', user_dashboard_config::$config_level_a, 'USER', '', 'always_readonly', 1, 1, 1);
    }
    ?>
</td>
            <td><?php 
    if ($admin) {
        echo $f->select_field_from_object('user_role', role_access::roles(), 'option_line_code', 'option_line_value', ${$class}->user_role);
    } else {
        echo 'No Access';
    }
    ?>
</td>
            <td>
             <?php 
    if (!empty(${$class}->user_id)) {
        ${$class}->username = user::find_by_id(${$class}->user_id)->username;
    } else {
        ${$class}->username = null;
    }
    if (isset($_SESSION['is_admin']) && $_SESSION['is_admin'] == 1) {
        echo $f->val_field('username', ${$class}->username, '', '', 'vf_select_username username', '', '', 'user', 'username');
        echo $f->hidden_field_withCLass('user_id', ${$class}->user_id, 'user_id');
Пример #4
0
<div class="row small-left-padding">
 <div id ="form_header">
  <span class="heading"><?php 
echo gettext('Role Details');
?>
</span>
  <div class="tabContainer">
   <ul class="column header_field">
    <li><?php 
$f->l_select_field_from_object('role_code', role_access::roles(), 'option_line_code', 'option_line_value', $role_code_h, 'role_code');
?>
     <a name="show" href="form.php?class_name=role_access&<?php 
echo "mode={$mode}";
?>
" class="show document_id role_access_id">
      <i class="fa fa-refresh"></i></a> 
    </li>						
    <li><?php 
$f->l_text_field('role_code', $role_code_h, '', 'role_code', '', '', 1);
?>
</li>
    <li><?php 
$f->l_text_field('description', $role_code_description, '50', 'description', '', '', 1);
?>
</li>
   </ul>
  </div>
 </div>
 <form method="post" id="role_access"  name="role_access">
  <!--END OF FORM HEADER-->
  <div id ="form_line" class="role_access">
Пример #5
0
?>
 </li> 
       <li><?php 
$f->l_select_field_from_array('weight', dbObject::$position_array, ${$class}->weight);
?>
</li>
       <li><?php 
$f->l_select_field_from_array('position', block::$position_array, ${$class}->position);
?>
</li>
       <li><?php 
$f->l_checkBox_field_d('cached_cb');
?>
 </li> 
       <li><?php 
$f->l_select_field_from_object('restrict_to_role', role_access::roles(), 'option_line_code', 'option_line_value', $block->restrict_to_role, 'role_code');
?>
</li>
       <li><label><?php 
echo gettext('Reference Table');
?>
</label><?php 
$f->text_field_dr('reference_table');
?>
</li>
       <li><label><?php 
echo gettext('Block Name');
?>
</label>
        <?php 
$readonly_b = $block->reference_table == 'block_content' || empty(${$class}->block_id) ? false : true;
Пример #6
0
     <div > 
      <ul class="column header_field">
       <li class="allow_comment_cb"><?php 
$f->l_checkBox_field_d('allow_comment_cb');
?>
</li>
       <li class="role"><?php 
$f->l_select_field_from_object('comment_read_role', role_access::roles(), 'option_line_code', 'option_line_value', ${$class}->comment_read_role, 'comment_read_role');
?>
</li>
       <li class="role"><?php 
$f->l_select_field_from_object('comment_write_role', role_access::roles(), 'option_line_code', 'option_line_value', ${$class}->comment_write_role, 'comment_write_role');
?>
</li>
       <li class="role"><?php 
$f->l_select_field_from_object('comment_update_role', role_access::roles(), 'option_line_code', 'option_line_value', ${$class}->comment_update_role, 'comment_update_role');
?>
</li>
       <li class="subject_label"><?php 
$f->l_select_field_from_array('comment_order_by', content_type::$comment_order_by_a, ${$class}->comment_order_by);
?>
</li>
       <li class="allow_file_cb"><?php 
$f->l_select_field_from_array('comments_perpage', select_per_page_array(), ${$class}->comments_perpage);
?>
</li>
      </ul>
     </div>
    </div>
    <div id="tabsHeader-3" class="tabContent">
     <div>