You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
126 lines
5.5 KiB
126 lines
5.5 KiB
4 months ago
|
<!--*********************************************************************************
|
||
|
** The contents of this file are subject to the vtiger CRM Public License Version 1.0
|
||
|
* ("License"); You may not use this file except in compliance with the License
|
||
|
* The Original Code is: vtiger CRM Open Source
|
||
|
* The Initial Developer of the Original Code is vtiger.
|
||
|
* Portions created by vtiger are Copyright (C) vtiger.
|
||
|
* All Rights Reserved.
|
||
|
*
|
||
|
********************************************************************************/
|
||
|
-->
|
||
|
<!-- BEGIN: main -->
|
||
|
<link rel="stylesheet" type="text/css" media="all" href="jscalendar/calendar-win2k-cold-1.css">
|
||
|
<script type="text/javascript" src="jscalendar/calendar.js"></script>
|
||
|
<script type="text/javascript" src="jscalendar/lang/calendar-{CALENDAR_LANG}.js"></script>
|
||
|
<script type="text/javascript" src="jscalendar/calendar-setup.js"></script>
|
||
|
<form name="ConvertLead" method="POST" action="index.php">
|
||
|
<input type="hidden" name="module" value="Leads">
|
||
|
<input type="hidden" name="record" value="{ID}">
|
||
|
<input type="hidden" name="action">
|
||
|
<input type="hidden" name="current_user_id" value="{CURRENT_USER_ID}">
|
||
|
<table width="100%" cellpadding="2" cellspacing="0" border="0">
|
||
|
<tr>
|
||
|
<td vAlign="middle" align="left"><IMG src="{IMAGE_PATH}Leads.gif" border="0"></td>
|
||
|
<td class="moduleTitle" vAlign="middle" align="left" noWrap width="100%" height="20">{MOD.LBL_CONVERT_LEAD}
|
||
|
{FIRST_NAME} {LAST_NAME}</td>
|
||
|
<td nowrap class='bodySmall' align='right'>[ <A href='http://www.vtiger.com/products/crm/document.html' target='_blank'>{APP.LNK_HELP}</A>
|
||
|
]</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td colspan="4"><div class="hline"><img height='1' src='include/images/blank.gif'></div></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<br>
|
||
|
<div align="right" style="width:80%"><font class="required">{APP.LBL_REQUIRED_SYMBOL}</font>{APP.NTC_REQUIRED}</div>
|
||
|
<table width="80%" border="0" cellspacing="0" cellpadding="0" class="formOuterBorder">
|
||
|
<tr>
|
||
|
<td> <table width="100%" border="0" cellspacing="1" cellpadding="0">
|
||
|
<tr>
|
||
|
<th align="left" class="formSecHeader" colspan="4">{MOD.LBL_CONVERT_LEAD_INFORMATION}</th>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="20%" class="dataLabel">{APP.LBL_ASSIGNED_TO}</td>
|
||
|
<td width="30%"><select name="assigned_user_id">{ASSIGNED_USER_OPTIONS}
|
||
|
</select></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="20%" class="dataLabel">{MOD.LBL_ACCOUNT_NAME}</td>
|
||
|
<td width="30%"><input name='account_name' value='{ACCOUNT_NAME}' readonly></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="20%" class="dataLabel"> </td>
|
||
|
<td width="30%"><input name='createpotential' type="checkbox" onclick="togglePotFields(ConvertLead)" tabindex='2' {CREATE_POTENTIAL}>
|
||
|
{MOD.LBL_DO_NOT_CREATE_NEW_POTENTIAL}</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="20%" class="dataLabel">{MOD.LBL_POTENTIAL_NAME}</td>
|
||
|
<td width="30%"><input name='potential_name' value='{POTENTIAL_NAME}' tabindex='3'></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="20%" class="dataLabel"><font color="red">*</font>{MOD.LBL_POTENTIAL_CLOSE_DATE}</td>
|
||
|
<!--td width="30%"><input name='closedate' type="text" tabindex='4' size='10' maxlength='10'> <font size="1"><em>{APP.NTC_DATE_FORMAT}</em></font></td-->
|
||
|
<td width="30%"><input name='closedate' id='jscal_field' type="text" tabindex='4' size='10' maxlength='10' value="{DATE_CLOSED}">
|
||
|
<img src="themes/{THEME}/images/calendar.gif" id="jscal_trigger">
|
||
|
<font size=1><em old="(yyyy-mm-dd)">({DATEFORMAT})</em></font></td>
|
||
|
</tr>
|
||
|
</table></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<br>
|
||
|
<table width="80%" cellpadding="0" cellspacing="0" border="0">
|
||
|
<tr>
|
||
|
<td><div align="center">
|
||
|
<input title="{APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{APP.LBL_SAVE_BUTTON_KEY}" class="button" onclick="this.form.action.value='LeadConvertToEntities'; return verify_data(ConvertLead)" type="submit" name="button" value=" {APP.LBL_SAVE_BUTTON_LABEL} " >
|
||
|
<input title="{APP.LBL_CANCEL_BUTTON_TITLE}" accessKey="{APP.LBL_CANCEL_BUTTON_KEY}" class="button" onclick="this.form.action.value='{RETURN_ACTION}'; this.form.module.value='{RETURN_MODULE}'; this.form.record.value='{RETURN_ID}'" type="submit" name="button" value=" {APP.LBL_CANCEL_BUTTON_LABEL} ">
|
||
|
</div></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</form>
|
||
|
<script type="text/javascript">
|
||
|
Calendar.setup ({
|
||
|
inputField : "jscal_field", ifFormat : "{CALENDAR_DATEFORMAT}", showsTime : false, button : "jscal_trigger", singleClick : true, step : 1
|
||
|
});
|
||
|
</script>
|
||
|
{JAVASCRIPT}
|
||
|
<script type="text/javascript" language="Javascript" src="include/general.js"></script>
|
||
|
<script type="text/javascript" language="Javascript">
|
||
|
|
||
|
function verify_data(form) {
|
||
|
if(! form.createpotential.checked == true)
|
||
|
{
|
||
|
if (form.potential_name.value == "")
|
||
|
{
|
||
|
alert("Opportunity Name field cannot be empty");
|
||
|
return false;
|
||
|
}
|
||
|
if (form.closedate.value == "")
|
||
|
{
|
||
|
alert("Close Date field cannot be empty");
|
||
|
return false;
|
||
|
}
|
||
|
return dateValidate('closedate','Potential Close Date','GECD');
|
||
|
|
||
|
|
||
|
}
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
function togglePotFields(form)
|
||
|
{
|
||
|
if (form.createpotential.checked == true)
|
||
|
{
|
||
|
form.potential_name.disabled = true;
|
||
|
form.closedate.disabled = true;
|
||
|
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
form.potential_name.disabled = false;
|
||
|
form.closedate.disabled = false;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
</script>
|
||
|
<!-- END: main -->
|