<div class="form-group">
               <label class="col-sm-3 control-label"><? echo ($vt_opp_module_desc['fields'][0] ['mandatory'])?'<span style="color:#FF0000;">*</span>':''; echo $vt_opp_module_desc['fields'][0] ['label']; ?></label>
               <div class="col-sm-7">
                  <input type="text" class="form-control input-sm" id="potentialname" name="potentialname">
               </div>
        </div>
		
		
		<div class="form-group">
               <label class="col-sm-3 control-label"><? echo ($vt_opp_module_desc['fields'][2] ['mandatory'])?'<span style="color:#FF0000;">*</span>':''; echo $vt_opp_module_desc['fields'][2] ['label']; ?></label>
               <div class="col-sm-7">
                  <input type="text" class="form-control input-sm" id="amount" name="amount">
               </div>
        </div>
		
		<div class="form-group">
               <label class="col-sm-3 control-label"><? echo ($vt_opp_module_desc['fields'][3] ['mandatory'])?'<span style="color:#FF0000;">*</span>':''; echo $vt_opp_module_desc['fields'][3] ['label']; ?></label>
               <div class="col-sm-7">
                  <select name="related_to" id="related_to" class="input-sm form-control selectpicker"  <? if(count($related_to)>10) echo 'data-live-search="true"';?>>	
					<option value="">Select</option>				  
				  <?
                     for($i=0;$i<count($related_to);$i++){
						  echo '<option  value="'.$related_to[$i]['id'].'">'.$related_to[$i]['accountname'].'</option>'; }?>
                  </select>
               </div>
        </div>
		
		<div class="form-group">
               <label class="col-sm-3 control-label"><? echo ($vt_opp_module_desc['fields'][4] ['mandatory'])?'<span style="color:#FF0000;">*</span>':''; echo $vt_opp_module_desc['fields'][4] ['label']; ?></label>
               <div class="col-sm-7">
                  <input type="text" class="form-control input-sm start" id="closingdate" name="closingdate">
               </div>
        </div>
		
		<div class="form-group">
               <label class="col-sm-3 control-label"><? echo ($vt_opp_module_desc['fields'][5] ['mandatory'])?'<span style="color:#FF0000;">*</span>':''; echo $vt_opp_module_desc['fields'][5] ['label']; ?></label>
               <div class="col-sm-7">
                  <select name="opportunity_type" id="opportunity_type" class="input-sm form-control selectpicker"  <? if(count($opportunity_type)>10) echo 'data-live-search="true"';?>>
				  <option value="">Select</option>
				  <?
                     for($i=0;$i<count($opportunity_type);$i++){
                         
						  echo '<option  value="'.$opportunity_type[$i]['value'].'">'.$opportunity_type[$i]['label'].'</option>'; }?>
                  </select>
               </div>
        </div>
		
		<div class="form-group">
               <label class="col-sm-3 control-label"><? echo ($vt_opp_module_desc['fields'][6] ['mandatory'])?'<span style="color:#FF0000;">*</span>':''; echo $vt_opp_module_desc['fields'][6] ['label']; ?></label>
               <div class="col-sm-7">
                  <input type="text" class="form-control input-sm" id="nextstep" name="nextstep">
               </div>
        </div>
		
		<div class="form-group">
               <label class="col-sm-3 control-label"><? echo ($vt_opp_module_desc['fields'][7] ['mandatory'])?'<span style="color:#FF0000;">*</span>':''; echo $vt_opp_module_desc['fields'][7] ['label']; ?></label>
               <div class="col-sm-7">
                  <select name="leadsource" id="leadsource" class="input-sm form-control selectpicker"  <? if(count($leadsource)>10) echo 'data-live-search="true"';?>>
				  <option value="">Select</option>
				  <?
                     for($i=0;$i<count($leadsource);$i++){
                         echo '<option  value="'.$leadsource[$i]['value'].'">'.$leadsource[$i]['label'].'</option>'; }?>
                  </select>
               </div>
        </div>
		
		<div class="form-group">
               <label class="col-sm-3 control-label"><? echo ($vt_opp_module_desc['fields'][8] ['mandatory'])?'<span style="color:#FF0000;">*</span>':''; echo $vt_opp_module_desc['fields'][8] ['label']; ?></label>
               <div class="col-sm-7">
                  <select name="sales_stage" id="sales_stage" class="input-sm form-control selectpicker"  <? if(count($sales_stage)>10) echo 'data-live-search="true"';?>>
				  <option value="">Select</option>
				  <?
                     for($i=0;$i<count($sales_stage);$i++){                        
						  echo '<option  value="'.$sales_stage[$i]['value'].'">'.$sales_stage[$i]['label'].'</option>'; }?>
                  </select>
               </div>
        </div>
		
		<div class="form-group">
               <label class="col-sm-3 control-label"><? echo ($vt_opp_module_desc['fields'][9] ['mandatory'])?'<span style="color:#FF0000;">*</span>':''; echo $vt_opp_module_desc['fields'][9] ['label']; ?></label>
               <div class="col-sm-7">
                  <select name="assigned_user_id" id="assigned_user_id" class="input-sm form-control selectpicker"  <? if(count($assigned_user_id)>10) echo 'data-live-search="true"';?>><?
                     for($i=0;$i<count($assigned_user_id);$i++){
						  echo '<option  value="'.$assigned_user_id[$i]['id'].'">'.$assigned_user_id[$i]['first_name'].' '.$assigned_user_id[$i]['last_name'].'</option>'; }?>
                  </select>
               </div>
        </div>
		
		<div class="form-group">
               <label class="col-sm-3 control-label"><? echo ($vt_opp_module_desc['fields'][10] ['mandatory'])?'<span style="color:#FF0000;">*</span>':''; echo $vt_opp_module_desc['fields'][10] ['label']; ?></label>
               <div class="col-sm-7">                  
				  <input type="number" class="form-control input-sm" id="probability" name="probability" max="100" min="0" >
               </div>%
        </div>
		
		<div class="form-group">
               <label class="col-sm-3 control-label"><? echo ($vt_opp_module_desc['fields'][11] ['mandatory'])?'<span style="color:#FF0000;">*</span>':''; echo $vt_opp_module_desc['fields'][11] ['label']; ?></label>
               <div class="col-sm-7">
                  <select name="campaignid" id="campaignid" class="input-sm form-control selectpicker"  <? if(count($campaignid)>10) echo 'data-live-search="true"';?>>
				  <option value="" >Select</option>
				  <?
                     for($i=0;$i<count($campaignid);$i++){
						  echo '<option  value="'.$campaignid[$i]['id'].'">'.$campaignid[$i]['campaignname'].'</option>'; }?>
                  </select>
               </div>
        </div>
		
		<div class="form-group">
               <label class="col-sm-3 control-label"><? echo ($vt_opp_module_desc['fields'][15] ['mandatory'])?'<span style="color:#FF0000;">*</span>':''; echo $vt_opp_module_desc['fields'][15] ['label']; ?></label>
               <div class="col-sm-7">
                   <textarea class="form-control input-sm" id="description" name="description"></textarea>
               </div>
        </div>
		
		<div class="form-group">
               <label class="col-sm-3 control-label"><? echo ($vt_opp_module_desc['fields'][16] ['mandatory'])?'<span style="color:#FF0000;">*</span>':''; echo $vt_opp_module_desc['fields'][16] ['label']; ?>  $ </label>
               <div class="col-sm-7">
				<input type="text" class="form-control input-sm" id="forecast_amount" name="forecast_amount">
               </div>
        </div>
		
		<div class="form-group">
               <label class="col-sm-3 control-label"><? echo ($vt_opp_module_desc['fields'][18] ['mandatory'])?'<span style="color:#FF0000;">*</span>':''; echo $vt_opp_module_desc['fields'][18] ['label']; ?></label>
               <div class="col-sm-7">
                  <select name="contact_id" id="contact_id" class="input-sm form-control selectpicker"  <? if(count($contact_id)>10) echo 'data-live-search="true"';?>>
				  <option value="" >Select</option>
				  <?
                     for($i=0;$i<count($contact_id);$i++){
						  echo '<option '.$selected.' value="'.$contact_id[$i]['id'].'">'.$contact_id[$i]['firstname'].' '.$contact_id[$i]['lastname'].'</option>'; }?>
                  </select>
               </div>
        </div>
		<div class="line b-b line-lg pull-in"></div>
		<div class="form-group">
               <label class="col-sm-3 control-label"></label>
               <div class="col-sm-7">
			   <button id="btn_add_ticket" class="btn btn-default m-r m-t-md" onclick="$('#vis_opp_list_forms').visExecution('submit_form', {'vis_module': 'ticket', 'vis_operation': 'vt_create_opp','vis_integration_id':'<?php echo $vt_acc_list[0]['integration_id']; ?>', 'vis_form': 'vis_vtiger_opp_form' }); $('#btn_add_ticket').button('loading');" type="button"><? echo $vis_language['TXTADD']; ?></button>
               </div>
        </div>
		
	<script>
	$('.start').datetimepicker({
			format: "MM-DD-YYYY",
	});

</script>	