Location: PHPKode > projects > Business Customer and Lead Management > ILMS_Beta_Release1/templates/leadAddEdit.tpl
{include file ='leadsheader.tpl'}
<script language="javascript">showProductdivA();</script>
<form name="frmLeadsAddEdit" id="frmLeadsAddEdit" Method="POST" Action=" "  ENCTYPE="multipart/form-data">
<input type="hidden" name="seletID" id="seletID" value="{$seletID}">
<!--<input type="hidden" name="OrderID" value="{$OrderID}">
<input type="hidden" name="LeadCustomerID" value="{$LeadCustomerID}">
<input type="hidden" name="LeadID" value="{$LeadID}">-->
<span class="message">{$msg}</span>
<input type="hidden" name="PageNo" value="{$PageNo}">
<input type="hidden" name="RawLeadID" value="{$RawLeadID}">
<input type="hidden" name="AssignedLeadID" value="{$AssignedLeadID}">

<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
   <tr>
     <td>&nbsp;</td>
  </tr>
  <tr>
    <td>
			<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
	  	<tr>
	    	<td colspan="3">
	      	<table cellpadding="0" cellspacing="0" border="0" width="100%">
						<TR>
		   				<TD class="table_top_left">&nbsp;</TD>
		   				<TD class="table_top_center">
		      			<table cellspacing="0" border="0" cellpadding="0" width="100">
			 						<TR>
			    					<td class="heading_left" width="3"><img src="http://{$site}/images/spacer.gif" width="9" height="1"></td>
			    					<td class="heading_center" nowrap>
			    					{if $RawLeadID eq ""}
			    						Add Lead
			    					{else}
			    						Update Lead
			    					{/if}	
			    						</td>
			    					<td class="heading_right" width="9"><img src="http://{$site}/images/spacer.gif" width="9" height="1"></td>
			 						</tr>
		      	 		</table>
		     			</TD>
		     			<TD class="table_top_right">&nbsp;</td>
		  			</TR>
	      	</table>
	    	</td>
	  	</tr>
      </table>
    </td>
  </tr>
  <tr>
   	<td>
    	<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
	     <tr>
	  		<td valign="top" bgcolor="#AC0B0B" width="2"></td>
	  		<td align="center" valign="top">
	    		<table width="100%" border="0" align="center" cellpadding="3" cellspacing="0">
	       		<tr style="height:20">
	          	<td colspan="5"></td>
            </tr>
	       		<tr>
	          	<td class="alternatetablerow" width="8%">&nbsp;</td>
	          	<td class="alternatetablerow"><span class="controllabel">First Name</span> <sup><span class="mandatory">*</span></sup></td>
	          	<td class="alternatetablerow">
	          		<input type="text" name="txtFirstName" value="{$txtFirstName|stripslashes}" size="25" maxlength="50" class="textbox_input" id="txtFirstName"></td>
	          	<td class="alternatetablerow"><span class="controllabel">Middle Name</span></td>
	          	<td class="alternatetablerow">
	          		<input type="text" name="txtMiddleName" value="{$txtMiddleName|stripslashes}" size="25" maxlength="50" class="textbox_input" id="txtMiddleName"></td>
	       		</tr>
	       		<tr>
	         		<td width="9%">&nbsp;</td>
	         		<td><span class="controllabel">Last Name</span> <sup><span class="mandatory">*</span></sup></td>
	         		<td><input type="text" name="txtLastName" value="{$txtLastName|stripslashes}" size="25" maxlength="50" class="textbox_input" id="txtLastName"></td>
	         		<td><span class="controllabel">Type of Contact</span></td>
	         		<td><input type="text" name="txtTypeofContact" value="{$txtTypeofContact|stripslashes}" size="25" maxlength="50" class="textbox_input" id="txtTypeofContact"></td>
	       		</tr>
	       		<tr>
	         		<td class="alternatetablerow" width="9%">&nbsp;</td>
	         		<td class="alternatetablerow"><span class="controllabel">Business Name</span></td>
	          	<td class="alternatetablerow">
	          		<input type="text" name="txtBusinessName" value="{$txtBusinessName|stripslashes}" size="25" maxlength="50" class="textbox_input" id="txtBusinessName"></td>
	          	<td class="alternatetablerow"><span class="controllabel">Second Business Name</span></td>
	          	<td class="alternatetablerow">
	          		<input type="text" name="txtSecondBusinessName" value="{$txtSecondBusinessName|stripslashes}" size="25" maxlength="50" class="textbox_input" id="txtSecondBusinessName"></td>
	       		</tr>
	       		<tr>
	         		<td width="9%">&nbsp;</td>
	         		<td valign="top"><span class="controllabel">Address</span></td>
	         		<td valign="top"><textarea name="txtAddress" rows="2" class="textbox_input" id="txtAddress">{$txtAddress|stripslashes}</textarea></td>
	         		<td valign="top"><span class="controllabel">City</span></td>
	         		<td valign="top"><input type="text" name="txtCity" value="{$txtCity|stripslashes}" size="25" maxlength="50" class="textbox_input" id="txtCity"></td>
	       		</tr>
	       		<tr>
	         		<td class="alternatetablerow" width="9%">&nbsp;</td>
	         		<td class="alternatetablerow"><span class="controllabel">State</span></td>
	          	<td class="alternatetablerow">
	          		<input type="text" name="txtState" value="{$txtState|stripslashes}" size="25" maxlength="50" class="textbox_input" id="txtState"></td>
	          	<td class="alternatetablerow"><span class="controllabel">Zip Code</span></td>
	          	<td class="alternatetablerow">
	          		<input type="text" name="txtZipCode" value="{$txtZipCode|stripslashes}" size="10" maxlength="10" class="textbox_input" id="txtZipCode"></td>
	       		</tr>
	       		<tr>
	         		<td width="9%">&nbsp;</td>
	         		<td><span class="controllabel">Country</span></td>
	         		<td><input type="text" name="txtCountry" value="{$txtCountry|stripslashes}" size="25" maxlength="50" class="textbox_input" id="txtCountry"></td>
	         		<td><span class="controllabel">Phone Number</span> <sup><span class="mandatory">*</span></sup></td>
	         		<td><input type="text" name="txtPhone" value="{$txtPhone|stripslashes}" size="20" maxlength="20" class="textbox_input" id="txtPhone"></td>
	       		</tr>
	       		<tr>
	         		<td class="alternatetablerow" width="9%">&nbsp;</td>
	         		<td class="alternatetablerow"><span class="controllabel">Line of Business</span></td>
	          	<td class="alternatetablerow">
	          		<input type="text" name="txtLineofBusiness" value="{$txtLineofBusiness|stripslashes}" size="25" maxlength="50" class="textbox_input" id="txtLineofBusiness"></td>
	          	<td class="alternatetablerow"><span class="controllabel">Website Name</span></td>
	          	<td class="alternatetablerow">
	          		<input type="text" name="txtWebSiteName" value="{$txtWebSiteName|stripslashes}" size="25" maxlength="50" class="textbox_input" id="txtWebSiteName"></td>
	       		</tr>
	       		<tr>
         	    <td width="9%">&nbsp;</td>
         	    <td ><span class="controllabel">Lead Status</span></td>
         	    <td>
            		<select name="cmbLeadStatus" id="cmbLeadStatus" onchange="showProductdivA();" class="select_input">
              		{if $cmbLeadStatus  EQ ""}
            				<option value="0">---Select---</option>
              		{else}
                  {/if}
                  {html_options values=$ObjectID output=$ObjectName selected=$cmbLeadStatus} 
            		</select>
         	     </td>
         	     <td colspan="2">
         	     <div id="ClaformA" style="display:none;">
	               <table border="0" align="left" cellpadding="0" cellspacing="0">
                  	<tr>
	                   	<td width="60%"><span class="controllabel">Appointment Date</span></td>
	                   	<td>
	                   		<input type="text" name="txtAppDtA" value="{$txtAppDtA}" class="textbox_input" readonly size="10">
	                   		<img src="images/calendar.gif" width="30" height="19" id="anchor1" onclick="displayCalendar(document.frmLeadsAddEdit.txtAppDtA,'dd/mm/yyyy',document.frmLeadsAddEdit.txtAppDtA)">
			    						</td>
			 	     				</tr>
	              	</table>
		   	      	</div>
		 	      	</td>
			 			</tr>
			 			<!--<tr>
        	     <td width="9%">&nbsp;</td>
        	     <td colspan="4">
         	     <div id="ClaformA" style="display:none;">
	               <table border="0" align="left" cellpadding="0" cellspacing="0">
                  	<tr>
	                   	<td ><span class="controllabel">Appointment Date</span></td>
	                   	<td>&nbsp;&nbsp;
	                      <input type="text" name="txtAppDtA" value="{$txtAppDtA}" class="textbox_input" readonly size="10">
	                      <img src="images/calendar.gif" width="30" height="19" id="anchor1" onclick="displayCalendar(document.frmLeadsAddEdit.txtAppDtA,'dd/mm/yyyy',document.frmLeadsAddEdit.txtAppDtA)">
			    						</td>
			 	     				</tr>
	              	</table>
		   	      	</div>
		 	      	</td>
	     		  </tr>-->
	     		  <tr>
	      		  <td colspan="5">
	    			    <div id="prodformA" style="display:none;">
	          			<table border="0" align="left" cellpadding="3" cellspacing="0" width="100%">
		   							<tr>
	               			<td class="alternatetablerow" width="9%">&nbsp;</td>
		       			      <td class="alternatetablerow" width="13%">
		       							<span class="controllabel">ProductType</span> <sup><span class="mandatory">*</span></sup>
		       			      </td>
											<td class="alternatetablerow" width="27%">
												<select name="cmbProductType" id="cmbProductType" onchange="DisplayProducts(this.value);" class="select_input">
													{if $cmbProductType  EQ ""}
														<option value="0">---Select---</option>
													{else}
													{/if}
													{html_options values=$ProductTypeID output=$ProductTypeName selected=$cmbProductType} 
												</select>
											</td>
											<td class="alternatetablerow" width="21%" valign="top"><span class="controllabel">&nbsp;&nbsp;&nbsp;&nbsp;Product</span> <sup><span class="mandatory">*</span></sup></td>
											<td class="alternatetablerow" width="24%" valign="top">
												<span id="productSpan">
												</span>
											</td>
											<td class="alternatetablerow" width="2%">&nbsp;</td>
	           			  </tr>
										<tr>
											 <td width="9%">&nbsp;</td>
											 <td><span class="controllabel">WebSite1<sup><span class="mandatory">*</span></sup></span></td>
											 <td>
													<input type="text" name="website1A" value="{$website1A}" size="20" maxlength="45" class="textbox_input">
											 </td>
											 <td><span class="controllabel">&nbsp;&nbsp;&nbsp;&nbsp;WebSite2<sup></sup></span></span></td>
											 <td>
													<input type="text" name="website2A" value="{$website2A}" size="20" maxlength="45" class="textbox_input">
											 </td>
											 <td width="2%">&nbsp;</td>
	          			  </tr>
		  							<tr>
											 <td class="alternatetablerow" width="9%">&nbsp;</td>
											 <td class="alternatetablerow"><span class="controllabel">WebSite3</span></td>
											 <td class="alternatetablerow">
													<input type="text" name="website3A" value="{$website3A}" size="20" maxlength="45" class="textbox_input">
											 </td>
											 <td class="alternatetablerow"><span class="controllabel">&nbsp;&nbsp;&nbsp;&nbsp;WebSite4</span></td>
											 <td class="alternatetablerow">
													<input type="text" name="website4A" value="{$website4A}" size="20" maxlength="45" class="textbox_input">
											 </td>
											 <td class="alternatetablerow" width="2%">&nbsp;</td>
	          			  </tr>
		  							<tr>
											 <td width="9%">&nbsp;</td>
											 <td><span class="controllabel">WebSite5</span></td>
											 <td colspan="4">
													<input type="text" name="website5A" value="{$website5A}" size="20" maxlength="45" class="textbox_input">
											 </td>
	           			  </tr>
										<tr>
											 <td class="alternatetablerow" width="9%">&nbsp;</td>
											 <td class="alternatetablerow"><span class="controllabel">Upload File</span></td>
											 <td class="alternatetablerow" colspan="4">
												<iframe id="popupsWebsiteA" src="php/Leads/uploadCustomerDocsA.php" width="300" height="30" marginheight="0" frameborder="text/css" scrolling="No"></iframe>
											 </td>
	           			  </tr>
	           			  <tr>
											 <td width="9%">&nbsp;</td>
											 <td class="controllabel"><span class="controllabel">Uploaded File<br> Name</span></td>
											 <td colspan="4" class="controllabel">
													 <input type="text" name="OrgFileNameA" value="{$OrgFileNameA}" size="80" class="textbox_input" readonly>
													 <input type="hidden" name="DocNameA" value="{$DocNameA}">
													 <input type="hidden" name="DocPathA" value="{$DocPathA}">
											 </td>
	           			  </tr>
								</table>
	      			  </div>
	     			 </td>
	    		  </tr>
				</table>
       </td>
      </tr>
    </table>
   </td>
   <td valign="top" bgcolor="#AC0B0B" width="2"></td>
 </tr>
