<link rel="shortcut icon" href="images/favicon.png"> <title>Question</title> <!-- Bootstrap core CSS --> <link href="css/bootstrap.css" rel="stylesheet"> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="../../assets/js/html5shiv.js"></script> <script src="../../assets/js/respond.min.js"></script> <![endif]--> </head> <body> <?php showNavbar($user); ?> <ol class="breadcrumb"> <li><a href="index.php">Home</a></li> <?php // first attempst at handling breadcrumbs... not working yet // if (strpos($_SERVER["HTTP_REFERER"], 'questions') !== false) { echo '<li><a href="questions.php">Questions</a></li>'; } elseif (strpos($_SERVER["HTTP_REFERER"], 'form') !== false) { $start = strpos($_SERVER["HTTP_REFERER"], 'form'); echo '<li><a href="' . substr($_SERVER["HTTP_REFERER"], $start) . '">Form</a></li>'; } ?> <li class="active">Question</li> </ol>
<script src="../../assets/js/html5shiv.js"></script> <script src="../../assets/js/respond.min.js"></script> <![endif]--> <script src="//code.jquery.com/jquery-latest.min.js"></script> <script> $(function() { $("#userPopup").change(function() { $("#fromID").val(this.value); $("#answerForm").submit(); }); }) </script> </head> <body> <?php showNavbar($user, "From"); ?> <div class="container"> <h2>Commentz From:</h2> <form id="answerForm" class="form-horizontal" action="from.php" method="post"> <?php // Show a popup with the users to see comments from. // $uTools = new UserTools(); $uTools->showUserPopup($fromID, true); // Hidden field containing the id of the person that we want to see comments from. echo '<input id="fromID" name="fromID" type="hidden" value="' . $fromID . '">'; // Show selected user site link. echo '<br><br><label for="link">Site Link:</label>' . "\n"; $link = $fromUser->link; if ($link == null) {
}); $("#userPopup").change( function() { $("#reportForm").submit(); }); $(".userLinks").click( function() { actAsUID = $(this).attr('data-user'); $("#toID").val(actAsUID); $("#fromID").val(actAsUID); $("#report").submit(); }); }) </script> </head> <body> <?php showNavbar($user, "Reports"); ?> <div class="container"> <h2>Commentz Report:</h2> <form id="reportForm" method="post" action="reports.php"> <div class="btn-group" data-toggle="buttons"> <?php // Set up the two types of reports From and To. if ($mode == "from") { echo '<label class="btn btn-primary active">' . "\n"; echo '<input type="radio" name="reportType" id="fromReport" value="from" checked> From:' . "\n"; echo '</label>' . "\n"; echo '<label class="btn btn-primary">' . "\n"; echo '<input type="radio" name="reportType" id="toReport" value="to"> To:' . "\n"; echo '</label>' . "\n"; } else {
<script src="../../assets/js/html5shiv.js"></script> <script src="../../assets/js/respond.min.js"></script> <![endif]--> <script src="//code.jquery.com/jquery-latest.min.js"></script> <script> $(function() { $("#userPopup").change(function() { $("#toID").val(this.value); $("#answerForm").submit(); }); }) </script> </head> <body> <?php showNavbar($user, "To"); ?> <div class="container"> <h2>Commentz To:</h2> <form id="answerForm" class="form-horizontal" action="index.php" method="post"> <?php // Show a popup with the users to send comments to. // $uTools = new UserTools(); $uTools->showUserPopup($toID); // Hidden field containing the id of the person that the comments are intended for. echo '<input id="toID" name="toID" type="hidden" value="' . $toID . '">'; // Show selected user site link. echo '<br><br><label for="link">Site Link:</label>' . "\n"; $link = $toUser->link; if ($link == null) {
<link rel="shortcut icon" href="../../assets/ico/favicon.png"> <title>Settings</title> <!-- Bootstrap core CSS --> <link href="css/bootstrap.css" rel="stylesheet"> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="includes/js/html5shiv.js"></script> <script src="includes/respond.min.js"></script> <![endif]--> </head> <body> <?php showNavbar($user, "Settings"); ?> <div class="container"> <h2>Settings</h2> <form class="form-horizontal" action="settings.php" method="post"> <label for="email">EMail:</label> <input type="email" id="email" class="form-control well-lg" placeholder="Email" autofocus name="email" required value="<?php echo $user->email; ?> " /><br> <label for="link">Website Link:</label> <input type="url" id="link" class="form-control well-lg" placeholder="Website URL" name="link" required value="<?php echo $user->link; ?> " /><br> <label for="blog">Blog Link:</label>