Commit f795d462 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Raw theme: preferences page

parent ebf03d33
...@@ -43,7 +43,7 @@ $authobj = AuthFactory::create($USER->authinstance); ...@@ -43,7 +43,7 @@ $authobj = AuthFactory::create($USER->authinstance);
if (method_exists($authobj, 'change_password')) { if (method_exists($authobj, 'change_password')) {
$elements = array( $elements = array(
'changepassworddesc' => array( 'changepassworddesc' => array(
'value' => '<tr><td colspan="2"><h3>' . get_string('changepassworddesc', 'account') . '</h3></td></tr>' 'value' => '<tr><th colspan="2"><h3>' . get_string('changepassworddesc', 'account') . '</h3></th></tr>'
), ),
'oldpassword' => array( 'type' => 'password', 'oldpassword' => array( 'type' => 'password',
'title' => get_string('oldpassword'), 'title' => get_string('oldpassword'),
...@@ -64,7 +64,7 @@ else if ($url = get_config_plugin_instance('auth', $USER->authinstance, 'changep ...@@ -64,7 +64,7 @@ else if ($url = get_config_plugin_instance('auth', $USER->authinstance, 'changep
// @todo contextual help // @todo contextual help
$elements = array( $elements = array(
'changepasswordotherinterface' => array( 'changepasswordotherinterface' => array(
'value' => '<tr><td colspan="2"><h3>' . get_string('changepasswordotherinterface', 'account', $url) . '</h3></td></tr>' 'value' => '<tr><th colspan="2"><h3>' . get_string('changepasswordotherinterface', 'account', $url) . '</h3></th></tr>'
) )
); );
} }
...@@ -74,7 +74,7 @@ else { ...@@ -74,7 +74,7 @@ else {
if ($authobj->authname == 'internal') { if ($authobj->authname == 'internal') {
$elements['changeusernameheading'] = array( $elements['changeusernameheading'] = array(
'value' => '<tr><td colspan="2"><h3>' . get_string('changeusernameheading', 'account') . '</h3></td></tr>' 'value' => '<tr><th colspan="2"><h3>' . get_string('changeusernameheading', 'account') . '</h3></th></tr>'
); );
$elements['username'] = array( $elements['username'] = array(
'type' => 'text', 'type' => 'text',
...@@ -85,7 +85,7 @@ if ($authobj->authname == 'internal') { ...@@ -85,7 +85,7 @@ if ($authobj->authname == 'internal') {
} }
$elements['accountoptionsdesc'] = array( $elements['accountoptionsdesc'] = array(
'value' => '<tr><td colspan="2"><h3>' . get_string('accountoptionsdesc', 'account') . '</h3></td></tr>' 'value' => '<tr><th colspan="2"><h3>' . get_string('accountoptionsdesc', 'account') . '</h3></th></tr>'
); );
$elements['friendscontrol'] = array( $elements['friendscontrol'] = array(
'type' => 'radio', 'type' => 'radio',
...@@ -242,7 +242,7 @@ function clearPasswords(form, data) { ...@@ -242,7 +242,7 @@ function clearPasswords(form, data) {
} }
} }
"); ");
$smarty->assign('heading', get_string('preferences')); $smarty->assign('PAGEHEADING', hsc(get_string('preferences')));
$smarty->display('account/index.tpl'); $smarty->display('account/index.tpl');
......
{include file="header.tpl"} {include file="header.tpl"}
{include file="sidebar.tpl"}
{include file="columnleftstart.tpl"}
{$form} {$form}
{include file="columnleftend.tpl"}
{include file="footer.tpl"} {include file="footer.tpl"}
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