2 /*********************************************************************************
3 * SugarCRM Community Edition is a customer relationship management program developed by
4 * SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
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.
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
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
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.
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.
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 ********************************************************************************/
37 /*********************************************************************************
39 ********************************************************************************/
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>
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}">
62 <table width="100%" cellpadding="0" cellspacing="0" border="0">
64 <H1>Web To Lead Form generation for Campaign</H1>
70 <p><b>{MOD.LBL_DRAG_DROP_COLUMNS}</b></p>
78 <table width="555" border="0" cellspacing="0" cellpadding="0">
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>
90 <div id='webformfields'></div>
95 <table width="595" border="0" cellspacing="0" cellpadding="2">
97 <td align="left"><input id="lead_add_remove_button" type='button' title="{APP.LBL_ADD_ALL_LEAD_FIELDS}"
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}">
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}">
118 <div id='lead_queries_Div' style="display: none">
119 <table width="100%" cellpadding="0" cellspacing="0" border="0">
126 <table width="100%" cellpadding="0" cellspacing="0" border="0" class="edit view">
130 <table border="0" cellpadding="0" cellspacing="0" width="100%">
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>
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>
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>
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}
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>
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>
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'>
176 <!-- BEGIN: open_source -->
177 <!-- END: open_source -->
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>
188 <table width="100%" border="0" cellspacing="0" cellpadding="2">
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>
203 <!-- <div id="ddgrid4" class="ygrid-mso" style="width:250px;height:200px;overflow:hidden;">-->