$xtpl->assign('CLASS', 'evenListRow');
 $xtpl->assign('FORMBODY', $selectAccountButton . "<slot class='dataLabel'><input class='checkbox' type='checkbox' name='newaccount' onclick='document.forms[\"BusinessCard\"].selectedAccount.value=\"\";document.forms[\"BusinessCard\"].display_account_name.value=\"\";toggleDisplay(\"newaccountdiv\");'>&nbsp;" . $mod_strings['LNK_NEW_ACCOUNT'] . "</slot>&nbsp;<div id='newaccountdiv' style='display:none'>" . $accountForm->getWideFormBody('Accounts', 'Accounts', 'BusinessCard', ''));
 require_once 'modules/Notes/NoteFormBase.php';
 $noteForm = new NoteFormBase();
 $postform = "<div id='accountnotelink'><p><a href='javascript:toggleDisplay(\"accountnote\");'>{$mod_strings['LNK_NEW_NOTE']}</a></p></div>";
 $postform .= '<div id="accountnote" style="display:none">' . $noteForm->getFormBody('AccountNotes', 'Notes', 'BusinessCard', 85) . '</div>';
 $xtpl->assign('POSTFORM', $postform);
 $xtpl->parse("main.headlessform");
 //OPPORTUNITTY
 $xtpl->assign('FORMHEADER', get_form_header($mod_strings['LNK_NEW_OPPORTUNITY'], '', ''));
 require_once 'modules/Opportunities/OpportunityFormBase.php';
 $oppForm = new OpportunityFormBase();
 $xtpl->assign('CLASS', 'evenListRow');
 $xtpl->assign('FORMBODY', "<slot class='dataLabel'><input class='checkbox' type='checkbox' name='newopportunity' onclick='toggleDisplay(\"newoppdiv\");'>&nbsp;" . $mod_strings['LNK_NEW_OPPORTUNITY'] . "</slot><div id='newoppdiv' style='display:none'>" . $oppForm->getWideFormBody('Opportunities', 'Opportunities', 'BusinessCard', '', false));
 require_once 'modules/Notes/NoteFormBase.php';
 $noteForm = new NoteFormBase();
 $postform = "<div id='oppnotelink'><a href='javascript:toggleDisplay(\"oppnote\");'>{$mod_strings['LNK_NEW_NOTE']}</a></div>";
 $postform .= '<div id="oppnote" style="display:none">' . $noteForm->getFormBody('OpportunityNotes', 'Notes', 'BusinessCard', 85) . '</div><br>';
 $xtpl->assign('POSTFORM', $postform);
 $xtpl->parse("main.headlessform");
 //Appointment
 $xtpl->assign('FORMHEADER', $mod_strings['LNK_NEW_APPOINTMENT']);
 require_once 'modules/Calls/CallFormBase.php';
 $callForm = new CallFormBase();
 $xtpl->assign('FORMBODY', "<input class='checkbox' type='checkbox' name='newappointment' onclick='toggleDisplay(\"newappointmentdiv\");'>&nbsp;" . $mod_strings['LNK_NEW_APPOINTMENT'] . "<div id='newappointmentdiv' style='display:none'>" . $callForm->getWideFormBody('Appointments', 'Calls', 85));
 $xtpl->assign('POSTFORM', '');
 $xtpl->parse("main.headlessform");
 $xtpl->parse("main.saveend");
 $xtpl->parse("main.endform");
 $xtpl->parse("main");
 $xtpl->out("main");
/*********************************************************************************
 * The contents of this file are subject to the SugarCRM Public License Version
 * 1.1.3 ("License"); You may not use this file except in compliance with the
 * License. You may obtain a copy of the License at http://www.sugarcrm.com/SPL
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied.  See the License
 * for the specific language governing rights and limitations under the
 * License.
 *
 * All copies of the Covered Code must include on each user interface screen:
 *    (i) the "Powered by SugarCRM" logo and
 *    (ii) the SugarCRM copyright notice
 * in the same form as they appear in the distribution.  See full license for
 * requirements.
 *
 * The Original Code is: SugarCRM Open Source
 * The Initial Developer of the Original Code is SugarCRM, Inc.
 * Portions created by SugarCRM are Copyright (C) 2004-2006 SugarCRM, Inc.;
 * All Rights Reserved.
 * Contributor(s): ______________________________________.
 ********************************************************************************/
/*********************************************************************************
 * Description:  Saves an Account record and then redirects the browser to the
 * defined return URL.
 * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
 * All Rights Reserved.
 * Contributor(s): ______________________________________..
 ********************************************************************************/
require_once 'modules/Notes/NoteFormBase.php';
$noteForm = new NoteFormBase();
$noteForm->handleSave('', true, false);