I have a page in each User’s Account that shows all Friend-Requests for that User. (Think “Inbox”.)
On this page they can see who wants to be their friend, check out the User’s Profile if need be, and then decide whether or not to accept.
Each Request should be on its own row, and has…
- Username
- User Photo
…and then to the right all in one line…
__ Decide Later __ Accept __ Decline
I suppose doing alternate shading of each “row” (i.e. <li>) would be a nice extra touch.
Current Problems:
1.) I need some better way to align the Radio Buttons and Username/Photo because they vary in size and look messy now.
2.) I’m not sure if I should wrap the Radio Buttons in a <field> or leave them out in the open?
3.) I tried creating the illusion of a “row” by applying styles to my <li> but that never worked out.
Here is the HTML I have so far…
<!-- FRIEND-REQUESTS -->
<form id="manageRequests" action="" method="post">
<fieldset>
<legend>Manage Friend-Requests</legend>
<ul>
<?php
// Loop through Requests.
while (mysqli_stmt_fetch($stmt1)){
echo "<li>
<a href=''>
$username<br />
<img src='/uploads/" . $photoName . "' width='80' alt='Thumbnail of ' . $username />
</a>
<fieldset id='friendRequestDecision'>
<input id='" . $requestorID . "_1' name='friendRequestDecision[" . $requestorID . "]' type='radio' value='0' />
<label for='" . $requestorID . "_1'>Decide Later</label>
<input id='" . $requestorID . "_2' name='friendRequestDecision[" . $requestorID . "]' type='radio' value='1' />
<label for='" . $requestorID . "_2'>Accept</label>
<input id='" . $requestorID . "_3' name='friendRequestDecision[" . $requestorID . "]' type='radio' value='2' />
<label for='" . $requestorID . "_3'>Decline</label>
</fieldset>
</li>\
";
}//End of LOOP THROUGH REQUESTS
?>
</ul>
</fieldset>
</form>
Here are my styles…
/****************************/
/* MANAGE REQUESTS Styles */
/****************************/
#manageRequests fieldset{
padding: 2em 2em 2em 3em;
}
#manageRequests ul{
}
#manageRequests ul li{
clear: both;
background-color: #EEE;
}
#manageRequests ul li a{
float: left;
font-size: 1em;
font-weight: bold;
text-decoration: none;
}
#manageRequests #friendRequestDecision{
float: left;
}
#manageRequests #friendRequestDecision label{
display: inline;
padding: 0 1em 0 0;
font-weight: normal;
}
And here is a screen-shot of what I have so far…
(I suppose it doesn’t look too bad, but it obviously needs some cleaning up!!)
Hopefully I am not too far off on what I have so far.
Any advice on how to “tighten up” my markup or styles would be appreciated!!
Thanks,
Debbie