Echoing line withe value comparison disparity
Posted: Wed Sep 17, 2008 11:27 am
See if you can spot what is happening, because I can't spot it. When $Row['Typ'] is 3 or less the following displayes properly, that is the "Sales" and "Service" radio buttons do not display. When that value is four, the radio buttons show, but so does the dratted "Branch: name" display. I have tries various else and bracketing methods to no avail. The heading (type of report) displays properly in all cases.
Any ideas?
Code: Select all
if ($Row['Typ'] == 1) print("Teller Evaluation Report</div>\n");
else if ($Row['Typ'] == 2) print("Receptionist Evaluation Report</div>\n");
else if ($Row['Typ'] == 3) print("FSR Evaluation Report</div>\n");
else print("Telephone Evaluation Report</div>\n");
print("<div class='cbox' style='width:760px; margin-top:8px;'>");
echo "<div class='cright black p14' style='width:215px; text-align:left;'>";
echo "Time: <span class='blue p14lt'>",$Tim,"</span></div>";
echo "<div class='cleft black p14' style='width:290px; text-align:left;'>";
if ($Row['Typ'] > 3)
{ echo "Sales <input type=radio name='Sales' value=0";
if ($Row['StaffCnt'] == 0) echo " checked";
echo " tabindex=1> Service ";
echo "<input type=radio name='Sales' value=1";
if ($Row['StaffCnt'] > 0) echo " checked";
echo " tabindex=2>";
}
if ($Row['Typ'] < 4)
{ echo "Branch: <span class='blue p14 lt'>",$Loc,"</span>";
}
echo "</div>";