application_log("error", "Group [" . $_SESSION["permissions"][$ENTRADA_USER->getAccessId()]["group"] . "] and role [" . $_SESSION["permissions"][$ENTRADA_USER->getAccessId()]["role"] . "] does not have access to this module [" . $MODULE . "]"); } else { ?> <style type="text/css"> #draft-list_length {padding:5px 4px 0 0;} #draft-list_filter {-moz-border-radius:10px 10px 0px 0px; border: 1px solid #9D9D9D;border-bottom:none;background-color:#FAFAFA;font-size: 0.9em;padding:3px;} #draft-list_paginate a {margin:2px 5px;} </style> <h1>My Draft Learning Event Schedules</h1> <div class="row-fluid"><a class="btn btn-primary pull-right" href="<?php echo ENTRADA_URL; ?> /admin/events/drafts?section=create-draft">Create New Draft</a></div> <br /> <?php $drafts = Models_Event_Draft::fetchAllByProxyID($ENTRADA_USER->getActiveID()); if ($drafts) { add_notice("<p>You currently have <strong>" . count($drafts) . "</strong> draft" . (count($drafts) > 1 ? "s" : "") . " on the go.</p><p>When you are finished working on your draft event schedule you can click <strong>Publish Drafts</strong> to schedule them to be imported.</p>"); echo display_notice(); ?> <form name="frmSelect" id="frmSelect" action="<?php echo ENTRADA_URL; ?> /admin/events/drafts?section=delete" method="post"> <table class="table table-striped table-bordered" id="draft-list" cellspacing="0" cellpadding="1" summary="List of Events"> <thead> <tr> <th class="modified" width="5%"> </th> <th class="title">Draft Name</th> <th class="date">Created</th> <th class="status">Status</th>
add_error("Unable to remove the requested drafts from the system.<br /><br />The system administrator has been informed of this issue and will address it shortly; please try again later."); application_log("error", "Failed to remove draft from the remove request. Database said: " . $db->ErrorMsg()); } if ($ERROR) { echo display_error(); } break; case 1: default: if ($ERROR) { echo display_error(); } else { $total_events = count($draft_ids); $drafts = array(); foreach ($draft_ids as $draft_id) { $drafts[] = Models_Event_Draft::fetchRowByID($draft_id); } if (!empty($drafts)) { echo display_notice(array("Please review the following draft" . ($total_events > 1 ? "s" : "") . " to ensure that you wish to set " . ($total_events > 1 ? "them" : "it") . " to <strong>" . $status . "</strong>.<br /><br />Approving a draft will schedule it to be imported into the system.<br />Re-opening a draft will remove it from the importation schedule and allow it to be modified.")); $JQUERY[] = "<script type=\"text/javascript\" src=\"" . ENTRADA_RELATIVE . "/javascript/jquery/jquery.dataTables.min.js?release=" . html_encode(APPLICATION_VERSION) . "\"></script>\n"; ?> <style type="text/css"> #draft-list_length {padding:5px 4px 0 0;} #draft-list_filter {-moz-border-radius:10px 10px 0px 0px; border: 1px solid #9D9D9D;border-bottom:none;background-color:#FAFAFA;font-size: 0.9em;padding:3px;} #draft-list_paginate a {margin:2px 5px;} </style> <form action="<?php echo ENTRADA_URL; ?> /admin/events/drafts?section=status&step=2&action=<?php echo $action;