<?php
/* Smarty version 3.1.29, created on 2020-03-01 20:04:28
  from "/home/achahost/public_html/account/templates/Five/clientareadomaincontactinfo.tpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_5e5c154c6f0884_36620767',
  'file_dependency' => 
  array (
    '820e7bc8f6d6d60b959fc68ecee56d539989f796' => 
    array (
      0 => '/home/achahost/public_html/account/templates/Five/clientareadomaincontactinfo.tpl',
      1 => 1499437492,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5e5c154c6f0884_36620767 ($_smarty_tpl) {
?>
<h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['domaincontactinfo'];?>
</h3>

<?php $_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, ((string)$_smarty_tpl->tpl_vars['template']->value)."/includes/alert.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('type'=>"info",'msg'=>$_smarty_tpl->tpl_vars['LANG']->value['whoisContactWarning']), 0, true);
?>


<?php if ($_smarty_tpl->tpl_vars['successful']->value) {?>
    <?php $_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, ((string)$_smarty_tpl->tpl_vars['template']->value)."/includes/alert.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('type'=>"success",'msg'=>$_smarty_tpl->tpl_vars['LANG']->value['changessavedsuccessfully'],'textcenter'=>true), 0, true);
?>

<?php }?>

<?php if ($_smarty_tpl->tpl_vars['error']->value) {?>
    <?php $_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, ((string)$_smarty_tpl->tpl_vars['template']->value)."/includes/alert.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('type'=>"error",'msg'=>$_smarty_tpl->tpl_vars['error']->value,'textcenter'=>true), 0, true);
?>

<?php }?>

<form method="post" action="<?php echo $_SERVER['PHP_SELF'];?>
?action=domaincontacts">

    <input type="hidden" name="sub" value="save" />
    <input type="hidden" name="domainid" value="<?php echo $_smarty_tpl->tpl_vars['domainid']->value;?>
" />

    <div class="row">

        <?php
$_from = $_smarty_tpl->tpl_vars['contactdetails']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_contactdetails_0_saved_item = isset($_smarty_tpl->tpl_vars['values']) ? $_smarty_tpl->tpl_vars['values'] : false;
$__foreach_contactdetails_0_saved_key = isset($_smarty_tpl->tpl_vars['contactdetail']) ? $_smarty_tpl->tpl_vars['contactdetail'] : false;
$_smarty_tpl->tpl_vars['values'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['contactdetail'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['values']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['contactdetail']->value => $_smarty_tpl->tpl_vars['values']->value) {
$_smarty_tpl->tpl_vars['values']->_loop = true;
$__foreach_contactdetails_0_saved_local_item = $_smarty_tpl->tpl_vars['values'];
?>

            <div class="col-md-6">

                <h4><?php echo $_smarty_tpl->tpl_vars['contactdetail']->value;?>
 <?php echo $_smarty_tpl->tpl_vars['LANG']->value['supportticketscontact'];?>
</h4>

                <div class="radio">
                    <label>
                        <input type="radio" name="wc[<?php echo $_smarty_tpl->tpl_vars['contactdetail']->value;?>
]" id="<?php echo $_smarty_tpl->tpl_vars['contactdetail']->value;?>
1" value="contact" onclick="useDefaultWhois(this.id)" />
                        <?php echo $_smarty_tpl->tpl_vars['LANG']->value['domaincontactusexisting'];?>

                    </label>
                </div>

                <div class="row">
                    <div class="col-xs-offset-1 col-xs-10">
                        <div class="form-group">
                            <label for="<?php echo $_smarty_tpl->tpl_vars['contactdetail']->value;?>
3"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['domaincontactchoose'];?>
</label>
                            <select id="<?php echo $_smarty_tpl->tpl_vars['contactdetail']->value;?>
3" class="form-control <?php echo $_smarty_tpl->tpl_vars['contactdetail']->value;?>
defaultwhois" name="sel[<?php echo $_smarty_tpl->tpl_vars['contactdetail']->value;?>
]" disabled>
                                <option value="u<?php echo $_smarty_tpl->tpl_vars['clientsdetails']->value['userid'];?>
"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['domaincontactprimary'];?>
</option>
                                <?php
$_from = $_smarty_tpl->tpl_vars['contacts']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_contact_1_saved_item = isset($_smarty_tpl->tpl_vars['contact']) ? $_smarty_tpl->tpl_vars['contact'] : false;
$__foreach_contact_1_saved_key = isset($_smarty_tpl->tpl_vars['num']) ? $_smarty_tpl->tpl_vars['num'] : false;
$_smarty_tpl->tpl_vars['contact'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['num'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['contact']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['num']->value => $_smarty_tpl->tpl_vars['contact']->value) {
$_smarty_tpl->tpl_vars['contact']->_loop = true;
$__foreach_contact_1_saved_local_item = $_smarty_tpl->tpl_vars['contact'];
?>
                                    <option value="c<?php echo $_smarty_tpl->tpl_vars['contact']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['contact']->value['name'];?>
</option>
                                <?php
$_smarty_tpl->tpl_vars['contact'] = $__foreach_contact_1_saved_local_item;
}
if ($__foreach_contact_1_saved_item) {
$_smarty_tpl->tpl_vars['contact'] = $__foreach_contact_1_saved_item;
}
if ($__foreach_contact_1_saved_key) {
$_smarty_tpl->tpl_vars['num'] = $__foreach_contact_1_saved_key;
}
?>
                            </select>
                        </div>
                    </div>
                </div>

                <div class="radio">
                    <label>
                        <input type="radio" name="wc[<?php echo $_smarty_tpl->tpl_vars['contactdetail']->value;?>
]" id="<?php echo $_smarty_tpl->tpl_vars['contactdetail']->value;?>
2" value="custom" onclick="useCustomWhois(this.id)" checked />
                        <?php echo $_smarty_tpl->tpl_vars['LANG']->value['domaincontactusecustom'];?>

                    </label>
                </div>

                <?php
$_from = $_smarty_tpl->tpl_vars['values']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_value_2_saved_item = isset($_smarty_tpl->tpl_vars['value']) ? $_smarty_tpl->tpl_vars['value'] : false;
$__foreach_value_2_saved_key = isset($_smarty_tpl->tpl_vars['name']) ? $_smarty_tpl->tpl_vars['name'] : false;
$_smarty_tpl->tpl_vars['value'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['value']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['name']->value => $_smarty_tpl->tpl_vars['value']->value) {
$_smarty_tpl->tpl_vars['value']->_loop = true;
$__foreach_value_2_saved_local_item = $_smarty_tpl->tpl_vars['value'];
?>
                    <div class="form-group">
                        <label><?php echo $_smarty_tpl->tpl_vars['name']->value;?>
</label>
                        <input type="text" name="contactdetails[<?php echo $_smarty_tpl->tpl_vars['contactdetail']->value;?>
][<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
]" value="<?php echo $_smarty_tpl->tpl_vars['value']->value;?>
" class="form-control <?php echo $_smarty_tpl->tpl_vars['contactdetail']->value;?>
customwhois" />
                    </div>
                <?php
$_smarty_tpl->tpl_vars['value'] = $__foreach_value_2_saved_local_item;
}
if ($__foreach_value_2_saved_item) {
$_smarty_tpl->tpl_vars['value'] = $__foreach_value_2_saved_item;
}
if ($__foreach_value_2_saved_key) {
$_smarty_tpl->tpl_vars['name'] = $__foreach_value_2_saved_key;
}
?>

            </div>

        <?php
$_smarty_tpl->tpl_vars['values'] = $__foreach_contactdetails_0_saved_local_item;
}
if ($__foreach_contactdetails_0_saved_item) {
$_smarty_tpl->tpl_vars['values'] = $__foreach_contactdetails_0_saved_item;
}
if ($__foreach_contactdetails_0_saved_key) {
$_smarty_tpl->tpl_vars['contactdetail'] = $__foreach_contactdetails_0_saved_key;
}
?>

    </div>

    <br />

    <p class="text-center">
        <input type="submit" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['clientareasavechanges'];?>
" class="btn btn-primary" />
        <input type="reset" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['clientareacancel'];?>
" class="btn btn-default" />
    </p>

</form>

<?php }
}
