<table cellspacing="5px" cellpadding="0"> <tr><td> <?php if (intval($r['status']) < 2) { $ls = ""; } else { $cs = EmpGetCStatus($r['dcid']); $dd = diffDay($cs['date2']); $dr = MstrGetReminder("status", $cs['status']); $dc = $dd <= $dr ? ";color:#ff0000;font-weight:bold" : ""; $ls = "<div style=\"color:#646464;padding-top:4px;font:10px Verdana,Tahoma" . $dc . "\">Ends at: " . fstgl($cs['date2']) . "</span></div>"; } ?> <button id="xsumfbtn1" class="pfnice" style="position:relative;overflow:hidden" onclick="switch_tab(0);E('pfb_0').scrollIntoView(true);pf_status('af')" <?php echo $r['status'] == 0 ? "title=\"" . $r['fname'] . " is currently have no status. Click to add status.\"" : ""; ?> > <div id="sumfbtn1" style="width:170px;height:45px;position:absolute;top:<?php echo $r['status'] == 0 ? "-45" : "0"; ?> px"> <table cellspacing="0" cellpadding="0"><tr height="45px"><td style="padding-left:6px"> <table class="stable" cellspacing="0" cellpadding="0"><tr <?php echo $r['status'] == '1' ? "" : "valign=\"top\""; ?> > <td width="24px"><img src="<?php echo IMGR; ?> iuser.png" style="margin-top:2px"/></td> <td id="sumf0"><span style="color:#008000"><b><?php
} else { $pdf->SetFont('dejavusans', 'B', 9, '', true); $pdf->MultiCell($dcPageW, 0, "Family Information", 0, 'L', 0, 1, '', '', true); $pdf->SetFont('dejavusans', '', 9, '', true); dc_YDown(1); $th = array('Relation', 'Name', 'Address', 'Education', 'Birth', 'job'); $tw = array(20, 35, 0, 25, 25, 20); $pdf->setCellPaddings(0.5, 0.5, 0.5, 0.5); dc_tableHead($th, $tw); while ($f = dbFA($q)) { $i = 0; $pdf->MultiCell($tw[$i++], 0, $mstr_family[$f['family']], 0, 'L', 0, 0, '', '', true); $pdf->MultiCell($tw[$i++], 0, $f['name'], 0, 'L', 0, 0, '', '', true); $pdf->MultiCell($tw[$i++], 0, $f['address'], 0, 'L', 0, 0, '', '', true); $pdf->MultiCell($tw[$i++], 0, $f['education'], 0, 'L', 0, 0, '', '', true); $pdf->MultiCell($tw[$i++], 0, fstgl($f['birthdate']), 0, 'L', 0, 0, '', '', true); $pdf->MultiCell($tw[$i++], 0, $f['job'], 0, 'L', 0, 0, '', '', true); $pdf->Ln(); } $pdf->setCellPaddings(0, 0, 0, 0); $pdf->Ln(); } } if ($dps[dp_Educationalhistory] == '1') { // Education Information ** empid university year title field score $q = dbSel("*", "emp_education", "W/empid='{$dcid}'"); if (mysql_num_rows($q) == 0) { $pdf->SetFont('dejavusans', 'B', 9, '', true); $pdf->MultiCell($dcPageW, 0, "Education History: N/A", 0, 'L', 0, 1, '', '', true); $pdf->Ln(); } else {