]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - include/Popups/tpls/header.tpl
Release 6.4.0
[Github/sugarcrm.git] / include / Popups / tpls / header.tpl
1 {*
2 /*********************************************************************************
3  * SugarCRM Community Edition is a customer relationship management program developed by
4  * SugarCRM, Inc. Copyright (C) 2004-2011 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
39 <script type="text/javascript" src="{sugar_getjspath file='include/javascript/sugar_3.js'}"></script>
40 <script type="text/javascript" src="{sugar_getjspath file='include/javascript/popup_helper.js'}"></script>
41 <script type='text/javascript' src="{sugar_getjspath file='cache/include/javascript/sugar_grp_overlib.js'}"></script>
42 <script type="text/javascript">
43         {$ASSOCIATED_JAVASCRIPT_DATA}
44         
45 {literal}
46 function clearAll() {
47    for(i=0; i < document.popup_query_form.length; i++) {
48        if(/select/i.test(document.popup_query_form.elements[i].type)) {
49           for(x=0; x < document.popup_query_form.elements[i].options.length; x++) {
50              document.popup_query_form.elements[i].options[x].removeAttribute('selected');
51           }
52        }
53    }
54 }       
55 {/literal}      
56 </script>
57 {{if isset($formData)}}
58 {$SEARCH_FORM_HEADER}
59 <table cellpadding="0" cellspacing="0" border="0" width="100%" class="edit view">
60 <tr>
61 <td>
62 <form action="index.php" method="post" name="popup_query_form" id="popup_query_form">
63 <table width="100%" cellpadding="0" cellspacing="0" border="0">
64 <tr><td>
65 {$searchForm}
66 </td></tr>
67 <tr>
68 <td>
69 <input type="hidden" name="module" value="{$module}" />
70 <input type="hidden" name="action" value="Popup" />
71 <input type="hidden" name="query" value="true" />
72 <input type="hidden" name="func_name" value="" />
73 <input type="hidden" name="request_data" value="{$request_data}" />
74 <input type="hidden" name="populate_parent" value="false" />
75 <input type="hidden" name="hide_clear_button" value="true" />
76 <input type="hidden" name="record_id" value="" />
77 {$MODE}
78 <input type="submit" name="button" class="button" id="search_form_submit"
79         title="{$APP.LBL_SEARCH_BUTTON_TITLE}"
80         accessKey="{$APP.LBL_SEARCH_BUTTON_KEY}"
81         value="{$APP.LBL_SEARCH_BUTTON_LABEL}" />
82 <input type="reset" onclick="SUGAR.searchForm.clear_form(this.form); return false;" class="button" id="search_form_clear"
83         title="{$APP.LBL_CLEAR_BUTTON_TITLE}"
84         accessKey="{$APP.LBL_CLEAR_BUTTON_KEY}"
85         value="{$APP.LBL_CLEAR_BUTTON_LABEL}"/>
86 </td>
87 <td align='right'></td>
88 </tr>
89 </table>
90 </form>
91 </td>
92 </tr>
93 </table>
94 {{/if}}
95 {{if isset($ADDFORM)}}
96 <p>
97 {{if isset($popupMeta)}}
98 <div id='addformlink'>
99 <input type="button" id="showAdd" name="showAdd" class="button" value="{$popupMeta.create.createButton}" onclick="toggleDisplay('addform');" />
100 </div>
101 {{/if}}
102 <div id='addform' style='display:none;position:relative;z-index:2;left:0px;top:0px;'>
103 <form name="form_QuickCreate_{$module}" id="form_QuickCreate_{$module}" {*onsubmit="return check_form('form_popupQuickCreate{$module}');"*} method="post" action="index.php">
104 {$ADDFORMHEADER}
105 <table cellpadding="0" cellspacing="0" border="0" width="100%" class="edit view">
106 <tr>
107 <td>
108 <table width="100%" border="0" cellspacing="0" cellpadding="0">
109 <tr><td>
110 <input type="hidden" name="doAction" value="save" />
111 <input type="hidden" name="query" value="true" />
112 {$ADDFORM}
113 </td></tr>
114 </table></td></tr></table>
115 </form>
116 </div>
117 </p>
118 {{/if}}
119 {{if $prerow}}
120         <form action="index.php" method="post" name="MassUpdate" id="MassUpdate">
121         {$MODE}
122 <input type="hidden" name="mu" value="false" />
123 <input type='hidden' name='massupdate' value='true' />
124 {$massUpdateData}
125 <input type='hidden' name='Leads_LEAD_offset' value=''><input type='hidden' name='saved_associated_data' value=''><input type='hidden' name='module' value='{$module}'><input type='hidden' name='action' value='Popup'><input type='hidden' name='return_module' value='{$module}'><input type='hidden' name='return_action' value='Popup'><input type='hidden' name='hide_clear_button' value='true'><input type='hidden' name='current_query_by_page' value='{$current_query}'>
126         
127         {$multiSelectData}
128         <input class="button" type="button" value='{$APP.LBL_SELECT_BUTTON_LABEL}' onclick="send_back_selected('{$module}',document.MassUpdate,'mass[]','{$APP.ERR_NOTHING_SELECTED}');">
129 {{/if}}