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