• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP get_service_status_icon函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中get_service_status_icon函数的典型用法代码示例。如果您正苦于以下问题:PHP get_service_status_icon函数的具体用法?PHP get_service_status_icon怎么用?PHP get_service_status_icon使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: format_bytes

        echo format_bytes($client['bytes_sent']);
        ?>
</td>
						<td><?php 
        echo format_bytes($client['bytes_recv']);
        ?>
</td>
						<td>
							<table>
								<tr>
									<td>
										<?php 
        $ssvc = find_service_by_openvpn_vpnid($client['vpnid']);
        ?>
										<?php 
        echo get_service_status_icon($ssvc, false, true);
        ?>
										<?php 
        echo get_service_control_GET_links($ssvc, true);
        ?>
									</td>
								</tr>
							</table>
						</td>
					</tr>
<?php 
    }
    ?>
				</tbody>
			</table>
		</div>
开发者ID:gregecslo,项目名称:pfsense-1,代码行数:31,代码来源:status_openvpn.php


示例2: foreach

<?php 
if (count($services) > 0) {
    foreach ($services as $service) {
        ?>
                <tr>
                    <td><?php 
        echo $service['name'];
        ?>
</td>
                    <td><?php 
        echo $service['description'];
        ?>
</td>
                    <td>
                      <?php 
        echo get_service_status_icon($service, true, true);
        ?>
                      <?php 
        echo get_service_control_links($service);
        ?>
                      <?php 
        echo !empty(get_shortcut_by_service_name($service['name'])) ? get_shortcut_log_link($scut, true) : "";
        ?>
                    </td>
                </tr>
<?php 
    }
} else {
    ?>
                <tr>
                  <td colspan="3"> <?php 
开发者ID:8191,项目名称:opnsense-core,代码行数:31,代码来源:status_services.php


示例3: uasort

    uasort($services, "service_name_compare");
    foreach ($services as $service) {
        if (!$service['name'] || in_array($service['name'], $skipservices)) {
            continue;
        }
        $service_desc = explode(".", $service['description']);
        echo "<tr><td class=\"listlr\">" . $service['name'] . "</td>\n";
        echo "<td class=\"listr\">" . $service_desc[0] . "</td>\n";
        // if service is running then listr else listbg
        $bgclass = null;
        if (get_service_status($service)) {
            $bgclass = "listr";
        } else {
            $bgclass = "listbg";
        }
        echo "<td class=\"" . $bgclass . "\" align=\"center\">" . str_replace('btn ', 'btn btn-xs ', get_service_status_icon($service, false, true)) . "</td>\n";
        echo "<td valign=\"middle\" class=\"list nowrap\">" . str_replace('btn ', 'btn btn-xs ', get_service_control_links($service)) . "</td></tr>\n";
    }
} else {
    echo "<tr><td colspan=\"3\" align=\"center\">" . gettext("No services found") . " . </td></tr>\n";
}
?>
</table>

<!-- needed to display the widget settings menu -->
<script type="text/javascript">
//<![CDATA[
	selectIntLink = "services_status-configure";
	textlink = document.getElementById(selectIntLink);
	textlink.style.display = "inline";
//]]>
开发者ID:siloportem,项目名称:core,代码行数:31,代码来源:services_status.widget.php


示例4: get_pkg_descr

        if (empty($service['name'])) {
            continue;
        }
        if (empty($service['description'])) {
            $service['description'] = get_pkg_descr($service['name']);
        }
        echo "<tr><td class=\"listlr\" width=\"20%\">" . $service['name'] . "</td>\n";
        echo "<td class=\"listr\" width=\"55%\">" . $service['description'] . "</td>\n";
        // if service is running then listr else listbg
        $bgclass = null;
        if (get_service_status($service)) {
            $bgclass = "listr";
        } else {
            $bgclass = "listbg";
        }
        echo "<td class=\"" . $bgclass . "\" align=\"center\">" . get_service_status_icon($service, true, true) . "</td>\n";
        echo "<td valign=\"middle\" class=\"list nowrap\">" . get_service_control_links($service);
        $scut = get_shortcut_by_service_name($service['name']);
        if (!empty($scut)) {
            echo get_shortcut_main_link($scut, true, $service);
            echo get_shortcut_status_link($scut, true, $service);
            echo get_shortcut_log_link($scut, true);
        }
        echo "</td></tr>\n";
    }
} else {
    echo "<tr><td colspan=\"3\" align=\"center\">" . gettext("No services found") . " . </td></tr>\n";
}
?>
	</tbody>
</table>
开发者ID:nmccurdy,项目名称:pfsense,代码行数:31,代码来源:status_services.php


示例5: explode

<?php 
$skipservices = explode(",", $user_settings['widgets']['servicestatusfilter']);
if (count($services) > 0) {
    uasort($services, "service_dispname_compare");
    foreach ($services as $service) {
        if (!$service['dispname'] || in_array($service['dispname'], $skipservices) || !is_service_enabled($service['dispname'])) {
            continue;
        }
        if (empty($service['description'])) {
            $service['description'] = get_pkg_descr($service['name']);
        }
        $service_desc = explode(".", $service['description']);
        ?>
		<tr>
			<td><?php 
        echo get_service_status_icon($service, false, true, false, "state");
        ?>
</td>
			<td><?php 
        echo $service['dispname'];
        ?>
</td>
			<td><?php 
        echo $service_desc[0];
        ?>
</td>
			<td><?php 
        echo get_service_control_links($service);
        ?>
</td>
		</tr>
开发者ID:NewEraCracker,项目名称:pfsense,代码行数:31,代码来源:services_status.widget.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP get_services函数代码示例发布时间:2022-05-15
下一篇:
PHP get_service_status函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap