2 /*********************************************************************************
3 * SugarCRM Community Edition is a customer relationship management program developed by
4 * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
6 * This program is free software; you can redistribute it and/or modify it under
7 * the terms of the GNU Affero General Public License version 3 as published by the
8 * Free Software Foundation with the addition of the following permission added
9 * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
10 * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
11 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
13 * This program is distributed in the hope that it will be useful, but WITHOUT
14 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15 * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
18 * You should have received a copy of the GNU Affero General Public License along with
19 * this program; if not, see http://www.gnu.org/licenses or write to the Free
20 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23 * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
24 * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
26 * The interactive user interfaces in modified source and object code versions
27 * of this program must display Appropriate Legal Notices, as required under
28 * Section 5 of the GNU Affero General Public License version 3.
30 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
31 * these Appropriate Legal Notices must retain the display of the "Powered by
32 * SugarCRM" logo. If the display of the logo is not reasonably feasible for
33 * technical reasons, the Appropriate Legal Notices must display the words
34 * "Powered by SugarCRM".
35 ********************************************************************************/
37 /*********************************************************************************
38 * {APP.LBL_CURRENCY_SYM}Header: /cvsroot/sugarcrm/sugarcrm/modules/Contacts/EditView.html,v 1.22 2004/07/16 04:04:42 sugarclint Exp {APP.LBL_CURRENCY_SYM}
39 ********************************************************************************/
43 <span color="red">{ERROR}</span>
46 <!-- BEGIN: startform -->
47 <form name="BusinessCard" id="BusinessCard" action='index.php' method='post'>
48 <input type="hidden" name="module" value="Contacts">
49 <input type="hidden" name="action" value="BusinessCard">
50 <input type="hidden" name="handle" value="Save">
51 <input type="hidden" name="dup_checked" value="true">
52 <!-- END: startform -->
54 function toggleDisplay(id){
56 if(this.document.getElementById( id).style.display=='none'){
57 this.document.getElementById( id).style.display='inline'
58 if(this.document.getElementById(id+"link") != undefined){
59 this.document.getElementById(id+"link").style.display='none';
63 this.document.getElementById( id).style.display='none'
64 if(this.document.getElementById(id+"link") != undefined){
65 this.document.getElementById(id+"link").style.display='inline';
70 function isChecked(field){
72 return eval("document.forms['BusinessCard']."+field+".checked");
74 function checkOpportunity(){
75 if(!isChecked('newopportunity')){
80 removeFromValidate('BusinessCard', 'Opportunitiesaccount_name');
81 if(validate_form('BusinessCard', 'Opportunities')){
83 if(this.document.forms['BusinessCard'].selectedAccount.value != ''){
86 if(!isChecked('newaccount')){
87 alert('{OPPNEEDSACCOUNT}');
97 <!-- BEGIN: savebegin -->
99 <p> <table width="100%" cellspacing="0" cellpadding="0" border="0">
102 <input title='{APP.LBL_SAVE_BUTTON_TITLE}' onclick="return (validate_form('BusinessCard', 'Contacts') && validate_form('BusinessCard', 'display_account') && (!isChecked('newcontactnote') || validate_form('BusinessCard', 'ContactNotes')) && (!isChecked('newaccount') || validate_form('BusinessCard', 'Accounts')) {CHECKOPPORTUNITY} && (!isChecked('newappointment') || validate_form('BusinessCard', 'Appointments')))" accessKey='{APP.LBL_SAVE_BUTTON_KEY}' class='button' type='submit' name='button' value=' {APP.LBL_SAVE_BUTTON_LABEL} ' >
103 <input title="{APP.LBL_CANCEL_BUTTON_TITLE}" onclick="document.location.href='index.php?module=Contacts&action=index'" class="button" type="button" name="cancel" value=" {APP.LBL_CANCEL_BUTTON_LABEL} " >
107 <!-- END: savebegin -->
108 <p><table class='{TABLECLASS}' cellpadding="0" cellspacing="0" width="100%" border="0" >
110 <table cellpadding="0" cellspacing="0" width="100%" border="0" >
113 <tr><td>{ROWVALUE} </td></tr>
117 <tr ><td valign='top' align='left' class="{CLASS}"><h4 class="{CLASS}">{FORMHEADER}</h4></td></tr>
118 <tr ><td valign='top' align='left'>{FORMBODY}{FORMFOOTER}{POSTFORM}</td></tr>
120 <!-- BEGIN: formnoborder -->
121 <tr > <td valign='top' align='left' colspan='3' border='0'>{FORMHEADER}</td></tr>
122 <tr ><td class='{CLASS}' valign='top' align='left' colspan='1' >{FORMBODY}{FORMFOOTER}{POSTFORM}</td></tr>
123 <tr ><td valign='top' align='left' colspan='3' border='0'><td> </td></tr>
124 <!-- END: formnoborder -->
130 <p> <table class='{TABLECLASS}' cellpadding="0" cellspacing="0" width="100%" border="0" >
132 <table cellpadding="0" cellspacing="0" width="100%" border="0" >
133 <!-- BEGIN: hrrow -->
134 <td class="{CLASS}"><h4 class="{CLASS}">{HEADER}</h4></td>
136 <!-- BEGIN: headlessform -->
137 <tr><td valign='top' align='left' border='0'>{FORMBODY}{FORMFOOTER}{POSTFORM}</td></tr>
138 <!-- END: headlessform -->
146 <!-- BEGIN: saveend -->
148 <p> <table width="100%" cellspacing="0" cellpadding="0" border="0">
151 <input title='{APP.LBL_SAVE_BUTTON_TITLE}' onclick="return (validate_form('BusinessCard', 'Contacts') && validate_form('BusinessCard', 'display_account') && (!isChecked('newcontactnote') || validate_form('BusinessCard', 'ContactNotes')) && (!isChecked('newaccount') || validate_form('BusinessCard', 'Accounts')) {CHECKOPPORTUNITY} && (!isChecked('newappointment') || validate_form('BusinessCard', 'Appointments')))" class='button' type='submit' name='button' value=' {APP.LBL_SAVE_BUTTON_LABEL} ' >
152 <input title="{APP.LBL_CANCEL_BUTTON_TITLE}" onclick="document.location.href='index.php?module=Contacts&action=index'" class="button" type="button" name="cancel" value=" {APP.LBL_CANCEL_BUTTON_LABEL} " >
156 <!-- END: saveend -->
157 <!-- BEGIN: endform -->
159 <!-- END: endform -->
161 <script type="text/javascript">