Esempio n. 1
0
			});
		})
	   </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) {
    echo "No link defined yet for this user.\n";
} else {
    echo '<a id="link" href="' . $link . '" target="_BLANK">' . $link . '</a>' . "\n";
}
// Show selected user blog link.
echo '<br><br><label for="link">Blog Link:</label>' . "\n";
$blog = $toUser->blog;
if ($blog == null) {
    echo "No blog link yet for this user.\n";
Esempio n. 2
0
			});
		})
	   </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) {
    echo "No link defined yet for this user.\n";
} else {
    echo '<a id="link" href="' . $link . '" target="_BLANK">' . $link . '</a>' . "\n";
}
// Show selected user blog link.
echo '<br><br><label for="link">Blog Link:</label>' . "\n";
$blog = $fromUser->blog;
if ($blog == null) {
    echo "No blog link yet for this user.\n";
Esempio n. 3
0
    echo '<label class="btn btn-primary">' . "\n";
    echo '<input type="radio" name="reportType" id="fromReport" value="from"> From:' . "\n";
    echo '</label>' . "\n";
    echo '<label class="btn btn-primary active">' . "\n";
    echo '<input type="radio" name="reportType" id="toReport" value="to" checked> To:' . "\n";
    echo '</label>' . "\n";
}
?>
            </div>
            <?php 
//
// Allow administrators to act as any student.
//
if ($user->userPriv == 'A') {
    echo "Act as: ";
    $uTool->showUserPopup($actAsUID, true);
}
?>
        </form> 
        <?php 
if ($mode == "to") {
    echo '<form id="report" method="post" action="index.php">' . "\n";
} else {
    echo '<form id="report" method="post" action="from.php">' . "\n";
}
echo '   <input type="hidden" id="toID" name="toID">' . "\n";
echo '   <input type="hidden" id="fromID" name="fromID">' . "\n";
echo '   </form>' . "\n";
echo '<div class="level1">' . "\n";
$users = $uTool->getUsers(true);
// Get the answers for this report.