本文整理汇总了PHP中PQA函数的典型用法代码示例。如果您正苦于以下问题:PHP PQA函数的具体用法?PHP PQA怎么用?PHP PQA使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PQA函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Cells
function Cells($name, $attr)
{
global $MarkupFrame;
$attr = PQA($attr);
$tattr = @$MarkupFrame[0]['tattr'];
$name = strtolower($name);
$key = preg_replace('/end$/', '', $name);
if (preg_match("/^(?:head|cell)/", $name)) {
$key = 'cell';
}
$out = '<:block>' . MarkupClose($key);
if (substr($name, -3) == 'end') {
return $out;
}
$cf =& $MarkupFrame[0]['closeall'];
if ($name == 'table') {
$MarkupFrame[0]['tattr'] = $attr;
} else {
if ($key == 'cell') {
if (strpos($attr, "valign=") === false) {
$attr .= " valign='top'";
}
$t = strpos($name, 'head') === 0 ? 'th' : 'td';
if (!@$cf['table']) {
$tattr = @$MarkupFrame[0]['tattr'];
$out .= "<table {$tattr}><tr><{$t} {$attr}>";
$cf['table'] = '</tr></table>';
} else {
if (preg_match("/nr\$/", $name)) {
$out .= "</tr><tr><{$t} {$attr}>";
} else {
$out .= "<{$t} {$attr}>";
}
}
$cf['cell'] = "</{$t}>";
} else {
$out .= "<div {$attr}>";
$cf[$key] = '</div>';
}
}
return $out;
}
示例2: Cells
function Cells($name, $attr)
{
global $MarkupFrame;
$attr = PQA($attr);
$tattr = @$MarkupFrame[0]['tattr'];
$name = strtolower($name);
$key = preg_replace('/end$/', '', $name);
if (strncmp($key, 'cell', 4) == 0) {
$key = 'cell';
}
$out = '<:block>' . MarkupClose($key);
if (substr($name, -3) == 'end') {
return $out;
}
$cf =& $MarkupFrame[0]['closeall'];
if ($name == 'table') {
$MarkupFrame[0]['tattr'] = $attr;
} else {
if (strncmp($name, 'cell', 4) == 0) {
if (strpos($attr, "valign=") === false) {
$attr .= " valign='top'";
}
if (!@$cf['table']) {
$tattr = @$MarkupFrame[0]['tattr'];
$out .= "<table {$tattr}><tr><td {$attr}>";
$cf['table'] = '</td></tr></table>';
} else {
if ($name == 'cellnr') {
$out .= "</td></tr><tr><td {$attr}>";
} else {
$out .= "</td><td {$attr}>";
}
}
$cf['cell'] = '';
} else {
$out .= "<div {$attr}>";
$cf[$key] = '</div>';
}
}
return $out;
}
示例3: Cells
function Cells($name,$attr) {
global $MarkupFrame, $EnableTableAutoValignTop;
$attr = PQA($attr);
$tattr = @$MarkupFrame[0]['tattr'];
$name = strtolower($name);
$key = preg_replace('/end$/', '', $name);
if (preg_match("/^(?:head|cell)(nr)?$/", $name)) $key = 'cell';
$out = '<:block>'.MarkupClose($key);
if (substr($name, -3) == 'end') return $out;
$cf = & $MarkupFrame[0]['closeall'];
if ($name == 'table') $MarkupFrame[0]['tattr'] = $attr;
else if ($key == 'cell') {
if (IsEnabled($EnableTableAutoValignTop, 1) && strpos($attr, "valign=")===false)
$attr .= " valign='top'";
$t = (strpos($name, 'head')===0 ) ? 'th' : 'td';
if (!@$cf['table']) {
$tattr = @$MarkupFrame[0]['tattr'];
$out .= "<table $tattr><tr><$t $attr>";
$cf['table'] = '</tr></table>';
} else if ( preg_match("/nr$/", $name)) $out .= "</tr><tr><$t $attr>";
else $out .= "<$t $attr>";
$cf['cell'] = "</$t>";
} else {
$tag = preg_replace('/\\d+$/', '', $key);
$out .= "<$tag $attr>";
$cf[$key] = "</$tag>";
}
return $out;
}