|
|
|
@ -209,7 +209,7 @@ $status[SESSIONADMIN] = get_lang('SessionsAdmin'); |
|
|
|
|
|
|
|
|
|
$form->addElement('select', 'status', get_lang('Profile'), $status, array('id' => 'status_select', 'onchange' => 'javascript: display_drh_list();','class'=>'chzn-select')); |
|
|
|
|
|
|
|
|
|
$display = $user_data['status'] == STUDENT || $_POST['status'] == STUDENT ? 'block' : 'none'; |
|
|
|
|
$display = isset($user_data['status']) && ($user_data['status'] == STUDENT || (isset($_POST['status']) && $_POST['status'] == STUDENT)) ? 'block' : 'none'; |
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
$form->addElement('html', '<div id="drh_list" style="display:'.$display.';">'); |
|
|
|
@ -375,6 +375,7 @@ if ( $form->validate()) { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$message = null; |
|
|
|
|
if ($error_drh) { |
|
|
|
|
$err_msg = get_lang('StatusCanNotBeChangedToHumanResourcesManager'); |
|
|
|
|
$message = Display::return_message($err_msg, 'error'); |
|
|
|
@ -402,6 +403,7 @@ $big_image_width = $big_image_size['width']; |
|
|
|
|
$big_image_height = $big_image_size['height']; |
|
|
|
|
$url_big_image = $big_image.'?rnd='.time(); |
|
|
|
|
|
|
|
|
|
$content = null; |
|
|
|
|
if ($image == '') { |
|
|
|
|
$content .= '<img '.$img_attributes.' />'; |
|
|
|
|
} else { |
|
|
|
@ -412,7 +414,6 @@ if ($image == '') { |
|
|
|
|
$content .= $form->return_form(); |
|
|
|
|
|
|
|
|
|
$tpl = new Template($tool_name); |
|
|
|
|
$tpl->assign('actions', $actions); |
|
|
|
|
$tpl->assign('message', $message); |
|
|
|
|
$tpl->assign('content', $content); |
|
|
|
|
$tpl->display_one_col_template(); |