<? global $vis_language; ?>
<section id="breadcrumb" class="row m-b m-l-none m-r-none">
   <div class="col-sm-6">
      <h3 class="m-b-xs text-black"><? echo $vis_language['TXTSTAFFGROUP'];?></h3>
      <ul class="breadcrumb bg-empty no-border m-b-xxs no-padder">
         <li><a class="link" href="#/home/quick_view/<? echo $vis_language['TXTHOME']; ?>"><? echo $vis_language['TXTHOME']; ?></a></li>
         <li><a class="link" href="#/setting/setting_menu/<? echo $vis_language['TXTSETTINGS'];?>" onclick="$('#vis_workpanel_div').visExecution('load_module','<? echo $vis_language['TXTSETTINGS'];?>',{'vis_module':'setting','vis_operation':'setting_menu'});"><? echo $vis_language['TXTSETTINGS']; ?></a></li>
         <li><a  class="link" href="#/setting/view_staffgroup/<? echo $vis_language['TXTSTAFFGROUP'];?>" onclick="$('#vis_workpanel_div').visExecution('load_module','<? echo $vis_language['TXTSTAFFGROUP'];?>',{'vis_module':'setting','vis_operation':'view_staffgroup'});" class="link"><? echo $vis_language['TXTSTAFFGROUP']; ?></a> </li>
         <li class="active"><?echo $vis_language['TXTADDSTAFFGROUP'];?></li>
      </ul>
   </div>
</section>
<section class="padder">
   <section class="panel panel-default">
      <header class="panel-heading sub_header"><? echo $vis_language['TXTADDSTAFFGROUP']; ?></header>
      <div class="panel-body">
         <form class="form-horizontal"  id="vis_staffgroup_form" name="vis_staffgroup_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="">
               </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_name'].'</option>'; ?>
				  </select>
			</div>
            </div>
            <div class="padder">
				<div class="form-group">
					<div class="col-sm-12"><h5><? echo $vis_language['TXTDEPARTMENTACCESS']; ?></h5></div>
				</div>
				<div class="line b-b line-lg pull-in padder"></div></div>
            <br/>
            <div class="form-group">
               <label class="col-sm-2 control-label"></label>
               <div class="col-sm-10">
                  <div class="checkbox m-n m-r-sm i-checks"><label>
                  <input type="checkbox"  value="0" id="vis_department_all" name="vis_department_all"  checked="checked"><i></i> <? echo $vis_language['TXTALLDEPARTMENTS']; ?>
                  </label> </div>
               </div>
            </div>
            <div id="department_access">
               <div class="form-group">
                  <label class="col-sm-2 control-label"></label>
                  <div class="col-sm-10">
					<div class="dept_access_list">
                     <? $dept_list=array();
                        for($i=0;$i<count($department_details);$i++) { ?>
                     <label class="checkbox-inline i-checks">
                     <input type="checkbox"  value="<? echo $department_details[$i]['department_id']; ?>" id="vis_department" name="vis_department[]" /> <i></i><? echo $department_details[$i]['domain_name'].' :: '.$department_details[$i]['department_name']; ?></label><br/>
                     <?
                        $dept_list[]=$department_details[$i]['department_id'];
                        } ?>
                  </div>
                  </div>
               </div>
            </div>
             <div 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" 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" /><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" /><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" value="1" checked="checked" 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" 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"/><i></i>
                  <? echo $vis_language['TXTYES']; ?></label> </div>
                  <div class="radio i-checks m-r-lg pull-left "><label>
                  <input type="radio" value="0" checked="checked" id="vis_moveticket_n" name="vis_permission_25"/><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" checked="checked" id="vis_ticketforward_y" name="vis_permission_2"/><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"/><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" 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"/><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" 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"/><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" 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"/><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" 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"/><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" 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"/><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" 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"/><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" 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"/><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" 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"/><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" 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"/><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" 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"/><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" 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"/><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" 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"/><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" 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"/><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" 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"/><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" 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"/><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" 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"/><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" 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"/><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" 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"/><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" 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"/><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" 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"/><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" 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"/><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" 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"/><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" value="1" id="vis_sentmail_y" name="vis_permission_33" 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_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" name="vis_permission_94" id="vis_backtolisting_y" value="1" <? if($group_access[94]==1) echo ' checked="checked"'; ?>><i></i> <?= $vis_language['TXTYES']?></label>
					<label class="radio i-checks m-r-lg pull-left"><input type="radio" name="vis_permission_94"  id="vis_backtolisting_n" value="0" <? if($group_access[94]==0) echo ' checked="checked"'; ?>><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" value="1" id="vis_autolock_y" name="vis_permission_100" 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_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" 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"/><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" 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"/><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" 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"/><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" 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"/><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" 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"/><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" 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"/><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" 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"/><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" 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"/><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" 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"/><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" 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"/><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" 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"/><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" name="vis_status_5" id="vis_status_5_yes" value="1" 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_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" 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"/><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" 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"/><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" 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"/><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" 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"/><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" 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"/><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" 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"/><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" name="vis_status_12" id="vis_status_12_yes" value="1" 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_12" id="vis_status_12_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['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" 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"/><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" 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"/><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" 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"/><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" 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"/><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" 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"/><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" 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"/><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" 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"/><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" 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"/><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" 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"/><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" 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" /><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" 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" /><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" 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" /><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" 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" /><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" 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" 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" 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" /><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" 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"/><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" 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"  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" 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" /><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" 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" /><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" 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" /><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" 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" /><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" 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" /><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" 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" /><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" 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" /><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" 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" /><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_details!=-1 && $zopim_details['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)){?>
		<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" 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" /><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" 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" /><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" 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" /><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" 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" /><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" 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" /><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" 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" /><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" 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" /><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" 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" /><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" 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" /><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" 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" /><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" 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" /><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" 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" /><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" 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" /><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" 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" /><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" 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" /><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" 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" /><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" 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" /><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" 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" /><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" 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" /><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" 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" /><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" 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" /><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" 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" /><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['TXTGOOGLECALENDER']; ?></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" 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" /><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" 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" /><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" 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" /><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" 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" /><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"  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" /><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"  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" /><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"  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" /><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"  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" /><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"  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" /><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"  ?>/><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" ?>/><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 padder"></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':'add_staff_group', 'vis_form':'vis_staffgroup_form' })"><? echo $vis_language['TXTADD']; ?></button>
               </div>
            </div>
            <input type="hidden" name="vis_staffgroup_id" id="vis_staffgroup_id" value=" " />
            <input type="hidden" name="vis_department_count" id="vis_department_count" value="<? echo count($department_details); ?>" />
         </form>
      </div>
   </section>
</section>
<script type="text/javascript">
    if ($('#vis_department_all').is(":checked"))
   {
     $('#department_access').hide();
      }
               $(document).ready(function () {
                   $('#vis_department_all').click(function () {
   		if ($('#vis_department_all').is(":checked"))
   		{
                          $('#department_access').hide();
           }
          else
          {
   	       $('#department_access').show();
		   $('.dept_access_list').each(function(index) {
        $(this).find('input[type="checkbox"]').removeAttr('checked');
       });
          }
               });
           });/*  
		   
	 $(".selectpicker").selectpicker();
   function toggle_dept_list(){
       if($('#vis_department_all').is(":checked")){ $('#vis_dept_list_section').hide();
							}else{ $('#vis_dept_list_section').show();
							$('.dept_access_list').each(function(index) {
        $(this).find('input[type="checkbox"]').removeAttr('checked');
       });
							}
   }  */
</script>
