本文整理汇总了PHP中status_edit函数的典型用法代码示例。如果您正苦于以下问题:PHP status_edit函数的具体用法?PHP status_edit怎么用?PHP status_edit使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了status_edit函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array_keys
</p></td>
<td align="center" class="adAction">
<?php
$str = '';
$key = array_keys($row);
for ($j = 0; $j < count($key); $j++) {
if (!preg_match("/date/", $key[$j])) {
$str .= '"' . $key[$j] . '":"' . $row[$key[$j]] . '", ';
} else {
$str .= '"' . $key[$j] . '":"' . $c->_model->_viewDateTime($row[$key[$j]]) . '", ';
}
}
$str = rtrim($str, ', ');
echo '<div class="data">{' . $str . '}</div>';
$link = CONS_LINK_ADMIN . '/' . $navigator['url'] . '/' . $para . '&id=' . $row['id'];
echo status_edit($row['status'], $link);
echo $btnDelete;
?>
</td>
</tr>
<?php
}
?>
</table>
<div class="pageList">
<?php
$urlSearch = CONS_LINK_ADMIN . '/' . $navigator['url'] . '/?' . $arr['urlSearch'];
$offSet = 5;
$totalRows = $arr['totalRows'];
$currentPage = $arr['currentPage'];
$data = $c->pagesList($urlSearch, $totalRows, CONS_ADMIN_PER_PAGE, $offSet, $currentPage);
示例2: array_keys
</td>
<td align="center" class="adAction">
<?php
$str = '';
$key = array_keys($row);
for ($j = 0; $j < count($key); $j++) {
if (!preg_match("/date/", $key[$j])) {
$str .= '"' . $key[$j] . '":"' . $row[$key[$j]] . '", ';
} else {
$str .= '"' . $key[$j] . '":"' . $c->_model->_viewDateTime($row[$key[$j]]) . '", ';
}
}
$str = rtrim($str, ', ');
echo '<div class="data">{' . $str . '}</div>';
$link = CONS_LINK_ADMIN . '/' . $navigator['url'] . '/' . $para . '&id=' . $row['id'];
echo status_edit(NULL, $link);
?>
</td>
</tr>
<?php
}
?>
</table>
<div class="pageList">
<?php
$urlSearch = CONS_LINK_ADMIN . '/' . $navigator['url'] . '/?' . $arr['urlSearch'];
$offSet = 5;
$totalRows = $arr['totalRows'];
$currentPage = $arr['currentPage'];
$data = $c->pagesList($urlSearch, $totalRows, CONS_ADMIN_PER_PAGE, $offSet, $currentPage);
echo $data;