print '<div class="field"><select name="category">'; print '<option value="">-- ' . $GLOBALS['I18N']->get('choose category') . '</option>'; foreach ($aListCategories as $category) { $category = trim($category); printf('<option value="%s" %s>%s</option>', $category, $category == $list['category'] ? 'selected="selected"' : '', $category); } print '</select></div>'; } ### allow plugins to add rows foreach ($GLOBALS['plugins'] as $plugin) { print $plugin->displayEditList($list); } ?> <label for="description"><?php echo $GLOBALS['I18N']->get('List Description'); ?> </label> <div class="field"><textarea name="description" cols="35" rows="5"> <?php echo htmlspecialchars(stripslashes($list["description"])); ?> </textarea></div> <input class="submit" type="submit" name="addnewlist" value="<?php echo $GLOBALS['I18N']->get('Save'); ?> " /> <?php print PageLinkClass('list', $GLOBALS['I18N']->get('Cancel'), '', 'button cancel', $GLOBALS['I18N']->get('Do not save, and go back to the lists')); ?> </form>
if ($page == 'logout') { $greeting = $GLOBALS['I18N']->get('goodbye'); } else { $hr = date("G"); if ($hr > 0 && $hr < 12) { $greeting = $GLOBALS['I18N']->get('good morning'); } elseif ($hr <= 18) { $greeting = $GLOBALS['I18N']->get('good afternoon'); } else { $greeting = $GLOBALS['I18N']->get('good evening'); } } if ($page != "logout" && empty($logoutontop) && !$ajax) { # print '<div class="right">'.PageLink2("logout",$GLOBALS['I18N']->get('logout')).'</div>'; if (!empty($_SESSION['firstinstall']) && $page != 'setup') { print '<div class="fright">' . PageLinkClass("setup", $GLOBALS['I18N']->get('Continue Configuration'), '', 'firstinstallbutton') . '</div>'; } } } if (!$GLOBALS["commandline"]) { print '<noscript>'; Info(s('phpList will work without Javascript, but it will be easier to use if you switch it on.')); print '</noscript>'; } if (!$ajax && $page != "login") { if (strpos(VERSION, "dev") && !TEST) { # if ($GLOBALS["developer_email"]) { Info("Running DEV version. All emails will be sent to " . $GLOBALS["developer_email"]); } else { Info("Running DEV version, but developer email is not set");
if ($page == 'logout') { $greeting = $GLOBALS['I18N']->get('goodbye'); } else { $hr = date('G'); if ($hr > 0 && $hr < 12) { $greeting = $GLOBALS['I18N']->get('good morning'); } elseif ($hr <= 18) { $greeting = $GLOBALS['I18N']->get('good afternoon'); } else { $greeting = $GLOBALS['I18N']->get('good evening'); } } if ($page != 'logout' && empty($logoutontop) && !$ajax) { # print '<div class="right">'.PageLink2("logout",$GLOBALS['I18N']->get('logout')).'</div>'; if (!empty($_SESSION['firstinstall']) && $page != 'setup') { $firstInstallButton = '<div id="firstinstallbutton">' . PageLinkClass('setup', s('Continue Configuration'), '', 'firstinstallbutton') . '</div>'; } } } if (!$GLOBALS['commandline']) { print '<noscript>'; Info(s('phpList will work without Javascript, but it will be easier to use if you switch it on.')); print '</noscript>'; } if (!$ajax && $page != 'login') { if (strpos(VERSION, 'dev') && !TEST) { # if ($GLOBALS['developer_email']) { Info('Running DEV version. All emails will be sent to ' . $GLOBALS['developer_email']); } else { Info('Running DEV version, but developer email is not set');
function PageLinkButton($name, $desc = '', $url = '', $extraclass = '', $title = '') { return PageLinkClass($name, $desc, $url, 'button ' . $extraclass, $title); }
$ls->addColumn($element, " ", PageLinkClass('upgrade', $GLOBALS['I18N']->get('Upgrade'), '', 'hometext')); $ls->setClass($element, "upgrade"); } if (checkAccess("dbcheck")) { $some = 1; $element = $GLOBALS['I18N']->get('dbcheck'); $ls->addElement($element, PageURL2("dbcheck")); $ls->addColumn($element, " ", PageLinkClass('dbcheck', $GLOBALS['I18N']->get('Check Database structure'), '', 'hometext')); $ls->setClass($element, "dbcheck"); } if (checkAccess("eventlog")) { $some = 1; $element = $GLOBALS['I18N']->get('eventlog'); $ls->addElement($element, PageURL2("eventlog")); $ls->addColumn($element, " ", PageLinkClass('eventlog', $GLOBALS['I18N']->get('View the eventlog'), '', 'hometext')); $ls->setClass($element, "view-log"); } if (checkAccess("admin") && $GLOBALS["require_login"] && !isSuperUser()) { $some = 1; $element = $GLOBALS['I18N']->get('admin'); $ls->addElement($element, PageURL2("admin")); $ls->addColumn($element, " ", PageLinkClass('admin', $GLOBALS['I18N']->get('Change your details (e.g. password)'), '', 'hometext')); $ls->setClass($element, "change-pass"); } if ($some) { print '<h3><a name="system">' . $GLOBALS['I18N']->get('System Functions') . '</a></h3>'; $ls->noShader(); $ls->noHeader(); print '<div>' . $ls->display() . '</div>'; } print '</div>';