<?php include_once 'class.pedigree.php'; $pedigree = new Pedigree(); $pedigree->render(); function pr($array) { echo "<pre>"; print_r($array); echo "</pre>"; }
public function __construct($vals = null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array(1 => array('var' => 'true_as_of_secs', 'type' => TType::I32)); } if (is_array($vals)) { if (isset($vals['true_as_of_secs'])) { $this->true_as_of_secs = $vals['true_as_of_secs']; } } }
* but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with LOVD. If not, see <http://www.gnu.org/licenses/>. * *************/ define('ROOT_PATH', './'); require ROOT_PATH . 'inc-init.php'; if ($_AUTH) { // If authorized, check for updates. require ROOT_PATH . 'inc-upgrade.php'; } if (PATH_COUNT == 2 && ctype_digit($_PE[1])) { // URL: /pedigree/00000001 // View pedigree tree of a certain individual. // FIXME; should check for the existence of the correct needed custom columns. $nID = sprintf('%08d', $_PE[1]); define('PAGE_TITLE', 'View pedigree for individual #' . $nID); $_T->printHeader(false); $_T->printTitle(); lovd_includeJS('inc-js-tooltip.php'); // For the mouseover. require ROOT_PATH . 'class/pedigree.php'; $_PED = new Pedigree($nID); // FIXME; call new function to highlight the individual called? $_PED->drawHTML(); $_T->printFooter(); exit; }