* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ $id = filter_input(INPUT_GET, "id"); //URL for back link $url = filter_input(INPUT_GET, "url"); $array = AdminUtility::getUserInfo($id); if (empty($array)) { ?> <p>User information is not available</p> <a href="<?php echo $url; ?> "> <i class="icon-arrow-left-2"></i> Back </a> <?php } else { ?> <div> <h2><?php echo $array['last_name'] . " " . $array['first_name'];
if (isset($addPerformed)) { if (!$success) { ?> <p class="fg-red"><?php echo $error_message; ?> </p> <?php } else { ?> <p class="fg-NACOSS-UNN">Executive was successfully added</p> <?php } } if (!empty($user_id)) { $user = AdminUtility::getUserInfo($user_id); if (!empty($user)) { $name = $user["last_name"] . " " . $user["first_name"]; $regno = $user["regno"]; } } ?> <form action="<?php echo $defaultPage; ?> " method="post"> <a class="button" href="index.php?p=6&url=<?php echo urlencode($defaultPage); ?> ">