dirroot . '/lib/datalib.php'); $strdisplay = get_string('display', 'block_learning_resources'); $strnone = get_string('none', 'block_learning_resources'); $rs = get_records('block_learning_resources'); if (is_array($rs)) { $rs = stripslashes_safe($rs); foreach ($rs as $link) { $temp = "allow_{$link->id}"; $desc = !empty($link->notes) ? ' - ' . $link->notes : ''; echo " \n"; echo " \n"; echo " \n"; echo " \n"; } } else { echo "

$strnone

\n"; } ?>
$strdisplay url}\" target=\"_blank\">{$link->linktext}{$desc}\n"; echo " config->$temp) && $link->defaultshow == 1) || $this->config->$temp == 1) { echo ' checked="checked"'; } echo " />