<form class="form-horizontal"  id="vis_staffgroup_permission_form" name="vis_staffgroup_permission_form" method="post" >
            <div class="form-group">
               <label class="col-sm-2 control-label"><? echo $vis_language['TXTTITLE']; ?></label>
               <div class="col-sm-10">
                  <input class="form-control input-sm" type="text"  name="vis_groupname" id="vis_groupname" value="<? echo  htmlentities($staffgroup_details['group_name'], ENT_COMPAT, 'UTF-8'); ?>">
               </div>
            </div>
             <div class="form-group">
		   <label class="col-sm-2 control-label"><? echo $vis_language['TXTSCHEDULE']; ?></label>
		   <div class="col-sm-10">
			  <select name="vis_schedule_id" id="vis_schedule_id" class="form-control input-sm selectpicker"  <? if(count($schedule)>10) echo 'data-live-search="true"';?>>
				 <? for($i=0;$i<count($schedule);$i++) echo '<option value="'.$schedule[$i]['schedule_id'].'"'.(($schedule[$i]['schedule_id']==$staffgroup_details['schedule_id'])?' selected="selected"':'').'>'.$schedule[$i]['schedule_name'].'</option>'; ?>
			  </select>
		</div>
		</div>
            <div class="row">
	<div class="col-md-12">	
               <div class="col-sm-6"><h5><? echo $vis_language['TXTTICKETS']; ?></h5><div class="line b-b line-lg pull-in"></div><br/></div>
			   <div class="col-sm-6"><h5><? echo $vis_language['TXTCLIENT']; ?></h5><div class="line b-b line-lg pull-in"></div><br/></div>
	<div class="col-md-6">
		 <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTVIEWTICKETS']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left " >
					<label>
	              <input type="radio" value="0" id="vis_allticket"<? if($group_access[0]==0) echo ' checked="checked"'; ?> name="vis_permission_0"/><i></i>
                  <? echo $vis_language['TXTALLTICKETS']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "> <label>
                  <input type="radio" value="1" id="vis_assigned" name="vis_permission_0" <? if($group_access[0]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTSELFASSIGNED']; ?>
                  </label></div>
                  <div class="radio i-checks m-r-lg pull-left ">
				  <label>
                  <input type="radio" value="2" id="vis_unassigned" name="vis_permission_0" <? if($group_access[0]==2) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTUNASSIGNEDANDSELFASSIGNED']; ?>
                  </label>
                  </div>
               </div>
            </div>	
	
		 <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTOPENNEWTICKETS']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" <? if($group_access[1]==1) echo ' checked="checked"'; ?> value="1" id="vis_newticket_y" name="vis_permission_1"/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label> </div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" <? if($group_access[1]==0) echo ' checked="checked"'; ?> value="0" id="vis_newticket_n" name="vis_permission_1"/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label> </div>
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTMOVETICKETS']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_moveticket_y" name="vis_permission_25" <? if($group_access[25]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label> </div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_moveticket_n" name="vis_permission_25" <? if($group_access[25]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label> </div>
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTFORWARDTICKET']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_ticketforward_y" name="vis_permission_2" <? if($group_access[2]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_ticketforward_n" name="vis_permission_2" <? if($group_access[2]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTREPLYORREPLYALLTICKET']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio"  value="1" id="vis_ticketreply_y" name="vis_permission_3" <? if($group_access[3]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_ticketreply_n" name="vis_permission_3" <? if($group_access[3]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
             <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTMOVETOTRASH']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio"  value="1" id="vis_ticket_movetotrash_y" name="vis_permission_56" <? if($group_access[56]==1) echo ' checked="checked"'; ?> /><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_ticket_movetotrash_n" name="vis_permission_56" <? if($group_access[56]==0) echo ' checked="checked"'; ?> /><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTDELETETICKET']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio"  value="1" id="vis_ticketdelete_y" name="vis_permission_4" <? if($group_access[4]==1) echo ' checked="checked"'; ?> /><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_ticketdelete_n" name="vis_permission_4" <? if($group_access[4]==0) echo ' checked="checked"'; ?> /><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTMERGETICKET']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_mergeticket_y" name="vis_permission_5" <? if($group_access[5]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_mergeticket_n" name="vis_permission_5" <? if($group_access[5]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTCHANGEPROPERTIES']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_ticketedit_y" name="vis_permission_6" <? if($group_access[6]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_ticketedit_n" name="vis_permission_6" <? if($group_access[6]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTDELETETICKETPOST']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_deletepost_y" name="vis_permission_7" <? if($group_access[7]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_deletepost_n" name="vis_permission_7" <? if($group_access[7]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTEDITTICKETPOST']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_editpost_y" name="vis_permission_8" <? if($group_access[8]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_editpost_n" name="vis_permission_8" <? if($group_access[8]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
             <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTCHANGESLA']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_ticketdue_y" name="vis_permission_9" <? if($group_access[9]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_ticketdue_n" name="vis_permission_9" <? if($group_access[9]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
               <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTPAUSEORRESUMESLA']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_pausesla_y" name="vis_permission_88" <? if($group_access[88]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_pausesla_n" name="vis_permission_88" <? if($group_access[88]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
              <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTCHANGESTATUS']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_changestatus_y" name="vis_permission_27" <? if($group_access[27]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_changestatus_n" name="vis_permission_27" <? if($group_access[27]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
		  <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTCHANGEPRIORITY']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_changepriority_y" name="vis_permission_28" <? if($group_access[28]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_changepriority_n" name="vis_permission_28" <? if($group_access[28]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTCHANGEOWNER']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_changeowner_y" name="vis_permission_29" <? if($group_access[29]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_changeowner_n" name="vis_permission_29" <? if($group_access[29]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTCHANGETYPE']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_changetype_y" name="vis_permission_30" <? if($group_access[30]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_changetype_n" name="vis_permission_30" <? if($group_access[30]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
             <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTCHANGECATEGORY']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_changecategory_y" name="vis_permission_85" <? if($group_access[85]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_changecategory_n" name="vis_permission_85" <? if($group_access[85]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTCHANGELEVEL']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_change_level_y" name="vis_permission_86" <? if($group_access[86]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_change_level_n" name="vis_permission_86" <? if($group_access[86]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
             <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTCHANGELOCATION']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_change_location_y" name="vis_permission_87"<? if($group_access[87]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_change_location_n" name="vis_permission_87" <? if($group_access[87]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTCHANGEFLAG']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_changeflag_y" name="vis_permission_34" <? if($group_access[34]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_changeflag_n" name="vis_permission_34" <? if($group_access[34]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTSPLITTICKET']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_splitticket_y" name="vis_permission_31" <? if($group_access[31]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_splitticket_n" name="vis_permission_31" <? if($group_access[31]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTLINKUNLINKTICKET']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio"  value="1" id="vis_linkunlinktikets_y" name="vis_permission_32" <? if($group_access[32]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_linkunlinktikets_n" name="vis_permission_32" <? if($group_access[32]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
             <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTEXPORTTOPDF']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio"  value="1" id="vis_ticket_exporttopdf_y" name="vis_permission_57" <? if($group_access[57]==1) echo ' checked="checked"'; ?> /><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_ticket_exporttopdf_n" name="vis_permission_57" <? if($group_access[57]==0) echo ' checked="checked"'; ?> /><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
             <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTTIMETRACKING']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio"  value="1" id="vis_ticket_timetracking_y" name="vis_permission_58" <? if($group_access[58]==1) echo ' checked="checked"'; ?> /><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_ticket_timetracking_n" name="vis_permission_58" <? if($group_access[58]==0) echo ' checked="checked"'; ?> /><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTMODIFYRECEPIENTANDPEOPLE']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio"  value="1" id="vis_ticket_modify_recepientandpeople_y" name="vis_permission_59" <? if($group_access[59]==1) echo ' checked="checked"'; ?> /><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_ticket_modify_recepientandpeople_n" name="vis_permission_59" <? if($group_access[59]==0) echo ' checked="checked"'; ?> /><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTSENTMAIL']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" <? if($group_access[33]==1) echo ' checked="checked"'; ?> value="1" id="vis_sentmail_y" name="vis_permission_33"/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" <? if($group_access[33]==0) echo ' checked="checked"'; ?> value="0" id="vis_sentmail_n" name="vis_permission_33"/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            
            <!--after reply and forword back to listing-->
            <div class="form-group">
				<label class="col-sm-3 control-label"><? echo $vis_language['TXTBACKTOLISTING']; ?></label>
				<div class="col-sm-9">
					<label class="radio i-checks m-r-lg pull-left">
					<input type="radio" <? if($group_access[101]==1) echo ' checked="checked"'; ?> value="1" id="vis_backtolisting_y" name="vis_permission_101"/>
					<i></i> <?= $vis_language['TXTYES']?></label>
					<label class="radio i-checks m-r-lg pull-left">
					<input type="radio" <? if($group_access[101]==0) echo ' checked="checked"'; ?> value="0" id="vis_backtolisting_n" name="vis_permission_101"/>
					<i></i> <?= $vis_language['TXTNO']?></label>
				</div>				
            </div>
			<div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTAUTOLOCK']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" <? if($group_access[100]==1) echo ' checked="checked"'; ?> value="1" id="vis_autolock_y" name="vis_permission_100"/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" <? if($group_access[100]==0) echo ' checked="checked"'; ?> value="0" id="vis_autolock_n" name="vis_permission_100"/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
	</div>
	<div class="col-md-6">
         <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTADDCLIENT']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_addusr_y" name="vis_permission_11" <? if($group_access[11]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_addusr_n" name="vis_permission_11" <? if($group_access[11]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTCLIENTEDIT']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio"  value="1" id="vis_edituser_y" name="vis_permission_12" <? if($group_access[12]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_edituser_n" name="vis_permission_12" <? if($group_access[12]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTCLIENTDELETE']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio"  value="1" id="vis_deleteuser_y" name="vis_permission_13" <? if($group_access[13]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_deleteuser_n" name="vis_permission_13" <? if($group_access[13]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTBANCLIENT']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio"  value="1" id="vis_banuser_y" name="vis_permission_14" <? if($group_access[14]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_banuser_n" name="vis_permission_14" <? if($group_access[14]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div> 
              <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTMOVECLIENTORG']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_moveclient_y" name="vis_permission_79" <? if($group_access[79]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label> </div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_moveclient_n" name="vis_permission_79" <? if($group_access[79]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label> </div>
               </div>
            </div>
			<h5><? echo $vis_language['TXTORGANIZATION']; ?></h5><div class="line b-b line-lg pull-in"></div><br/>
           
			 <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTORGANIZATIONADD']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_addorgusr_y" name="vis_permission_103" <? if($group_access[103]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_addorgusr_n" name="vis_permission_103" <? if($group_access[103]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTORGANIZATIONEDIT']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio"  value="1" id="vis_editorguser_y" name="vis_permission_104" <? if($group_access[104]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_editorguser_n" name="vis_permission_104" <? if($group_access[104]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTORGANIZATIONDELETE']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio"  value="1" id="vis_deleteorguser_y" name="vis_permission_105" <? if($group_access[105]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_deleteorguser_n" name="vis_permission_105" <? if($group_access[105]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <? if(isset($module['blabber']) && $module['blabber']==1){?>
            <h5><? echo $vis_language['TXTBLABS']; ?></h5><div class="line b-b line-lg pull-in"></div><br/>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTMODULE']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio"  name="vis_status_6" id="vis_status_6_yes" value="1" <? if($staffgroup_access[5]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTENABLE']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" name="vis_status_6" id="vis_status_6_no" value="0" <? if($staffgroup_access[5]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTDISABLE']; ?>
                  </label></div>
               </div>
            </div>
            <?} if(isset($module['solutions']) && $module['solutions']==1) {?>
            <h5><? echo $vis_language['TXTSELFHELP']; ?></h5><div class="line b-b line-lg pull-in"></div><br/>
             <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTMODULE']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio"  name="vis_status_4" id="vis_status_4_yes" value="1" <? if($staffgroup_access[3]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTENABLE']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" name="vis_status_4" id="vis_status_4_no" value="0" <? if($staffgroup_access[3]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTDISABLE']; ?>
                  </label></div>
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTACCESS']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio"  value="1" id="vis_selfhelp_y" name="vis_permission_15" <? if($group_access[15]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTMANAGE']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_selfhelp_n" name="vis_permission_15" <? if($group_access[15]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTVIEWONLY']; ?>
                  </label></div>
               </div>
            </div><? } if(isset($module['billing']) && $module['billing']==1) { ?>
			<h5><? echo $vis_language['TXTBILLING']; ?></h5><div class="line b-b line-lg pull-in"></div><br/>
             <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTMODULE']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" <? if($staffgroup_access[4]==1) echo ' checked="checked"'; ?> name="vis_status_5" id="vis_status_5_yes" value="1" /><i></i>
                  <? echo $vis_language['TXTENABLE']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" <? if($staffgroup_access[4]==0) echo ' checked="checked"'; ?> name="vis_status_5" id="vis_status_5_no" value="0"/><i></i>
                  <? echo $vis_language['TXTDISABLE']; ?>
                  </label></div>
               </div>
            </div> 
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTVIEW']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_addbilling_y" name="vis_permission_18" <? if($group_access[18]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_addbilling_n" name="vis_permission_18" <? if($group_access[18]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTMANAGE']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio"  value="1" id="vis_createinvoice_y" name="vis_permission_19" <? if($group_access[19]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_createinvoice_n" name="vis_permission_19" <? if($group_access[19]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div><? } if(isset($module['report']) && $module['report']==1){?>
            <h5><? echo $vis_language['TXTREPORTS']; ?></h5><div class="line b-b line-lg pull-in"></div><br/>
              <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTMODULE']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio"  name="vis_status_7" id="vis_status_7_yes" value="1" <? if($staffgroup_access[6]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTENABLE']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" name="vis_status_7" id="vis_status_7_no" value="0" <? if($staffgroup_access[6]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTDISABLE']; ?>
                  </label></div>
               </div>
            </div><?} if(isset($module['task']) && $module['task']==1){ ?>
             <h5><? echo $vis_language['TXTTASKS']; ?></h5><div class="line b-b line-lg pull-in"></div><br/>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTMODULE']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_status_11_yes" name="vis_status_11" <? if($staffgroup_access[10]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTENABLE']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_status_11_no" name="vis_status_11" <? if($staffgroup_access[10]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTDISABLE']; ?>
                  </label></div>
               </div>
            </div>  
             <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTVIEW']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_alert_y" name="vis_permission_68" <? if($group_access[68]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_alert_n" name="vis_permission_68" <? if($group_access[68]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
               </div>
			<div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTMANAGE']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_alert_y" name="vis_permission_44" <? if($group_access[44]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_alert_n" name="vis_permission_44" <? if($group_access[44]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div><? } if(isset($module['forums']) && $module['forums']==1){ ?>
             <h5><? echo $vis_language['TXTFORUMS']; ?></h5><div class="line b-b line-lg pull-in"></div><br/>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTMODULE']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_status_12_yes" name="vis_status_12" <? if($staffgroup_access[11]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTENABLE']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_status_12_no" name="vis_status_12" <? if($staffgroup_access[11]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTDISABLE']; ?>
                  </label></div>
               </div>
            </div>  
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTFORUMCATEGORY']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio"  value="1" id="vis_forum_cat_y" name="vis_permission_80" <? if($group_access[80]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTMANAGE']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_forum_cat_n" name="vis_permission_80" <? if($group_access[80]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTVIEWONLY']; ?>
                  </label></div>
               </div>
            </div>
             <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTFORUMS']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio"  value="1" id="vis_forum_y" name="vis_permission_81" <? if($group_access[81]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTMANAGE']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_forum_n" name="vis_permission_81" <? if($group_access[81]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTVIEWONLY']; ?>
                  </label></div>
               </div>
            </div>
             <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTTOPIC']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio"  value="1" id="vis_forum_topic_y" name="vis_permission_82" <? if($group_access[82]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTMANAGE']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_forum_topic_n" name="vis_permission_82" <? if($group_access[82]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTVIEWONLY']; ?>
                  </label></div>
               </div>
            </div><? } ?>
             <h5><? echo $vis_language['TXTNOTE']; ?></h5><div class="line b-b line-lg pull-in"></div><br/>
             <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTVIEW']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio"  value="1" id="vis_viewnote_y" name="vis_permission_20" <? if($group_access[20]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_viewnote_n" name="vis_permission_20" <? if($group_access[20]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTMANAGE']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_managenote_y" name="vis_permission_21" <? if($group_access[21]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_managenote_n" name="vis_permission_21" <? if($group_access[21]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
	</div>
	</div>
	</div>
    <div class="row">
	<div class="col-md-12">	
               <div class="col-sm-6"><h5><? echo $vis_language['TXTCOMMENT']; ?></h5><div class="line b-b line-lg pull-in"></div><br/></div>
			   <div class="col-sm-6"><h5><? echo $vis_language['TXTSEARCH']; ?></h5><div class="line b-b line-lg pull-in"></div><br/></div>
	<div class="col-md-6">
		 <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTVIEW']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio"  value="1" id="vis_viewnote_y" name="vis_permission_40" <? if($group_access[40]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_viewnote_n" name="vis_permission_40" <? if($group_access[40]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTMANAGE']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_managenote_y" name="vis_permission_41" <? if($group_access[41]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_managenote_n" name="vis_permission_41" <? if($group_access[41]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
	</div>
	<div class="col-md-6">
         <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTMANAGE'].' '.strtolower($vis_language['TXTFILTERS']); ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio"   value="1" id="vis_filter_y" name="vis_permission_16" <? if($group_access[16]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_filter_n" name="vis_permission_16" <? if($group_access[16]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTMANAGE'].' '.strtolower($vis_language['TXTLABELSTAGS']); ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio"  value="1" id="vis_label_y" name="vis_permission_17" <? if($group_access[17]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_label_n" name="vis_permission_17" <? if($group_access[17]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
	</div>
	</div>
	</div>
       </div> 
        <div class="row">
	<div class="col-md-12">	
               <div class="col-sm-6"><h5><? echo $vis_language['TXTALERTS']; ?></h5><div class="line b-b line-lg pull-in"></div><br/></div>
			   <div class="col-sm-6"><h5><? echo $vis_language['TXTAPI']; ?></h5><div class="line b-b line-lg pull-in"></div><br/></div>
	<div class="col-md-6"> 
         <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTVIEW']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio"   value="1" id="vis_alert_y" name="vis_permission_24" <? if($group_access[24]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_alert_n" name="vis_permission_24" <? if($group_access[24]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>  
             <h5><? echo $vis_language['TXTVIEWS']; ?></h5><div class="line b-b line-lg pull-in"></div><br/>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTMANAGE']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_views_y" name="vis_permission_45" <? if($group_access[45]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_views_n" name="vis_permission_45" <? if($group_access[45]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div> 
	</div>
	<div class="col-md-6">   
        <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTAPIACCESS']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio"   value="1" id="vis_api_y" name="vis_permission_22" <? if($group_access[22]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_api_n" name="vis_permission_22" <? if($group_access[22]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>   
             <h5><? echo $vis_language['TXTMACROS']; ?></h5><div class="line b-b line-lg pull-in"></div><br/>
             <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTMANAGE']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_macro_y" name="vis_permission_46" <? if($group_access[46]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_macro_n" name="vis_permission_46" <? if($group_access[46]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
	</div>
	</div>
	</div>
	 <div class="row">
		<? if(VIS_ITIL==1 && (isset($module['itil']) && $module['itil']==1)){?>
	<div class="col-md-12">	
               <div class="col-sm-6"><h5><? echo $vis_language['TXTNOTIFICATION']; ?></h5><div class="line b-b line-lg pull-in"></div><br/></div>
			   <div class="col-sm-6"><h5><? echo $vis_language['TXTCMDB']; ?></h5><div class="line b-b line-lg pull-in"></div><br/></div>
	<div class="col-md-6"> 
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTDISPLAYNOTIFICATION']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio"  <? if($group_access[26]==1) echo ' checked="checked"'; ?> value="1" id="vis_notifications_y" name="vis_permission_26"/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" <? if($group_access[26]==0) echo ' checked="checked"'; ?> value="0" id="vis_notifications_n" name="vis_permission_26"/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
	</div>
	<div class="col-md-6">  
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTVIEW']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio"   value="1" id="vis_asset_y" name="vis_permission_42" <? if($group_access[42]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_asset_n" name="vis_permission_42" <? if($group_access[42]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTMANAGE']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio"  value="1" id="vis_contract_y" name="vis_permission_43" <? if($group_access[43]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_contract_n" name="vis_permission_43" <? if($group_access[43]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
	</div>
	</div><? } else {?>
	<div class="col-md-6">	
	<div class="col-sm-12"><h5><? echo $vis_language['TXTNOTIFICATION']; ?></h5><div class="line b-b line-lg pull-in"></div><br/></div>
	 <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTDISPLAYNOTIFICATION']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio"  <? if($group_access[26]==1) echo ' checked="checked"'; ?> value="1" id="vis_notifications_y" name="vis_permission_26"/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" <? if($group_access[26]==0) echo ' checked="checked"'; ?> value="0" id="vis_notifications_n" name="vis_permission_26"/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
	</div><? } ?>
	</div>
        <? if(VIS_ITIL==1 && (isset($module['itil']) && $module['itil']==1)){?> 
   <div class="row">
	<div class="col-md-12">	
    <div class="col-sm-6"><h5><? echo $vis_language['TXTCONTRACT']; ?></h5><div class="line b-b line-lg pull-in"></div><br/></div>
	<div class="col-sm-6"><h5><? echo $vis_language['TXTPROBLEMS']; ?></h5><div class="line b-b line-lg pull-in"></div><br/></div>
	<div class="col-md-6">
		  <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTVIEW']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_viewcontract_y" name="vis_permission_60" <? if($group_access[60]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_viewcontract_n" name="vis_permission_60" <? if($group_access[60]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTMANAGE']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio"  value="1" id="vis_managecontract_y" name="vis_permission_61" <? if($group_access[61]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_managecontract_n" name="vis_permission_61" <? if($group_access[61]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
	</div>
	<div class="col-md-6"> 
          <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTVIEW']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_viewproblem_y" name="vis_permission_62" <? if($group_access[62]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_viewproblem_n" name="vis_permission_62" <? if($group_access[62]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTMANAGE']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio"  value="1" id="vis_manageproblem_y" name="vis_permission_63" <? if($group_access[63]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_manageproblem_n" name="vis_permission_63" <? if($group_access[63]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div> 
	</div>
	</div>
	</div>
	
	 <div class="row">
	<div class="col-md-12">	
               <div class="col-sm-6"><h5><? echo $vis_language['TXTCHANGES']; ?></h5><div class="line b-b line-lg pull-in"></div><br/></div>
			   <div class="col-sm-6"><h5><? echo $vis_language['TXTRELEASES']; ?></h5><div class="line b-b line-lg pull-in"></div><br/></div>
	<div class="col-md-6"> 
             <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTVIEW']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_viewchanges_y" name="vis_permission_64" <? if($group_access[64]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_viewchanges_n" name="vis_permission_64" <? if($group_access[64]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTMANAGE']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio"  value="1" id="vis_managechanges_y" name="vis_permission_65" <? if($group_access[65]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_managechanges_n" name="vis_permission_65" <? if($group_access[65]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
	</div>
	<div class="col-md-6">   
           <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTVIEW']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_viewrelease_y" name="vis_permission_66" <? if($group_access[66]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_viewrelease_n" name="vis_permission_66" <? if($group_access[66]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>

            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTMANAGE']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio"  value="1" id="vis_managerelease_y" name="vis_permission_67" <? if($group_access[67]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_managerelease_n" name="vis_permission_67" <? if($group_access[67]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
	</div>
	</div>
	</div>
           <? } ?>   
<div class="row">
 	<? if(($whmcs!=-1 && $whmcs['is_enabled']==1) || ($livechat!=-1 && $livechat['is_enabled']==1) ||($livezilla!=-1 && $livezilla['is_enabled']==1) || ($userlike!=-1 && $userlike['is_enabled']==1)
		 || ($comm100!=-1 && $comm100['is_enabled']==1) || ($gotosetting_details!=-1 && $gotosetting_details['is_enabled']==1) || ($assist_details!=-1 && $assist_details['is_enabled']==1) || 
		 ($teamviewer_details!=-1 && $teamviewer_details['is_enabled']==1) || ($webex_details!=-1 && $webex_details['is_enabled']==1) || ($twilio_details!=-1 && $twilio_details['is_enabled']==1) || 
		 ($freshbook_details!=-1 && $freshbook_details['is_enabled']==1) || ($mailchimp_details!=-1 && $mailchimp_details['is_enabled']==1) || ($magento_details!=-1 && $magento_details['is_enabled']==1)|| 
		 ($clickdesk!=-1 && $clickdesk['is_enabled']==1) || ($zopim!=-1 && $zopim['is_enabled']==1) || ($insightly_details!=-1 && $insightly_details['is_enabled']==1)  || ($bigcommerce_details!=-1 && $bigcommerce_details['is_enabled']==1) || ($jira_details!=-1 && $jira_details['is_enabled']==1) || ($blesta_details!=-1 && $blesta_details['is_enabled']==1) || ($capcrm_details!=-1 && $capcrm_details['is_enabled']==1) || ($redmine_details!=-1 && $redmine_details['is_enabled']==1) || ($exotel_details!=-1 && $exotel_details['is_enabled']==1) || ($gcal_details!=-1 && $gcal_details['is_enabled']==1) || ($crisp_details!=-1 && $crisp_details['is_enabled']==1) || ($aircall_details!=-1 && $aircall_details ['is_enabled']==1) || ($xero_details!=-1 && $xero_details ['is_enabled']==1)){?>		
		 <div class="col-sm-12"><div class="col-sm-6"><h5><? echo $vis_language['TXTINTEGRATIONS']; ?></h5><div class="line b-b line-lg pull-in"></div></div><br/></div>
	<div class="col-md-12">
	  <div class="col-md-6">
		   <? if($whmcs!=-1 && $whmcs['is_enabled']==1) {?>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTWHMCS']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_whmcs_y" name="vis_permission_69" <? if($group_access[69]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_whmcs_n" name="vis_permission_69" <? if($group_access[69]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>  
		   <? }if($livechat!=-1 && $livechat['is_enabled']==1) {?>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTLIVECHAT']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_livechat_y" name="vis_permission_47" <? if($group_access[47]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_livechat_n" name="vis_permission_47" <? if($group_access[47]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <? } 
            if($livezilla!=-1 && $livezilla['is_enabled']==1) {?>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTLIVEZILLA']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_livezilla_y" name="vis_permission_48" <? if($group_access[48]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_livezilla_n" name="vis_permission_48" <? if($group_access[48]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <? } 
            if($userlike!=-1 && $userlike['is_enabled']==1) {?>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTUSERLIKE']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_userlike_y" name="vis_permission_49" <? if($group_access[49]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_userlike_n" name="vis_permission_49" <? if($group_access[49]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <? }
            if($comm100!=-1 && $comm100['is_enabled']==1) {?>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTCOMMCHAT']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_comchat_y" name="vis_permission_50" <? if($group_access[50]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_comchat_n" name="vis_permission_50" <? if($group_access[50]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <? }  
            if($gotosetting_details!=-1 && $gotosetting_details['is_enabled']==1) {?>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTGOTOMEETINGS']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_gotomeeting_y" name="vis_permission_51" <? if($group_access[51]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_gotomeeting_n" name="vis_permission_51" <? if($group_access[51]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <? }
            if($assist_details!=-1 && $assist_details['is_enabled']==1) {?>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTGOTOASSIST']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_gotoassist_y" name="vis_permission_52" <? if($group_access[52]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_gotoassist_n" name="vis_permission_52" <? if($group_access[52]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <? }
            if($teamviewer_details!=-1 && $teamviewer_details['is_enabled']==1) {?>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTTEAMVIEWER']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_teamviewer_y" name="vis_permission_53" <? if($group_access[53]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_teamviewer_n" name="vis_permission_53" <? if($group_access[53]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <? }  
            if($webex_details!=-1 && $webex_details['is_enabled']==1) {?>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTWEBEX']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_webex_y" name="vis_permission_54" <? if($group_access[54]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_webex_n" name="vis_permission_54" <? if($group_access[54]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <? }  
            if($twilio_details!=-1 && $twilio_details['is_enabled']==1) {?>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTTWILIO']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_twilio_y" name="vis_permission_55" <? if($group_access[55]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_twilio_n" name="vis_permission_55" <? if($group_access[55]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <? } 
             if($clickdesk!=-1 && $clickdesk['is_enabled']==1) {?>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTCLICKDESK']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_clickdesk_y" name="vis_permission_70" <? if($group_access[70]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_clickdesk_n" name="vis_permission_70" <? if($group_access[70]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <? }            
            if($zopim!=-1 && $zopim['is_enabled']==1) { ?>
             <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTZOPIM']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_zopim_y" name="vis_permission_73" <? if($group_access[73]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_zopim_n" name="vis_permission_73" <? if($group_access[73]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>   
           <? }            
             if($freshbook_details!=-1 && $freshbook_details['is_enabled']==1) {?>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTFRESHBOOKS']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_freshbook_y" name="vis_permission_71" <? if($group_access[71]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_freshbook_n" name="vis_permission_71" <? if($group_access[71]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <? } 
            if($mailchimp_details!=-1 && $mailchimp_details['is_enabled']==1) {?>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTMAILCHIMP']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_mailchimp_y" name="vis_permission_72" <? if($group_access[72]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_mailchimp_n" name="vis_permission_72" <? if($group_access[72]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
              <? } 
            if($magento_details!=-1 && $magento_details['is_enabled']==1) {?>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTMAGENTO']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_magento_y" name="vis_permission_74" <? if($group_access[74]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_magento_n" name="vis_permission_74" <? if($group_access[74]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <? } if($insightly_details!=-1 && $insightly_details['is_enabled']==1) {?>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTINSIGHTLY']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_insightly_y" name="vis_permission_75" <? if($group_access[75]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_insightly_n" name="vis_permission_75" <? if($group_access[75]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
             <? } if($bigcommerce_details!=-1 && $bigcommerce_details['is_enabled']==1) {?>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTBIGCOMMERCE']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_bigcommerce_y" name="vis_permission_76" <? if($group_access[76]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_bigcommerce_n" name="vis_permission_76" <? if($group_access[76]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
             <? }if($jira_details!=-1 && $jira_details['is_enabled']==1) { ?>
               <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTJIRA']; ?></label>
                <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_jira_y" name="vis_permission_77" <? if($group_access[77]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_jira_n" name="vis_permission_77" <? if($group_access[77]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
                </div>
            </div>
             <? }if($blesta_details!=-1 && $blesta_details['is_enabled']==1) { ?>
               <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTBLESTA']; ?></label>
                <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_blesta_y" name="vis_permission_78" <? if($group_access[78]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_blesta_n" name="vis_permission_78" <? if($group_access[78]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
                </div>
            </div>
            <? } if($capcrm_details!=-1 && $capcrm_details['is_enabled']==1) { ?>
               <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTCAPSULECRM']; ?></label>
                <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_capcrm_y" name="vis_permission_91" <? if($group_access[91]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_capcrm_n" name="vis_permission_91" <? if($group_access[91]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
                </div>
            </div>
            <? } if($redmine_details!=-1 && $redmine_details['is_enabled']==1) { ?>
               <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTREADMINE']; ?></label>
                <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_redmine_y" name="vis_permission_92" <? if($group_access[92]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_redmine_n" name="vis_permission_92" <? if($group_access[92]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
                </div>
            </div>
            <? } if($exotel_details!=-1 && $exotel_details['is_enabled']==1) { ?>
               <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTEXOTEL']; ?></label>
                <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_exotel_y" name="vis_permission_93" <? if($group_access[93]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_exotel_n" name="vis_permission_93" <? if($group_access[93]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
                </div>
            </div>
             <? } if($gcal_details!=-1 && $gcal_details['is_enabled']==1) { ?>
               <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTGOOGLEAPP']; ?></label>
                <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_gcal_y" name="vis_permission_94" <? if($group_access[94]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_gcal_n" name="vis_permission_94" <? if($group_access[94]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
                </div>
            </div>
             <? } if($crisp_details!=-1 && $crisp_details['is_enabled']==1) { ?>
               <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTCRISPAPP']; ?></label>
                <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_crisp_y" name="vis_permission_97" <? if($group_access[97]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_crisp_n" name="vis_permission_97" <? if($group_access[97]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
                </div>
            </div>
             <? } if($aircall_details!=-1 && $aircall_details['is_enabled']==1) { ?>
               <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTAIRCALL']; ?></label>
                <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_aircall_y" name="vis_permission_98" <? if($group_access[98]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_aircall_n" name="vis_permission_98" <? if($group_access[98]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
                </div>
            </div>
			<? } if($xero_details!=-1 && $xero_details['is_enabled']==1) { ?>
               <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTXERO']; ?></label>
                <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_xero_y" name="vis_permission_102" <? if($group_access[102]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_xero_n" name="vis_permission_102" <? if($group_access[102]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
                </div>
            </div>
            <? } ?>
      </div>    
	</div>  <? } ?>
	</div>
	<div class="row">
	<div class="col-md-12">	
               <div class="col-sm-6"><h5><? echo $vis_language['TXTSCHEDULETICKET']; ?></h5><div class="line b-b line-lg pull-in"></div><br/></div>
			   <div class="col-sm-6"><h5><? echo $vis_language['TXTSHOWONLINESTAFF']; ?></h5><div class="line b-b line-lg pull-in"></div><br/></div>
	<div class="col-md-6"> 
             <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTVIEW']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_viewschedule_y" name="vis_permission_83" <? if($group_access[83]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_viewschedule_n" name="vis_permission_83" <? if($group_access[83]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTMANAGE']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio"  value="1" id="vis_manageschedule_y" name="vis_permission_84" <? if($group_access[84] == 1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_manageschedule_n" name="vis_permission_84" <? if($group_access[84] == 0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
	</div>
	<div class="col-md-6">   
		<div class="form-group">
		   <label class="col-sm-3 control-label"><? echo $vis_language['TXTVIEW']; ?></label>
		   <div class="col-sm-9">
			  <div class="radio i-checks m-r-lg pull-left "><label>
			  <input type="radio" value="1" id="vis_show_online_staff_y" name="vis_permission_89"  <? if($group_access[89] == 1 || isset($group_access[89])!=1) echo ' checked="checked"'; ?> /><i></i>
			  <? echo $vis_language['TXTYES']; ?></label></div>
			  <div class="radio i-checks m-r-lg pull-left "><label>
			  <input type="radio" value="0" id="vis_show_online_staff_n" name="vis_permission_89" <? if($group_access[89] == 0 && isset($group_access[89])) echo ' checked="checked"'; ?> /><i></i>
			  <? echo $vis_language['TXTNO']; ?>
			  </label></div>
		   </div>
		</div>
	</div>
	</div>
	</div>
	<div class="row">
	<div class="col-md-12">	
               <div class="col-sm-6"><h5><? echo $vis_language['TXTROUNDROBIN']; ?></h5><div class="line b-b line-lg pull-in"></div><br/></div>
			   <div class="col-sm-6"><h5>&nbsp;</h5><div class="line b-b line-lg pull-in"></div><br/></div>
	 <div class="col-md-6"> 
             <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTSELFAUTOTICKETASSIGN']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="1" id="vis_self_auto_assign_y" name="vis_permission_95" <? if($group_access[95]==1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_self_auto_assign_n" name="vis_permission_95" <? if($group_access[95]==0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTAGENTAVAILABILITY']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio"  value="1" id="vis_agent_availability_y" name="vis_permission_96" <? if($group_access[96] == 1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_agent_availability_n" name="vis_permission_96" <? if($group_access[96] == 0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
              <div class="form-group">
               <label class="col-sm-3 control-label"><? echo $vis_language['TXTMANAGEROUNDROBINPARTICIPANT']; ?></label>
               <div class="col-sm-9">
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio"  value="1" id="vis_other_staff_manage_y" name="vis_permission_99" <? if($group_access[99] == 1) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label></div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" id="vis_other_staff_manage_n" name="vis_permission_99" <? if($group_access[99] == 0) echo ' checked="checked"'; ?>/><i></i>
                  <? echo $vis_language['TXTNO']; ?>
                  </label></div>
               </div>
            </div>
	</div>
	<div class="col-md-6">   
		<div class="form-group">
		   
		</div>
	</div>
	</div>
	</div>
	
	
	<div class="padder"><div class="line b-b line-lg pull-in"></div></div> 
		<br/>
		<div class="form-group">  
		   <div class="col-sm col-sm-offset-2">
			  <button type="button" class="btn btn-primary" onclick="$('#vis_workpanel_div').visExecution('submit_form',{'vis_module':'setting', 'vis_operation':'update_staff_group', 'vis_form':'vis_staffgroup_permission_form' })"><? echo $vis_language['TXTUPDATE']; ?></button>
		   </div>
		</div>
		<input type="hidden" name="vis_group_id" id="vis_group_id" value="<? echo $staffgroup_details['group_id']; ?>" />
		<input type="hidden" name="vis_department_count" id="vis_department_count" value="<? echo count($department_details); ?>" />
</form>
