-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
19 additions
and
14 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
<form name='awardUser' action="<?= site_url("User/awardUserSubmit/{$awardee->id}") ?>" method="POST"> | ||
<br><br> | ||
<div id="short-main"> | ||
<!-- <h2>Award Points</h2> --> | ||
<form name='awardUser' action="<?= site_url("User/awardUserSubmit/{$awardee->id}") ?>" method="POST"> | ||
<span style="font-size: 25px; vertical-align: middle;">Award points to <br> <img style="width: 30px; vertical-align: middle;" src="<?php user_avatar($awardee->id) ?>" /> <?php echo $awardee->nickname ?>.</span> | ||
|
||
<div>Awarder: </div> | ||
<div><?php print_r($currentUser) ?></div> | ||
<input type="range" id='coa' min="1" max="<?php echo $currentUser->points; ?>" value='0' step="1" name="points" onchange='document.getElementById("mybar").value = "" + document.getElementById("coa").value;'/> | ||
<input type="text" name="mybar" id="mybar" value="" disabled style="color:rgb(255, 196, 0); background-color:rgb(0,0,0,0); border:0" /> | ||
<input type="submit" class="btn" name="action" value="Award User"> | ||
</form> | ||
|
||
<br> | ||
|
||
<div>Awardee: </div> | ||
<div><?php print_r($awardee) ?></div> | ||
<?php | ||
if (isset($_POST["points"])) { | ||
echo "" . $_POST["points"]; | ||
// Your Slider value is here, do what you want with it. Mail/Print anything.. | ||
} else { | ||
echo "Please slide the bar and press award user."; | ||
} | ||
?> | ||
|
||
<input type="range" min="0" max="<?php echo $currentUser->points; ?>" value='0' step="1" name="points" /> | ||
|
||
<input type="submit" class="btn" name="action" value="Award user"> | ||
|
||
</form> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters