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