Ejemplo n.º 1
0
 //$js = "javascript:ajaxGeneric('include/management/retUserInfo.php','retBandwidthInfo','divContainerUserInfo','username="******"');";
 $content = '<a class="toolTip" href="mng-hs-edit.php?name=' . $row['hotspotname'] . '">' . $l['Tooltip']['HotspotEdit'] . '</a>';
 $content .= '<br/><br/><b>' . $l['all']['NASMAC'] . ':</b> ' . $row['mac'];
 $str = addToolTipBalloon(array('content' => $content, 'onClick' => '', 'value' => '<b>' . $row['hotspotname'] . '</b>', 'divId' => ''));
 echo "\n\t\t\t<tr>\n\t\t\t\t<td>\n\t\t\t\t\t{$str}\n\t\t\t\t</td>\n\t\t\t\n\t\t\t\t<td>" . $row['firmware'] . "\n\t\t\t\t\t<br/>" . $row['firmware_revision'] . "\n\t\t\t\t</td>\n\t\t\t";
 $content = '<b>' . $l['all']['WanIface'] . ":</b> " . $row['wan_iface'] . "<br/>" . '<b>' . $l['all']['WanMAC'] . ":</b> " . $row['wan_mac'] . "<br/>" . '<b>' . $l['all']['WanIP'] . ":</b> " . $row['wan_ip'] . "<br/>" . '<b>' . $l['all']['WanGateway'] . ":</b> " . $row['wan_ip'];
 $value = '<b>' . $l['all']['WanIP'] . ":</b> " . $row['wan_ip'];
 $str = addToolTipBalloon(array('content' => $content, 'onClick' => '', 'value' => $value, 'divId' => ''));
 echo "<td> {$str} </td>";
 $content = $l['all']['LanIface'] . ":</b> " . $row['lan_iface'] . "<br/><b>" . $l['all']['LanMAC'] . ":</b> " . $row['lan_mac'] . "<br/><b>" . $l['all']['LanIP'] . ":</b> " . $row['lan_ip'];
 $value = '<b>' . $l['all']['LanIP'] . ":</b> " . $row['lan_ip'];
 $str = addToolTipBalloon(array('content' => $content, 'onClick' => '', 'value' => $value, 'divId' => ''));
 echo "<td> {$str} </td>";
 $content = $l['all']['WifiIface'] . ":</b> " . $row['wifi_iface'] . "<br/><b>" . $l['all']['WifiMAC'] . ":</b> " . $row['wifi_mac'] . "<br/><b>" . $l['all']['WifiIP'] . ":</b> " . $row['wifi_ip'] . "<br/><b>" . $l['all']['WifiSSID'] . ":</b> " . $row['wifi_ssid'] . "<br/><b>" . $l['all']['WifiKey'] . ":</b> " . $row['wifi_key'] . "<br/><b>" . $l['all']['WifiChannel'] . ":</b> " . $row['wifi_channel'];
 $value = '<b>' . $l['all']['WifiSSID'] . ":</b> " . $row['wifi_ssid'] . "<br/><b>" . $l['all']['WifiKey'] . ":</b> " . $row['wifi_key'];
 $str = addToolTipBalloon(array('content' => $content, 'onClick' => '', 'value' => $value, 'divId' => ''));
 echo "<td> {$str} </td>";
 echo "\n\t\t\t\t<td>" . time2str($row['uptime']) . "\n\t\t\t\t</td>\n\n\t\t\t\t<td>" . $row['memfree'] . "\n\t\t\t\t</td>\n\n\t\t\t\t<td>" . toxbyte($row['wan_bup']) . "\n\t\t\t\t</td>\n\n\t\t\t\t<td>" . toxbyte($row['wan_bdown']) . "\n\t\t\t\t</td>\n\n\t\t\t\t<td>" . $row['time'] . "\n\t\t\t\t</td>\n\t\t\t\t\n\t\t\t</tr>\n\t\t";
 /*
 printqn("
 	<td> <input type='checkbox' name='username[]' value='$row[0]'>$row[2]</td>
 	<td> 
 ");
 
 
 if ( ($row[1] == "Reject") && ($row[4] == "Auth-Type") )
 	echo "<img title='user is disabled' src='images/icons/userStatusDisabled.gif' alt='[disabled]'>";
 else
 	echo "<img title='user is enabled' src='images/icons/userStatusActive.gif' alt='[enabled]'>";
 
 
Ejemplo n.º 2
0
}
echo " </th></tr>\n                                        </thead>\n\n                        ";
if ($orderType == "asc") {
    $orderTypeNextPage = "desc";
} else {
    if ($orderType == "desc") {
        $orderTypeNextPage = "asc";
    }
}
echo "<thread> <tr>\n\t\t<th scope='col'>\n\t\t<a title='Sort' class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?orderBy=id&orderType={$orderTypeNextPage}\">\n\t\t" . $l['all']['Invoice'] . "</a>\n\t\t</th>\n\n\t\t<th scope='col'> \n\t\t<a title='Sort' class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?orderBy=contactperson&orderType={$orderTypeNextPage}\">\n\t\t" . $l['all']['ClientName'] . "</a>\n\t\t</th>\n\n\t\t<th scope='col'> \n\t\t<a title='Sort' class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?orderBy=date&orderType={$orderTypeNextPage}\">\n\t\t" . $l['all']['Date'] . "</a>\n\t\t</th>\n\t\t\n\t\t<th scope='col'> \n\t\t<a title='Sort' class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?orderBy=totalbilled&orderType={$orderTypeNextPage}\">\n\t\t" . $l['all']['TotalBilled'] . "</a>\n\t\t</th>\n\t\t\n\t\t<th scope='col'> \n\t\t<a title='Sort' class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?orderBy=totalpayed&orderType={$orderTypeNextPage}\">\n\t\t" . $l['all']['TotalPayed'] . "</a>\n\t\t</th>\n\t\t\n\t\t<th scope='col'> \n\t\t" . $l['all']['Balance'] . "\n\t\t</th>\n\t\t\n\t\t<th scope='col'> \n\t\t<a title='Sort' class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?orderBy=status_id&orderType={$orderTypeNextPage}\">\n\t\t" . $l['all']['Status'] . "</a>\n\t\t</th>\n\t\t\n\t</tr> </thread>";
while ($row = $res->fetchRow(DB_FETCHMODE_ASSOC)) {
    echo '<tr>';
    $content = '<a class="toolTip" href="bill-invoice-edit.php?invoice_id=' . $row['id'] . '">' . $l['Tooltip']['InvoiceEdit'] . '</a>';
    $invoice_id = addToolTipBalloon(array('content' => $content, 'onClick' => '', 'value' => '#' . $row['id'], 'divId' => ''));
    $content = '<a class="toolTip" href="bill-pos-edit.php?username='******'username'] . '">' . $l['Tooltip']['UserEdit'] . '</a>';
    $contactperson = addToolTipBalloon(array('content' => $content, 'onClick' => '', 'value' => $row['contactperson'], 'divId' => ''));
    echo '<td> ' . $invoice_id . ' </td>';
    echo '<td> ' . $contactperson . ' </td>';
    echo '<td> ' . $row['date'] . ' </td>';
    echo '<td> ' . $row['totalbilled'] . ' </td>';
    echo '<td> ' . $row['totalpayed'] . ' </td>';
    echo '<td> ' . ($row['totalpayed'] - $row['totalbilled']) . ' </td>';
    echo '<td> ' . $row['status'] . ' </td>';
    echo '</tr>';
}
echo "\n                                        <tfoot>\n                                                        <tr>\n                                                        <th colspan='10' align='left'>\n        ";
setupLinks($pageNum, $maxPage, $orderBy, $orderType);
echo "\n                                                        </th>\n                                                        </tr>\n                                        </tfoot>\n                ";
echo "</table>";
echo "</form>";
include 'library/closedb.php';
Ejemplo n.º 3
0
} else {
    if ($orderType == "desc") {
        $orderType = "asc";
    }
}
echo "<thread> <tr>\n\t\t<th scope='col'> \n\t\t<a title='Sort' class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?orderBy=id&orderType={$orderType}\">\n\t\t" . $l['all']['ID'] . "</a>\n\t\t</th>\n\n\t\t<th scope='col'> \n\t\t" . $l['all']['Name'] . "</a>\n\t\t</th>\n\t\t\n\t\t<th scope='col'> \n\t\t<a title='Sort' class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?orderBy=Username&orderType={$orderType}\">\n\t\t" . $l['all']['Username'] . "</a>\n\t\t</th>\n\n\t\t<th scope='col'> \n\t\t<a title='Sort' class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?orderBy=Value&orderType={$orderType}\">\n\t\t" . $l['all']['Password'] . "</a>\n\t\t</th>\n\n\t\t<th scope='col'> \n\t\t<a title='Sort' class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?orderBy=Groupname&orderType={$orderType}\">\n\t\t" . $l['title']['Groups'] . "</a>\n\t\t</th>\n\t\t</tr> </thread>";
while ($row = $res->fetchRow()) {
    printqn("\n\t\t\t<td> <input type='checkbox' name='username[]' value='{$row['0']}'>{$row['2']}</td>\n\t\t\t<td>{$row['5']} {$row['6']}</td>\n\t\t\t<td> \n\t\t");
    if ($row[1] == "Reject" && $row[4] == "Auth-Type") {
        echo "<img title='user is disabled' src='images/icons/userStatusDisabled.gif' alt='[disabled]'>";
    } else {
        echo "<img title='user is enabled' src='images/icons/userStatusActive.gif' alt='[enabled]'>";
    }
    $js = "javascript:ajaxGeneric('include/management/retUserInfo.php','retBandwidthInfo','divContainerUserInfo','username="******"');";
    $content = '<a class="toolTip" href="mng-edit.php?username='******'">' . $l['Tooltip']['UserEdit'] . '</a>';
    $str = addToolTipBalloon(array('content' => $content, 'onClick' => $js, 'value' => $row[0], 'divId' => 'divContainerUserInfo'));
    echo "{$str} </td>";
    if ($configValues['CONFIG_IFACE_PASSWORD_HIDDEN'] == "yes") {
        echo "<td>************</td>";
    } else {
        echo "<td>{$row['1']}</td>";
    }
    echo "\n\t\t\t<td>{$row['3']}</td>\n\t\t</tr>";
}
echo "\n\t\t\t\t\t<tfoot>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<th colspan='10' align='left'> \n\t";
setupLinks($pageNum, $maxPage, $orderBy, $curOrderType);
echo "\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t</tfoot>\n\t\t";
echo "</table>";
echo "</form>";
include 'library/closedb.php';
?>