function drawBottom() { global $user, $_josh, $modules, $printing, $areas, $locale, $helpdeskOptions, $helpdeskStatus; if (!$printing) { ?> </div> <div id="right" class="col-md-4"> <div id="tools"> <form name="search" method="get" action="/staff/search.php" onSubmit="javascript:return doSearch(this);"> <a class="right button" href="/index.php?logout=true"> <i class="glyphicon glyphicon-log-out"></i> Log Out </a> Hello <b><a href="/staff/view.php?id=<?php echo $user["id"]; ?> "><?php echo $user["first_name"]; ?> <?php echo $user["last_name"]; ?> </b></a>. <input type="text" class="form-control" name="q" placeholder="Search Staff"> </form> <ul class="links"> <?php echo drawLinks(); ?> </ul> </div> <div id="spotlight"> <?php echo drawSpotlight(); ?> </div> <?php foreach ($modules as $module) { if ($module["pallet"]) { ?> <table class="right" cellspacing="1"> <tr> <td colspan="2" class="head <?php echo str_replace("/", "", $module["url"]); ?> "> <div class="head-left"><a href="<?php echo $module["url"]; ?> "><?php echo $module["name"]; ?> </a></div> </td> </tr> <?php include $_josh["root"] . $module["pallet"]; ?> </table> <?php } } ?> <table class="right" cellspacing="1"> <tr> <td colspan="2" class="head docs"> <div class="head-left"><a href="https://ccatalyst.sharepoint.com/HCFACCIT/Forms/AllItems.aspx" target="_blank">Documents</a></div> </td> </tr> <!-- <tr> <td style="padding:0;"> <a href="https://ccatalyst.sharepoint.com/HCFACCIT/Forms/AllItems.aspx" target="_blank" style="color: #333;font-size:15px;line-height: 1.3;background-color:#eee; text-align: center; padding: 40px 0; display: block">Click here</a> </td> </tr> --> </table> <!--<div id="footer">page rendered in <?php echo format_time_exec(); ?> </div>--> </div> </div> </div> <script src="/assets/vendor/jquery/dist/jquery.min.js"></script> <script src="/assets/vendor/TableDnD/dist/jquery.tablednd.min.js"></script> <script src="/assets/vendor/tinymce/tinymce.jquery.min.js"></script> <script src="/assets/js/javascript.js"></script> </body> </html> <?php } db_close(); }
<?php include "../include.php"; if ($posting) { if (isset($_POST['order'])) { $counter = 1; foreach ($_POST['order'] as $link_id) { db_query('UPDATE spotlight SET precedence = ' . $counter . ' WHERE id = ' . $link_id); $counter++; } die(drawSpotlight()); } else { $id = db_enter('spotlight', 'title url precedence'); if ($uploading && file_ext($_FILES["userfile"]['name']) == 'jpg') { define('DIRECTORY_ROOT', $_SERVER['DOCUMENT_ROOT']); define('DIRECTORY_WRITE', '/uploads'); $image = format_image($_FILES["userfile"]["tmp_name"], 'jpg'); $image = format_image_resize($image, 320, 320); file_put('/uploads/spotlight/' . $id . '.jpg', $image); } url_change(); } } elseif (!empty($_GET['id']) && url_action('delete')) { db_query('DELETE FROM spotlight WHERE id = ' . $_GET['id']); url_query_drop('action,id'); } drawTop(); ?> <table cellspacing="1" class="left draggable spotlight"> <thead> <?php