@@ 830-832 (lines=3) @@ | ||
827 | $sess_errors = $session->get('xhelp_addDepartmentErrors'); |
|
828 | ||
829 | //Display any form errors |
|
830 | if (! $sess_errors === false) { |
|
831 | xhelpRenderErrors($sess_errors, xhelpMakeURI(XHELP_ADMIN_URL.'/department.php', array('op'=>'clearAddSession'), false)); |
|
832 | } |
|
833 | ||
834 | if (! $sess_dept === false) { |
|
835 | $fld_newDept = $sess_dept['newDept']; |
@@ 183-185 (lines=3) @@ | ||
180 | $fld_validation = ''; |
|
181 | } |
|
182 | ||
183 | if (! $field_errors === false) { |
|
184 | xhelpRenderErrors($field_errors, xhelpMakeURI(XHELP_ADMIN_URL.'/fields.php', array('op'=>'clearAddSession'))); |
|
185 | } |
|
186 | ||
187 | //Add Field Form |
|
188 | $controls = xhelpGetControlArray(); |
|
@@ 548-550 (lines=3) @@ | ||
545 | } |
|
546 | unset($depts); |
|
547 | ||
548 | if (! $field_errors === false) { |
|
549 | xhelpRenderErrors($field_errors, xhelpMakeURI(XHELP_ADMIN_URL.'/fields.php', array('op'=>'clearEditSession', 'id'=>$fld_id))); |
|
550 | } |
|
551 | ||
552 | $form = new xhelpForm(_AM_XHELP_EDIT_FIELD, 'edit_field', xhelpMakeURI(XHELP_ADMIN_URL.'/fields.php', array('op'=>'editfield', 'id'=>$fld_id))); |
|
553 |
@@ 84-86 (lines=3) @@ | ||
81 | $mime_errors = $session->get('xhelp_addMimeErr'); |
|
82 | ||
83 | //Display any form errors |
|
84 | if (! $mime_errors === false) { |
|
85 | xhelpRenderErrors($mime_errors, xhelpMakeURI(XHELP_ADMIN_URL.'/mimetypes.php', array('op'=>'clearAddSession'))); |
|
86 | } |
|
87 | ||
88 | if ($mime_type === false) { |
|
89 | $mime_ext = ''; |
|
@@ 249-251 (lines=3) @@ | ||
246 | echo $indexAdmin->addNavigation('mimetypes.php'); |
|
247 | ||
248 | //Display any form errors |
|
249 | if (! $mime_errors === false) { |
|
250 | xhelpRenderErrors($mime_errors, xhelpMakeURI(XHELP_ADMIN_URL.'/mimetypes.php', array('op'=>'clearEditSession', 'id'=>$mime_id))); |
|
251 | } |
|
252 | ||
253 | if ($mime_type === false) { |
|
254 | $mime_ext = $mimetype->getVar('mime_ext'); |