Commit 11d3ec22 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Raw theme: admin section

parent 779060b6
......@@ -65,6 +65,7 @@ $smarty = smarty();
$smarty->assign('reloadform', $reloadform);
$smarty->assign('newfiltersdescription', get_string('newfiltersdescription', 'admin', get_config('libroot') . 'htmlpurifiercustom'));
$smarty->assign('filters', $filters);
$smarty->assign('PAGEHEADING', hsc(TITLE));
$smarty->display('admin/extensions/filters.tpl');
?>
......@@ -192,7 +192,7 @@ $smarty = smarty();
$smarty->assign('INLINEJAVASCRIPT', $javascript);
$smarty->assign('plugins', $plugins);
$smarty->assign('installlink', 'installplugin');
$smarty->assign('heading', get_string('pluginadmin', 'admin'));
$smarty->assign('PAGEHEADING', hsc(TITLE));
$smarty->display('admin/extensions/plugins.tpl');
?>
......@@ -277,7 +277,7 @@ $smarty = smarty(array(), array($style));
$smarty->assign('INLINEJAVASCRIPT', $ijs);
$smarty->assign('MENUS', $menulist);
$smarty->assign('descriptionstrargs', array('<a href="' . get_config('wwwroot') . 'artefact/file/sitefiles.php">', '</a>'));
$smarty->assign('heading', get_string('linksandresourcesmenu', 'admin'));
$smarty->assign('PAGEHEADING', hsc(get_string('linksandresourcesmenu', 'admin')));
$smarty->display('admin/site/menu.tpl');
?>
......@@ -202,6 +202,7 @@ function networkingform_submit(Pieform $form, $values) {
$smarty = smarty();
$smarty->assign('networkingform', $networkingform);
$smarty->assign('PAGEHEADING', hsc(TITLE));
$smarty->display('admin/site/networking.tpl');
?>
......@@ -249,6 +249,7 @@ function siteoptions_submit(Pieform $form, $values) {
$thispage = json_encode(get_config('wwwroot') . 'admin/site/options.php');
$smarty = smarty(array('adminsiteoptions'));
$smarty->assign('siteoptionform', $siteoptionform);
$smarty->assign('PAGEHEADING', hsc(get_string('siteoptions', 'admin')));
$smarty->display('admin/site/options.tpl');
?>
......@@ -95,7 +95,7 @@ function editsitepage_submit(Pieform $form, $values) {
$smarty = smarty(array('adminsitepages'), array(), array('admin' => array('discardpageedits')));
$smarty->assign('pageeditform', $form);
$smarty->assign('heading', get_string('editsitepages', 'admin'));
$smarty->assign('PAGEHEADING', hsc(get_string('editsitepages', 'admin')));
$smarty->display('admin/site/pages.tpl');
?>
......@@ -44,7 +44,7 @@ define('TITLE', $title);
$createviewform = pieform(create_view_form(null, 'mahara'));
$smarty = smarty();
$smarty->assign('heading', $title);
$smarty->assign('PAGEHEADING', hsc(TITLE));
$data = View::get_myviews_data($limit, $offset, null, 'mahara');
......
......@@ -245,6 +245,7 @@ function adduser_submit(Pieform $form, $values) {
$smarty = smarty();
$smarty->assign('form', $form);
$smarty->assign('PAGEHEADING', hsc(TITLE));
$smarty->display('admin/users/add.tpl');
?>
......@@ -85,7 +85,7 @@ function adminusers_submit(Pieform $form, $values) {
$smarty = smarty();
$smarty->assign('adminusersform', $form);
$smarty->assign('heading', get_string('adminusers', 'admin'));
$smarty->assign('PAGEHEADING', hsc(TITLE));
$smarty->display('admin/users/admin.tpl');
?>
......@@ -29,7 +29,7 @@
define('INTERNAL', 1);
define('INSTITUTIONALADMIN', 1);
require(dirname(dirname(dirname(__FILE__))) . '/init.php');
define('TITLE', get_string('adminusers', 'admin'));
define('TITLE', get_string('institutionadmins', 'admin'));
require_once('pieforms/pieform.php');
define('MENUITEM', 'manageinstitutions/institutionadmins');
......@@ -105,6 +105,7 @@ function adminusers_submit(Pieform $form, $values) {
$smarty->assign('institutionselector', $s['institutionselector']);
$smarty->assign('INLINEJAVASCRIPT', $s['institutionselectorjs']);
$smarty->assign('adminusersform', pieform($form));
$smarty->assign('PAGEHEADING', hsc(TITLE));
$smarty->display('admin/users/institutionadmins.tpl');
?>
......@@ -571,7 +571,7 @@ if ($institution && $institution != 'mahara') {
}
}
$smarty->assign('heading', get_string('admininstitutions', 'admin'));
$smarty->assign('PAGEHEADING', hsc(get_string('admininstitutions', 'admin')));
$smarty->display('admin/users/institutions.tpl');
function theme_sort($a, $b) {
......
......@@ -29,7 +29,7 @@
define('INTERNAL', 1);
define('INSTITUTIONALADMIN', 1);
require(dirname(dirname(dirname(__FILE__))) . '/init.php');
define('TITLE', get_string('staffusers', 'admin'));
define('TITLE', get_string('institutionstaff', 'admin'));
require_once('pieforms/pieform.php');
define('MENUITEM', 'manageinstitutions/institutionstaff');
......@@ -103,6 +103,7 @@ function staffusers_submit(Pieform $form, $values) {
$smarty->assign('institutionselector', $s['institutionselector']);
$smarty->assign('INLINEJAVASCRIPT', $s['institutionselectorjs']);
$smarty->assign('staffusersform', pieform($form));
$smarty->assign('PAGEHEADING', hsc(TITLE));
$smarty->display('admin/users/institutionstaff.tpl');
?>
......@@ -29,7 +29,7 @@
define('INTERNAL', 1);
define('INSTITUTIONALADMIN', 1);
require(dirname(dirname(dirname(__FILE__))) . '/init.php');
define('TITLE', get_string('adminusers', 'admin'));
define('TITLE', get_string('institutionmembers', 'admin'));
define('SECTION_PLUGINTYPE', 'core');
define('SECTION_PLUGINNAME', 'admin');
define('SECTION_PAGE', 'institutionusers');
......@@ -232,6 +232,7 @@ $smarty->assign('INLINEJAVASCRIPT', $js);
$smarty->assign('usertypeselector', $usertypeselector);
$smarty->assign('instructions', get_string('institutionusersinstructions'.$usertype, 'admin'));
$smarty->assign('institutionusersform', $userlistform);
$smarty->assign('PAGEHEADING', hsc(TITLE));
$smarty->display('admin/users/institutionusers.tpl');
?>
......@@ -87,7 +87,7 @@ if ($userinstitutions) {
$smarty = smarty();
$smarty->assign('users', $users);
$smarty->assign('types', $types);
$smarty->assign('heading', get_string('adminnotifications', 'admin'));
$smarty->assign('PAGEHEADING', hsc(TITLE));
$smarty->display('admin/users/notifications.tpl');
......
......@@ -58,7 +58,7 @@ $smarty->assign('search', $search);
$smarty->assign('alphabet', explode(',', get_string('alphabet')));
$smarty->assign('institutions', $institutions);
$smarty->assign('results', build_admin_user_search_results($search, $offset, $limit, $sortby, $sortdir));
$smarty->assign('heading', get_string('usersearch', 'admin'));
$smarty->assign('PAGEHEADING', hsc(TITLE));
$smarty->display('admin/users/search.tpl');
?>
......@@ -82,7 +82,7 @@ function staffusers_submit(Pieform $form, $values) {
$smarty = smarty();
$smarty->assign('staffusersform', $form);
$smarty->assign('heading', get_string('staffusers', 'admin'));
$smarty->assign('PAGEHEADING', hsc(TITLE));
$smarty->display('admin/users/staff.tpl');
?>
......@@ -78,7 +78,7 @@ $form = new Pieform(array(
));
$smarty->assign('buttonformopen', $form->get_form_tag());
$smarty->assign('buttonform', $form->build(false));
$smarty->assign('heading', get_string('suspendedusers', 'admin'));
$smarty->assign('PAGEHEADING', hsc(TITLE));
$smarty->display('admin/users/suspended.tpl');
function buttons_submit_unsuspend(Pieform $form, $values) {
......
......@@ -366,6 +366,7 @@ $form = pieform($form);
$smarty = smarty();
$smarty->assign('uploadcsvpagedescription', $uploadcsvpagedescription);
$smarty->assign('uploadcsvform', $form);
$smarty->assign('PAGEHEADING', hsc(TITLE));
$smarty->display('admin/users/uploadcsv.tpl');
?>
......@@ -63,7 +63,7 @@ $smarty->assign('institution', $institution);
$smarty->assign('institutionselector', $s['institutionselector']);
$smarty->assign('form', $form);
$smarty->assign('INLINEJAVASCRIPT', $s['institutionselectorjs'] . $js);
$smarty->assign('heading', TITLE);
$smarty->assign('PAGEHEADING', hsc(TITLE));
$smarty->display('artefact:file:files.tpl');
?>
......@@ -40,7 +40,7 @@ $js = ArtefactTypeFileBase::files_js();
$smarty = smarty();
$smarty->assign('descriptionstrargs', array('<a href="' . get_config('wwwroot') . 'admin/site/menu.php">', '</a>'));
$smarty->assign('heading', get_string('sitefiles', 'admin'));
$smarty->assign('PAGEHEADING', hsc(get_string('sitefiles', 'admin')));
$smarty->assign('institution', 'mahara');
$smarty->assign('form', $form);
$smarty->assign('INLINEJAVASCRIPT', $js);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment