本文整理汇总了PHP中drawBottom函数的典型用法代码示例。如果您正苦于以下问题:PHP drawBottom函数的具体用法?PHP drawBottom怎么用?PHP drawBottom使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了drawBottom函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: drawHeaderRow
<?php
echo drawHeaderRow("Services", 2, "add new organization", "organization_add_edit.php");
?>
<tr>
<th align="left">Service</td>
<th align="right">#</td>
</tr>
<?php
$result = db_query("SELECT s.id, s.name, (SELECT count(*) FROM web_organizations_2_services o2s WHERE o2s.serviceID = s.id) as countservices FROM web_services s ORDER by s.name");
while ($r = db_fetch($result)) {
?>
<tr>
<td><a href="service.php?id=<?php
echo $r["id"];
?>
"><?php
echo $r["name"];
?>
</a></td>
<td align="right"><?php
echo $r["countservices"];
?>
</td>
</tr>
<?php
}
?>
</table>
<?php
echo drawBottom();
示例2: format_date
?>
</td>
<td><a href="/staff/view.php?id=<?php
echo $r["userID"];
?>
"><?php
echo $r["first"];
?>
<?php
echo $r["last"];
?>
</a></td>
<td><?php
echo $r["title"];
?>
, <?php
echo $r["departmentName"];
?>
</td>
<td align="right"><?php
echo format_date($r["endDate"]);
?>
</td>
</tr>
<?php
}
?>
</table>
<?php
drawBottom();