</table>	
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top" bgcolor="#AC0B0B" width="2"></td>
    <td>&nbsp;</td>
    <td valign="top" bgcolor="#AC0B0B" width="2"></td>
  </tr>
  <tr>
    <td valign="top" bgcolor="#AC0B0B" width="2"></td>
    <td align="center">			
			<table cellpadding="3" cellspacing="0" border="0">
	  		<tr>
	     		<td align="center" colspan="3">
						{if $EditAddedLeadRights eq "1"}			
							<input type="button" name="save"  class="button_submit" onclick="fnc_submitAddEditLead('frmLeadsAddEdit');">			
						{elseif $AddAddedLeadRights == 1 && $RawLeadID == 0}
							<input type="button" name="save"  class="button_submit" onclick="fnc_submitAddEditLead('frmLeadsAddEdit');">			
						{/if}&nbsp;
					</td>
	  		</tr>
			</table>
    </td>
    <td valign="top" bgcolor="#AC0B0B" width="2"></td>
  </tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
   <tr>
      <td align="left" width="40" valign="top" height="40"><img src="images/bottom_left_curve.gif" width="60" height="40"></td>
      <td background="images/bottom_center.gif" >&nbsp;</td>
      <td align="right" width="60"><img src="images/bottom_right_curve.gif" width="60" height="40"></td>
   </tr>
</table>
</form>
<script language="javascript">asuA();</script>
Return current item: Business Customer and Lead Management