juggernautsei wrote on Saturday, September 11, 2010:
Hi, I have a client that would like to see the words “In” and “Out” next to the patient’s name. How can I add enough space to show more than just the first letters. I have played and messed with the ajax_template.html file with no luck of adding just two spaces. I am thinking to make this change in the code that is around this area:
else {
// some sort of patient appointment
$divTitle .= "\r\n “.htmlspecialchars($fname, ENT_QUOTES).” ".htmlspecialchars($lname, ENT_QUOTES);
$content .= “<span class=‘appointment’>”;
$content .= $dispstarth . ‘:’ . $startm;
if ($event == 1) $content .= “<img src=’$TPL_IMAGE_PATH/repeating8.png’ border=‘0’ style=‘margin:0px 2px 0px 2px;’ title=‘Repeating event’ alt=‘Repeating event’>”;
$content .= htmlspecialchars($event);
//$content .= ‘ ’.htmlspecialchars($event);
if ($patientid) {
$link_title = xl(‘Age’) . ": " . $patient_age . “\n” . xl(‘DOB’) . ": " . $patient_dob . “\n”;
$link_title .= “(” . xl(‘Click to view’) . “)”;
$content .= “<a href=‘javascript:goPid($patientid)’ title=’$link_title’>”;
$content .= “<img src=’$TPL_IMAGE_PATH/user-green.gif’ border=‘0’ title=’$link_title’ alt=‘View Patient’ />”;
if ($catid == 1) $content .= “<strike>”;
$content .= htmlspecialchars($lname);
if ($GLOBALS != 1) {
$content .= “,” . htmlspecialchars($fname);
if ($event && $GLOBALS >= 3) {
$content .= “(” . $event;
if ($event && $GLOBALS >= 4)
$content .= “: <font color=‘green’>” . htmlspecialchars(trim($event)) . “</font>”;
$content .= “)”;
}
}
if ($catid == 1) $content .= “</strike>”;
$content .= “</a>”;
}
else {
// no patient id, just output the category name
$content .= $catname;
}
$content .= “</span>”;
}
$divTitle .= “\n(” . xl(‘double click to edit’) . “)”;
Anybody know where I can make the change in the code to add three spaces between the time and the patient’s name?
Thanks!