function setup_boardmembers() { global $smarty; require_once 'com/tcshl/board/BoardMember.php'; require_once 'com/tcshl/board/BoardMembers.php'; // Build list of board members $BoardMembers = new BoardMembers(); $BoardMembersArray = $BoardMembers->get_BoardMemberArray(0); if (count($BoardMembersArray) > 0) { $boardMemberCount = 0; $smarty->assign('boardMemberID', array()); $smarty->assign('boardMemberName', array()); $smarty->assign('boardMemberFirstName', array()); $smarty->assign('boardMemberLastName', array()); $smarty->assign('boardMemberEmail', array()); $smarty->assign('boardMemberHomePhone', array()); $smarty->assign('boardMemberWorkPhone', array()); $smarty->assign('boardMemberCellPhone', array()); $smarty->assign('boardMemberDuties', array()); foreach ($BoardMembersArray as $BoardMember) { $boardMemberCount++; $smarty->append('boardMemberID', $BoardMember->get_boardMemberID()); $smarty->append('boardMemberName', $BoardMember->get_boardMemberFirstName() . ' ' . $BoardMember->get_boardMemberLastName()); $smarty->append('boardMemberFirstName', $BoardMember->get_boardMemberFirstName()); $smarty->append('boardMemberLastName', $BoardMember->get_boardMemberLastName()); $smarty->append('boardMemberEmail', strToHex($BoardMember->get_boardMemberEmail())); $smarty->append('boardMemberHomePhone', $BoardMember->get_boardMemberHomePhone()); $smarty->append('boardMemberWorkPhone', $BoardMember->get_boardMemberWorkPhone()); $smarty->append('boardMemberCellPhone', $BoardMember->get_boardMemberCellPhone()); $smarty->append('boardMemberDuties', $BoardMember->get_boardMemberDuties()); } $smarty->assign('boardMemberCount', $boardMemberCount); } }
* To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ // Page requirements define('LOGIN_REQUIRED', false); define('PAGE_ACCESS_LEVEL', 0); define('PAGE_TYPE', 'PUBLIC'); // Set for every page require 'engine/common.php'; require_once 'com/tcshl/board/BoardMember.php'; require_once 'com/tcshl/board/BoardMembers.php'; $smarty->assign('div_newboardmember_style', 'display: none'); $smarty->assign('page_name', 'Current League Board'); // Build list of board members $BoardMembers = new BoardMembers(); $BoardMembersArray = $BoardMembers->get_BoardMemberArray(0); if (count($BoardMembersArray) > 0) { $count = 0; $smarty->assign('boardMemberID', array()); $smarty->assign('boardMemberName', array()); $smarty->assign('boardMemberFirstName', array()); $smarty->assign('boardMemberLastName', array()); $smarty->assign('boardMemberEmail', array()); $smarty->assign('boardMemberHomePhone', array()); $smarty->assign('boardMemberWorkPhone', array()); $smarty->assign('boardMemberCellPhone', array()); $smarty->assign('boardMemberDuties', array()); $smarty->assign('boardMemberImageSize', array()); foreach ($BoardMembersArray as $BoardMember) { $count++; $smarty->append('boardMemberID', $BoardMember->get_boardMemberID());