]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Campaigns/WebToLeadCreation.html
Release 6.2.0
[Github/sugarcrm.git] / modules / Campaigns / WebToLeadCreation.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  ********************************************************************************/
40 -->
41 <!-- BEGIN: main -->
42
43 <script type="text/javascript" src="include/JSON.js?s={SUGAR_VERSION}&c={JS_CUSTOM_VERSION}"></script>
44 <script type="text/javascript" src="include/javascript/popup_parent_helper.js?s={SUGAR_VERSION}&c={JS_CUSTOM_VERSION}"></script>
45 <script type="text/javascript" src="modules/Campaigns/WebToLead.js"></script>
46 <style>
47         .yui-dt table {
48                 width: 180px;
49         }
50 </style>
51
52 {JAVASCRIPT}
53 <form id="WebToLeadCreation" name="WebToLeadCreation" method="POST" action="index.php">
54     <input type="hidden" name="module" value="Campaigns"> 
55         <input type="hidden" name="record" value="{ID}"> 
56         <input type="hidden" name="action"> 
57         <input type="hidden" name="return_module" value="{RETURN_MODULE}"> 
58         <input type="hidden" name="return_id" value="{RETURN_ID}"> 
59         <input type="hidden" name="return_action" value="{RETURN_ACTION}">
60
61 <div id='grid_Div'>
62 <table width="100%" cellpadding="0" cellspacing="0" border="0">
63         <!--
64       <H1>Web To Lead Form generation for Campaign</H1>
65       -->
66       <tr>
67                  <td>
68                  {TITLE1}
69                 <br>
70                         <p><b>{MOD.LBL_DRAG_DROP_COLUMNS}</b></p>
71                  </td>
72           </tr>
73         <tr>
74                 <td></td>
75         </tr>
76         <tr>
77                 <td>
78                 <table width="555" border="0" cellspacing="0" cellpadding="0">
79                 
80                         <tr>
81                                   <td>
82                                         <table align="center" border="0" cellpadding="0" cellspacing="0" width='350'>
83                             <tbody><tr><td align="center">
84                                     {DRAG_DROP_CHOOSER_WEB_TO_LEAD}
85                             </td></tr></tbody></table>
86                              </td>
87                         </tr>
88                         <tr>
89                                 <td colspan='3'>
90                                   <div id='webformfields'></div>
91                                 </td>
92                         </tr>                                           
93                 </table>                
94         
95         <table width="595" border="0" cellspacing="0" cellpadding="2">
96                 <tr>
97                 <td align="left"><input id="lead_add_remove_button" type='button' title="{APP.LBL_ADD_ALL_LEAD_FIELDS}"
98                         class="button"
99                         onclick="javascript:dragDropAllFields('{APP.LBL_ADD_ALL_LEAD_FIELDS}','{APP.LBL_REMOVE_ALL_LEAD_FIELDS}');"
100                         name="button" value="{APP.LBL_ADD_ALL_LEAD_FIELDS}">
101                 </td>   
102                 <td align="right" style="padding-bottom: 2px;"><input title="{APP.LBL_CANCEL_BUTTON_TITLE}"
103                         accessKey="{APP.LBL_CANCEL_BUTTON_KEY}" class="button"
104                         onclick="this.form.action.value='{RETURN_ACTION}'; this.form.module.value='{RETURN_MODULE}'; this.form.record.value='{RETURN_ID}'"
105                         type="submit" name="button" value="{APP.LBL_CANCEL_BUTTON_LABEL}"> <input id="lead_next_button" type='button'
106                         title="{APP.LBL_NEXT_BUTTON_LABEL}" class="button"
107                         onclick="javascript:askLeadQ('next','{MOD.LBL_SELECT_REQUIRED_LEAD_FIELDS}','{MOD.LBL_SELECT_LEAD_FIELDS}');" name="button"
108                         value="{APP.LBL_NEXT_BUTTON_LABEL}">
109                 </td>
110                 </tr>      
111     </table>
112         </td>
113   </tr>
114 </table>
115 </div>
116
117
118 <div id='lead_queries_Div' style="display: none">
119 <table width="100%" cellpadding="0" cellspacing="0" border="0">     
120     <tr><td>
121             {TITLE2}
122            </td>
123         </tr>
124 </table>        
125
126 <table width="100%" cellpadding="0" cellspacing="0" border="0" class="edit view">
127
128         <tr>
129                 <td>    
130                 <table border="0" cellpadding="0" cellspacing="0" width="100%">
131                         <tr>
132                                 <td scope="row" width="20%">{MOD.LBL_DEFINE_LEAD_HEADER}</td>
133                                 <td  width="80%"><input id="web_header" name="web_header" title="Name" size="60" 
134                                         value="{MOD.LBL_LEAD_DEFAULT_HEADER}" type="text"></td>
135                         </tr>
136                         <tr>
137                                 <td scope="row"><slot>{MOD.LBL_DESCRIPTION_LEAD_FORM}</slot></td>
138                                 <td ><slot><textarea tabindex='1' name='web_description' rows='2' cols='55'>{MOD.LBL_DESCRIPTION_TEXT_LEAD_FORM}</textarea></slot></td>
139                         </tr>
140                         <tr>
141                                 <td scope="row">{MOD.LBL_DEFINE_LEAD_SUBMIT}</td>
142                                 <td ><input id="web_submit" name="web_submit" title="Name" size="60"
143                                         value="{MOD.LBL_DEFAULT_LEAD_SUBMIT}" type="text"></td>
144                         </tr>
145                         <tr>
146                                 <td scope="row"><slot>{MOD.LBL_DEFINE_LEAD_POST_URL}</slot></td>
147                                 <td ><slot><input id="post_url" name="post_url" size="60"
148                                         disabled='true' value="{WEB_POST_URL}" type="text"></slot> <input
149                                         id="chk_edit_url" name="chk_edit_url" onclick="editUrl();" class='checkbox' type='checkbox'> <class ="dataLabel" width="10%">{MOD.LBL_EDIT_LEAD_POST_URL}                               
150                         </tr>
151                         </tr>
152                         <tr>
153                                 <td scope="row"><slot>{MOD.LBL_DEFINE_LEAD_REDIRECT_URL}</slot></td>
154                                 <td ><slot><input id="redirect_url" name="redirect_url" size="60"
155                                          value="{REDIRECT_URL_DEFAULT}" type="text"></slot></td>
156                         </tr>
157
158                         <tr>
159                                 <td scope="row"><span sugar='slot40'>{MOD.LBL_LEAD_NOTIFY_CAMPAIGN}</span sugar='slot'><span
160                                         class="required">{APP.LBL_REQUIRED_SYMBOL}</span></td>
161                                 <td ><span sugar='slot40b'> <input class="sqsEnabled" tabindex="1"
162                                         autocomplete="off" id='campaign_name' name='campaign_name' type="text" value="{CAMPAIGN_NAME}" /> <input
163                                         id='campaign_id' name='campaign_id' type="hidden" value="{CAMPAIGN_ID}" /> <input
164                                         title="{APP.LBL_SELECT_BUTTON_TITLE}" accessKey="{APP.LBL_SELECT_BUTTON_KEY}" type="button" tabindex='1'
165                                         class="button" value='{APP.LBL_SELECT_BUTTON_LABEL}' name=btn1
166                                         onclick='open_popup("Campaigns", 600, 400, "", true, false,{encoded_campaigns_popup_request_data});' /></span sugar='slot'></td>
167                         </tr>
168                         <tr>
169                          <td scope="row"><span sugar='slot45'>{APP.LBL_ASSIGNED_TO}</span sugar='slot'><span
170                                         class="required">{APP.LBL_REQUIRED_SYMBOL}</span></td>
171                          <td  ><span sugar='slot45b'><input class="sqsEnabled" tabindex="1" autocomplete="off" id="assigned_user_name" name='assigned_user_name' type="text" value="{ASSIGNED_USER_NAME}"><input id='assigned_user_id' name='assigned_user_id' type="hidden" value="{ASSIGNED_USER_ID}" />
172                          <input title="{APP.LBL_SELECT_BUTTON_TITLE}" accessKey="{APP.LBL_SELECT_BUTTON_KEY}" type="button" tabindex='1' class="button" value='{APP.LBL_SELECT_BUTTON_LABEL}' name=btn1
173                                   onclick='open_popup("Users", 600, 400, "", true, false, {encoded_users_popup_request_data});' /></span sugar='slot'>
174                                 </td>
175             </tr>
176         <!-- BEGIN: open_source -->
177         <!-- END: open_source -->
178         
179                         <tr>
180                                 <td scope="row"><slot>{MOD.LBL_LEAD_FOOTER}</slot></td>
181                                 <td ><slot><textarea tabindex='1' name='web_footer' rows='2' cols='55'></textarea></slot></td>
182                         </tr>
183
184                 </table>
185                 </td>
186         </tr>
187 </table>
188 <table  width="100%" border="0" cellspacing="0" cellpadding="2">
189         <tr>
190                 <td align="right" style="padding-bottom: 2px;"><input title="{APP.LBL_BACK}" accessKey="{APP.LBL_BACK}"
191                         class="button" onclick="askLeadQ('back')" type="button" name="button" value="{APP.LBL_BACK}"> <input
192                         title="{APP.LBL_CANCEL_BUTTON_TITLE}" accessKey="{APP.LBL_CANCEL_BUTTON_KEY}" class="button"
193                         onclick="this.form.action.value='{RETURN_ACTION}'; this.form.module.value='{RETURN_MODULE}'; this.form.record.value='{RETURN_ID}'"
194                         type="submit" name="button" value="{APP.LBL_CANCEL_BUTTON_LABEL}"> <input
195                         title="{APP.LBL_GENERATE_WEB_TO_LEAD_FORM}" class="button"
196                         onclick="this.form.action.value='GenerateWebToLeadForm';return addGrids('WebToLeadCreation');" type="submit"
197                         name="button" value="{APP.LBL_GENERATE_WEB_TO_LEAD_FORM}"></td>         
198         </tr>
199 </table>
200 </div>
201 </form>
202
203 <!-- <div id="ddgrid4" class="ygrid-mso" style="width:250px;height:200px;overflow:hidden;">-->
204 <!-- END: main -->