'data_table', 'width' => '100%')); $column = 0; $row = 0; $headers = array( '', $plugin->get_lang('variable').' ['.$plugin->get_lang('subkey').']', $plugin->get_lang('category'), $plugin->get_lang('accessurl'), $plugin->get_lang('value'), '', ); $attrs = array('center' => 'left'); $table->addRow($headers, $attrs, 'th'); foreach ($settings as $param) { if ($param['subkey'] == 'vchamilo') { continue; } $check = ''; $attrs = array('center' => 'left'); $syncButton = ' '; $data = array( $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, array('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[] = array('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();