本文整理匯總了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;