2 /*********************************************************************************
3 * SugarCRM Community Edition is a customer relationship management program developed by
4 * SugarCRM, Inc. Copyright (C) 2004-2012 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 ********************************************************************************/
42 <script type="text/javascript" src="include/javascript/popup_parent_helper.js?v={VERSION_MARK}"></script>
43 <script type="text/javascript" src="modules/Campaigns/WebToLead.js?v={VERSION_MARK}"></script>
51 <form id="WebToLeadCreation" name="WebToLeadCreation" method="POST" action="index.php">
52 <input type="hidden" name="module" value="Campaigns">
53 <input type="hidden" name="record" value="{ID}">
54 <input type="hidden" name="action">
55 <input type="hidden" name="return_module" value="{RETURN_MODULE}">
56 <input type="hidden" name="return_id" value="{RETURN_ID}">
57 <input type="hidden" name="return_action" value="{RETURN_ACTION}">
60 <table width="100%" cellpadding="0" cellspacing="0" border="0">
62 <H1>Web To Lead Form generation for Campaign</H1>
68 <p><b>{MOD.LBL_DRAG_DROP_COLUMNS}</b></p>
76 <table width="555" border="0" cellspacing="0" cellpadding="0">
80 <table align="center" border="0" cellpadding="0" cellspacing="0" width='350'>
81 <tbody><tr><td align="center">
82 {DRAG_DROP_CHOOSER_WEB_TO_LEAD}
83 </td></tr></tbody></table>
88 <div id='webformfields'></div>
93 <table width="595" border="0" cellspacing="0" cellpadding="2">
95 <td align="left"><input id="lead_add_remove_button" type='button' title="{APP.LBL_ADD_ALL_LEAD_FIELDS}"
97 onclick="javascript:dragDropAllFields('{APP.LBL_ADD_ALL_LEAD_FIELDS}','{APP.LBL_REMOVE_ALL_LEAD_FIELDS}');"
98 name="button" value="{APP.LBL_ADD_ALL_LEAD_FIELDS}">
100 <td align="right" style="padding-bottom: 2px;"><input title="{APP.LBL_CANCEL_BUTTON_TITLE}"
101 accessKey="{APP.LBL_CANCEL_BUTTON_KEY}" class="button"
102 onclick="this.form.action.value='{RETURN_ACTION}'; this.form.module.value='{RETURN_MODULE}'; this.form.record.value='{RETURN_ID}'"
103 type="submit" name="button" value="{APP.LBL_CANCEL_BUTTON_LABEL}"> <input id="lead_next_button" type='button'
104 title="{APP.LBL_NEXT_BUTTON_LABEL}" class="button"
105 onclick="javascript:askLeadQ('next','{MOD.LBL_SELECT_REQUIRED_LEAD_FIELDS}','{MOD.LBL_SELECT_LEAD_FIELDS}');" name="button"
106 value="{APP.LBL_NEXT_BUTTON_LABEL}">
116 <div id='lead_queries_Div' style="display: none">
117 <table width="100%" cellpadding="0" cellspacing="0" border="0">
124 <table width="100%" cellpadding="0" cellspacing="0" border="0" class="edit view">
128 <table border="0" cellpadding="0" cellspacing="0" width="100%">
130 <td scope="row" width="20%">{MOD.LBL_DEFINE_LEAD_HEADER}</td>
131 <td width="80%"><input id="web_header" name="web_header" title="Name" size="60"
132 value="{MOD.LBL_LEAD_DEFAULT_HEADER}" type="text"></td>
135 <td scope="row"><slot>{MOD.LBL_DESCRIPTION_LEAD_FORM}</slot></td>
136 <td ><slot><textarea tabindex='1' name='web_description' rows='2' cols='55'>{MOD.LBL_DESCRIPTION_TEXT_LEAD_FORM}</textarea></slot></td>
139 <td scope="row">{MOD.LBL_DEFINE_LEAD_SUBMIT}</td>
140 <td ><input id="web_submit" name="web_submit" title="Name" size="60"
141 value="{MOD.LBL_DEFAULT_LEAD_SUBMIT}" type="text"></td>
144 <td scope="row"><slot>{MOD.LBL_DEFINE_LEAD_POST_URL}</slot></td>
145 <td ><slot><input id="post_url" name="post_url" size="60"
146 disabled='true' value="{WEB_POST_URL}" type="text"></slot> <input
147 id="chk_edit_url" name="chk_edit_url" onclick="editUrl();" class='checkbox' type='checkbox'> <class ="dataLabel" width="10%">{MOD.LBL_EDIT_LEAD_POST_URL}
151 <td scope="row"><slot>{MOD.LBL_DEFINE_LEAD_REDIRECT_URL}</slot></td>
152 <td ><slot><input id="redirect_url" name="redirect_url" size="60"
153 value="{REDIRECT_URL_DEFAULT}" type="text"></slot></td>
157 <td scope="row"><span sugar='slot40'>{MOD.LBL_LEAD_NOTIFY_CAMPAIGN}</span sugar='slot'><span
158 class="required">{APP.LBL_REQUIRED_SYMBOL}</span></td>
159 <td ><span sugar='slot40b'> <input class="sqsEnabled" tabindex="1"
160 autocomplete="off" id='campaign_name' name='campaign_name' type="text" value="{CAMPAIGN_NAME}" /> <input
161 id='campaign_id' name='campaign_id' type="hidden" value="{CAMPAIGN_ID}" /> <input
162 title="{APP.LBL_SELECT_BUTTON_TITLE}" type="button" tabindex='1'
163 class="button" value='{APP.LBL_SELECT_BUTTON_LABEL}' name=btn1
164 onclick='open_popup("Campaigns", 600, 400, "", true, false,{encoded_campaigns_popup_request_data});' /></span sugar='slot'></td>
167 <td scope="row"><span sugar='slot45'>{APP.LBL_ASSIGNED_TO}</span sugar='slot'><span
168 class="required">{APP.LBL_REQUIRED_SYMBOL}</span></td>
169 <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}" />
170 <input title="{APP.LBL_SELECT_BUTTON_TITLE}" type="button" tabindex='1' class="button" value='{APP.LBL_SELECT_BUTTON_LABEL}' name=btn1
171 onclick='open_popup("Users", 600, 400, "", true, false, {encoded_users_popup_request_data});' /></span sugar='slot'>
174 <!-- BEGIN: open_source -->
175 <!-- END: open_source -->
178 <td scope="row"><slot>{MOD.LBL_LEAD_FOOTER}</slot></td>
179 <td ><slot><textarea tabindex='1' name='web_footer' rows='2' cols='55'></textarea></slot></td>
186 <table width="100%" border="0" cellspacing="0" cellpadding="2">
188 <td align="right" style="padding-bottom: 2px;"><input title="{APP.LBL_BACK}"
189 class="button" onclick="askLeadQ('back')" type="button" name="button" value="{APP.LBL_BACK}"> <input
190 title="{APP.LBL_CANCEL_BUTTON_TITLE}" class="button"
191 onclick="this.form.action.value='{RETURN_ACTION}'; this.form.module.value='{RETURN_MODULE}'; this.form.record.value='{RETURN_ID}'"
192 type="submit" name="button" value="{APP.LBL_CANCEL_BUTTON_LABEL}"> <input
193 title="{APP.LBL_GENERATE_WEB_TO_LEAD_FORM}" class="button"
194 onclick="this.form.action.value='GenerateWebToLeadForm';return addGrids('WebToLeadCreation');" type="submit"
195 name="button" value="{APP.LBL_GENERATE_WEB_TO_LEAD_FORM}"></td>
201 <!-- <div id="ddgrid4" class="ygrid-mso" style="width:250px;height:200px;overflow:hidden;">-->