]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Contacts/BusinessCard.html
Release 6.5.0
[Github/sugarcrm.git] / modules / Contacts / BusinessCard.html
1 <!--
2 /*********************************************************************************
3  * SugarCRM Community Edition is a customer relationship management program developed by
4  * SugarCRM, Inc. Copyright (C) 2004-2012 SugarCRM Inc.
5  * 
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.
12  * 
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
16  * details.
17  * 
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
21  * 02110-1301 USA.
22  * 
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.
25  * 
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.
29  * 
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  ********************************************************************************/
36
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  ********************************************************************************/
40 -->
41 <!-- BEGIN: main -->
42 <!-- BEGIN: error -->
43 <span color="red">{ERROR}</span>
44 <!-- END: error -->
45
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 -->
53         <script>
54                 function toggleDisplay(id){
55                 
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';
60                                 }
61                                                 
62                         }else{
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';
66                                 }
67                         }
68                 }
69
70 function isChecked(field){
71
72         return eval("document.forms['BusinessCard']."+field+".checked");
73 }
74 function checkOpportunity(){
75                 if(!isChecked('newopportunity')){
76                         return true;
77                 }
78                 
79                 
80                 removeFromValidate('BusinessCard', 'Opportunitiesaccount_name');
81                 if(validate_form('BusinessCard', 'Opportunities')){
82
83                         if(this.document.forms['BusinessCard'].selectedAccount.value != ''){
84                                 return true;
85                         }
86                         if(!isChecked('newaccount')){
87                                 alert('{OPPNEEDSACCOUNT}');
88                                 return false;                                   
89                         }
90                         return true;
91                 }
92                 return false;
93
94 }
95
96 </script>
97 <!-- BEGIN: savebegin -->
98         
99 <p>     <table  width="100%" cellspacing="0" cellpadding="0" border="0">
100         <tr>
101             <td align="left">
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}  " >
104         </td>
105         </tr>
106         </table>
107         <!-- END: savebegin -->
108 <p><table class='{TABLECLASS}' cellpadding="0" cellspacing="0" width="100%" border="0" >
109         <tr><td>
110         <table cellpadding="0" cellspacing="0" width="100%" border="0" >
111
112 <!-- BEGIN: row -->
113 <tr><td>{ROWVALUE} </td></tr>
114 <!-- END: row -->
115         
116 <!-- BEGIN: form -->
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>
119 <!-- END: form -->
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>&nbsp;</td></tr>
124 <!-- END: formnoborder -->
125         </table>
126         </td>
127         </tr>
128         </table>
129
130 <p>     <table class='{TABLECLASS}' cellpadding="0" cellspacing="0" width="100%" border="0" >
131         <tr><td>
132         <table cellpadding="0" cellspacing="0" width="100%" border="0" >
133 <!-- BEGIN: hrrow -->
134         <td class="{CLASS}"><h4 class="{CLASS}">{HEADER}</h4></td>
135 <!-- END: hrrow -->
136 <!-- BEGIN: headlessform -->
137         <tr><td  valign='top' align='left'  border='0'>{FORMBODY}{FORMFOOTER}{POSTFORM}</td></tr>
138 <!-- END: headlessform -->
139         </table>
140         </td>
141         </tr>
142         </table>
143         
144         
145         
146         <!-- BEGIN: saveend -->
147         
148 <p>     <table  width="100%" cellspacing="0" cellpadding="0" border="0">
149         <tr>
150             <td align="left">
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}  " >
153         </td>
154         </tr>
155         </table>
156         <!-- END: saveend -->
157         <!-- BEGIN: endform -->
158         </form>
159         <!-- END: endform -->
160         
161 <script type="text/javascript">
162 enableQS(false);
163 </script>
164 <!-- END: main -->