<!--[FORM]-->
  <!-- End : Header -->
    <!-- Begin : Content Pane -->
	 <div id="common_message"></div>
        <div class="form-listing-bck" style="position:relative"> 
           <span style="form-inactive">&nbsp;</span>
             <a name="formFocus"></a>
              <h3 >{$resultForm['formName']|default:''}</h3>
              <span class="sepline"><span>&nbsp;</span> </span>
            
			{if !$formDisable|default:''}
			<!-- Begin : Visa Payment --> 
			  {assign var="labelPlacement" value=$resultForm['labelPlacement']|default:''}
			  {assign var="submitButtonValue" value=$resultForm['submitButtonValue']|default:''}
			  {assign var="fieldAlignment" value=$resultForm['fieldAlignment']|default:''}
			  {assign var="formKey" value=$resultForm['formKey']|default:''}
			  {assign var="fieldAlignment" value=$resultForm['fieldAlignment']|default:''}
			  {assign var="elementRule" value=$resultForm['elementRule']|json_decode|default:''}
			  {assign var="enableCaptcha" value=$resultForm['enableCaptcha']|default:''}
              {form->start name="oorjitForm_{$formKey}" method="post" enctype="multipart/form-data"}
			  <!--[FORMID]{$formID}[/FORMID]-->
			  <fieldset>
				<div class="{$fieldAlignment}">
					<ul class="clearfix">
					{foreach $resultElement as $key=>$element}
						{assign var="formElementID" value=$element['formElementID']|default:''}
						{assign var="formID" value=$element['formID']}
						{assign var="attributeType" value=$element['attributeType']|default:''}
						{assign var="uniqueID" value=$element['uniqueID']}
						{assign var="formElementLabel" value=$element['formElementLabel']}
						{assign var="attributeOrder" value=$element['attributeOrder']}
						{assign var="extraAttributes" value=$element['extraAttributes']|json_decode}
						{assign var="fieldSize" value=$extraAttributes->defaults->size|default:''}
						{assign var="layout" value=$extraAttributes->defaults->layout|default:''}
						{assign var="allowedExtensions" value=$extraAttributes->defaults->allowedExtensions|default:''}
						{assign var="fieldLayout" value=$extraAttributes->fieldLayout|default:''}
						{assign var="allowUserChoice" value=$extraAttributes->allowUserChoice|default:''}
						{assign var="linkWith" value=$extraAttributes->linkWith|default:''}
						{assign var="formElementDetailID" value=$element['formElementDetailID']}
						{assign var="formElementDesc" value=$element['formElementDesc']}
						{assign var="validateRule" value=$element['validateRule']}
						{assign var="formElementSubText" value=$element['formElementSubText']}
						{assign var="formElementPlaceHolder" value=$element['formElementPlaceHolder']}
						{assign var="formElementValue" value=$element['formElementValue']}
						{assign var="options" value=$element['options']|default:''}
						{assign var="optionID" value=$element['formElementOptionID']|default:''}
						{assign var="formValidationMessage" value=$element['formValidationMessage']|default:''}
						{assign var="formElementName" value=$attributeType|cat:"_"|cat:$formElementID}
						{if $attributeType|default:''=='submit' && $enableCaptcha|default:''=='Yes'}
						<li class="clearfix">
							<div class="label clearfix">
									<label>
										{$language.lblSecurityCode}
									</label>
							
								<span class="mndty">*</span>
							
							</div>
                            <div class="field captcha">
									<img  src="{$view_images}/captcha.jpg" / >

									<img src="{$view_images}/reload_icon_captcha.png" hspace="0" class="flt-left"  vspace="0" id="reload_icon_captcha" style="cursor:pointer;"  marginheight="0" height="18" marginwidth="0"/><div>
								{form->textbox id="oorjitFormSecurityCode" autocomplete="off" name="oorjitFormSecurityCode"  class=" textbox   width-100px" maxlength="12"}
								</div>
								
							</div>
						</li>
							
						{/if}
						
					
						<li class="clearfix {if $attributeType=='province'} hide{/if}" id="li_{$uniqueID}" data-name="{$formElementName}" data-elementid="{$formElementID}">
							{if $attributeType!='submit' && $attributeType!='html'}
									<div class="label clearfix">
										<label>
											{$formElementLabel} 
										</label>
									{if $formElementSubText!=''}
										<span class="icon-set info-icon" title="{$formElementSubText}"></span>
									{/if}
									{if $validateRule|strstr:"required"}
										<span class="mndty">*</span>
									{/if}
									
									</div>

							{/if}
							
							
							<div class="field {$fieldSize} {$layout} "> 
								{if 	$attributeType=='text'		||
										$attributeType=='email'		||
										$attributeType=='text_opt'	||
										$attributeType=='province'	||
										$attributeType=='website'	
								}
								
									{form->textbox 
										name=$formElementName  
										rel=$uniqueID
										class="textbox {$fieldSize}" 
										value="$formElementValue"} 
									
								{else if $attributeType=='password'}
								
									{form->password 
										name=$formElementName 
										rel=$uniqueID
										class="textbox {$fieldSize}"
										value="$formElementValue"} 
									
								{else if $attributeType=='date'}
								
									{form->textbox 
										name=$formElementName 
										rel=$uniqueID
										class="textbox {$fieldSize}" 
										value="$formElementValue"} 
									<script type="text/javascript">
											//<![CDATA[
                                            $(document).ready(function(){
												$("#{$formElementName}").datepicker();
											});
											//]]>
									</script>	
								
								{else if $attributeType=='file'}
									
									{foreach $allowedExtensions as $key=>$ext}
										{if $key>0}
											{assign var='extension' value=$extension|cat:","|cat:$ext}
										{else}
											{assign var='extension' value=$ext}
										{/if}
									{/foreach}
									{if $extension!=''}
										{if $formElementValue!=''}
											{assign var='validateRule' value=$formElementValue|cat:"~*"|cat:$formElementName|cat:"->isFileType->"|cat:$extension}
										{else}
											{assign var='validateRule' value=$formElementName|cat:"->isFileType->"|cat:$extension}
										{/if}
										{if $formValidationMessage!=''}
											{assign var='formValidationMessage' value=$formValidationMessage|cat:"~*"|cat:$language.errFileExtension|cat:"-"|cat:$extension}
										{else}
											{assign var='formValidationMessage' value=$language.errFileExtension|cat:"-"|cat:$extension}
										{/if}
									{/if}
									{form->upload 
										name=$formElementName
										rel=$uniqueID 
										class="textbox {$fieldSize}" 
										value="$formElementValue"} 
								
								{else if $attributeType=='select'}
								
									{form->select 
										name=$formElementName
										rel=$uniqueID
										class="listbox {$fieldSize}"
										value="$optionID"	 
										options=$options} 
								
								{else if $attributeType=='select_multiple'}
								
									{form->select 
										name=$formElementName 
										rel=$uniqueID
										class="listbox {$fieldSize}"
										value="$optionID"	
										options=$options
										multiple="multiple"} 
								
								{else if $attributeType=='radio'}
									<div class="col">{form->radio     
										name=$formElementName  
										rel=$uniqueID
										class="{$fieldSize}"
										seperator="</div><div class='col'>"
										value="$optionID"	
										options=$options} 
								</div>
								{else if $attributeType=='checkbox'}
								
									<div class="col">{form->checkbox    
										name=$formElementName  
										rel=$uniqueID
										class="{$fieldSize}"
										seperator="</div><div class='col'>" 
										value="$optionID"	
										options=$options} 
								</div>
								{else if $attributeType=='image'}
								
									{form->upload_image 
										name=$formElementName 
										rel=$uniqueID
										value="" size_caption=$language.lblMaximumFileSize types_caption=$language.lblFileTypes}
										<script type="text/javascript" src="{$common_js}/uploadImage.plugin.product.js"></script> 

										
								{else if $attributeType=='country'}
									
									{if $linkWith!=''}
										
										{form->select 
											name=$formElementName  
											rel=$uniqueID
											class="listbox {$fieldSize}"
											value="$optionID"	
											options=$options
											caption="->{$language.lblSelect}"
											onchange="listStateAjax('#{$formElementName}','{$linkWith}')"} 
											<script type="text/javascript">
											//<![CDATA[
                                            listStateAjax('#{$formElementName}','{$linkWith}');
											//]]>
											</script>

									{else}
										{form->select 
											name=$formElementName  
											rel=$uniqueID
											class="listbox {$fieldSize}"
											value="$optionID"	
											options=$options
											caption="->{$language.lblSelect}"} 
									{/if}
								
								{else if $attributeType=='state'}
									
									{form->select 
										name=$formElementName  
										rel=$uniqueID
										class="listbox {$fieldSize}"
										value="$optionID"	
										options="->{$formElementValue}"
										label="{$formElementValue}"} 

								{else if $attributeType=='businesstype'}		
										
										{form->select 
										name=$formElementName  
										rel=$uniqueID
										class="listbox {$fieldSize}"
										value="$optionID"	
										content=$options} 
										
								{else if $attributeType=='textarea'}
								
									{form->textarea 
										name=$formElementName  
										rel=$uniqueID
										class="textarea01 {$fieldSize}" 
										rows="5" 
										cols="45"
										value="$formElementValue"} 
									
										
								{else if $attributeType=='submit'}
								
									{form->submit 
										name="submitForm"  
										class="custom-button01"
										value={$submitButtonValue}} 
									
								{else if $attributeType=='html'}
								
									<h2>{$formElementLabel} </h2>
									<div class="cms_area default-style">
										<p>
											{$formElementDesc|html_entity_decode}
										</p> 
									</div>
								{/if}
							</div>
						</li>
						{if ($fieldAlignment=='top_align_two_column' || $fieldAlignment=='left_align_two_column') && $key%2}
							<li class="element-three clearfix"></li>
						{/if}
					{/foreach}
					</ul>
                    </div>
              </fieldset>
              {form->close} </div>
			{else}
				<h3>{$disableFormMessage}</h3>
			{/if}

		 </div>

    <!-- End : Content Pane --> 
<!--[/FORM]-->

