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

PHP end_cell函数代码示例

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

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



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

示例1: end_row

function end_row()
{
    global $cell_count, $CPR;
    end_cell();
    if ($cell_count > 0) {
        for (; $cell_count < $CPR; ++$cell_count) {
            echo "<td></td>";
        }
        echo "</tr>\n";
        $cell_count = 0;
    }
}
开发者ID:pjpradeep,项目名称:openemr,代码行数:12,代码来源:new.php


示例2: end_row

function end_row()
{
    global $cell_count, $CPR, $historical_ids;
    end_cell();
    if ($cell_count > 0) {
        for (; $cell_count < $CPR; ++$cell_count) {
            echo "<td></td>";
            foreach ($historical_ids as $key => $dummy) {
                $historical_ids[$key] .= "<td></td>";
            }
        }
        foreach ($historical_ids as $key => $dummy) {
            echo $historical_ids[$key];
        }
        echo "</tr>\n";
        $cell_count = 0;
    }
}
开发者ID:richsiy,项目名称:openemr,代码行数:18,代码来源:new.php


示例3: issue_ippf_con_form

function issue_ippf_con_form($issue, $thispid)
{
    global $pprow, $item_count, $cell_count, $last_group;
    $shrow = getHistoryData($thispid);
    if ($issue) {
        $pprow = sqlQuery("SELECT * FROM lists_ippf_con WHERE id = '{$issue}'");
    } else {
        $pprow = array();
    }
    echo "<div id='ippf_con' style='display:none'>\n";
    $fres = sqlStatement("SELECT * FROM layout_options " . "WHERE form_id = 'CON' AND uor > 0 " . "ORDER BY group_name, seq");
    $last_group = '';
    $cell_count = 0;
    $item_count = 0;
    $display_style = 'block';
    while ($frow = sqlFetchArray($fres)) {
        $this_group = $frow['group_name'];
        $titlecols = $frow['titlecols'];
        $datacols = $frow['datacols'];
        $data_type = $frow['data_type'];
        $field_id = $frow['field_id'];
        $list_id = $frow['list_id'];
        $currvalue = '';
        if ($frow['edit_options'] == 'H') {
            // This data comes from static history
            if (isset($shrow[$field_id])) {
                $currvalue = $shrow[$field_id];
            }
        } else {
            if (isset($pprow[$field_id])) {
                $currvalue = $pprow[$field_id];
            }
        }
        // Handle a data category (group) change.
        if (strcmp($this_group, $last_group) != 0) {
            end_group();
            $group_seq = 'con' . substr($this_group, 0, 1);
            $group_name = substr($this_group, 1);
            $last_group = $this_group;
            echo "<br /><span class='bold'><input type='checkbox' name='form_cb_{$group_seq}' value='1' " . "onclick='return divclick(this,\"div_{$group_seq}\");'";
            if ($display_style == 'block') {
                echo " checked";
            }
            echo " /><b>{$group_name}</b></span>\n";
            echo "<div id='div_{$group_seq}' class='section' style='display:{$display_style};'>\n";
            echo " <table border='0' cellpadding='0' width='100%'>\n";
            $display_style = 'none';
        }
        // Handle starting of a new row.
        if ($titlecols > 0 && $cell_count >= $CPR || $cell_count == 0) {
            end_row();
            echo " <tr>";
        }
        if ($item_count == 0 && $titlecols == 0) {
            $titlecols = 1;
        }
        // Handle starting of a new label cell.
        if ($titlecols > 0) {
            end_cell();
            echo "<td valign='top' colspan='{$titlecols}' width='1%' nowrap";
            echo $frow['uor'] == 2 ? " class='required'" : " class='bold'";
            if ($cell_count == 2) {
                echo " style='padding-left:10pt'";
            }
            echo ">";
            $cell_count += $titlecols;
        }
        ++$item_count;
        echo "<b>";
        if ($frow['title']) {
            echo $frow['title'] . ":";
        } else {
            echo "&nbsp;";
        }
        echo "</b>";
        // Handle starting of a new data cell.
        if ($datacols > 0) {
            end_cell();
            echo "<td valign='top' colspan='{$datacols}' class='text'";
            if ($cell_count > 0) {
                echo " style='padding-left:5pt'";
            }
            echo ">";
            $cell_count += $datacols;
        }
        ++$item_count;
        if ($frow['edit_options'] == 'H') {
            echo generate_display_field($frow, $currvalue);
        } else {
            generate_form_field($frow, $currvalue);
        }
    }
    end_group();
    echo "</div>\n";
}
开发者ID:katopenzz,项目名称:openemr,代码行数:95,代码来源:ippf_issues.inc.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP end_content函数代码示例发布时间:2022-05-15
下一篇:
PHP end_block函数代码示例发布时间: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