\n"; $button .= "\n"; if ($currentModule == 'Accounts') $button .= "\n\n"; if ($currentModule == 'Cases') $button .= "\n\n\n"; $button .= "\n"; $button .= "\n"; $button .= "\n"; $button .= "\n"; $button .= " "; $button .= "\n"; if ($currentModule == 'Accounts') $button .= "\n"; else $button .= "\n"; $button .= "
\n"; // Stick the form header out there. echo get_form_header($current_module_strings['LBL_MODULE_NAME'], $button, false); $xtpl=new XTemplate ('modules/Contacts/SubPanelViewCase.html'); $xtpl->assign("MOD", $current_module_strings); $xtpl->assign("APP", $app_strings); $xtpl->assign("IMAGE_PATH", $image_path); $xtpl->assign("RETURN_URL", "&return_module=Cases&return_action=DetailView&return_id=$focus->id"); $oddRow = true; foreach($focus_list as $contact) { $contact_fields = array( 'YAHOO_ID' => $contact->yahoo_id, 'FIRST_NAME' => $contact->first_name, 'LAST_NAME' => $contact->last_name, 'ID' => $contact->id, 'EMAIL' => $contact->email1, 'PHONE_WORK' => $contact->phone_work, 'CASE_ROLE' => $contact->case_role, 'CASE_REL_ID' => $contact->case_rel_id ); $xtpl->assign("CONTACT", $contact_fields); if($oddRow) { //todo move to themes $xtpl->assign("ROW_COLOR", 'oddListRow'); } else { //todo move to themes $xtpl->assign("ROW_COLOR", 'evenListRow'); } $oddRow = !$oddRow; // If there is a YMId, parse that row if(isset($contact->yahoo_id) && $contact->yahoo_id != '') $xtpl->parse("main.row.yahoo_id"); else $xtpl->parse("main.row.no_yahoo_id"); $xtpl->parse("main.row"); // Put the rows in. } $xtpl->parse("main"); $xtpl->out("main"); // Stick on the form footer echo get_form_footer(); ?>