function page()
{
    $cf = new dnsmasq();
    $page = CurrentPageName();
    $tpl = new templates();
    $time = time();
    $html = "\n<div style='font-size:16px'>{others_options}</div>\n<form name='fmm1'>\n<input type='hidden' name='othersoptions' value='yes'>\n<center>\n\t<table style='width:99%' class=form>\n\t<tr>\n\t\t<td class=legend>{localmx}:</td>\n\t\t<td width=1%>" . Field_key_checkbox_img('localmx', $cf->main_array["localmx"], '{enable_disable}') . "</td>\n\t\t<td width=1%>" . help_icon("{localmx_text}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend>{selfmx}:</td>\n\t\t<td width=1% >" . Field_key_checkbox_img('selfmx', $cf->main_array["selfmx"], '{enable_disable}') . "</td>\n\t\t<td width=1%>" . help_icon("{selfmx_text}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td nowrap class=legend>{mx-target}</td>\n\t\t<td><strong>" . Field_text('mx-target', $cf->main_array["mx-target"], "font-size:14px;padding:3px;width:210px") . "</td>\n\t\t<td width=1%>" . help_icon("{mx-target_text}") . "</td>\n\t</tr>\n\t<tr><td colspan=3 align='right'><hr>" . button("{apply}", "ParseForm('fmm1','{$page}',true);") . "</td></tr>\n</table>\n</form>\n</center>\t\n\n\n<div class=explain>{dnsmasq_DNS_records_text}<br>{mxexamples}</div>\n\n<form name='{$time}'>\n<center>\n<table cellspacing='0' cellpadding='0' border='0' class='tableView' style='width:100%'>\n<thead class='thead'>\n\t<tr>\n\t<th>{mxrecdomainfrom}</th>\n\t<th>{mxrecdomainto}</th>\n\t<th>{mxheight}</th>\n\t<th width=1%>&nbsp;</th>\n\t</tr>\n</thead>\n<tbody class='tbody'>\n<tr class=oddRow>\n<td  width='140px'>" . Field_text('mxrecdomainfrom', null, "font-size:13px;width:140px") . "</td>\n<td   width='180px'>" . Field_text('mxrecdomainto', null, "font-size:13px;width:180px") . "</td>\n<td   width='100px'>" . Field_text('mxheight', null, "font-size:13px;width:100px") . "</td>\n<td >" . button("{add}", "ParseForm('{$time}','{$page}',true);mxHostsReload()") . "</td>\n</tr>\n</table>\n</form>\n</center>\n<p>&nbsp;</p>\n<div id='mx_hosts'>" . Loadmxhosts() . "</div>\n";
    echo $tpl->_ENGINE_parse_body($html);
}
function page()
{
    $cf = new dnsmasq();
    $page = CurrentPageName();
    $html = "\n<H4>{others_options}</H4>\n<form name='fmm1'>\n<input type='hidden' name='othersoptions' value='yes'>\n<center>\n<table style='width:100%'>\n<tr>\n<td align='right' valign='top' class=bottom style='font-weight:bold' class=bottom>{localmx}:</td>\n<td align='left' valign='top' class=bottom class=bottom >" . Field_key_checkbox_img('localmx', $cf->main_array["localmx"], '{enable_disable}') . "</td>\n<td align='left' valign='top' class=bottom style='font-size:9px'>{localmx_text}</td>\n</tr>\n<tr>\n<td align='right' valign='top' class=bottom style='font-weight:bold' class=bottom>{selfmx}:</td>\n<td align='left' valign='top' class=bottom class=bottom >" . Field_key_checkbox_img('selfmx', $cf->main_array["selfmx"], '{enable_disable}') . "</td>\n<td align='left' valign='top' class=bottom style='font-size:9px'>{selfmx_text}</td>\n</tr>\n</table>\n<table style='width:100%'>\n<tr>\n\t<td nowrap>{mx-target}</td>\n\t<td><strong>" . Field_text('mx-target', $cf->main_array["mx-target"]) . "</td>\n\t<td style='font-size:9px'>{mx-target_text}</td>\n</tr>\n<tr><td colspan=3 align='right'><input type='button' OnClick=\"javasript:ParseForm('fmm1','{$page}',true);\" value='{edit}&nbsp;&raquo;'></td></tr>\n</table>\n</form>\n</center>\t\n\n\n<p>{dnsmasq_DNS_records_text}<br>{mxexamples}</p>\n\n<form name='ffm1'>\n<center>\n<table style='width:100%'>\n<td class='bottom'>&nbsp;</td>\n<tr style='background-color:#CCCCCC'>\n<td class='bottom'>&nbsp;</td>\n<td class='bottom'><strong>{mxrecdomainfrom}</td>\n<td class='bottom'><strong>{mxrecdomainto}</td>\n<td class='bottom'><strong>{mxheight}</td>\n<td class='bottom'>&nbsp;</td>\n</tr>\n<tr>\n<td class='bottom' width='20px'>&nbsp;</td>\n<td class='bottom' width='140px'>" . Field_text('mxrecdomainfrom') . "</td>\n<td class='bottom'  width='180px'>" . Field_text('mxrecdomainto') . "</td>\n<td class='bottom'  width='100px'>" . Field_text('mxheight') . "</td>\n<td class='bottom'><input type='button' OnClick=\"javascript:ParseForm('ffm1','{$page}',true);mxHostsReload();\" value='{add}&nbsp;&raquo;'></td>\n</tr>\n</table>\n</form>\n</center>\n<div id='mx_hosts'>" . Loadmxhosts() . "</div>\n";
    $JS["JS"][] = 'js/dnsmasq.js';
    $tpl = new template_users('{dnsmasq_DNS_records}', $html, 0, 0, 0, 0, $JS);
    echo $tpl->web_page;
}