本文整理汇总了PHP中timetodate函数的典型用法代码示例。如果您正苦于以下问题:PHP timetodate函数的具体用法?PHP timetodate怎么用?PHP timetodate使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了timetodate函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: get_list
function get_list($condition = '1', $order = 'addtime DESC')
{
global $pages, $page, $pagesize, $offset, $pagesize, $MOD, $item, $sum;
if ($page > 1 && $sum) {
$items = $sum;
} else {
$r = $this->db->get_one("SELECT COUNT(*) AS num FROM {$this->table} WHERE {$condition}");
$item = $r['num'];
}
$pages = pages($item, $page, $pagesize);
$lists = $pids = $P = array();
$result = $this->db->query("SELECT * FROM {$this->table} WHERE {$condition} ORDER BY {$order} LIMIT {$offset},{$pagesize}");
while ($r = $this->db->fetch_array($result)) {
$r['adddate'] = timetodate($r['addtime'], 5);
$r['editdate'] = timetodate($r['edittime'], 5);
$r['linkurl'] = $MOD['linkurl'] . rewrite('price.php?itemid=' . $r['pid']);
$pids[$r['pid']] = $r['pid'];
$lists[] = $r;
}
if ($pids) {
$result = $this->db->query("SELECT * FROM {$this->table_product} WHERE itemid IN (" . implode(',', $pids) . ")");
while ($r = $this->db->fetch_array($result)) {
$P[$r['itemid']] = $r;
}
if ($P) {
foreach ($lists as $k => $v) {
$lists[$k]['unit'] = $P[$v['pid']]['unit'];
$lists[$k]['alt'] = $P[$v['pid']]['title'];
$lists[$k]['title'] = set_style($P[$v['pid']]['title'], $P[$v['pid']]['style']);
}
}
}
return $lists;
}
开发者ID:hcd2008,项目名称:destoon,代码行数:34,代码来源:price.class.php
示例2: get_list
function get_list($condition, $order = 'listorder ASC,itemid ASC')
{
global $MOD, $pages, $page, $pagesize, $offset, $sum;
if ($page > 1 && $sum) {
$items = $sum;
} else {
$r = $this->db->get_one("SELECT COUNT(*) AS num FROM {$this->table} WHERE {$condition}");
$items = $r['num'];
}
$pages = pages($items, $page, $pagesize);
if ($items < 1) {
return array();
}
$lists = array();
$result = $this->db->query("SELECT * FROM {$this->table} WHERE {$condition} ORDER BY {$order} LIMIT {$offset},{$pagesize}");
while ($r = $this->db->fetch_array($result)) {
$r['adddate'] = timetodate($r['addtime'], 5);
$r['editdate'] = timetodate($r['edittime'], 5);
if ($r['areaid']) {
$r['address'] = area_pos($r['areaid'], '') . $r['address'];
}
$lists[] = $r;
}
return $lists;
}
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:25,代码来源:address.class.php
示例3: get_list
function get_list($condition = '1', $order = 'listorder DESC, itemid DESC')
{
global $MODULE, $MOD, $pages, $page, $pagesize, $offset, $sum;
if ($page > 1 && $sum) {
$items = $sum;
} else {
$r = $this->db->get_one("SELECT COUNT(*) AS num FROM {$this->table} WHERE {$condition}");
$items = $r['num'];
}
$pages = pages($items, $page, $pagesize);
$GROUP = cache_read('group.php');
$lists = array();
$result = $this->db->query("SELECT * FROM {$this->table} WHERE {$condition} ORDER BY {$order} LIMIT {$offset},{$pagesize}");
while ($r = $this->db->fetch_array($result)) {
$r['adddate'] = timetodate($r['addtime'], 5);
$r['thumb'] = is_file(DT_ROOT . '/' . $MODULE[4]['moduledir'] . '/skin/' . $r['skin'] . '/thumb.gif') ? $MODULE[4]['linkurl'] . 'skin/' . $r['skin'] . '/thumb.gif' : $MODULE[4]['linkurl'] . 'image/nothumb.gif';
$groupid = explode(',', substr($r['groupid'], 1, -1));
$group = array();
foreach ($groupid as $gid) {
$group[] = $GROUP[$gid]['groupname'];
}
$r['group'] = implode('<br/>', $group);
$lists[] = $r;
}
return $lists;
}
开发者ID:hcd2008,项目名称:destoon,代码行数:26,代码来源:style.class.php
示例4: get_list
function get_list($condition = 'status=3', $order = 'addtime DESC', $cache = '')
{
global $MOD, $pages, $page, $pagesize, $offset, $items, $TYPE, $special, $sum;
if ($page > 1 && $sum) {
$items = $sum;
} else {
$r = $this->db->get_one("SELECT COUNT(*) AS num FROM {$this->table} WHERE {$condition}", $cache);
$items = $r['num'];
}
$pages = pages($items, $page, $pagesize);
if ($items < 1) {
return array();
}
$lists = array();
$result = $this->db->query("SELECT * FROM {$this->table} WHERE {$condition} ORDER BY {$order} LIMIT {$offset},{$pagesize}", $cache);
while ($r = $this->db->fetch_array($result)) {
$r['adddate'] = timetodate($r['addtime'], 5);
$r['editdate'] = timetodate($r['edittime'], 5);
$r['alt'] = $r['title'];
$r['title'] = set_style($r['title'], $r['style']);
$r['type'] = $r['typeid'] && isset($TYPE[$r['typeid']]) ? set_style($TYPE[$r['typeid']]['typename'], $TYPE[$r['typeid']]['style']) : '';
$r['typeurl'] = $r['type'] ? rewrite($MOD['linkurl'] . 'type.php?tid=' . $r['typeid']) : '';
$lists[] = $r;
}
return $lists;
}
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:26,代码来源:item.class.php
示例5: get_list
function get_list($condition = 'status=3', $order = 'itemid DESC')
{
global $MOD, $TYPE, $pages, $page, $pagesize, $offset, $items, $sum;
if ($page > 1 && $sum) {
$items = $sum;
} else {
$r = $this->db->get_one("SELECT COUNT(*) AS num FROM {$this->table} WHERE {$condition}");
$items = $r['num'];
}
$pages = pages($items, $page, $pagesize);
if ($items < 1) {
return array();
}
$lists = $groupids = array();
$result = $this->db->query("SELECT * FROM {$this->table} WHERE {$condition} ORDER BY {$order} LIMIT {$offset},{$pagesize}");
while ($r = $this->db->fetch_array($result)) {
$r['adddate'] = timetodate($r['addtime'], 5);
$groupids[$r['gid']] = $r['gid'];
$lists[] = $r;
}
if ($groupids) {
$GRPS = array();
$result = $this->db->query("SELECT itemid,title,linkurl FROM {$this->db->pre}club_group WHERE itemid IN (" . implode(',', $groupids) . ")");
while ($r = $this->db->fetch_array($result)) {
$GRPS[$r['itemid']] = $r;
}
if ($GRPS) {
foreach ($lists as $k => $v) {
$lists[$k]['groupname'] = $v['gid'] ? $GRPS[$v['gid']]['title'] : '';
$lists[$k]['groupurl'] = $v['gid'] ? $MOD['linkurl'] . $GRPS[$v['gid']]['linkurl'] : '';
}
}
}
return $lists;
}
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:35,代码来源:fans.class.php
示例6: get_list
function get_list($condition = 'status=3', $order = 'itemid DESC')
{
global $MOD, $pages, $page, $pagesize, $offset, $items, $sum;
if ($page > 1 && $sum) {
$items = $sum;
} else {
$r = $this->db->get_one("SELECT COUNT(*) AS num FROM {$this->table} WHERE {$condition}");
$items = $r['num'];
}
$pages = pages($items, $page, $pagesize);
if ($items < 1) {
return array();
}
$lists = array();
$result = $this->db->query("SELECT * FROM {$this->table} WHERE {$condition} ORDER BY {$order} LIMIT {$offset},{$pagesize}");
while ($r = $this->db->fetch_array($result)) {
$r['adddate'] = timetodate($r['addtime'], 5);
if (strpos($r['content'], '<hr class="club_break" />') !== false) {
$r['content'] = substr($r['content'], strpos($r['content'], '<hr class="club_break" />'));
}
$r['title'] = get_intro($r['content'], 50);
$r['alt'] = get_intro($r['content'], 500);
$r['linkurl'] = $MOD['linkurl'] . 'goto.php?itemid=' . $r['itemid'];
$lists[] = $r;
}
return $lists;
}
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:27,代码来源:reply.class.php
示例7: get_list
function get_list($condition = '1', $order = 'addtime DESC')
{
global $MOD, $pages, $page, $pagesize, $offset, $sum;
if ($page > 1 && $sum) {
$items = $sum;
} else {
$r = $this->db->get_one("SELECT COUNT(*) AS num FROM {$this->table} WHERE {$condition}");
$items = $r['num'];
}
$pages = pages($items, $page, $pagesize);
if ($items < 1) {
return array();
}
$lists = array();
$result = $this->db->query("SELECT * FROM {$this->table} WHERE {$condition} ORDER BY {$order} LIMIT {$offset},{$pagesize}");
while ($r = $this->db->fetch_array($result)) {
$r['adddate'] = timetodate($r['addtime'], 5);
$r['editdate'] = timetodate($r['edittime'], 5);
$r['title'] = set_style($r['title'], $r['style']);
$r['linkurl'] = $MOD['linkurl'] . rewrite('expert.php?itemid=' . $r['itemid']);
$r['rate'] = $r['answer'] && $r['best'] < $r['answer'] ? dround($r['best'] * 100 / $r['answer'], 2, true) . '%' : '100%';
$lists[] = $r;
}
return $lists;
}
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:25,代码来源:expert.class.php
示例8: get_list
function get_list($condition = '1', $order = 'listorder DESC, itemid DESC')
{
global $MOD, $TYPE, $pages, $page, $pagesize, $offset, $sum;
if ($page > 1 && $sum) {
$items = $sum;
} else {
$r = $this->db->get_one("SELECT COUNT(*) AS num FROM {$this->table} WHERE {$condition}");
$items = $r['num'];
}
$pages = pages($items, $page, $pagesize);
if ($items < 1) {
return array();
}
$lists = array();
$result = $this->db->query("SELECT * FROM {$this->table} WHERE {$condition} ORDER BY {$order} LIMIT {$offset},{$pagesize}");
while ($r = $this->db->fetch_array($result)) {
$r['title'] = set_style($r['title'], $r['style']);
$r['adddate'] = timetodate($r['addtime'], 5);
$r['editdate'] = timetodate($r['edittime'], 5);
$r['typename'] = $TYPE[$r['typeid']]['typename'];
$r['typeurl'] = $MOD['link_url'] . list_url($r['typeid']);
$lists[] = $r;
}
return $lists;
}
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:25,代码来源:link.class.php
示例9: get_list
function get_list($condition = 'status=3', $order = 'itemid DESC')
{
global $MOD, $pages, $page, $pagesize, $offset, $sum;
if ($page > 1 && $sum) {
$items = $sum;
} else {
$r = $this->db->get_one("SELECT COUNT(*) AS num FROM {$this->table} WHERE {$condition}");
$items = $r['num'];
}
$pages = pages($items, $page, $pagesize);
if ($items < 1) {
return array();
}
$lists = array();
$result = $this->db->query("SELECT * FROM {$this->table} WHERE {$condition} ORDER BY {$order} LIMIT {$offset},{$pagesize}");
while ($r = $this->db->fetch_array($result)) {
$r['adddate'] = timetodate($r['addtime'], 5);
$r['content'] = nl2br($r['content']);
$r['editdate'] = '--';
if ($r['reply']) {
$r['reply'] = nl2br($r['reply']);
$r['editdate'] = timetodate($r['edittime'], 5);
}
$lists[] = $r;
}
return $lists;
}
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:27,代码来源:guestbook.class.php
示例10: nexttime
function nexttime($schedule, $time)
{
if (strpos($schedule, ',') !== false) {
list($h, $m) = explode(',', $schedule);
$t = strtotime(timetodate($time, 3) . ' ' . ($h < 10 ? '0' . $h : $h) . ':' . ($m < 10 ? '0' . $m : $m) . ':00');
return $t > $time ? $t : $t + 86400;
} else {
$m = intval($schedule);
return $time + ($m ? $m : 1800) * 60;
}
}
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:11,代码来源:cron.inc.php
示例11: get_list
function get_list($condition, $order = 'itemid DESC')
{
global $MOD, $TYPE, $pages, $page, $pagesize, $offset, $items, $sum, $L;
if ($page > 1 && $sum) {
$items = $sum;
} else {
$r = $this->db->get_one("SELECT COUNT(*) AS num FROM {$this->table} WHERE {$condition}");
$items = $r['num'];
}
$pages = pages($items, $page, $pagesize);
if ($items < 1) {
return array();
}
$lists = $groupids = array();
$result = $this->db->query("SELECT * FROM {$this->table} WHERE {$condition} ORDER BY {$order} LIMIT {$offset},{$pagesize}");
while ($r = $this->db->fetch_array($result)) {
$r['adddate'] = timetodate($r['addtime'], 5);
if ($r['typeid'] == 1) {
$r['linkurl'] = "javascript:alert('" . $L['manage_has_del'] . "');";
} else {
$r['linkurl'] = $r['tid'] ? DT_PATH . 'api/redirect.php?mid=' . $MOD['moduleid'] . '&itemid=' . $r['tid'] : $MOD['linkurl'] . 'goto.php?itemid=' . $r['rid'];
}
$r['value'] = '';
if ($r['typeid'] == 3) {
$r['value'] = $r['content'] ? $L['manage_level'] . $r['content'] : $L['manage_cancel'];
} else {
if ($r['typeid'] == 4) {
$r['value'] = $r['content'] ? $r['content'] == 1 ? $L['manage_ontop_1'] : $L['manage_ontop_2'] : $L['manage_cancel'];
} else {
if ($r['typeid'] == 5) {
$r['value'] = $r['content'] ? '<div style="width:10px;height:10px;line-height:10px;background:' . $r['content'] . ';"> </div>' : $L['manage_cancel'];
}
}
}
$groupids[$r['gid']] = $r['gid'];
$lists[] = $r;
}
if ($groupids) {
$GRPS = array();
$result = $this->db->query("SELECT itemid,title,linkurl FROM {$this->db->pre}club_group WHERE itemid IN (" . implode(',', $groupids) . ")");
while ($r = $this->db->fetch_array($result)) {
$GRPS[$r['itemid']] = $r;
}
if ($GRPS) {
foreach ($lists as $k => $v) {
$lists[$k]['groupname'] = $v['gid'] ? $GRPS[$v['gid']]['title'] : '';
$lists[$k]['groupurl'] = $v['gid'] ? $MOD['linkurl'] . $GRPS[$v['gid']]['linkurl'] : '';
}
}
}
return $lists;
}
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:52,代码来源:manage.class.php
示例12: get_list
function get_list($condition, $order = 'listorder ASC,itemid ASC')
{
global $MOD, $pages, $page, $pagesize, $offset, $nums;
$r = $this->db->get_one("SELECT COUNT(*) AS num FROM {$this->table} WHERE {$condition}");
$nums = $r['num'];
$pages = pages($nums, $page, $pagesize);
$lists = array();
$result = $this->db->query("SELECT * FROM {$this->table} WHERE {$condition} ORDER BY {$order} LIMIT {$offset},{$pagesize}");
while ($r = $this->db->fetch_array($result)) {
$r['adddate'] = timetodate($r['addtime'], 5);
$lists[] = $r;
}
return $lists;
}
开发者ID:hcd2008,项目名称:destoon,代码行数:14,代码来源:express.class.php
示例13: get_list
function get_list($condition = 'status=3', $order = 'itemid DESC')
{
global $TYPE, $pages, $page, $pagesize, $offset, $L, $sum;
if ($page > 1 && $sum) {
$items = $sum;
} else {
$r = $this->db->get_one("SELECT COUNT(*) AS num FROM {$this->table} WHERE {$condition}");
$items = $r['num'];
}
$pages = pages($items, $page, $pagesize);
$lists = array();
$result = $this->db->query("SELECT * FROM {$this->table} WHERE {$condition} ORDER BY {$order} LIMIT {$offset},{$pagesize}");
while ($r = $this->db->fetch_array($result)) {
$r['adddate'] = timetodate($r['addtime'], 5);
$r['dcompany'] = set_style($r['company'], $r['style']);
$r['type'] = $r['typeid'] && isset($TYPE[$r['typeid']]) ? set_style($TYPE[$r['typeid']]['typename'], $TYPE[$r['typeid']]['style']) : $L['default_type'];
$lists[] = $r;
}
return $lists;
}
开发者ID:hcd2008,项目名称:destoon,代码行数:20,代码来源:friend.class.php
示例14: feedback
function feedback($r)
{
global $DT_TIME, $L;
$r or $r = $this->get_one();
$message = array();
$message['typeid'] = 0;
$message['touser'] = $r['fromuser'];
$message['title'] = lang($L['message_feedback_title'], array(dsubstr($r['title'], 20, '...')));
$message['content'] = lang($L['message_feedback_content'], array($this->username, timetodate($DT_TIME, 5), $r['title'], timetodate($r['addtime'], 5), $r['content']));
$this->send($message);
}
开发者ID:hcd2008,项目名称:destoon,代码行数:11,代码来源:message.class.php
示例15: unset
}
if ($submit) {
if ($item['islink']) {
$post['islink'] = 1;
} else {
if (isset($post['islink'])) {
unset($post['islink']);
}
}
//$post['clear_link'] = $MOD['clear_link'];
if ($do->pass($post)) {
$CAT = get_cat($post['catid']);
if (!$CAT || !check_group($_groupid, $CAT['group_add'])) {
dalert(lang($L['group_add'], array($CAT['catname'])));
}
$post['addtime'] = timetodate($item['addtime']);
$post['level'] = $item['level'];
$post['fee'] = $item['fee'];
$post['style'] = $item['style'];
$post['template'] = $item['template'];
$post['filepath'] = $item['filepath'];
$post['note'] = $item['note'];
$need_check = $MOD['check_add'] == 2 ? $MG['check'] : $MOD['check_add'];
$post['status'] = get_status($item['status'], $need_check);
$post['hits'] = $item['hits'];
$post['save_remotepic'] = $MOD['save_remotepic'] ? 1 : 0;
$post['clear_link'] = $MOD['clear_link'] ? 1 : 0;
$post['get_introduce'] = $MOD['get_introduce'] ? 1 : 0;
$post['introduce_length'] = $MOD['introduce_length'] ? $MOD['introduce_length'] : 0;
if ($FD) {
fields_check($post_fields);
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:my.inc.php
示例16: get_list
function get_list($condition = '1', $order = 'addtime DESC')
{
global $MOD, $pages, $page, $pagesize, $offset, $sum;
if ($page > 1 && $sum) {
$items = $sum;
} else {
$r = $this->db->get_one("SELECT COUNT(*) AS num FROM {$this->table} WHERE {$condition}");
$items = $r['num'];
}
$pages = pages($items, $page, $pagesize);
if ($items < 1) {
return array();
}
$lists = $catids = $CATS = array();
$result = $this->db->query("SELECT * FROM {$this->table} WHERE {$condition} ORDER BY {$order} LIMIT {$offset},{$pagesize}");
while ($r = $this->db->fetch_array($result)) {
$r['adddate'] = timetodate($r['addtime'], 5);
$r['editdate'] = timetodate($r['edittime'], 5);
$r['alt'] = $r['title'];
$r['title'] = set_style($r['title'], $r['style']);
$r['linkurl'] = $MOD['linkurl'] . $r['linkurl'];
$catids[$r['catid']] = $r['catid'];
$lists[] = $r;
}
if ($catids) {
$result = $this->db->query("SELECT catid,catname,linkurl FROM {$this->db->pre}category WHERE catid IN (" . implode(',', $catids) . ")");
while ($r = $this->db->fetch_array($result)) {
$CATS[$r['catid']] = $r;
}
if ($CATS) {
foreach ($lists as $k => $v) {
$lists[$k]['catname'] = $v['catid'] ? $CATS[$v['catid']]['catname'] : '';
$lists[$k]['caturl'] = $v['catid'] ? $MOD['linkurl'] . $CATS[$v['catid']]['linkurl'] : '';
}
}
}
return $lists;
}
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:38,代码来源:group.class.php
示例17: isset
default:
$typeid = isset($typeid) ? $typeid === '' ? -1 : intval($typeid) : -1;
$type_select = type_select($TYPE, 1, 'typeid', '请选择分类', $typeid);
$condition = '1';
if ($keyword) {
$condition .= " AND title LIKE '%{$keyword}%'";
}
if ($typeid > 0) {
$condition .= " AND typeid={$typeid}";
}
if ($page > 1 && $sum) {
$items = $sum;
} else {
$r = $db->get_one("SELECT COUNT(*) AS num FROM {$DT_PRE}mail WHERE {$condition}");
$items = $r['num'];
}
$pages = pages($items, $page, $pagesize);
$mails = array();
$result = $db->query("SELECT * FROM {$DT_PRE}mail WHERE {$condition} ORDER BY itemid DESC LIMIT {$offset},{$pagesize}");
while ($r = $db->fetch_array($result)) {
$r['addtime'] = timetodate($r['addtime'], 5);
$r['edittime'] = timetodate($r['edittime'], 5);
$r['sendtime'] = $r['sendtime'] ? timetodate($r['sendtime'], 5) : '<span style="color:red;">未发送</span>';
$r['type'] = $r['typeid'] && isset($TYPE[$r['typeid']]) ? set_style($TYPE[$r['typeid']]['typename'], $TYPE[$r['typeid']]['style']) : '<span style="color:red;">未分类</span>';
$num = $db->get_one("SELECT count(itemid) as num FROM {$DT_PRE}mail_list WHERE typeids LIKE '%," . $r['typeid'] . ",%' ");
$r['num'] = $num['num'];
$mails[] = $r;
}
include tpl('mail', $module);
break;
}
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:31,代码来源:mail.inc.php
示例18: foreach
if (is_array($tags)) {
foreach ($tags as $i => $t) {
?>
<li><?php
if ($datetype) {
?>
<span class="f_r"><?php
if ($showpage) {
echo $t['filesize'];
?>
<?php
echo $t['unit'];
?>
<?php
}
echo timetodate($t['addtime'], $datetype);
?>
</span><?php
}
?>
<img src="<?php
echo DT_PATH;
?>
file/ext/<?php
echo $t['fileext'];
?>
.gif" align="absmiddle"/> <a href="<?php
echo $t['linkurl'];
?>
" target="_blank" title="<?php
echo $t['alt'];
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:31,代码来源:list-down.php
示例19: unset
}
unset($item['template']);
extract($item);
$CAT = get_cat($catid);
$content_table = content_table($moduleid, $itemid, $MOD['split'], $table_data);
$t = $db->get_one("SELECT content FROM {$content_table} WHERE itemid={$itemid}");
$content = $t['content'];
$CP = $MOD['cat_property'] && $CAT['property'];
if ($CP) {
require DT_ROOT . '/include/property.func.php';
$options = property_option($catid);
$values = property_value($moduleid, $itemid);
}
$adddate = timetodate($addtime, 5);
$editdate = timetodate($edittime, 5);
$todate = $totime ? timetodate($totime, 3) : 0;
$expired = $totime && $totime < $DT_TIME ? true : false;
$linkurl = $MOD['linkurl'] . $linkurl;
$thumbs = get_albums($item);
$albums = get_albums($item, 1);
$album_js = 1;
$update = '';
include DT_ROOT . '/include/update.inc.php';
$head_canonical = $linkurl;
$head_title = $title . $DT['seo_delimiter'] . $head_title;
$head_keywords = $keyword;
$head_description = $introduce ? $introduce : $title;
if ($EXT['mobile_enable']) {
$head_mobile = $EXT['mobile_url'] . mobileurl($moduleid, 0, $itemid, $page);
}
} else {
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:31,代码来源:info.inc.php
示例20: message
$trade_no = $_GET['trade_no'];
//获取支付宝交易号
$total_fee = $_GET['price'];
//获取总价格
$itemid = $out_trade_no;
$td = $db->get_one("SELECT * FROM {$DT_PRE}mall_order WHERE itemid={$itemid}");
$money = $td['amount'] + $td['fee'];
if (!$td || $total_fee != $money) {
message('金额不符(Code:002)', $MODULE[2]['linkurl'] . 'trade.php?error=2');
}
$seller = $td['seller'];
$seller_email = $_GET['seller_email'];
$buyer = $td['buyer'];
$buyer_email = $_GET['buyer_email'];
$mallid = $td['mallid'];
$timenow = timetodate($DT_TIME, 3);
$memberurl = $MODULE[2]['linkurl'];
include load('member.lang');
if ($_GET['trade_status'] == 'WAIT_SELLER_SEND_GOODS') {
//判断该笔订单是否在商户网站中已经做过处理(可参考“集成教程”中“3.4返回数据处理”)
//如果没有做过处理,根据订单号(out_trade_no)在商户网站的订单系统中查到该笔订单的详细,并执行商户的业务程序
//如果有做过处理,不执行商户的业务程序
if ($td['status'] == 1) {
$db->query("UPDATE {$DT_PRE}mall_order SET trade_no='{$trade_no}',status=2,updatetime={$DT_TIME} WHERE itemid={$itemid}");
$db->query("UPDATE {$DT_PRE}member SET trade='{$seller_email}',vtrade=1 WHERE username='{$seller}' AND vtrade=0");
$db->query("UPDATE {$DT_PRE}member SET trade='{$buyer_email}',vtrade=1 WHERE username='{$buyer}' AND vtrade=0");
$myurl = userurl($td['buyer']);
$_username = $td['seller'];
//send message
$touser = $td['seller'];
$title = lang($L['trade_message_t2'], array($itemid));
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:return.php
注:本文中的timetodate函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论