<? 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['TXTORGANIZATION'];?></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="#/client/view_clients/<? echo $vis_language['TXTCLIENTS']; ?>" onclick="$('#vis_workpanel_div').visExecution('load_module','<? echo $vis_language['TXTCLIENTS']; ?>',{'vis_module':'client','vis_operation':'view_clients'});"><? echo $vis_language['TXTCLIENTS']; ?></a></li>
         <li><a  class="link" href="#/client/view_client_group/<? echo $vis_language['TXTORGANIZATION']; ?>" onclick="$('#vis_workpanel_div').visExecution('load_module','<? echo $vis_language['TXTORGANIZATION'];?>',{'vis_module':'client', 'vis_operation':'view_client_group'});" class="link"><? echo $vis_language['TXTORGANIZATION']; ?></a> </li>
         <li class="active"><?echo $vis_language['TXTADDORGANIZATION'];?></li>
      </ul>
   </div>
</section>
<section class="padder">
   <section class="panel panel-default">
      <header class="panel-heading sub_header"><? echo $vis_language['TXTADDORGANIZATION']; ?></header>
      <div class="panel-body">
         <form class="form-horizontal" id="vis_client_group_new_form" name="vis_client_group_new_form" method="post" >
		<div class="col-md-6">
            <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">
               </div>
            </div>
             <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"></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"></textarea>
               </div>
            </div>
            <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_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"></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">
               </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">
               </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">
               </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">
               </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">
               </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">
               </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">
               </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">
               </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">
               </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="0">
               </div>
            </div>
			 <div class="form-group">
               <label class="col-sm-2 control-label"><? echo $vis_language['TXTSTATUS']; ?></label>
               <div class="col-sm-1">
                  <label class="switch">
                  <input type="checkbox" checked="checked" name="vis_status"  id="vis_status_yes">
                  <span ></span>
                  </label>
               </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">
               <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':'add_client_group', 'vis_form':'vis_client_group_new_form'})"><? echo $vis_language['TXTADD']; ?></button>
               </div>
            </div>
          </div>
      </form>
      </div>
   </section>
</section>
