<? global $vis_language;?>


         <form class="form-horizontal" id="vis_client_group_edit_form" name="vis_client_group_edit_form" method="post" >
		<div class="col-md-6">
			 <input type="hidden" name="vis_group_id" value="<? echo $group['group_id']; ?>" />
            <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_name" id="vis_name" value="<? echo $group['group_name']; ?>">
               </div>
            </div>
           <? if($group['group_id']!= 1){?>
             <div class="form-group">
               <label class="col-sm-2 control-label"><? echo $vis_language['TXTDOMAINLIST']; ?></label>
               <div class="col-sm-10">
                  <textarea class="form-control input-sm" name="vis_domain_list" id="vis_domain_list"><? echo $group['domain_list']; ?></textarea>
               </div>
            </div>
            <? } ?>
             <div class="form-group">
               <label class="col-sm-2 control-label"><? echo $vis_language['TXTDESCRIPTION']; ?></label>
               <div class="col-sm-10">
                  <textarea class="form-control input-sm" name="vis_details" id="vis_details"><? echo $group['description']; ?></textarea>
               </div>
            </div>
            <? if($group['group_id']!= 1){?>
            <div class="form-group">
					<label for="vis_domain" class="col-sm-2 control-label"><? echo $vis_language['TXTDOMAIN']; ?></label>
					<div class="col-sm-10">
						<select class="form-control selectpicker" name="vis_domain" id="vis_domain"<? if(count($domain_details)>10) echo ' data-live-search="true"';?>>
						<?
							for($i=0;$i<count($domain_details);$i++){
								echo '<option value="'.$domain_details[$i]['domain_id'].'" '.(($domain_details[$i]['domain_id']==$group['domain_id'])?' selected="selected"':'').'>'.$domain_details[$i]['domain_name'].'</option>';
							} ?>
						</select>
					</div>
			</div>
            <? } ?>
            <div class="form-group">
               <label class="col-sm-2 control-label"><? echo $vis_language['TXTADDRESS']; ?></label>
               <div class="col-sm-10">
                  <textarea class="form-control input-sm" name="vis_address" id="vis_address"><? echo $group['office_address']; ?></textarea>
               </div>
            </div>
             <div class="form-group">
               <label class="col-sm-2 control-label"><? echo $vis_language['TXTCITY']; ?></label>
               <div class="col-sm-10">
                  <input class="form-control input-sm" type="text" name="vis_city" id="vis_city"  value="<? echo $group['office_city']; ?>">
               </div>
            </div>
             <div class="form-group">
               <label class="col-sm-2 control-label"><? echo $vis_language['TXTSTATE']; ?></label>
               <div class="col-sm-10">
                  <input class="form-control input-sm" type="text" name="vis_state" id="vis_state" value="<? echo $group['office_state']; ?>">
               </div>
            </div>   
           
         </div>
        <div class="col-md-6">
			  <div class="form-group">
               <label class="col-sm-2 control-label"><? echo $vis_language['TXTCOUNTRY']; ?></label>
               <div class="col-sm-10">
                  <input class="form-control input-sm" type="text" name="vis_country" id="vis_country" value="<? echo $group['office_country']; ?>">
               </div>
            </div>
             <div class="form-group">
               <label class="col-sm-2 control-label"><? echo $vis_language['TXTZIPCODE']; ?></label>
               <div class="col-sm-10">
                  <input class="form-control input-sm" type="text" name="vis_zipcode" id="vis_zipcode" value="<? echo $group['zip_code']; ?>">
               </div>
            </div>
			 <div class="form-group">
               <label class="col-sm-2 control-label"><? echo $vis_language['TXTWEBSITE']; ?></label>
               <div class="col-sm-10">
                  <input class="form-control input-sm" type="text" name="vis_website" id="vis_website" value="<? echo $group['office_website']; ?>">
               </div>
            </div>
			  <div class="form-group">
               <label class="col-sm-2 control-label"><? echo $vis_language['TXTFAX']; ?></label>
               <div class="col-sm-10">
                  <input class="form-control input-sm" type="text" name="vis_fax" id="vis_fax" value="<? echo $group['office_fax']; ?>">
               </div>
            </div>
			  <div class="form-group">
               <label class="col-sm-2 control-label"><? echo $vis_language['TXTEMAIL']; ?></label>
               <div class="col-sm-10">
                  <input class="form-control input-sm" type="text" name="vis_email" id="vis_email" value="<? echo $group['office_email']; ?>">
               </div>
            </div>
             <div class="form-group">
               <label class="col-sm-2 control-label"><? echo $vis_language['TXTMOBILENUMBER']; ?></label>
               <div class="col-sm-10">
                  <input class="form-control input-sm" type="text" name="vis_mob" id="vis_mob" value="<? echo $group['office_contact_num']; ?>">
               </div>
            </div>
             <div class="form-group">
               <label class="col-sm-2 control-label"><? echo $vis_language['TXTPHONE']; ?></label>
               <div class="col-sm-10">
                  <input class="form-control input-sm" type="text" name="vis_phone" id="vis_phone" value="<? echo $group['office_phone']; ?>">
               </div>
            </div>
			 <div class="form-group">
               <label class="col-sm-2 control-label"><? echo $vis_language['TXTDISPLAYORDER']; ?></label>
               <div class="col-sm-10">
                  <input class="form-control input-sm" type="text" name="vis_order" id="vis_order" value="<? echo $group['display_order']; ?>">
               </div>
            </div>
		</div>
        <!----------------- Newly added div ---------------->
		 <?
		 if($custom_field_var!=''){
            ?>
            <div class="row">
                <div class="wrapper">
                    <div class="form-group">
                        <? 	echo $custom_field_var;?>
                        <input type="hidden" name="vis_add_org" id="vis_add_org" value="1" />
                        <input type="hidden" name="vis_department" id="vis_department" value="<? echo $departmentid; ?>" />
                    </div>
                </div>
            </div>
            <? 
         } 
         ?>
         <!-------------------------------------------------->
		<div class="col-sm-12">
            <div class="line b-b line-lg pull-in"></div>
            <br/>
            <div class="form-group">
				<? if($group['group_id']==1){?><div class="col-sm-4 col-sm-offset-2"><? } else { ?><div class="col-lg-offset-1 col-lg-10"><? } ?>
                  <button type="button" class="btn btn-primary" onclick="$('#vis_workpanel_div').visExecution('submit_form',{'vis_module':'client', 'vis_operation':'update_client_group', 'vis_form':'vis_client_group_edit_form'})"><? echo $vis_language['TXTUPDATE']; ?></button>
               </div>
            </div>
      </div>
      </form>

