]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Accounts/Popup_picker.html
Release 6.2.0
[Github/sugarcrm.git] / modules / Accounts / Popup_picker.html
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 <!-- BEGIN: main -->
40 <!-- BEGIN: SearchHeader -->
41 <script type="text/javascript" src="include/JSON.js?s={SUGAR_VERSION}&c={JS_CUSTOM_VERSION}"></script>
42 <script type="text/javascript" src="include/javascript/popup_helper.js?s={SUGAR_VERSION}&c={JS_CUSTOM_VERSION}"></script>
43
44
45 <table cellpadding="0" cellspacing="0" border="0" width="100%" class="edit view">
46 <tr>
47 <td>
48 <form action="index.php" method="post" name="popup_query_form" id="popup_query_form">
49 <table width="100%" border="0" cellspacing="0" cellpadding="0">
50 <tr>
51 <td scope="row" nowrap="nowrap">{MOD.LBL_ACCOUNT_NAME}</td>
52 <td  nowrap="nowrap"><input type="text" size="20" name="name"  value="{NAME}" /></td>
53 <td scope="row" nowrap="nowrap">{MOD.LBL_CITY}</td>
54 <td  nowrap="nowrap"><input type="text" size="20" name="billing_address_city"  value="{BILLING_ADDRESS_CITY}" /></td>
55 </tr>
56 <tr>
57 <td scope="row" nowrap="nowrap">{MOD.LBL_PHONE_OFFICE}</td>
58 <td  nowrap="nowrap"><input type="text" size="20" name="phone_office"  value="{PHONE_OFFICE}" /></td>
59 <td>
60 </td>
61 <td width="20%" align="right">
62 <input type="hidden" name="module" value="{MODULE_NAME}" />
63 <input type="hidden" name="action" value="Popup" />
64 <input type="hidden" name="query" value="true" />
65 <input type="hidden" name="func_name" value="" />
66 <input type="hidden" name="request_data" value="{request_data}" />
67 <input type="hidden" name="populate_parent" value="false" />
68 <input type="hidden" name="hide_clear_button" value="true" />
69 <input type="hidden" name="record_id" value="" />
70 <input type="submit" name="button" class="button"
71         title="{APP.LBL_SEARCH_BUTTON_TITLE}"
72         accessKey="{APP.LBL_SEARCH_BUTTON_KEY}"
73         value="{APP.LBL_SEARCH_BUTTON_LABEL}" />
74 <input type="hidden" name="mode" value="{MULTI_SELECT}" />
75 <input type="hidden" name="create" value="{CREATE}">
76 </td>
77 </tr>
78 </table>
79 </form>
80 </td>
81 </tr>
82 </table>
83
84 <script type="text/javascript">
85 <!--
86 /* initialize the popup request from the parent */
87
88 if(window.document.forms['popup_query_form'].request_data.value == "")
89 {
90         window.document.forms['popup_query_form'].request_data.value
91                 = JSON.stringify(window.opener.get_popup_request_data());
92 }
93 -->
94 </script>
95
96 <p>
97 <div id='addformlink'>{CREATEBUTTON}</div>
98 <div id='addform' style='display:none;position:relative;z-index:2;left:0px;top:0px;'>
99 <form name="AccountSave" onsubmit="return check_form('AccountSave');" 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="module" value="{MODULE_NAME}" />
107 <input type="hidden" name="action" value="Popup" />
108 <input type="hidden" name="doAction" value="save" />
109 <input type="hidden" name="query" value="true" />
110 {ADDFORM}
111 </td></tr>
112 </table></td></tr></table>
113 </form>
114 </div>
115 </p>
116
117 <!-- END: SearchHeader -->
118 <table width="100%" border="0" cellspacing="0" cellpadding="0" class="list view">
119 <!-- BEGIN: list_nav_row -->
120 {PAGINATION}
121 <!-- END: list_nav_row -->
122 <tr height="20">
123 <th scope="col" nowrap="nowrap">{CHECKALL}</th>
124 <th scope="col" width="45%"><a href="{ORDER_BY}name">{MOD.LBL_LIST_ACCOUNT_NAME}{arrow_start}{name_arrow}{arrow_end}</a></th>
125 <th scope="col" width="35%"><a href="{ORDER_BY}BILLING_ADDRESS_CITY">{MOD.LBL_LIST_CITY}{arrow_start}{BILLING_ADDRESS_CITY_arrow}{arrow_end}</a></th>
126 <th scope="col" width="30%"><a href="{ORDER_BY}PHONE_OFFICE">{MOD.LBL_PHONE_OFFICE}{arrow_start}{PHONE_OFFICE_arrow}{arrow_end}</a></th>
127 </tr>
128 <!-- BEGIN: row -->
129 <tr height="20" class="{ROW_COLOR}S1">
130 <td valign='top'>{PREROW}</td>
131 <td scope='row' valign="top"><{TAG_TYPE} href="#" onclick="send_back('Accounts','{ACCOUNT.ID}');" >{ACCOUNT.NAME}</{TAG_TYPE}></td>
132 <td valign="top">{ACCOUNT.CITY}</td>
133 <td valign="top">{ACCOUNT.PHONE_OFFICE}</td>
134 </tr>
135
136 <!-- END: row -->
137 {PAGINATION}
138 </table>
139 {ASSOCIATED_JAVASCRIPT_DATA}
140 <!-- END: main -->