function showModulesDropDown($module = "") { $table = getModules(); div_open(); form_start_post(); form_select("module"); if ($table) { while ($row = nextResultInTable($table)) { if ($module == $row['module']) { form_option($row['module'], $row['module'], "true"); } else { form_option($row['module'], $row['module']); } } } else { // no modules with settings available form_option("-", ""); } form_select_end(); // this module form_hidden("m_c", "showSettingsGUI"); // button form_submit("submit", getString("settings_show_settings", "Vis innstillinger")); form_end(); div_close(); }
function monthSearchResultGUI() { global $months; $chosenMonth = $_REQUEST['month'] + 0; h3($months[$chosenMonth] . " " . $_REQUEST['year']); $table = monthSearchService($_REQUEST['year'], $_REQUEST['month']); if ($table == NULL) { echo "no_articles_in_that_month"; } else { table_open(); while ($row = nextResultInTable($table)) { tr_open(); echo '<td style="width:80px">'; echo make_ddmmyy_date($row['date_posted']); td_close(); td_open(1); print_article_link($row['articleid'], $row['title']); td_close(); td_open(1); echo $row['author']; td_close(); tr_close(); } table_close(); } }