/** * Prints the basic reservation form elements * This contains: resource data, time information/select, user info, create/modify times, recurring selection, pending info * @param object $res Reservation object to work with * @param array $rs resource data array * @param bool $is_private if the privacy mode is on and we should hide personal data */ function print_basic_panel(&$res, &$rs, $is_private) { global $conf; ?> <!-- Begin basic panel --> <div id="pnl_basic" style="display:table; width:100%; position: relative;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td> <!-- Content begin --> <?php print_resource_data($rs, $res->type == RES_TYPE_ADD ? 2 : 1); // Print resource info print_time_info($res, $rs, !$res->is_blackout, isset($rs['allow_multi']) && $rs['allow_multi'] == 1); // Print time information if (!$res->is_blackout && !$is_private) { print_user_info($res->type, $res->user); // Print user info } if (!empty($res->id)) { // Print created/modified times (if applicable) print_create_modify($res->created, $res->modified); } if (!$is_private) { print_summary($res->summary, $res->type); } if (!empty($res->parentid) && ($res->type == RES_TYPE_MODIFY || $res->type == RES_TYPE_DELETE || $res->type == RES_TYPE_APPROVE)) { print_recur_checkbox($res->parentid); } if ($res->type == RES_TYPE_MODIFY) { print_del_checkbox(); } //AK: repeat reservation box and reminder box are not needed in out implementation //if ($res->type == RES_TYPE_ADD || $res->type == RES_TYPE_MODIFY) { // Print out repeat reservation box, if applicable // divide_table(); // if ($res->type == RES_TYPE_ADD) { // print_repeat_box(date('m', $res->start_date), date('Y', $res->start_date)); // if( $res->is_pending ) { // print_pending_approval_msg(); // } // } // $reminder_times = $conf['app']['allowed_reminder_times']; // print_reminder_box($reminder_times, $res->reminder_minutes_prior, $res->reminderid); // } ?> <!-- Content end --> </td> </tr> </table> </div> <!-- End basic panel --> <?php }
function draw_statistics_page() { ?> <div class="ono_wrap"> <div id="wrap"> <h2 class="heading"><?php echo __("SSQuiz Statistics", 'ssquiz'); ?> </h2> <?php if (function_exists('ssquiz_print_aux_stats')) { ssquiz_print_aux_stats(); } ?> <legend style="margin-top: 20px;"><i class="icon-group"></i> Quiz users</legend> <div class="cf" style="margin: 30px 0 0 10px; position: relative;"> <div id="display_questions" style="float:left;"> <label style="display:inline-block;left: -10px; position: relative;"><?php echo __("Find: ", 'ssquiz'); ?> </label> <input type="text" id="find_name" placeholder="User/Quiz name" /> <input type="checkbox" id="find_completed" style="position: relative;top: -6px;margin-left: 20px;" /> <label style="display:inline-block;left: 15px; position: relative;"><?php echo __("only passed", 'ssquiz'); ?> </label> </div> <div style="float:right;"> <a class="btn ssquiz_ask_delete_history" href="#"> <i class="icon-trash"></i> <?php echo __("Delete All Entries", 'ssquiz'); ?> </a> <div class="confirm_delete_history" style="right: 0px;top: -5px; display:none;"> <a href="#" class="btn btn-danger ssquiz_delete_history" onclick="jQuery.fn.crud_history( -1 ); return false;">Confirm</a> <a href="#" class="btn btn-success ssquiz_cancel_history">Cancel</a> <span style="margin: 15px;">Are you sure you want to clear history of using SSQuiz?</span> </div> </div> </div> <div id="ssquiz_history_container"> <?php ssquiz_print_history(-1, 'clear'); ?> </div> </div> <!-- #wrap --> </div> <?php if (function_exists('print_user_info')) { print_user_info(); } ssquiz_print_footer(); }
<?php // profile.php require_once "header.php"; require_once "lib/userdisplay.php"; require_once "lib/sessionmanagement.php"; printHeader("Title", "Keywords", "Description", "profile"); if (is_logged_in()) { print_user_info($_SESSION['user']['id']); } else { echo "You need to <a href=\"login.php\">login</a> to see your profile.\n"; } require_once "footer.php";