<?
   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 $operation['view_title'];?></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_domains/<?echo $vis_language['TXTDOMAIN'];?>" onclick="$('#vis_workpanel_div').visExecution('load_module','<?echo $vis_language['TXTDOMAIN'];?>',{'vis_module':'setting','vis_operation':'view_domains'});" class="link"><? echo $operation['view_title']; ?></a> </li>
         <li class="active"><?echo $vis_language['TXTADDDOMAIN'];?></li>
      </ul>
   </div>
</section>
<section class="padder">
   <section class="panel panel-default">
      <header class="panel-heading sub_header"><? echo $vis_language['TXTADDDOMAIN']; ?></header>
      <div class="panel-body">
         <form class="form-horizontal" id="vis_domain_form" name="vis_domain_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_domainname" id="vis_domainname">
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-2 control-label"><? echo $vis_language['TXTDOMAIN']; ?><br /> e.g. support.domain.com</label>
               <div class="col-sm-10">
                  <input class="form-control input-sm" type="text" name="vis_domain" id="vis_domain">
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-2 control-label"><? echo $vis_language['TXTSUPPORTPORTALURL']; ?></label>
               <div class="col-sm-10">
                  <input class="form-control input-sm" type="text" name="vis_domainurl" id="vis_domainurl">
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-2 control-label"><? echo $vis_language['TXTDEFAULTEMAIL']; ?></label>
               <div class="col-sm-10">
                  <input class="form-control input-sm" type="text" name="vis_domainemail" id="vis_domainemail">
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-2 control-label"><? echo $vis_language['TXTCOMPANYADDRESS']; ?></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 class="col-sm-2 control-label"><? echo $vis_language['TXTDEFAULTLANGUAGE']; ?></label>
               <div class="col-sm-10">
                  <select name="vis_language" id="vis_language" class="form-control input-sm selectpicker" ><?
                     for($i=0;$i<$language_info['total']; $i++) echo '<option value="'.$language_details[$i]['language_id'].'">'.$language_details[$i]['language_name'].'</option> '; ?>
                  </select>
               </div>
            </div>
			<div class="form-group">
			  <label class="col-sm-2 control-label"><? echo $vis_language['TXTOUTGOINGEMAIL']; ?></label>
			  <div class="col-sm-10">
				 <select name="vis_mailtype" id="vis_mailtype" class="form-control input-sm selectpicker" <? if(count($smtp_details)>10) echo 'data-live-search="true"';?>>
				  <option value="0"<? if($smtp_details == -1) echo ' selected="selected"';?>>PHP mail</option>
					<?
					   if($smtp_details != -1) {
						   for($i=0;$i<count($smtp_details); $i++) echo '<option value="'.$smtp_details[$i]['smtp_id'].'"'.(($domain_details['send_mail']==$smtp_details[$i]['smtp_id'])?' selected="selected"':'').'>'.$smtp_details[$i]['smtp_user'].'</option>';
					   } ?>
				 </select>
			  </div>
		   </div>
            <div class="form-group">
               <label class="col-sm-2 control-label"><? echo $vis_language['TXTCURRENCY']; ?></label>
               <div class="col-sm-10">
                  <select name="vis_currency" id="vis_currency" class="form-control input-sm selectpicker" data-live-search="true">
                    <option value="USD">U.S. Dollar</option>
					<option value="AUD">Australian Dollar</option>
					<option value="BRL">Brazilian Real</option>
					<option value="CAD">Canadian Dollar</option>
					<option value="CZK">Czech Koruna</option>
					<option value="DKK">Danish Krone</option>
					<option value="EUR">Euro</option>
					<option value="HKD">Hong Kong Dollar</option>
					<option value="HUF">Hungarian Forint</option>
					<option value="INR">Indian Rupee</option>
					<option value="IDR">Indonesian Rupiah</option>
					<option value="ILS">Israeli New Sheqel</option>
					<option value="JPY">Japanese Yen</option>
					<option value="MYR">Malaysian Ringgit</option>
					<option value="MXN">Mexican Peso</option>
					<option value="NOK">Norwegian Krone</option>
					<option value="NZD">New Zealand Dollar</option>
					<option value="PHP">Philippine Peso</option>
					<option value="PLN">Polish Zloty</option>
					<option value="GBP">Pound Sterling</option>
					<option value="SGD">Singapore Dollar</option>
					<option value="ZAR">South African Rand</option>
					<option value="SEK">Swedish Krona</option>
					<option value="CHF">Swiss Franc</option>
					<option value="TWD">Taiwan New Dollar</option>
					<option value="THB">Thai Baht</option>
					<option value="TRY">Turkish Lira</option>
                  </select>
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-2 control-label"><? echo 'BCC email'; ?></label>
               <div class="col-sm-10">
                  <input class="form-control input-sm" type="text" name="vis_bcc_email" id="vis_bcc_email">
               </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_displayorder" id="vis_displayorder" 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">
                  <span ></span>
                  </label>
               </div>
            </div>
            <div class="line b-b line-lg pull-in"></div>
            <br/>
            <div class="form-group">
               <div class="col-sm-4 col-sm-offset-2">
                  <button type="button" class="btn btn-primary" onclick="$('#vis_workpanel_div').visExecution('submit_form',{'vis_module':'setting', 'vis_operation':'add_domain', 'vis_form':'vis_domain_form'})"><? echo $vis_language['TXTADD']; ?></button>
               </div>
            </div>
      </div>
      </form>
      </div>
   </section>
</section>
<script>
 $(".selectpicker").selectpicker();
</script>
