本文整理汇总了PHP中end_group函数的典型用法代码示例。如果您正苦于以下问题:PHP end_group函数的具体用法?PHP end_group怎么用?PHP end_group使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了end_group函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: end_cell
// Handle starting of a new data cell.
if ($datacols > 0) {
end_cell();
$datacols_esc = htmlspecialchars($datacols, ENT_QUOTES);
echo "<td valign='top' colspan='{$datacols_esc}' class='text'";
if ($cell_count > 0) {
echo " style='padding-left:5pt'";
}
echo ">";
$cell_count += $datacols;
}
++$item_count;
generate_form_field($frow, $currvalue);
echo "</div>";
}
end_group();
?>
</div></div>
</form>
</div>
<p>
<div id='otherdiv' style='display:none'>
<span class='bold'><?php
echo htmlspecialchars(xl('Details'), ENT_NOQUOTES);
?>
:</span><br>
<textarea name='body' rows='6' cols='40' wrap='virtual'><?php
echo htmlspecialchars($body, ENT_NOQUOTES);
?>
</textarea>
</div>
开发者ID:pjpradeep,项目名称:openemr,代码行数:31,代码来源:add_transaction.php
示例2: 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 " ";
}
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_group函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论