<{if $op eq 'default'}>
<div id="contactusform" class="container">

<form class="form-horizontal" role="form" action='<{$xoops_url}>/modules/<{$xoops_dirname}>/contactusform.php' method='post' >
<{if $contactusform.remarkstextbox}><div class="alert alert-info" role="alert"><{$contactusform.remarkstextbox}></div><{/if}>

<div class="row contactusform_row">
<label for="name_user" class="col-md-2"><{$smarty.const._MD_CONTACTNAME}></label>
<div class="col-md-8"><{$contactusform.name_user}></div>
<div class="col-md-2"><span id="helpBlockname_user" class="help-block blockeach1"><{$smarty.const._MD_CONTACTREQUIRED}></span></div>
<div class="w-100"></div>

<label for="email_user" class="col-md-2 control-label"><{$smarty.const._MD_CONTACTEMAIL}></label>
<div class="col-md-8"><{$contactusform.email_user}></div>
<div class="col-md-2"><span id="helpBlockemail_user" class="help-block blockeach1"><{$smarty.const._MD_CONTACTREQUIRED}></span></div>
<div class="w-100"></div>

<label for="tel_user" class="col-md-2 control-label"><{$smarty.const._MD_CONTACTTELEPHONE}></label>
<div class="col-md-8"><{$contactusform.tel_user}></div>
<div class="col-md-2"><span id="helpBlocktel_user" class="help-block blockeach1"><{$smarty.const._MD_CONTACTREQUIRED}></span></div>
<div class="w-100"></div>

<label for="citytel_user" class="col-md-2 control-label"><{$smarty.const._MD_CONTACTTELECITYPHONE}></label>
<div class="col-md-8"><{$contactusform.citytel_user}></div>
<div class="w-100"></div>

<label  class="col-md-2 control-label"><{$smarty.const._MD_CONTACTGENDER}></label>
<div class="col-md-10"><{$contactusform.radiog}></div> 
<div class="w-100"></div>

<{if $contactusform.settings.1}>
<label for="citydefault" class="col-md-2"><{$smarty.const._MD_CONTACTENTER_01}></label>
<div class="col-md-8 citybox">
<ul id='barmemu'>
<li><select id=citydefault class='form-control' name='of_cityid' >
<option   data-id='0'  value='0'><{$smarty.const._MS_CITY_MENU04}></option>
<{$contactusform.countiesoptionone}>
</select>
</li>
<li><span id='cityselectboxname' name='<{$contactusform.countiesselectmenu1}>,<{$contactusform.countiesstatus}>,<{$contactusform.countiesselectmenu2}>,of_cityid1'></span>
<div id='cityselectbox'></div>	
</li>
<li><{$contactusform.addressbox}></li>
</ul>
</div>
<{if $contactusform.settings.2}><div class="col-md-2"><div  id="required_address" class="help-block blockeach1"><{$smarty.const._MS_SHARED22}></div></div><{/if}>
<div class="w-100"></div>
<{/if}>



<{if $contactusform.settings.3}>
<label for="school_field" class="col-md-2 control-label"><{$smarty.const._MD_CONTACTENTER_02}></label>
<div class="col-md-8"><{$contactusform.school_field}></div>
<{if $contactusform.settings.4}><div class="col-md-2"><div  id="required_school_field" class="help-block blockeach1"><{$smarty.const._MS_SHARED22}></div></div><{/if}>
<div class="w-100"></div>
<{/if}>

<{if $contactusform.settings.5}>
<label for="grade_select" class="col-md-2 control-label"><{$smarty.const._MD_CONTACTENTER_03}></label>
<div class="col-md-8">
<select  id="grade_select" aria-label="<{$smarty.const._MD_CONTACTENTER_03}>" class='form-control' name='form_2' >
<option value='0'  data-id='1' ><{$smarty.const._MD_CONTACTENTER_03}></option>
<{$contactusform.grade_select}>
</select></div>
<{if $contactusform.settings.6}><div class="col-md-2"><div  id="required_grade_select" class="help-block blockeach1"><{$smarty.const._MS_SHARED22}></div></div><{/if}>
<div class="w-100"></div>
<{/if}>



