本文整理汇总了PHP中field_ipv4函数的典型用法代码示例。如果您正苦于以下问题:PHP field_ipv4函数的具体用法?PHP field_ipv4怎么用?PHP field_ipv4使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了field_ipv4函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: add_cluster_popup
function add_cluster_popup()
{
$page = CurrentPageName();
$html = "\n\t<div id='cluster-add-div'>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top' class=legend style='font-size:13px'>{servername}:</td>\n\t\t<td valign='top' >" . Field_text('cluster_client_hostname', null, 'width:150px;font-size:13px;padding:3px') . "</td>\n\t</tr>\n\t<tr>\n\t\t<td valign='top' class=legend style='font-size:13px'>{ipaddr}:</td>\n\t\t<td valign='top' >" . field_ipv4('cluster_client_ip', null, 'width:150px;font-size:13px;padding:3px') . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td valign='top' colspan=2 align=right><hr>" . button("{add}", "AddClientCLientBut()") . "</td>\n\t</tr>\n\t</table>\n\t</div>\n\t<script>\n\tvar x_AddClientCLientBut= function (obj) {\n\t\tvar response=obj.responseText;\n\t\tif(response.length>3){alert(response);return}\n\t YahooWinHide();\n\t RefreshGlusterClients();\n\t}\t\t\n\t\n\tfunction AddClientCLientBut(){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('cluster_client_hostname',document.getElementById('cluster_client_hostname').value);\n\t\tXHR.appendData('cluster_client_ip',document.getElementById('cluster_client_ip').value);\n\t\tXHR.sendAndLoad('{$page}', 'GET',x_AddClientCLientBut);\t\t\n\t}\t\n\t\n\t</script>\n\t\n\t";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:7,代码来源:gluster.samba.php
示例2: popup_new_range
function popup_new_range()
{
$tpl = new templates();
$t = $_GET["t"];
$html = "\n\t<div id='div{$t}{$t}'>\n\t<table style='width:99%' class=form>\n\t\t<tr>\n\t\t\t<td class=legend nowrap style='font-size:13px'>{from_ip}:</td>\n\t\t\t<td>" . field_ipv4("from_ip-{$t}", null, ';font-size:14px;') . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td class=legend style='font-size:13px'>{to_ip}:</td>\n\t\t\t<td>" . field_ipv4("to_ip-{$t}", null, ';font-size:14px;') . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td colspan=2 align='right'><hr>" . button("{add}", "Netadd{$t}()", 16) . "\n\t\t</tr>\n\t</table>\t\n\t<script>\n\tfunction Netadd{$t}(){\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('addipfrom',document.getElementById('from_ip-{$t}').value);\n\t\t\tXHR.appendData('addipto',document.getElementById('to_ip-{$t}').value);\n\t\t\tAnimateDiv('div{$t}{$t}');\n\t\t\tXHR.sendAndLoad('squid.popups.php', 'GET',x_netadd{$t});\t\t\n\t}\n\t</script>\t\n\t";
echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:7,代码来源:squid.network.php
示例3: popup_dns
function popup_dns()
{
$tpl = new templates();
$page = CurrentPageName();
$sock = new sockets();
$t = $_GET["t"];
$resolv_conf = explode("\n", @file_get_contents("/etc/resolv.conf"));
while (list($index, $lines) = each($resolv_conf)) {
if (preg_match("#127\\.0\\.0\\.1#", $lines)) {
continue;
}
if (preg_match("#^nameserver\\s+(.+)#", $lines, $re)) {
$g = trim($re[1]);
if ($g == "127.0.0.1") {
continue;
}
$arrayNameServers[] = $g;
}
}
$hostname = base64_decode($sock->getFrameWork("network.php?fqdn=yes"));
if (preg_match("#Name or service not known#", $hostname)) {
$mustchangeHostname = true;
$hostname = null;
}
if ($hostname == null) {
$users = new usersMenus();
$hostname = $users->fqdn;
}
$WizardNetLeaveUnconfigured = $sock->GET_INFO("WizardNetLeaveUnconfigured");
$html = "\n\t<center>\n\t<table style='width:80%' class=form>\n\t<tr>\n\t\t<td class=legend nowrap style='font-size:14px'>{i_prefer_leave_unconfigured}:</td>\n\t\t<td>" . Field_checkbox("WizardNetLeaveUnconfigured", 1, $WizardNetLeaveUnconfigured, "WizardNetLeaveUnconfiguredSave()") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{hostname}:</td>\n\t\t<td>" . Field_text("hostname-{$t}", $hostname, "font-size:14px;width:210px") . "</td>\n\t</tr>\t\t\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{primary_dns}:</td>\n\t\t<td>" . field_ipv4("DNS1-{$t}", $arrayNameServers[0], "font-size:14px") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{secondary_dns}:</td>\n\t\t<td>" . field_ipv4("DNS2-{$t}", $arrayNameServers[1], "font-size:14px") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td colspan=2 align='right'>" . button("{apply}", "SaveDNS{$t}()", 13) . "</td>\n\t</tr>\n\t</table>\n\t</center>\n\t<script>\n\tvar x_SaveDNS{$t}= function (obj) {\n\t\tvar results=obj.responseText;\n\t\tif(results.length>3){alert(results);}\n\t\tWizardDNSRefresh();\n\t}\t\n\t\n\tfunction SaveDNS{$t}(){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('DNS1',document.getElementById('DNS1-{$t}').value);\n\t\tXHR.appendData('DNS2',document.getElementById('DNS2-{$t}').value);\n\t\tXHR.appendData('hostname',document.getElementById('hostname-{$t}').value);\n\t\tAnimateDiv('{$t}-dns');\n\t\tXHR.sendAndLoad('{$page}', 'POST',x_SaveDNS{$t});\t\n\t\n\t}\t\t\n</script>\t\n\t\n\t\n\t";
echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:32,代码来源:admin.chNICs.php
示例4: popup
function popup()
{
$tpl = new templates();
$page = CurrentPageName();
$t = time();
$html = "<div style='font-size:32px;margin-bottom:20px'>{new_computer} {$_GET["mac"]}/{$_GET["computername"]}</div>\n\t<div style='font-size:18px;margin-bottom:20px' class=explain>{this_computers_database_explain}</div>\n\t<div style='width:98%' class=form>\n\t<table style='width:100%'>\n\t\t<tr>\n\t\t\t<td class=legend style='font-size:22px'>{computer_name}:</td>\n\t\t\t<td>" . Field_text("computername-{$t}", $_GET["computername"], "font-size:22px", null, null, null, false, "SaveCheck{$t}(event)") . "</td>\n\t\t</tr>\t\n\t\t<tr>\n\t\t\t<td class=legend style='font-size:22px'>{MAC}:</td>\n\t\t\t<td>" . Field_text("MAC-{$t}", $_GET["mac"], "font-size:22px", null, null, null, false, "SaveCheck{$t}(event)") . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td class=legend style='font-size:22px'>{ipaddr}:</td>\n\t\t\t<td>" . field_ipv4("ipaddr-{$t}", $_GET["ipaddr"], "font-size:22px", null, null, null, false, "SaveCheck{$t}(event)") . "</td>\n\t\t</tr>\t\t\n\t\t<tr>\n\t\t\t<td colspan=2 align='right'><hr>" . button("{add}", "Save{$t}()", 32) . "</td>\n\t\t</tr>\n\t</table>\n\t</div>\n<script>\nvar xSave{$t}=function (obj) {\n\tvar tempvalue=obj.responseText;\n\tif(tempvalue.length>3){alert(tempvalue);return;}\n\tvar comp=document.getElementById('MAC-{$t}').value;\n\tYahooWinBrowseHide();\n\tLoadjs('{$page}?MEMBER_JS='+comp);\n\t\$('#flexRT{$_GET["t"]}').flexReload();\n}\n\nfunction Save{$t}(){\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('computername',document.getElementById('computername-{$t}').value);\n\tXHR.appendData('MAC',document.getElementById('MAC-{$t}').value);\n\tXHR.appendData('ipaddr',document.getElementById('ipaddr-{$t}').value);\n\tXHR.sendAndLoad('{$page}', 'POST',xSave{$t});\n}\n\nfunction SaveCheck{$t}(e){\n\tif(!checkEnter(e)){return;}\n\tSave{$t}();\n}\n</script>";
echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:8,代码来源:domains.computer.autoadd.php
示例5: add_popup
function add_popup()
{
$tpl = new templates();
$page = CurrentPageName();
$t = time();
$html = "\t\n\t<div style='width:98%' class=form>\n\t<table style='width:100%'>\n\t\t<tr>\n\t\t\t<td class=legend nowrap style='font-size:22px'>{tcp_address}:</td>\n\t\t\t<td >" . field_ipv4("ipaddr-{$t}", null, "font-size:22px", false, "SaveCK{$t}(event)") . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td class=legend nowrap style='font-size:22px'>{networks}:</td>\n\t\t\t<td>" . field_ipv4("cdir-{$t}", null, "font-size:22px", false, "SaveCK{$t}(event)") . "</td>\n\t\t</tr>\n\t\t\t<td colspan=2 align='right'><hr>" . button("{add}", "Save{$t}()", 30) . "</td>\n\t\t</tr>\n\t</table>\n\t</form>\n<script>\nvar xSave{$t}= function (obj) {\n\tvar res=obj.responseText;\n\tif (res.length>3){alert(res);return;}\n\t\$('#flexRT{$_GET["t"]}').flexReload();\n\tYahooWinHide();\n}\nfunction SaveCK{$t}(e){\n\tif(!checkEnter(e)){return;}\n\tSave{$t}();\n}\n\nfunction Save{$t}(){\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('cdir',document.getElementById('cdir-{$t}').value);\n\tXHR.appendData('ipaddr',document.getElementById('ipaddr-{$t}').value);\n\tXHR.sendAndLoad('{$page}', 'POST',xSave{$t});\n}\t\t\t\t\n</script>";
echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:8,代码来源:artica.web.fw.php
示例6: popup
function popup()
{
$page = CurrentPageName();
$t = time();
$html = "<div style='font-size:22px'>{new_computer}</div>\n\t<div id='popup_import_div' class=form style='width:98%'>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{hostname}:</td>\n\t\t<td>" . Field_text("hostname-{$t}", null, "font-size:22px;width:450px", null, null, null, false, "SaveCheck{$t}(event)") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{MAC}:</td>\n\t\t<td>" . Field_text("MAC-{$t}", null, "font-size:22px;width:450px", null, null, null, false, "SaveCheck{$t}(event)") . "</td>\n\t</tr>\t\t\t\t\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{ipaddr}:</td>\n\t\t<td>" . field_ipv4("ipaddr-{$t}", null, "font-size:22px;width:450px", false, "SaveCheck{$t}(event)") . "</td>\n\t</tr>\t\t\t\n\t<tr style='height:80px'>\n\t<td colspan=2 style='text-align:right'>\t<hr>\n\t\t" . button("{add}", "Save{$t}()", 28) . "\n\t</td>\n\t</tr>\n\t</table>\n</div>\n<script>\n\nfunction SaveCheck{$t}(e){\n\tif(!checkEnter(e)){return;}\n\tSave{$t}();\n}\n\nvar xSave{$t}= function (obj) {\n\tvar results=obj.responseText;\n\tif(results.length>3){alert(results);return;}\n\tYahooWin5Hide();\n\tif(document.getElementById('OCS_SEARCH_TABLE')){\n \tvar id=document.getElementById('OCS_SEARCH_TABLE').value;\n \t\$('#'+id).flexReload();\n }\n}\n\t\nfunction Save{$t}(){\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('hostname',document.getElementById('hostname-{$t}').value);\n\tXHR.appendData('mac',document.getElementById('MAC-{$t}').value);\n\tXHR.appendData('ipaddr',document.getElementById('ipaddr-{$t}').value);\n\tXHR.sendAndLoad('{$page}', 'POST',xSave{$t});\n}\n</script>\n";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:8,代码来源:ocs.add.php
示例7: add_dnsmasq_popup
function add_dnsmasq_popup()
{
$page = CurrentPageName();
$tpl = new templates();
$time = time();
$t = $_GET["t"];
$html = "\n\t<center id='id-{$time}'>\n\t\t<table style='width:99%' class=form>\n\t\t<tbody>\n\t\t<tr>\n\t\t\t<td class=legend style='font-size:14px'>{domain_or_server}</td>\n\t\t\t<td>" . Field_text("address_server-{$time}", null, "font-size:14px;padding:3px;width:270px") . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td class=legend style='font-size:14px'>{ip}</td>\n\t\t\t<td>" . field_ipv4("address_ip-{$time}", null, "font-size:14px") . "</td>\n\t\t</tr>\t\n\t\t<tr>\n\t\t\t<td colspan=2 align='right'><hr>" . button("{add}", "AddDnsMasqHost()", 16) . "</td>\n\t\t</tr>\n\t\t</tbody>\n\t</table>\n\t</center>\t\t\t\n\t<script>\n\t\tvar x_AddDnsMasqHost= function (obj) {\n\t\t\tvar results=obj.responseText;\n\t\t\tif(results.length>0){alert(results);}\n\t\t\tFlexReloadDNSMASQHOSTS();\n\t\t\t\$('#flexRT{$t}').flexReload();\n\t\t\tYahooWin2Hide();\n\t\t\t}\t\t\n\t\n\t\n\t\tfunction AddDnsMasqHost(){\t\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('add-host','yes');\n\t\t\tXHR.appendData('address_server',document.getElementById('address_server-{$time}').value);\n\t\t\tXHR.appendData('ipaddr',document.getElementById('address_ip-{$time}').value);\n\t\t\tAnimateDiv('id-{$time}');\n\t\t\tXHR.sendAndLoad('{$page}', 'GET',x_AddDnsMasqHost);\t\t\n\t\t}\n\t</script>\t\n\t\n\t";
echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:9,代码来源:dnsmasq.hosts.settings.php
示例8: page
function page()
{
$sock = new sockets();
$tpl = new templates();
$t = time();
$page = CurrentPageName();
$NginxBehindLB = intval($sock->GET_INFO("NginxBehindLB"));
$NginxLBIpaddr = $sock->GET_INFO("NginxLBIpaddr");
$html = "<div style='font-size:40px;margin-bottom:30px'>{options}</div>\n\t\n\t<div style='width:98%' class=form>\t\n\t<div style='font-size:30px;margin-bottom:20px'>Load-balancer</div>\t\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{enable}:</td>\n\t\t<td>" . Field_checkbox_design("NginxBehindLB", 1, $NginxBehindLB, "Check{$t}()") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{lb_ipaddr}:</td>\n\t\t<td>" . field_ipv4("NginxLBIpaddr", $NginxLBIpaddr, "font-size:22px") . "</td>\n\t</tr>\t\t\t\t\n\t<tr>\n\t\t<td colspan=2 align='right'>" . button("{apply}", "Submit{$t}()", 32) . "</td>\n\t</tr>\n\t</table>\n\t</div>\n\t<script>\n\tvar xSubmit{$t}= function (obj) {\n\t\tvar results=obj.responseText;\n\t\tif(results.length>3){alert(results);return;}\n\t\tLoadjs('nginx.restart.progress.php');\n\t}\n\t\n\t\n\tfunction Submit{$t}(){\n\t\tvar XHR = new XHRConnection();\n\t\tvar NginxBehindLB=0;\n\t\tif(document.getElementById('NginxBehindLB').checked){NginxBehindLB=1;}\n\t\tXHR.appendData('NginxBehindLB',NginxBehindLB);\n\t\tXHR.appendData('NginxLBIpaddr',document.getElementById('NginxLBIpaddr').value);\n\t\tXHR.sendAndLoad('{$page}', 'POST',xSubmit{$t});\n\t}\n\t\n\tfunction Check{$t}(){\n\t\t\n\t\tdocument.getElementById('NginxLBIpaddr').disabled=true;\n\t\tvar NginxBehindLB=0;\n\t\tif(document.getElementById('NginxBehindLB').checked){NginxBehindLB=1;}\n\t\tif(NginxBehindLB==1){\n\t\t\tdocument.getElementById('NginxLBIpaddr').disabled=false;\n\t\t}\n\t}\n\tCheck{$t}();\n\t</script>\t\t\t\n\t\t\t\n\t";
echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:articatech,项目名称:artica,代码行数:11,代码来源:nginx.options.php
示例9: dhcp_form
function dhcp_form()
{
$ldap = new clladp();
$domains = $ldap->hash_get_all_domains();
$dhcp = new dhcpd_sub($_GET["nic"]);
$page = CurrentPageName();
$users = new usersMenus();
$t = time();
if (count($domains) == 0) {
$dom = Field_text("ddns_domainname-{$t}", $dhcp->ddns_domainname, "font-size:22px;");
} else {
$domains[null] = "{select}";
$dom = Field_array_Hash($domains, "ddns_domainname-{$t}", $dhcp->ddns_domainname, null, null, null, ";font-size:22px;padding:3px");
}
$EnableDHCPUseHostnameOnFixed = Field_checkbox_design("EnableDHCPUseHostnameOnFixed-{$t}", 1, $dhcp->EnableDHCPUseHostnameOnFixed);
$authoritative = Field_checkbox_design("authoritative-{$t}", 1, $dhcp->authoritative);
$ping_check = Field_checkbox_design("ping_check-{$t}", 1, $dhcp->ping_check);
$get_lease_hostnames = Field_checkbox_design("get_lease_hostnames-{$t}", 1, $dhcp->get_lease_hostnames);
$nicz = new system_nic($_GET["nic"]);
$ipaddrEX = explode(".", $nicz->IPADDR);
unset($ipaddrEX[3]);
if ($dhcp->subnet == null) {
$dhcp->subnet = @implode(".", $ipaddrEX) . ".0";
}
if ($dhcp->netmask == null) {
$dhcp->netmask = $nicz->NETMASK;
}
if ($dhcp->gateway == null) {
$dhcp->gateway = $nicz->GATEWAY;
}
if ($dhcp->range1 == null) {
$dhcp->range1 = @implode(".", $ipaddrEX) . ".50";
}
if ($dhcp->range2 == null) {
$dhcp->range2 = @implode(".", $ipaddrEX) . ".254";
}
if ($dhcp->broadcast == null) {
$dhcp->broadcast = @implode(".", $ipaddrEX) . ".255";
}
$html = "<div id='dhscpsettings' class=form>\n\t<div class='BodyContent'>\n\t<table style='width:98%'>\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{enabled}:</td>\n\t\t<td>" . Field_checkbox_design("EnableDHCPServer-{$t}", 1, $dhcp->EnableDHCPServer) . "</td>\n\t\t<td> </td>\n\t\t<td> </td>\n\t</tr>\n\t\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{EnableDHCPUseHostnameOnFixed}:</td>\n\t\t<td>{$EnableDHCPUseHostnameOnFixed}</td>\n\t\t<td> </td>\n\t\t<td>" . help_icon('{EnableDHCPUseHostnameOnFixed_explain}') . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{authoritative}:</td>\n\t\t<td>{$authoritative}</td>\n\t\t<td> </td>\n\t\t<td>" . help_icon('{authoritativeDHCP_explain}') . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{DHCPPing_check}:</td>\n\t\t<td>{$ping_check}</td>\n\t\t<td> </td>\n\t\t<td>" . help_icon('{ping_check_explain}') . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{get_lease_hostnames}:</td>\n\t\t<td>{$get_lease_hostnames}</td>\n\t\t<td> </td>\n\t\t<td>" . help_icon('{get_lease_hostnames_text}') . "</td>\n\t</tr>\n<tr>\n\t<td colspan=4>\n\t\t\t\t<div style='margin:10px;border:1px solid #CCCCCC;padding:10px'>\n\t\t\t\t<table style='width:100%'>\n\t\t\t\t<tr>\n\t\t\t\t\t<td class=legend style='font-size:22px;font-weight:bold;width:607px'>{ipfrom}:</td>\n\t\t\t\t\t<td>" . field_ipv4("range1-{$t}", $dhcp->range1, 'font-size:22px;padding:3px;font-weight:bold') . " </td>\n\t\t\t\t\t<td> </td>\n\t\t\t\t\t<td> </td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td class=legend style='font-size:22px;font-weight:bold'>{ipto}:</td>\n\t\t\t\t\t<td>" . field_ipv4("range2-{$t}", $dhcp->range2, 'font-size:22px;padding:3px;font-weight:bold') . " </td>\n\t\t\t\t\t<td> </td>\n\t\t\t\t\t<td> </td>\n\t\t\t\t</tr>\n\t\t\t\t</table>\n\t\t\t\t</div>\t\t\t\t\t\n\t\t</td>\n</tr>\t\t\t\t\t\n\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{ddns_domainname}:</td>\n\t\t<td>{$dom}</td>\n\t\t<td> </td>\n\t\t<td width=1% nowrap>" . imgtootltip("plus-16.png", null, "Loadjs('domains.edit.domains.php?js-all-localdomains=yes')") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{max_lease_time}:</td>\n\t\t<td style='font-size:16px'>" . Field_text("max_lease_time-{$t}", $dhcp->max_lease_time, 'width:90px;font-size:22px;padding:3px') . " {seconds}</td>\n\t\t<td> </td>\n\t\t<td >" . help_icon('{max_lease_time_text}') . "</td>\n\t</tr>\n\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{wpad_label}:</td>\n\t\t<td>" . Field_text("local_pac_server-{$t}", $dhcp->local_pac_server, 'width:300px;font-size:22px;padding:3px', false) . "</td>\n\t\t<td> </td>\n\t\t<td>" . help_icon('{wpad_label_text}') . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{subnet}:</td>\n\t\t<td>" . field_ipv4("subnet-{$t}", $dhcp->subnet, "font-size:22px;padding:3px;font-weight:bold", false) . "</td>\n\t\t<td> </td>\n\t\t<td> </td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{netmask}:</td>\n\t\t<td>" . field_ipv4("netmask-{$t}", $dhcp->netmask, 'font-size:22px;padding:3px;font-weight:bold') . " </td>\n\t\t<td> </td>\n\t\t<td> </td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{gateway}:</td>\n\t\t<td>" . field_ipv4("gateway-{$t}", $dhcp->gateway, 'font-size:22px;padding:3px;font-weight:bold') . " </td>\n\t\t<td> </td>\n\t</tr>\n\t\t\t\t\n\t\t\t\t\n\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{DNSServer} 1:</td>\n\t\t<td>" . field_ipv4("DNS_1-{$t}", $dhcp->DNS_1, 'font-size:22px;padding:3px;font-weight:bold') . " </td>\n\t\t<td> </td>\n\t\t<td> </td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{DNSServer} 2:</td>\n\t\t<td>" . field_ipv4("DNS_2-{$t}", $dhcp->DNS_2, 'font-size:22px;padding:3px;font-weight:bold') . " </td>\n\t\t<td> </td>\n\t\t<td> </td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{wins_server}:</td>\n\t\t<td>" . field_ipv4("WINS-{$t}", $dhcp->WINS, 'font-size:22px;padding:3px') . " </td>\n\t\t<td> </td>\n\t\t<td> </td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{ntp_server} <span style='font-size:10px'>({optional})</span>:</td>\n\t\t<td>" . Field_text("ntp_server-{$t}", $dhcp->ntp_server, 'width:228px;font-size:22px;padding:3px') . " </td>\n\t\t<td> </td>\n\t\t<td> </td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{broadcast}:</td>\n\t\t<td>" . field_ipv4("broadcast-{$t}", $dhcp->broadcast, 'font-size:22px;padding:3px') . " </td>\n\t\t<td> </td>\n\t\t<td> </td>\n\t</tr>\n\t<tr>\n\t\t<td colspan=4 align='right'><hr>" . button("{apply}", "SaveDHCPSettings{$t}()", 40) . "</td>\n\t</tr>\n</table>\n</div>\n</div>\n<br>\n<script>\nvar x_SaveDHCPSettings{$t}= function (obj) {\n\tvar tempvalue=obj.responseText;\n\tif(tempvalue.length>3){alert(tempvalue);}\n\tLoadjs('dhcpd.progress.php');\n\t}\t\t\n\t\t\n\tfunction SaveDHCPSettings{$t}(){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('nic','{$_GET["nic"]}');\n\t\tXHR.appendData('range1',document.getElementById('range1-{$t}').value);\n\t\tXHR.appendData('range2',document.getElementById('range2-{$t}').value);\n\t\tXHR.appendData('gateway',document.getElementById('gateway-{$t}').value);\n\t\tXHR.appendData('netmask',document.getElementById('netmask').value);\n\t\tXHR.appendData('DNS_1',document.getElementById('DNS_1-{$t}').value);\n\t\tXHR.appendData('DNS_2',document.getElementById('DNS_2-{$t}').value);\n\t\tXHR.appendData('max_lease_time',document.getElementById('max_lease_time-{$t}').value);\n\t\tXHR.appendData('ntp_server',document.getElementById('ntp_server-{$t}').value);\n\t\tXHR.appendData('subnet',document.getElementById('subnet-{$t}').value);\n\t\tXHR.appendData('broadcast',document.getElementById('broadcast-{$t}').value);\n\t\tXHR.appendData('WINS',document.getElementById('WINS-{$t}').value);\n\t\tXHR.appendData('local_pac_server',document.getElementById('local_pac_server-{$t}').value);\n\t\t\n\t\tif(document.getElementById('EnableDHCPServer-{$t}').checked){\n\t\tXHR.appendData('EnableDHCPServer',1);}else{XHR.appendData('EnableDHCPServer',0);}\n\t\t\n\t\tif(document.getElementById('EnableDHCPUseHostnameOnFixed-{$t}').checked){XHR.appendData('EnableDHCPUseHostnameOnFixed',1);}else{XHR.appendData('EnableDHCPUseHostnameOnFixed',0);}\n\t\tif(document.getElementById('ping_check-{$t}').checked){XHR.appendData('ping_check',1);}else{XHR.appendData('ping_check',0);}\n\t\tif(document.getElementById('authoritative-{$t}').checked){XHR.appendData('authoritative',1);}else{XHR.appendData('authoritative',0);}\n\t\tXHR.appendData('ddns_domainname',document.getElementById('ddns_domainname-{$t}').value);\n\t\tXHR.sendAndLoad('{$page}', 'POST',x_SaveDHCPSettings{$t});\t\n\n\t}\n</script>\n";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:43,代码来源:dhcpd.nic.php
示例10: popup
function popup()
{
$squid = new squidbee();
$page = CurrentPageName();
$tpl = new templates();
$sock = new sockets();
$q = new mysql_squid_builder();
$WCCP = 1;
$t = time();
$SquidWCCPL3Addr = $sock->GET_INFO("SquidWCCPL3Addr");
$SquidWCCPL3Inter = $sock->GET_INFO("SquidWCCPL3Inter");
$SquidWCCPL3Eth = $sock->GET_INFO("SquidWCCPL3Eth");
$SquidWCCPL3Route = $sock->GET_INFO("SquidWCCPL3Route");
$SquidWCCPL3ProxPort = intval($sock->GET_INFO("SquidWCCPL3ProxPort"));
$SquidWCCPL3SSLEnabled = intval($sock->GET_INFO("SquidWCCPL3SSLEnabled"));
$SquidWCCPL3SSServiceID = intval($sock->GET_INFO("SquidWCCPL3SSServiceID"));
$SquidWCCPL3SSCertificate = intval($sock->GET_INFO("SquidWCCPL3SSCertificate"));
if ($SquidWCCPL3SSServiceID == 0) {
$SquidWCCPL3SSServiceID = 70;
}
$ID = $_GET["port-id"];
if (!$q->FIELD_EXISTS("proxy_ports", "SquidWCCPL3Addr")) {
$q->QUERY_SQL("ALTER TABLE `proxy_ports` ADD `SquidWCCPL3Addr` VARCHAR(60)");
if (!$q->ok) {
echo $q->mysql_error . "\n";
}
}
if (!$q->FIELD_EXISTS("proxy_ports", "SquidWCCPL3Route")) {
$q->QUERY_SQL("ALTER TABLE `proxy_ports` ADD `SquidWCCPL3Route` VARCHAR(60)");
if (!$q->ok) {
echo $q->mysql_error . "\n";
}
}
$ligne = @mysql_fetch_array($q->QUERY_SQL("SELECT * FROM proxy_ports WHERE ID={$ID}"));
$html = "\n<div style='font-size:36px'>{WCCP_LAYER3}</div>\n<div class=explain style='font-size:14px'>{WCCP_LAYER3_EXPLAIN}</div>\n<div id='SquidAVParamWCCP' style='width:98%' class=form>\n<table style='width:100%'>\n\t<tr>\n\t\t<td style='font-size:22px' class=legend nowrap>{wccp_asa_addr}:</td>\n\t\t<td>" . field_ipv4("SquidWCCPL3Addr-{$t}", $SquidWCCPL3Addr, "font-size:22px") . "</td>\n\t\t<td> </td>\n\t</tr>\n\t<tr>\n\t\t<td style='font-size:22px' class=legend nowrap>" . texttooltip("Route ({optional})", "{gre_route_explain}") . ":</td>\n\t\t<td>" . field_ipv4("SquidWCCPL3Route-{$t}", $SquidWCCPL3Route, "font-size:22px") . "</td>\n\t\t<td> </td>\n\t</tr>\n\t\t\t\t\n\t\t\t\t\n\t<tr>\n\t\t<td style='font-size:22px;vertical-align:middle' class=legend nowrap>{service_id} (SSL):</td>\n\t\t<td>" . Field_text("SquidWCCPL3SSServiceID-{$t}", $SquidWCCPL3SSServiceID, "font-size:22px;width:110px") . "</td>\n\t\t<td></td>\n\t</tr>\t\n\t\t\n\t<tr>\n\t\t<td colspan=3 align='right'>\n\t\t\t<hr>\n\t\t\t\t" . button("{apply}", "Save{$t}()", 32) . "\n\t\t</td>\n\t</tr>\n\t</table>\n</div>\n<script>\nvar xSave{$t}= function (obj) {\n\tvar results=obj.responseText;\n\tif(results.length>3){alert(results);}\n}\n\nfunction Save{$t}(){\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('ID','{$ID}');\n\n\tXHR.appendData('SquidWCCPL3Addr',\n\tdocument.getElementById('SquidWCCPL3Addr-{$t}').value);\n\n\tXHR.appendData('SquidWCCPL3SSServiceID',\n\tdocument.getElementById('SquidWCCPL3SSServiceID-{$t}').value);\t\n\t\n\t\n\tXHR.appendData('SquidWCCPL3Route',\n\tdocument.getElementById('SquidWCCPL3Route-{$t}').value);\n\t\n\tXHR.sendAndLoad('{$page}', 'POST',xSave{$t});\n}\n</script>";
echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:37,代码来源:squid.wccpl3.php
示例11: DNS_SERVERS_POPUP
function DNS_SERVERS_POPUP(){
$tpl=new templates();
$page=CurrentPageName();
$sock=new sockets();
$resolv=new resolv_conf();
$DisableNetworksManagement=$sock->GET_INFO("DisableNetworksManagement");
if(!is_numeric($DisableNetworksManagement)){$DisableNetworksManagement=0;}
$t=time();
if(!$resolv->isValidDomain($resolv->MainArray["DOMAINS1"])){$resolv->MainArray["DOMAINS1"]="localhost.local";}
$page=CurrentPageName();
$html="
<center id='$t' style='width:98%' class=form>
<table style='width:100%'>
<tr>
<td valign='top'>
<table style='width:99%'>
<tr>
<td class=legend style='font-size:26px' nowrap>{primary_dns}:</td>
<td>". field_ipv4("DNS1", $resolv->MainArray["DNS1"],"font-size:26px")."</td>
</tr>
<tr>
<td class=legend style='font-size:26px' nowrap>{secondary_dns}:</td>
<td>". field_ipv4("DNS2", $resolv->MainArray["DNS2"],"font-size:26px")."</td>
</tr>
<tr>
<td class=legend style='font-size:26px' nowrap>{nameserver} 3:</td>
<td>". field_ipv4("DNS3", $resolv->MainArray["DNS3"],"font-size:26px")."</td>
</tr>
</tr>
<tr><td colspan=2 style='font-size:26px'><p> </p></td></tr>
<tr>
<td class=legend style='font-size:26px' nowrap>{InternalDomain} 1:</td>
<td>". Field_text("DOMAINS1", $resolv->MainArray["DOMAINS1"],"font-size:26px")."</td>
</tr>
<tr>
<td class=legend style='font-size:26px' nowrap>{InternalDomain} 2:</td>
<td>". Field_text("DOMAINS2", $resolv->MainArray["DOMAINS2"],"font-size:26px")."</td>
</tr>
<tr>
<td class=legend style='font-size:26px' nowrap>{InternalDomain} 3:</td>
<td>". Field_text("DOMAINS3", $resolv->MainArray["DOMAINS3"],"font-size:26px")."</td>
</tr>
<tr><td colspan=2 style='font-size:26px'><p> </p></td></tr>
<tr>
<td class=legend style='font-size:26px'>{xtimeout}:</td>
<td style='font-size:26px'>". Field_text("TIMEOUT", $resolv->MainArray["TIMEOUT"],"font-size:26px;width:60px")." {seconds}</td>
</tr>
<tr>
<td class=legend style='font-size:26px'>{max-attempts}:</td>
<td style='font-size:26px'>". Field_text("ATTEMPTS", $resolv->MainArray["ATTEMPTS"],"font-size:26px;width:60px")." {times}</td>
</tr>
<tr>
<td class=legend style='font-size:26px'>{UseRotation}:</td>
<td>". Field_checkbox_design("USEROTATION",1,$resolv->MainArray["USEROTATION"])."</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan=2 align='right'><hr>
". button("{apply}", "SaveResolvConf()",40)."</td>
</tr>
</table>
</center>
<script>
var x_SaveResolvConf= function (obj) {
var results=obj.responseText;
if(results.length>0){alert(results);}
}
function SaveResolvConf(){
var XHR = new XHRConnection();
XHR.appendData('DNS1',document.getElementById('DNS1').value);
XHR.appendData('DNS2',document.getElementById('DNS2').value);
XHR.appendData('DNS3',document.getElementById('DNS3').value);
XHR.appendData('DOMAINS1',document.getElementById('DOMAINS1').value);
XHR.appendData('DOMAINS2',document.getElementById('DOMAINS2').value);
XHR.appendData('DOMAINS3',document.getElementById('DOMAINS3').value);
XHR.appendData('TIMEOUT',document.getElementById('TIMEOUT').value);
XHR.appendData('ATTEMPTS',document.getElementById('ATTEMPTS').value);
if(document.getElementById('USEROTATION').checked){XHR.appendData('USEROTATION',1);}else{XHR.appendData('USEROTATION',0);}
XHR.sendAndLoad('$page', 'POST',x_SaveResolvConf);
}
function LockServs(){
var lock1=$resolv->lockServ1;
if(lock1==1){
document.getElementById('DNS1').disabled=true;
}
}
LockServs();
</script>";
//.........这里部分代码省略.........
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:101,代码来源:system.nic.config.php
示例12: item_popup
function item_popup()
{
$page = CurrentPageName();
$tpl = new templates();
$button = "{add}";
$mil = new milter_greylist();
$action = $mil->actionlist;
$sql = "SELECT * FROM miltergreylist_items WHERE ID='{$_GET["ID"]}'";
$q = new mysql();
$t = time();
$ligne = mysql_fetch_array($q->QUERY_SQL($sql, "artica_backup"));
$explain = $tpl->_ENGINE_parse_body("{" . $action[$_GET["type"]] . "}");
if ($_GET["ID"] > 0) {
$button = "{apply}";
}
switch ($_GET["type"]) {
case "addr":
$field = field_ipv4("src{$t}", $ligne["item"], "font-size:16px");
break;
case "dnsrbl":
$pure = new milter_greylist();
$field = Field_array_Hash($pure->dnsrbl_class, "src{$t}", $ligne["item"], null, null, 0, "font-size:14px");
break;
case "geoip":
include_once dirname(__FILE__) . "/ressources/class.spamassassin.inc";
$spam = new spamassassin();
$spam->CountriesCode[null] = "{select}";
$field = Field_array_Hash($spam->CountriesCode, "src{$t}", $ligne["item"], null, null, 0, "font-size:14px");
break;
default:
$field = field_text("src{$t}", $ligne["item"], "font-size:16px;width:220px");
break;
}
$html = "\n\t<div class=explain style='font-size:13px'>{{$_GET["type"]}_text}</div>\n\t<div id='{$t}'>\n\t\n\t\t<table style='width:98%' class=form>\n\t\t<tbody>\n\t\t\t<tr>\n\t\t\t\t<td align='right' width=1% nowrap style='font-size:16px'><strong>{{$_GET["type"]}}:</strong></td>\n\t\t\t\t<td>{$field}</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td align='right' colspan=2><hr>" . button($button, "SaveMilter{$t}GreyListITEM()", 16) . "</td>\n\t\t\t</tr>\t\t\t\t\t\n\t\t\t\n\t\t\t\n\t</tbody>\n\t</table>\t\n<script>\n\tvar SaveMilterGreyListITEM{$t}= function (obj) {\n\t\t\tvar tempvalue=obj.responseText;\n\t\t\tvar ID={$_GET["ID"]};\n\t\t\tif(tempvalue.length>3){alert(tempvalue);}\n\t\t\tYahooWin4Hide();\n\t\t\tRefreshTableMiltITZ();\n\t\t\tRefreshTableMiltGP();\n\t\t}\t\t\n\n\tfunction SaveMilter{$t}GreyListITEM(){\n\t\tif(!document.getElementById('src{$t}')){alert('src{$t} no such id');return;}\n\t\tvar tt=document.getElementById('src{$t}').value;\n\t\tif(tt.length<2){return;}\n\t\tvar XHR = new XHRConnection();\n\t\t\n\t\tXHR.appendData('item-save',document.getElementById('src{$t}').value);\n\t\tXHR.appendData('item',document.getElementById('src{$t}').value);\n\t\tXHR.appendData('gpid','{$_GET["gpid"]}');\n\t\tXHR.appendData('ID','{$_GET["ID"]}');\n\t\tAnimateDiv('{$t}');\n \tXHR.sendAndLoad('{$page}', 'POST',SaveMilterGreyListITEM{$t});\n\t}\n\t\n\t\n\t\n</script>\t\n\t";
echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:36,代码来源:milter.greylist.objects.php
示例13: AJAX_COMPUTER
function AJAX_COMPUTER()
{
if ($_GET["userid"] == "newcomputer\$") {
$add_computer = true;
}
$button_title = "{apply}";
if ($add_computer) {
$button_title = "{add}";
}
$computer = new computers($_GET["userid"]);
$group = new groups($computer->gidNumber);
$gpslist = $computer->Groups_list();
$users = new usersMenus();
$sock = new sockets();
$page = CurrentPageName();
$tpl = new templates();
$modify_js_text = $tpl->javascript_parse_text("{change}");
$TF = time();
$EnableDHCPServer = $sock->GET_INFO('EnableDHCPServer');
if (is_array($gpslist)) {
while (list($num, $val) = each($gpslist)) {
$a_gpr[] = $val;
}
}
$computer->uid = str_replace('$', '', $computer->uid);
if ($users->KAV4SAMBA_INSTALLED) {
$scan_computer = Paragraphe("64-find-virus.png", "{AV_REMOTE_SCAN}", "{AV_REMOTE_SCAN_TEXT}", "javascript:Loadjs('computer.scan.php?uid={$computer->uid}');");
}
if (trim($computer->uidNumber) == null) {
$field_dhcpfixed_disabled = true;
$scan_computer = null;
}
$uidenc = urlencode($_GET["userid"]);
$delete = Paragraphe('delete-64.png', '{delete_this_computer}', "{delete_this_computer}", "javascript:Loadjs('computer.delete.php?uid={$uidenc}&t={$_GET["t"]}')");
$bind9 = new bind9();
$t = time();
if ($EnableDHCPServer == 1) {
$dhcp_fix = Field_checkbox("dhcpfixed-{$t}", 1, $computer->dhcpfixed, "Loadjs('{$page}?dhcpfixedForm=yes&t={$t}')", '{enable_disable}', $field_dhcpfixed_disabled);
} else {
$dhcp_fix = Field_checkbox("dhcpfixed", 1, $computer->dhcpfixed, null, '{no_feature_dhcp_server_not_enabled}', $field_dhcpfixed_disabled);
}
$VolatileIPAddress = Field_checkbox("VolatileIPAddress", 1, $computer->VolatileIPAddress, "Loadjs('{$page}?VolatileIPForm=yes')", '{enable_disable}', $field_dhcpfixed_disabled);
$ini_USER = new Bs_IniHandler();
$ini_USER->loadString($computer->ComputerCryptedInfos);
$USERNAME_REMOTE = $ini_USER->_params["ACCOUNT"]["USERNAME"];
if (!preg_match("#([0-9]+)\\.([0-9]+)\\.([0-9]+)#", $computer->DisplayName)) {
if (preg_match("#(.+?)\\.#", $computer->DisplayName, $re)) {
$Diplayname = $re[1];
} else {
$Diplayname = $computer->DisplayName;
}
} else {
$Diplayname = $computer->DisplayName;
}
$password = Paragraphe("cyrus-password-64.png", "{credentials_informations}", "{credentials_informations_text}", "javascript:Loadjs('computer.passwd.php?uid={$_GET["userid"]}')");
$cuidenc = urlencode($computer->uid);
$computer_infos_services = Paragraphe("computer-tour-64.png", "{COMPUTER_INFOS_SERVICES}", "{COMPUTER_INFOS_SERVICES_TEXT}", "javascript:Loadjs('computer.infos.php?uid={$cuidenc}');");
$wakeonlan = Paragraphe("restart-64.png", "{wakeup_computer}", "{wakeup_computer_text}", "javascript:Loadjs('computer.wakeonlan.php?uid={$uidenc}')");
$group = new groups($computer->gidNumber);
$gpslist = $computer->Groups_list();
$users = new usersMenus();
$sock = new sockets();
$page = CurrentPageName();
$computerOS = utf8_encode($computer->ComputerOS);
$computerOS_text = $computerOS;
$computerOS2 = $computerOS;
if (strlen($computerOS_text) > 36) {
$computerOS_text = texttooltip(substr($computerOS_text, 0, 33) . '...', $computerOS_text, null, null, 1);
$computerOS2 = substr($computerOS_text, 0, 33) . '...';
}
$array_computerOS = $computer->OSLIST(true);
$array_computerOS[$computerOS] = $computerOS2;
if (is_array($a_gpr)) {
$groups = "\n\t\n\t\t\t<tr>\n\t\t\t\t<td class=legend>{groups}:</strong></td>\n\t\t\t\t<td align=left><strong>" . implode(', ', $a_gpr) . "</strong></td>\n\t\t\t</tr>\t";
}
$MacField = Field_text('ComputerMacAddress', $computer->ComputerMacAddress, 'width:95%;font-size:22px;padding:3px;font-weight:bold', null, null, null, false, "ComputerFindByMac()");
if (IsPhysicalAddress($computer->ComputerMacAddress)) {
$MacField = "<input type='hidden' name='ComputerMacAddress' id='ComputerMacAddress' value='{$computer->ComputerMacAddress}'>\n\t\t<code style='font-size:22px'>{$computer->ComputerMacAddress}</code>";
} else {
$mac_warn = imgtootltip("status_warning.png", "{WARNING_MAC_ADDRESS_CORRUPT}");
$wakeonlan = Paragraphe("restart-64-grey.png", "{wakeup_computer}", "{wakeup_computer_text}", "");
}
$dns = AJAX_COMPUTER_DNS_FORM($_GET["userid"]);
if ($add_computer) {
$scan_computer = null;
$delete = null;
$backup_icon = null;
$computer_icon = null;
$password = null;
$computer_infos_services = null;
$add_computer = 1;
}
$html = "\n\t<input type='hidden' name='Yahoowin' id='Yahoowin' value='{$_GET["Yahoowin"]}'>\n\t<form name='FFM34567-{$_GET["userid"]}'>\n\t<input type='hidden' name='userid' id='userid' value='{$_GET["userid"]}'>\n\t<input type='hidden' name='gpid' value='{$_GET["gpid"]}'>\n\t<input type='hidden' name='SaveComputerInfo' value='yes'>\n\t<input type='hidden' name='add_computer_form' value='{$add_computer}'>\n\t\n\t\n\t<table style='width:100%'>\n\t<td width=1% valign='top' style='vertical-align:top' style='vertical-align:top'>\n\t\t<div id='computer_refresh_div'>{$computer_icon}</div>\n\t\t{$password}\n\t\t{$computer_infos_services}\n\t\t{$scan_computer}\n\t\t{$wakeonlan}\n\t\t{$delete}\n\t\t</td>\n\t<td valign='top' style='vertical-align:top' style='vertical-align:top' width=99% style='vertical-align:top !important'>\n\t\t <div style='width:98%' class=form>\n\t\t\t<table style='width:100%'>\n\t\t\t\t<tr>\n\t\t\t\t\t<td colspan=3 ><div style='font-size:26px;margin-bottom:20px'>{network_information}</div></td>\n\t\t\t\t\t\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td class=legend nowrap style='font-size:22px;vertical-align:middle'>{groupName}:</strong></td>\n\t\t\t\t\t<td align=left colspan=2><strong style='font-size:22px;'>{$group->groupName}</strong></td>\n\t\t\t\t</tr>\t\t\t\t\t\t\t\t\t\n\t\t\t\t<tr>\n\t\t\t\t\t\n\t\t\t\t\t<td class=legend nowrap style='font-size:22px;vertical-align:top'>{computer_name}:</strong></td>\n\t\t\t\t\t<td width=1%> </td>\n\t\t\t\t\t<td align=left>" . Field_text('uid', $computer->uid, 'width:100%;font-size:22px;padding:3px;
font-weight:bold;width:400px') . "\n\t\t\t\t\t<div style='margin-top:2px;text-align:right;padding-left:250px' id='modifyNameComp'></div></td>\n\t\t\t\t</tr>\t\t\t\t\t\t\t\t\n\t\t\t\t<tr>\n\t\t\t\t\t\n\t\t\t\t\t<td class=legend nowrap style='font-size:22px;vertical-align:middle'>{ipaddr}:</strong></td>\n\t\t\t\t\t<td width=1%> </td>\n\t\t\t\t\t<td align=left>" . field_ipv4('ComputerIP', $computer->ComputerIP, 'font-size:22px;padding:3px;font-weight:bold') . "</strong></td>\n\t\t\t\t</tr>\t\t\t\n\t\t\t\t<tr>\n\
|
请发表评论