本文整理匯總了PHP中customer::getInfo方法的典型用法代碼示例。如果您正苦於以下問題:PHP customer::getInfo方法的具體用法?PHP customer::getInfo怎麽用?PHP customer::getInfo使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類customer
的用法示例。
在下文中一共展示了customer::getInfo方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
$(document).ready(function() {
$('#create').hide();
});
</script>
<div class="title">
<h2>Customers</h2>
<p><small>Manage the customers.</small></p>
</div>
<div class="entry">
<p><?php
echo $msg;
?>
</p>
<?php
if (isset($_GET['edit']) && $customer->validId($_GET['edit'])) {
$info = $customer->getInfo($_GET['edit']);
?>
<fieldset>
<legend>Edit</legend>
<form action="customers.php" method="post">
<label for="mail">E-mail:</label><br><br>
<input type="text" id="mail" name="mail" value="<?php
echo $info['mail'];
?>
"/><br><br>
<label for="name">Full Name:</label><br><br>
<input type="text" id="name" name="name" value="<?php
echo $info['name'];
?>
"/><br><br>
<label for="city">City:</label><br><br>
示例2: call
<?php
//required includes at start
require_once 'inc/top.php';
//others required includes only here
require_once 'inc/session.php';
require_once 'inc/functions/time.php';
require_once 'inc/classes/call.php';
require_once 'inc/classes/customer.php';
require_once 'inc/classes/web.php';
require_once 'inc/classes/subject.php';
require_once 'inc/classes/country.php';
$call = new call();
$info = $call->getInfo($_GET['id']);
$customer = new customer();
$info2 = $customer->getInfo($info['customer']);
if (isset($_POST['edit'])) {
$duration = $_POST['minutes'] * 60 + $_POST['seconds'];
if ($customer->exists($_POST['mail'], false)) {
$call->edit($_POST['id'], $_SESSION['users']['id'], $_POST['type'], $_POST['web'], $_POST['subject'], $duration, $_POST['comments'], $customer->MailToId($_POST['mail']));
} else {
$customer->create($_POST['name'], $_POST['mail'], $_POST['city'], $_POST['country'], $_POST['phone']);
$call->edit($_POST['id'], $_SESSION['users']['id'], $_POST['type'], $_POST['web'], $_POST['subject'], $duration, $_POST['comments'], $customer->MailToId($_POST['mail']));
}
$msg = $call->printNiceLog(false);
$_GET['id'] = $_POST['id'];
$info = $call->getInfo($_GET['id']);
$info2 = $customer->getInfo($info['customer']);
}
$html['title'] = 'Edit';
$html['head'] = '<script src="themes/' . THEME . '/js/jquery.js" type="text/javascript"></script>';