<? global $vis_language;
if($operation['vis_integration_type']=='19'){
?>
		<div class="form-group">
			<label class="col-sm-2 control-label"><? echo $vis_language['TXTLOGIN']; ?></label>
			<div class="col-sm-10">
				<input type="text" class="form-control input-sm" name="vis_admin" id="vis_admin" value="<? echo $livechat_details['admin_user']; ?>" />
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label"><? echo $vis_language['TXTAPIKEY']; ?></label>
			<div class="col-sm-10">
				<input type="text" class="form-control input-sm" name="vis_api" id="vis_api" value="<? echo $livechat_details['api_key']; ?>" />
			</div>
		</div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><? echo $vis_language['TXTSCRIPT']; ?></label>
            <div class="col-sm-10">
                 <textarea class="form-control input-sm" name="vis_url" id="vis_url" ><? echo $livechat_details['billing_url']; ?></textarea>
            </div>
        </div>
		<div class="form-group">
			<label class="col-sm-2 control-label" ><? echo $vis_language['TXTSTATUS']; ?></label>
			<div class="col-sm-1">
				<label class="switch"  value="0"<? if($livechat_details['is_enabled']!=1) echo 'radio-no-uncheck'; ?>  >
				<input type="checkbox" name="vis_status"  id="vis_status" value="1" <? if($livechat_details['is_enabled']==1 || !isset($livechat_details['is_enabled'])) echo ' checked="checked"'; ?> > 
				<span></span>
				</label>
			</div>
		</div>
       <input type="hidden" name="vis_integration_id"  id="vis_integration_id" value="<? echo $livechat_details['integration_id']; ?>"/>
		<div class="line b-b line-lg pull-in"></div><br/>
			<div class="form-group">
				<div class="col-sm-4 col-sm-offset-2">
					<button type="button" class="btn btn-primary" onclick="$('#vis_workpanel_div').visExecution('submit_form',{'vis_module':'subsetting', 'vis_operation':'update_livechatinc', 'vis_integration_type':<?php echo $operation['vis_integration_type'];?>,'vis_form':'vis_integration_form'})"><? echo $vis_language['TXTSAVE']; ?></button>
              <? if($livechat_details['integration_id']!=''){?>       
                    <button type="button" class="btn btn-primary m-l" onclick="$('#vis_workpanel_div').visExecution('submit_form',{'vis_module':'subsetting', 'vis_operation':'delete_livechatinc_19', 'vis_integration_type':<?php echo $operation['vis_integration_type'];?>,'vis_form':'vis_integration_form'})"><? echo $vis_language['TXTDELETE']; ?></button>
              <? }?>      
				</div>
			</div>
            </form>
<?php }elseif($operation['vis_integration_type']=='20'){?>
		<!--<div class="form-group">
			<label class="col-sm-2 control-label"><? echo $vis_language['TXTUSERNAME']; ?></label>
			<div class="col-sm-10">
				<input type="text" class="form-control input-sm" name="vis_admin" id="vis_admin" value="<? echo $livechat_details['admin_user']; ?>" />
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label"><? echo $vis_language['TXTPASSWORD']; ?></label>
			<div class="col-sm-10">
				<input type="password" class="form-control input-sm" name="vis_api" id="vis_api" value="<? echo $livechat_details['api_key']; ?>" />
			</div>
		</div> -->
        <div class="form-group">
            <label class="col-sm-2 control-label"><? echo $vis_language['TXTURL']; ?></label>
            <div class="col-sm-10">
                 <input type="text" class="form-control input-sm" name="vis_url" id="vis_url" value="<? echo $livechat_details['billing_url']; ?>" />
            </div>
        </div>
          <div class="form-group">
            <label class="col-sm-2 control-label"><? echo $vis_language['TXTSCRIPT']; ?></label>
            <div class="col-sm-10">
                 <textarea class="form-control input-sm" name="vis_admin_password" id="vis_admin_password" ><? echo $livechat_details['admin_password']; ?></textarea>
            </div>
        </div>
		<div class="form-group">
			<label class="col-sm-2 control-label" ><? echo $vis_language['TXTSTATUS']; ?></label>
			<div class="col-sm-1">
				<label class="switch"  value="0"<? if($livechat_details['is_enabled']!=1) echo 'radio-no-uncheck'; ?>  >
				<input type="checkbox"  name="vis_status"  id="vis_status" value="1" <? if($livechat_details['is_enabled']==1 || !isset($livechat_details['is_enabled'])) echo ' checked="checked"'; ?> > 
				<span></span>
				</label>
			</div>
		</div>
       <input type="hidden" name="vis_integration_id"  id="vis_integration_id" value="<? echo $livechat_details['integration_id']; ?>"/>
		<div class="line b-b line-lg pull-in"></div><br/>
			<div class="form-group">
				<div class="col-sm-4 col-sm-offset-2">
					<button type="button" class="btn btn-primary" onclick="$('#vis_workpanel_div').visExecution('submit_form',{'vis_module':'subsetting', 'vis_operation':'update_livechatinc', 'vis_integration_type':<?php echo $operation['vis_integration_type'];?>,'vis_form':'vis_integration_form'})"><? echo $vis_language['TXTSAVE']; ?></button>
              <? if($livechat_details['integration_id']!=''){?>      
                    <button type="button" class="btn btn-primary m-l" onclick="$('#vis_workpanel_div').visExecution('submit_form',{'vis_module':'subsetting', 'vis_operation':'delete_livechatinc_20', 'vis_integration_type':<?php echo $operation['vis_integration_type'];?>,'vis_form':'vis_integration_form'})"><? echo $vis_language['TXTDELETE']; ?></button>
              <? }?>      
               </div>
			</div>
            </form>

<?php }elseif($operation['vis_integration_type']=='22'){?>
		<div class="form-group">
			<label class="col-sm-2 control-label"><? echo $vis_language['TXTAPITOKEN']; ?></label>
			<div class="col-sm-10">
				<input type="text" class="form-control input-sm" name="vis_api" id="vis_api" value="<? echo $livechat_details['api_key']; ?>" />
			</div>
		</div>
		<div class="form-group">
            <label class="col-sm-2 control-label"><? echo $vis_language['TXTSCRIPT']; ?></label>
            <div class="col-sm-10">
                 <textarea class="form-control input-sm" name="vis_url" id="vis_url" ><? echo $livechat_details['billing_url']; ?></textarea>
            </div>
        </div>
    	<div class="form-group">
			<label class="col-sm-2 control-label" ><? echo $vis_language['TXTSTATUS']; ?></label>
			<div class="col-sm-1">
				<label class="switch"  value="0"<? if($livechat_details['is_enabled']!=1) echo 'radio-no-uncheck'; ?>  >
				<input type="checkbox"  name="vis_status"  id="vis_status" value="1" <? if($livechat_details['is_enabled']==1 || !isset($livechat_details['is_enabled'])) echo ' checked="checked"'; ?> > 
				<span></span>
				</label>
			</div>
		</div>
       <input type="hidden" name="vis_integration_id"  id="vis_integration_id" value="<? echo $livechat_details['integration_id']; ?>"/>
		<div class="line b-b line-lg pull-in"></div><br/>
			<div class="form-group">
				<div class="col-sm-4 col-sm-offset-2">
					<button type="button" class="btn btn-primary" onclick="$('#vis_workpanel_div').visExecution('submit_form',{'vis_module':'setting', 'vis_operation':'update_livechatinc', 'vis_integration_type':<?php echo $operation['vis_integration_type'];?>,'vis_form':'vis_integration_form'})"><? echo $vis_language['TXTSAVE']; ?></button>
              <? if($livechat_details['integration_id']!=''){?>       
                    <button type="button" class="btn btn-primary m-l" onclick="$('#vis_workpanel_div').visExecution('submit_form',{'vis_module':'setting', 'vis_operation':'delete_livechatinc_22', 'vis_integration_type':<?php echo $operation['vis_integration_type'];?>,'vis_form':'vis_integration_form'})"><? echo $vis_language['TXTDELETE']; ?></button>
              <? }?>      
				</div>
			</div>
            </form>
<?php }elseif($operation['vis_integration_type']=='21'){?>
		<div class="form-group">
			<label class="col-sm-2 control-label"><? echo $vis_language['TXTEMAIL']; ?></label>
			<div class="col-sm-10">
				<input type="text" class="form-control input-sm" name="vis_admin" id="vis_admin" value="<? echo $livechat_details['admin_user']; ?>" />
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label"><? echo $vis_language['TXTAPIKEY']; ?></label>
			<div class="col-sm-10">
				<input type="text" class="form-control input-sm" name="vis_api" id="vis_api" value="<? echo $livechat_details['api_key']; ?>" />
			</div>
		</div>
		  <div class="form-group">
            <label class="col-sm-2 control-label"><? echo $vis_language['TXTSCRIPT']; ?></label>
            <div class="col-sm-10">
                 <textarea class="form-control input-sm" name="vis_url" id="vis_url" ><? echo $livechat_details['billing_url']; ?></textarea>
            </div>
        </div>
    	<div class="form-group">
			<label class="col-sm-2 control-label" ><? echo $vis_language['TXTSTATUS']; ?></label>
			<div class="col-sm-1">
				<label class="switch"  value="0"<? if($livechat_details['is_enabled']!=1) echo 'radio-no-uncheck'; ?>  >
				<input type="checkbox"  name="vis_status"  id="vis_status" value="1" <? if($livechat_details['is_enabled']==1 || !isset($livechat_details['is_enabled'])) echo ' checked="checked"'; ?> > 
				<span></span>
				</label>
			</div>
		</div>
       <input type="hidden" name="vis_integration_id"  id="vis_integration_id" value="<? echo $livechat_details['integration_id']; ?>"/>
		<div class="line b-b line-lg pull-in"></div><br/>
			<div class="form-group">
				<div class="col-sm-4 col-sm-offset-2">
					<button type="button" class="btn btn-primary" onclick="$('#vis_workpanel_div').visExecution('submit_form',{'vis_module':'subsetting', 'vis_operation':'update_livechatinc', 'vis_integration_type':<?php echo $operation['vis_integration_type'];?>,'vis_form':'vis_integration_form'})"><? echo $vis_language['TXTSAVE']; ?></button>
             <? if($livechat_details['integration_id']!=''){?>        
                    <button type="button" class="btn btn-primary m-l" onclick="$('#vis_workpanel_div').visExecution('submit_form',{'vis_module':'subsetting', 'vis_operation':'delete_livechatinc_21', 'vis_integration_type':<?php echo $operation['vis_integration_type'];?>,'vis_form':'vis_integration_form'})"><? echo $vis_language['TXTDELETE']; ?></button>
             <? }?>       
				</div>
			</div>
            </form>
<?php }elseif($operation['vis_integration_type']=='44'){?>
    
        <div class="form-group">
            <label class="col-sm-2 control-label"><? echo $vis_language['TXTSCRIPT']; ?></label>
            <div class="col-sm-10">
                 <textarea class="form-control input-sm" name="vis_url" id="vis_url" ><? echo $livechat_details['billing_url']; ?></textarea>
            </div>
        </div>
		<div class="form-group">
			<label class="col-sm-2 control-label" ><? echo $vis_language['TXTSTATUS']; ?></label>
			<div class="col-sm-1">
				<label class="switch"  value="0"<? if($livechat_details['is_enabled']!=1) echo 'radio-no-uncheck'; ?>  >
				<input type="checkbox" name="vis_status"  id="vis_status" value="1" <? if($livechat_details['is_enabled']==1 || !isset($livechat_details['is_enabled'])) echo ' checked="checked"'; ?> > 
				<span></span>
				</label>
			</div>
		</div>
       <input type="hidden" name="vis_integration_id"  id="vis_integration_id" value="<? echo $livechat_details['integration_id']; ?>"/>
		<div class="line b-b line-lg pull-in"></div><br/>
			<div class="form-group">
				<div class="col-sm-4 col-sm-offset-2">
					<button type="button" class="btn btn-primary" onclick="$('#vis_workpanel_div').visExecution('submit_form',{'vis_module':'subsetting', 'vis_operation':'update_livechatinc', 'vis_integration_type':<?php echo $operation['vis_integration_type'];?>,'vis_form':'vis_integration_form'})"><? echo $vis_language['TXTSAVE']; ?></button>
              <? if($livechat_details['integration_id']!=''){?>       
                    <button type="button" class="btn btn-primary m-l" onclick="$('#vis_workpanel_div').visExecution('submit_form',{'vis_module':'subsetting', 'vis_operation':'delete_livechatinc_44', 'vis_integration_type':<?php echo $operation['vis_integration_type'];?>,'vis_form':'vis_integration_form'})"><? echo $vis_language['TXTDELETE']; ?></button>
              <? }?>      
				</div>
			</div>
            </form>
			
<?php }elseif($operation['vis_integration_type']=='45'){?>
    
        <div class="form-group">
            <label class="col-sm-2 control-label"><? echo $vis_language['TXTSCRIPT']; ?></label>
            <div class="col-sm-10">
                 <textarea class="form-control input-sm" name="vis_url" id="vis_url" ><? echo $livechat_details['billing_url']; ?></textarea>
            </div>
        </div>
		<div class="form-group">
			<label class="col-sm-2 control-label" ><? echo $vis_language['TXTSTATUS']; ?></label>
			<div class="col-sm-1">
				<label class="switch"  value="0"<? if($livechat_details['is_enabled']!=1) echo 'radio-no-uncheck'; ?>  >
				<input type="checkbox" name="vis_status"  id="vis_status" value="1" <? if($livechat_details['is_enabled']==1 || !isset($livechat_details['is_enabled'])) echo ' checked="checked"'; ?> > 
				<span></span>
				</label>
			</div>
		</div>
       <input type="hidden" name="vis_integration_id"  id="vis_integration_id" value="<? echo $livechat_details['integration_id']; ?>"/>
		<div class="line b-b line-lg pull-in"></div><br/>
			<div class="form-group">
				<div class="col-sm-4 col-sm-offset-2">
					<button type="button" class="btn btn-primary" onclick="$('#vis_workpanel_div').visExecution('submit_form',{'vis_module':'subsetting', 'vis_operation':'update_livechatinc', 'vis_integration_type':<?php echo $operation['vis_integration_type'];?>,'vis_form':'vis_integration_form'})"><? echo $vis_language['TXTSAVE']; ?></button>
              <? if($livechat_details['integration_id']!=''){?>       
                    <button type="button" class="btn btn-primary m-l" onclick="$('#vis_workpanel_div').visExecution('submit_form',{'vis_module':'subsetting', 'vis_operation':'delete_livechatinc_45', 'vis_integration_type':<?php echo $operation['vis_integration_type'];?>,'vis_form':'vis_integration_form'})"><? echo $vis_language['TXTDELETE']; ?></button>
              <? }?>      
				</div>
			</div>
            </form>
<?php }?>
