'table']); $column = 0; $row = 0; $headers = [ '', $plugin->get_lang('variable').' ['.$plugin->get_lang('subkey').']', $plugin->get_lang('category'), $plugin->get_lang('accessurl'), $plugin->get_lang('value'), '', ]; $attrs = ['center' => 'left']; $table->addRow($headers, $attrs, 'th'); foreach ($settings as $param) { if ($param['subkey'] == 'vchamilo') { continue; } $check = ''; $attrs = ['center' => 'left']; $syncButton = ' '; $data = [ $check, isset($param['subkey']) && !empty($param['subkey']) ? $param['variable'].' ['.$param['subkey'].']' : $param['variable'], $param['category'], $param['access_url'], ''. '
Master value: '.$param['selected_value'], $syncButton, ]; $row = $table->addRow($data, $attrs, 'td'); $table->setRowAttributes($row, ['id' => 'row_'.$param['id']], true); } $content = '
'; $content .= ''; $content .= $table->toHtml(); $content .= '
'; Display::addFlash(Display::return_message($plugin->get_lang('Sync your master settings to all instances.'))); $interbreadcrumb[] = ['url' => 'manage.php', 'name' => get_lang('VChamilo')]; $htmlHeadXtra[] = ""; $tpl = new Template($plugin->get_lang('SyncSettings'), true, true, false, true, false); $tpl->assign('content', $content); $tpl->display_one_col_template();