<{if $contactusform.contactmatters}>
<label for="contactmatters" class="col-md-2"><{$smarty.const._MD_CONTACTUSADMIN01}></label>
<div class="col-md-8">
<select  id="contactmatters" aria-label="<{$smarty.const._MD_CONTACTUSADMIN02}>" class='form-control' name='contactmatters' >
<option value='0'  data-id='1' ><{$smarty.const._MD_CONTACTUSADMIN02}></option>
<{$contactusform.contactmatters}>
</select>
</div>
<div class="w-100"></div>
<{/if}>

<label for="texe_user" class="col-md-2"><{$smarty.const._MD_CONTACTTEXT}></label>
<div class="col-md-8"><{$contactusform.texe_user}></div>
<div class="col-md-2"><span id="helpBlocktexe_user" class="help-block blockeach1"><{$smarty.const._MD_CONTACTREQUIRED}></span></div>
<div class="w-100"></div>



</div>	
<div id="notarobotboxname1" name="1"><div id='notarobotbox1'  name="blockeach1"></div></div>  
        
<input type='hidden' name='op' value='contactustosend'>
<button type='submit' disabled="disabled"  class="contentbtn btn btn-primary btn-lg btn-block">  <{$smarty.const._MD_CONTACTSENTOUT}></button>
<div id='help-blocktext' class='text-center'><span id='helpBlock' class='help-block'><span  class='red'><{$smarty.const._MS_SHARED30}></span></span></div></form>
</div>

<script>neothemesadmin_contactusform();citymenufunction($text_w='<{if $themefolder eq 'computer'}>277%<{else}>100%<{/if}>');</script>
<{/if}>

<{if $op eq 'usercontent'}>


<form class="form-horizontal" role="form" action='<{$xoops_url}>/modules/<{$xoops_dirname}>/contactusform.php' method='post' >
<div class='page-header'> 
<h2><{$smarty.const._MD_CONTACTUSTABLEPHP26}><small> &nbsp;Contact us for the letter</small>&nbsp;&nbsp; <{if $xoops_isadmin}><a class='btn btn-warning'  href='<{$xoops_url}>/modules/<{$xoops_dirname}>/admin/contactustable.php'><{$smarty.const._MD_GOCONTACTUSTABLEPHP}></a><{/if}></h2>
</div>



<div class="row">
  <div class="col-md-4"><{$contactusform.cfidtimebox}></div>
  <div class="col-md-4"><{$contactusform.name_userbox}></div>
    <div class="col-md-4"><{$contactusform.email_userbox}></div>
</div>
<hr />
<div class="row">
  <div class="col-md-4"><{$contactusform.tel_userbox}></div>
  <{if $contactusform.citytel_userbox}><div class="col-md-4"><{$contactusform.citytel_userbox}></div><{/if}>
    <div class="col-md-4"><{$contactusform.genderbox}></div>
</div>
<hr />

<{if $contactusform.settings.1 &&  $contactusform.addressbox}>
<div class="row">
  <div class="col-md-12"><{$contactusform.addressbox}></div>
</div>
<hr />
<{/if}>



<{if $contactusform.school_field  ||  $contactusform.grade_field}>
<div class="row">
<{if $contactusform.school_field}><div class="col-md-6"><{$contactusform.school_field}></div><{/if}>
<{if $contactusform.grade_field}><div class="col-md-6"><{$contactusform.grade_field}></div><{/if}>
</div>
<hr />
<{/if}>








<div class="row">
  <{if $contactusform.contactmattersbox}>
  <div class="col-md-4"><{$contactusform.contactmattersbox}></div>
  <{/if}>
    <div class="<{if $contactusform.contactmattersbox}>col-md-8<{else}>col-md-12<{/if}>"><{$contactusform.texe_userbox}></div>
    <{if !$contactusform.replytextbox && $contactusform.id eq '128'}>
    <div class="col-md-12"><label class='control-label'><{$smarty.const._MD_CONTACTUSTABLEPHP39}>&nbsp;&nbsp;</label><{$contactusform.enablebox}><br /><br />  </div>
    <{/if}>       
</div>


<div id='replycenterbox' name='<{$contactusform.id}>,<{$contactusform.cfid}>,<{$xoops_dirname}>'></div>

     	 
</form>
<{/if}>
<{if $xoops_isadmin}>
<br />
<a class="btn btn-default btn-lg btn-block" href="<{xoAppUrl}>modules/neothemesadmin/admin/contactustable.php"><{$smarty.const._MD_CONTACTUSADMIN}></a>
<{/if}>