本文整理汇总了PHP中customer::printNiceLog方法的典型用法代码示例。如果您正苦于以下问题:PHP customer::printNiceLog方法的具体用法?PHP customer::printNiceLog怎么用?PHP customer::printNiceLog使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类customer
的用法示例。
在下文中一共展示了customer::printNiceLog方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: customer
<?php
//required includes at start
require_once 'inc/top.php';
//others required includes only here
require_once 'inc/session.php';
require_once 'inc/classes/customer.php';
require_once 'inc/classes/country.php';
$customer = new customer();
if (isset($_POST['delete'])) {
$customer->deleteSelected();
$msg = $customer->printNiceLog(false);
}
if (isset($_POST['edit']) && isset($_POST['id'])) {
$customer->edit($_POST['id'], $_POST['name'], $_POST['mail'], $_POST['city'], $_POST['country'], $_POST['phone']);
$msg = $customer->printNiceLog(false);
}
if (isset($_POST['create'])) {
$customer->create($_POST['name'], $_POST['mail'], $_POST['city'], $_POST['country'], $_POST['phone']);
$msg = $customer->printNiceLog(false);
}
$html['title'] = 'Customers';
$html['head'] = '<script src="themes/' . THEME . '/js/jquery.js" type="text/javascript"></script>';
//theme header
include_once 'themes/' . THEME . '/header.php';
?>
<script type="text/javascript">
$(document).ready(function() {
$('#create').hide();
});
</script>