希望学期和教师看起来像学生姓名和临床站点,左上角有文本,右下角输入。
这希望我添加有关代码的更多信息,但我对此无话可说。
<?php
include ($_SESSION['Root_Path_Full'].'roles/student/scripts/studentqueries.php');
function drawStudentLabel($currentUser, $userinfo) {
echo ('<table id="user_label" border="1">
<tr>
<th>Student name: <input class="u_label" readonly type="text" value="'.$userinfo['FullName'].'" name="student_name"/></th>
<th>Term: <input class="u_label" readonly value="'.$userinfo['TermID'].'" type="text" name="term"/></th><br>
<th>
<b>KEY: </b>
<a href="../../main/KeyFull.php" target="_blank" class=\'help\' title="Consistently exceeds expected performance">S+</a>/ <a href="KeyFull.php" target="_blank" class=\'help\' title="Performs as expected">S</a>
/ <a href="KeyFull.php" target="_blank" class=\'help\' title="Needs improvement">NI</a>
/ <a href="KeyFull.php" target="_blank" class=\'help\' title="Unsafe or Vastly Deficient">U</a>
/ <a href="KeyFull.php" target="_blank" class=\'help\' title="Not applicable">NA</a>
/ <a href="KeyFull.php" target="_blank" class=\'help\' title="Not Observed by clinical instructor">NO</a>
</th></tr>
<tr>
<th>Faculty:<input class="u_label" readonly value="'.$userinfo['Instructor'].'" type="text" name="faculty"/></th>
<th>Clinical Site(s): <input class="u_label" type="text" name="clinical site"/></th>
<th>- Click on a rating for full explanation</th>
</tr>
<tr>');
$result = getStudentAvailClinicals($currentUser);
echo "<td><label>Available Clinicals: </label></td>";
echo "<td ><select id='clinical_id' name='clinicalids'>";
while($row = $result->fetch_assoc()) {if (isset($clinicalids) && ($clinicalids == $row['ClinicalID'])) {
echo '<option value="'.$row['ClinicalID'].'" selected>'.$row['ClinicalID'].'</option>';
} else {
echo '<option value="'.$row['ClinicalID'].'">'.$row['ClinicalID'].'</option>';
}
}
echo "</select></td>";
echo '<td><input type="submit" name="activate" value="Activate" onclick="reloadForQuestions();"/></td></tr></table>';
}
CSS
#user_label {
text-align: left;
background-color: #FFFFCC;
float: right;
}
.u_label {
float: right;
text-align: center;
}
#keys {
background-color: #CFCFFF;
text-align: center;
}
#keys td:hover {
background-color: white;
}
#clinical_id {
width: 50%;
text-align: center;
}