Пример #1
0
function popup()
{
    $dev = $_GET["dev"];
    $html = "<H1>{$dev}</h1>\n\t<table style='width:100%'>\n\t\t<tr>\n\t\t<td valign='top' width=1%><center><img src='img/database-connect-128.png'></center></td>\n\t\t<td valign='top' width=99%>\n\t\t\t<div id='fstab'><p class=caption>{CONNECT_HD_TEXT}</p>\n\t\t\t\t<table style='width:100%' class=table_form>\n\t\t\t\t<tr>\n\t\t\t\t\t<td valign='middle' class=legend nowrap>{mount_point}:</td>\n\t\t\t\t\t<td nowrap>" . Field_text('mount_point', null, 'width:220px') . "" . button_browse('mount_point') . "</td>\n\t\t\t\t\t<td>" . button("{add}", "fstabAdd()") . "</td>\n\t\t\t\t</tr>\n\t\t\t\t</table>\n\t\t\t\t" . RoundedLightWhite("<div id='fslist' style='width:99%;height:220px;overflow:auto'>" . listfstab($dev) . "</div>") . "\n\t\t\t</div>\n\t\t</td>\n\t\t</tr>\n\t</table>\n\t";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html, 'system.internal.disks.php');
}
Пример #2
0
function popup()
{
    $dev = $_GET["dev"];
    $sock = new sockets();
    $uuid = base64_decode($sock->getFrameWork("hd.php?uuid-from-dev=" . urlencode($dev)));
    $html = "<div style='font-size:22px;margin-bottom:30px'>{$dev} ( {$uuid} )</div>\n\t<table style='width:100%'>\n\t\t<tr>\n\t\t<td valign='top' width=1%><center><img src='img/database-connect-128.png'></center></td>\n\t\t<td valign='top' width=99%>\n\t\t\t<div id='fstab'><div class=text-info style='font-size:16px'>{CONNECT_HD_TEXT}</div>\n\t\t\t\t<div style='width:98%' class=form>\n\t\t\t\t<table>\n\t\t\t\t<tr>\n\t\t\t\t\t<td valign='middle' class=legend nowrap style='font-size:16px'>{mount_point}:</td>\n\t\t\t\t\t<td nowrap>" . Field_text('mount_point', null, 'width:220px;font-size:16px') . "" . button_browse('mount_point') . "</td>\n\t\t\t\t\t<td>" . button("{add}", "fstabAdd()", 18) . "</td>\n\t\t\t\t</tr>\n\t\t\t\t</table>\n\t\t\t\t</div>\n\t\t\t\t<div id='fslist' style='width:99%;height:220px;overflow:auto'>" . listfstab($dev) . "</div>\n\t\t\t</div>\n\t\t</td>\n\t\t</tr>\n\t</table>\n\t";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html, 'system.internal.disks.php');
}