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


PHP html_separator函数代码示例

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


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

示例1: html_separator

html_separator();
?>
	<?php 
html_titleline(gettext("Node A settings"));
?>
	<?php 
html_inputbox("aname", gettext("Node Name"), $pconfig['aname'], "", false, 40);
?>
	<?php 
html_inputbox("apath", gettext("Path"), $pconfig['apath'], sprintf(gettext("Path to the local device. (e.g. %s)"), "/dev/da1"), false, 40);
?>
	<?php 
html_inputbox("aremoteaddr", gettext("Node B IP address"), $pconfig['aremoteaddr'], gettext("Address of the remote hastd daemon. It must be a static IP address."), false, 40);
?>
	<?php 
html_separator();
?>
	<?php 
html_titleline(gettext("Node B settings"));
?>
	<?php 
html_inputbox("bname", gettext("Node Name"), $pconfig['bname'], "", false, 40);
?>
	<?php 
html_inputbox("bpath", gettext("Path"), $pconfig['bpath'], sprintf(gettext("Path to the local device. (e.g. %s)"), "/dev/da1"), false, 40);
?>
	<?php 
html_inputbox("bremoteaddr", gettext("Node A IP address"), $pconfig['bremoteaddr'], gettext("Address of the remote hastd daemon. It must be a static IP address."), false, 40);
?>
	</table>
	<div id="submit">
开发者ID:rterbush,项目名称:nas4free,代码行数:31,代码来源:services_hast_resource_edit.php

示例2: getContentByJavascript

function getContentByJavascript($url, $num)
{
    $html = file_get_contents($url);
    $content_position = getPosition($html, "\$.MSNImageSlider.Images");
    $content_endPosition = getPosition($html, "\$.MSNImageSlider.Index");
    $content = substr($html, $content_position, $content_endPosition - $content_position);
    $tag_position = getPosition($content, "[");
    $tag_endPosition = getPosition($content, "]");
    $content = substr($content, $tag_position + 1, $tag_endPosition - $tag_position - 1);
    $array = html_separator($content, "}");
    foreach ($array as $key => $value) {
        if ($tag_position = strpos($value, "{")) {
            $content = substr($value, $tag_position + 1);
            $content_array = html_separator($content, ",");
            foreach ($content_array as $content_key => $content_html) {
                if (strpos($content_html, "src")) {
                    $tag_position = getPosition($content_html, "'");
                    $tag_endPosition = getPosition($content_html, "'", "last");
                    $content = substr($content_html, $tag_position, $tag_endPosition - $tag_position + 1);
                    echo "<img src=" . $content . "></img>";
                    echo "<br />";
                }
                if (strpos($content_html, "text")) {
                    $tag_position = getPosition($content_html, "'");
                    $tag_endPosition = getPosition($content_html, "'", "last");
                    $content = substr($content_html, $tag_position + 1, $tag_endPosition - $tag_position - 1);
                    echo $content;
                    echo "<br />";
                }
            }
        }
    }
}
开发者ID:plateaukao,项目名称:html5,代码行数:33,代码来源:read_msn.php


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