public function __get($member) { //loads pics on demand switch ($member) { case 'id': return $this->obj->oid; case 'o_datemod': return formatDateMod($this->obj->o_datemod); case 'l_pic0': return $this->getpic(0); case 'l_pic1': return $this->getpic(1); case 'l_pic2': return $this->getpic(2); case 'l_pic3': return $this->getpic(3); case 'l_pic4': return $this->getpic(4); case 'o_fax': return formatphone($this->obj->o_fax); default: try { return is_string($this->obj->{$member}) ? stripslashes($this->obj->{$member}) : $this->obj->{$member}; } catch (Exception $e) { if (DEBUG) { throw $e; } return false; } } }
echo $suid; ?> </a></td> <td><?php echo stripslashes($sfn) . ' ' . stripslashes($sln); ?> <br/><small><?php echo $lld; ?> </small></td> <td><?php echo stripslashes($sema); ?> </td> <td><?php echo formatphone($spho); ?> </td> <td><label><input name="subst_<?php echo $suid; ?> " type="radio" value="1" <?php echo $ssta ? 'checked' : ''; ?> > Active</label> <label><input name="subst_<?php echo $suid; ?> " type="radio" value="2" <?php echo $ssta ? '' : 'checked';