<? global $vis_language; ?>
<div id="profile" class="tab-pane active">
       <div class="col-md-12">
          <div class="row">
            <div class="wrapper">
                <form class="form-horizontal" id="vis_vendor_form" name="vis_vendor_form" method="post" >
                    <input type="hidden" name="vis_vendor_id" value="<? echo $vendor_details['vendor_id']; ?>" />	
                    <div class="form-group">
                       <label class="col-sm-2 control-label"><? echo $vis_language['TXTNAME']; ?></label>
                       <div class="col-sm-10">
                          <input class="form-control input-sm" type="text" name="vis_name" id="vis_name" value="<? echo $vendor_details['name']; ?>">
                       </div>
                    </div>
                    <div class="form-group">
                       <label class="col-sm-2 control-label"><? echo $vis_language['TXTPRICONTACT']; ?></label>
                       <div class="col-sm-10">
                          <input class="form-control input-sm demo-auto" type="text" name="vis_primary_contact" id="vis_primary_contact"  value="<? echo $vendor_details['primary_contact']; ?>">
                       </div>
                    </div>
                    <div class="form-group">
                       <label class="col-sm-2 control-label"><? echo $vis_language['TXTEMAIL']; ?></label>
                       <div class="col-sm-10">
                          <input class="form-control input-sm demo-auto" type="text" name="vis_email" id="vis_email"  value="<? echo $vendor_details['email']; ?>">
                       </div>
                    </div>
                    <div class="form-group">
                       <label class="col-sm-2 control-label"><? echo $vis_language['TXTDESCRIPTION']; ?></label>
                       <div class="col-sm-10">
                          <input class="form-control input-sm" type="text" name="vis_description" id="vis_description"  value="<? echo $vendor_details['description']; ?>">
                       </div>
                    </div>
                    <div class="form-group">
                       <label class="col-sm-2 control-label"><? echo $vis_language['TXTADDRESS']; ?></label>
                       <div class="col-sm-10">
                          <input class="form-control input-sm" type="text" name="vis_address" id="vis_address"  value="<? echo $vendor_details['address']; ?>">
                       </div>
                    </div>
                    <!-- 
                  <div id="department_access123">
                   <div>
                    <div class="form-group">
                       <label class="col-sm-2 control-label"><? echo $vis_language['TXTDEPARTMENTACCESS']; ?></label>
                       <div class="col-sm-10">
                          <label class="checkbox-inline i-checks">
                          <input type="checkbox" value="1" id="vis_department_all" onchange="toggle_dept_list();" name="vis_department_all"  <? if($vendor_details['department_access']==0) echo ' checked="checked"'; ?> ><i></i> <? echo $vis_language['TXTALLDEPARTMENTS']; ?>
                          </label>
                       </div>
                    </div>
                    <div id="vis_dept_list_section" class="form-group" style="<?= ($vendor_details['department_access']==0)?'display:none':'';?>">
                       <label class="col-sm-2 control-label"></label>
                       <div class="col-sm-10">
                           <div class="dept_access_list">
                          <? $dept_list=array();
                              for($i=0;$i<count($department_details);$i++) {?>
                          <label class="checkbox-inline i-checks">
                          <input type="checkbox" id="vis_department" name="vis_department[]" <? if(in_array($department_details[$i]['department_id'], $vendor_department)) echo ' checked="checked"'; ?>value="<? echo $department_details[$i]['department_id']; ?>" /> <i></i><? echo $department_details[$i]['domain_name'].' :: '.$department_details[$i]['department_name']; ?></label><br/>
                          <?
                             $dept_list[]=$department_details[$i]['department_id'];
                             } ?>
                       </div>
                      </div>
                    </div>
                    </div>
                     </div>-->
                    <!--<div class="line b-b line-lg pull-in"></div>
                    <br/> -->
                    <div class="form-group">
                       <label class="col-sm-2 control-label"><? echo $vis_language['TXTSTATUS']; ?></label>
                       <div class="col-sm-1">
                          <label class="switch  <? if($vendor_details['is_enabled']==0) echo 'radio-no-uncheck'; ?>  ">
                          <input type="checkbox"  name="vis_status"  id="vis_status" <? if($vendor_details['is_enabled']==1) echo ' checked="checked"'; ?>   > 
                          <span ></span>
                          </label>
                       </div>
                    </div>
                    <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_vendor', 'vis_form':'vis_vendor_form'})"><? echo $vis_language['TXTUPDATE']; ?></button>
                       </div>
                    </div>
             </form>
            
        </div>
      </div>
   </div>
</div>