function canViewFunds() { return isUser() || isSuper() || isTrans() || isAdmin(); }
</div> </div> <!-- Approve or Reject --> <?php if (strcmp($_pinkie->s_SubmittedFor, $_SESSION['Username']) == 0) { ?> <div class="container no-print"> <div class="well"> <div class="form-group form-group-lg"> <div class="col-sm-offset-8 col-sm-4"> <?php if (strcmp($GLOBALS['_pinkie']->s_Status, Done) != 0 && strcmp($GLOBALS['_pinkie']->s_Status, Cancelled) != 0) { ?> <?php if (isSuper()) { ?> <button type="button" class="btn btn-success" onclick="onApprove(<?php echo $_pinkie->i_PinkieID; ?> )"><span class="glyphicon glyphicon-indent-left"></span> Approve this Pinkie</button> <button type="button" class="btn btn-danger" onclick="onReject(<?php echo $_pinkie->i_PinkieID; ?> )"><span class="glyphicon glyphicon-indent-right"></span> Reject this Pinkie</button> <?php } elseif (isAdmin()) { ?> <button type="button" class="btn btn-success" onclick="onApprove(<?php echo $_pinkie->i_PinkieID; ?>
saveObjectToDB($_POST, $id); header("Location: edit?id=" . $id . "&success"); } $title = "Edit Submission"; $loginRequired = true; require "includes/header.php"; global $mysqli; $statement = $mysqli->prepare("SELECT custom_namespace, rdf_about, archive, title, type, url, origin, provenance, place_of_composition, shelfmark, freeculture, full_text_url, full_text_plain, is_full_text, image_url, source, metadata_xml_url, metadata_html_url, text_divisions, ocr, thumbnail_url, notes, file_format, date_created, date_updated, user_id FROM objects WHERE id = ? LIMIT 1"); $statement->bind_param("s", $id); $statement->execute(); $statement->store_result(); $statement->bind_result($custom_namespace, $rdf_about, $archive, $submissionTitle, $type, $url, $origin, $provenance, $place_of_composition, $shelfmark, $freeculture, $full_text_url, $full_text_plain, $is_full_text, $image_url, $source, $metadata_xml_url, $metadata_html_url, $text_divisions, $ocr, $thumbnail_url, $notes, $file_format, $date_created, $date_updated, $user_id); if ($statement->fetch()) { ?> <?php if ($user_id == $_SESSION["user_id"] || isSuper()) { ?> <div class="container"> <div class="row page-header"> <div class="col-xs-10"> <h1>Edit <?php print $submissionTitle; ?> </h1> <p class="lead" style="font-size: 17px;">Last Updated: <time><?php print formatDate($date_updated); ?> </time></p> </div> <div class="col-xs-2 text-center submission-tools"> <a href="view?id=<?php
/** * Renders the interior of the comment section. * * @param {String} $user: The user who posted the comment. * @param {String} $text: The comment text. * @param {int} $id: The comment ID. * @param {String} $table: The table corresponding to the comment. Used for AJAX. * @param {String} $type: Either "reply" or "original". */ function renderComment($user, $text, $id, $table, $type) { ?> <h4 class="pull-left" data-id="<?php print $id; ?> " data-tablename="<?php print $table; ?> "><?php print $user; ?> </h4> <ul class="list-inline comment-tools"> <?php if ($type == "reply" && isSuper()) { ?> <li class="delete">Delete</li> <?php } elseif ($type == "original") { ?> <li class="reply">Reply</li> <li class="breakdown">Collapse</li> <?php } ?> </ul> <p style="clear: both;"><?php print $text; ?> </p> <?php }
</div> </div> <?php } ?> <!-- Review Pinkies --> <?php if (isUser() || isTrans() || isSuper() || isAdmin()) { ?> <div class="container"> <div class="well"> <H3>Review Pinkies</H3> <!-- Everyone but a user can have a pinkie submitted to them. --> <?php if (isTrans() || isSuper() || isAdmin()) { ?> <H4><u>Pinkies Submitted To You</u></H4> <div class="table-responsive"> <table class="table table-bordered table-hover table-condensed"> <thead> <tr> <th>Pinkie Title</th> <th>Submitted By</th> <th>Timestamp</th> <th>Total</th> <th>Options</th> </tr> </thead> <tbody> <?php
<?php include_once '../controller/ensure_login.php'; if (!isSuper()) { header('location: ./'); } ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"/> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Co-Work :: Register Admin</title> <link href="../asset/css/bootstrap/bootstrap.min.css" rel="stylesheet"/> <link href="../asset/css/libs/font-awesome.css" type="text/css" rel="stylesheet"/> <link rel="stylesheet" type="text/css" href="../asset/css/compiled/layout.css"> <link rel="stylesheet" type="text/css" href="../asset/css/compiled/elements.css"> <link type="image/x-icon" href="favicon.png" rel="shortcut icon"/> <link href='//fonts.googleapis.com/css?family=Open+Sans:400,600,700,300|Titillium+Web:200,300,400' rel='stylesheet' type='text/css'> </head> <body class="theme-blue-gradient fixed-header fixed-leftmenu"> <?php