当前位置: 首页>>代码示例>>PHP>>正文


PHP paloSantoGrid::addInputTextAction方法代码示例

本文整理汇总了PHP中paloSantoGrid::addInputTextAction方法的典型用法代码示例。如果您正苦于以下问题:PHP paloSantoGrid::addInputTextAction方法的具体用法?PHP paloSantoGrid::addInputTextAction怎么用?PHP paloSantoGrid::addInputTextAction使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在paloSantoGrid的用法示例。


在下文中一共展示了paloSantoGrid::addInputTextAction方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: buildReport

function buildReport($arrData, $smarty, $module_name, $endpoint_mask)
{
    if (getParameter("cancel")) {
        unset($_SESSION["endpoint_configurator"]);
    }
    $nav = isset($_GET['nav']) && $_GET['nav'] != '' ? $_GET['nav'] : (isset($_GET['navpost']) && $_GET['navpost'] != '' ? $_GET['navpost'] : NULL);
    $start = isset($_GET['start']) && $_GET['start'] != '' ? $_GET['start'] : (isset($_GET['startpost']) && $_GET['startpost'] != '' ? $_GET['startpost'] : NULL);
    $ip = $_SERVER['SERVER_ADDR'];
    $devices = subMask($ip);
    $limit = 20;
    $total = count($arrData);
    $oGrid = new paloSantoGrid($smarty);
    $oGrid->setLimit($limit);
    $oGrid->setTotal($total);
    $offset = $oGrid->calculateOffset();
    //$offset = $oGrid->getOffSet($limit,$total,$nav,$start);
    $end = $offset + $limit <= $total ? $offset + $limit : $total;
    if ($devices <= 20) {
        $devices = pow(2, 32 - $devices);
        $devices = $devices - 2;
        $smarty->assign("mb_title", _tr('WARNING') . ":");
        $smarty->assign("mb_message", _tr("It can take several minutes, because your ip address has some devices, ") . $devices . _tr("hosts"));
    }
    if ($total <= $limit) {
        $arrDataPorcion = $arrData;
    } else {
        $arrDataPorcion = array_slice($arrData, $offset, $limit);
    }
    $arrGrid = array("title" => _tr("Endpoint Configurator"), "url" => array('menu' => $module_name, 'navpost' => $nav, 'startpost' => $start), "icon" => "/modules/{$module_name}/images/pbx_endpoint_configurator.png", "width" => "99%", "start" => $total == 0 ? 0 : $offset + 1, "end" => $end, "total" => $total, "columns" => array(0 => array("name" => "<input type='submit' name='endpoint_set' value='" . _tr('Set') . "' class='button' onclick=\" return confirmSubmit('" . _tr("Are you sure you wish to set endpoint(s)?") . "');\" />", "property1" => ""), 1 => array("name" => "<input type='submit' name='endpoint_unset' value='" . _tr('Unset') . "' class='button' onclick=\" return confirmSubmit('" . _tr("Are you sure you wish to unset endpoint(s)?") . "');\" />", "property1" => ""), 2 => array("name" => _tr("MAC Adress"), "property1" => ""), 3 => array("name" => _tr("IP Adress"), "property1" => ""), 4 => array("name" => _tr("Vendor"), "property1" => ""), 5 => array("name" => _tr("Phone Type"), "property1" => ""), 6 => array("name" => _tr("User Extension"), "property1" => ""), 7 => array("name" => _tr("Current Extension"), "property1" => "")));
    /* $html_filter = "<input type='submit' name='endpoint_scan' value='"._tr('Discover Endpoints in this Network')."' class='button' />";
       $html_filter.= "&nbsp;&nbsp;<input type='text' name='endpoint_mask' value='$endpoint_mask' style='width:130px;' />";*/
    $oGrid->addInputTextAction("endpoint_mask", _tr('Discover Endpoints in this Network'), $endpoint_mask, 'endpoint_scan');
    //$oGrid->showFilter($html_filter,true);
    $contenidoModulo = $oGrid->fetchGrid($arrGrid, $arrDataPorcion);
    return $contenidoModulo;
}
开发者ID:hardikk,项目名称:HNH,代码行数:36,代码来源:index.php


注:本文中的paloSantoGrid::addInputTextAction方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。