当前位置: 首页>>代码示例>>PHP>>正文


PHP jieqi_msgwin函数代码示例

本文整理汇总了PHP中jieqi_msgwin函数的典型用法代码示例。如果您正苦于以下问题:PHP jieqi_msgwin函数的具体用法?PHP jieqi_msgwin怎么用?PHP jieqi_msgwin使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了jieqi_msgwin函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: sprintf

        if ($payflag == 0) {
            include_once JIEQI_ROOT_PATH . '/class/users.php';
            $users_handler =& JieqiUsersHandler::getInstance('JieqiUsersHandler');
            $uservip = 1;
            //默认的vip等级
            $ret = $users_handler->income($buyid, $egold, $jieqiPayset[JIEQI_PAY_TYPE]['paysilver'], $jieqiPayset[JIEQI_PAY_TYPE]['payscore'][$egold], $uservip);
            if ($ret) {
                $note = sprintf($jieqiLang['pay']['add_egold_success'], $buyname, JIEQI_EGOLD_NAME, $egold);
            } else {
                $note = sprintf($jieqiLang['pay']['add_egold_failure'], $buyid, $buyname, JIEQI_EGOLD_NAME, $egold);
            }
            $paylog->setVar('rettime', JIEQI_NOW_TIME);
            $paylog->setVar('retserialno', $rtoid);
            $paylog->setVar('retaccount', $trka);
            $paylog->setVar('retinfo', $rtmi);
            $paylog->setVar('egold', $egold);
            $paylog->setVar('money', $rtmz);
            $paylog->setVar('note', $note);
            $paylog->setVar('payflag', 1);
            if (!$paylog_handler->insert($paylog)) {
                jieqi_printfail($jieqiLang['pay']['save_paylog_failure']);
            } else {
                jieqi_msgwin(LANG_DO_SUCCESS, sprintf($jieqiLang['pay']['buy_egold_success'], $buyname, JIEQI_EGOLD_NAME, $egold));
            }
        } else {
            jieqi_msgwin(LANG_DO_SUCCESS, sprintf($jieqiLang['pay']['buy_egold_success'], $buyname, JIEQI_EGOLD_NAME, $egold));
        }
    } else {
        jieqi_printfail($jieqiLang['pay']['no_buy_record']);
    }
}
开发者ID:thu0ng91,项目名称:jmc,代码行数:31,代码来源:vnetonereturn.php

示例2: CriteriaCompo

        include_once JIEQI_ROOT_PATH . '/class/groups.php';
        $groups_handler =& JieqiGroupsHandler::getInstance('JieqiGroupsHandler');
        $criteria = new CriteriaCompo();
        $criteria->setSort('groupid');
        $criteria->setOrder('ASC');
        $groups_handler->queryObjects($criteria);
        while ($v = $groups_handler->getObject()) {
            if ($v->getVar('groupid') != JIEQI_GROUP_ADMIN) {
                $groups[] = array('groupid' => $v->getVar('groupid'), 'name' => $v->getVar('name'));
            }
        }
        unset($criteria);
        $power_form = new JieqiThemeForm($jieqiLang['system']['edit_power'], 'power', JIEQI_URL . '/admin/power.php');
        foreach ($jieqiPower[$_REQUEST['mod']] as $k => $v) {
            $_POST[$k] = new JieqiFormCheckBox($v['caption'], $k, $v['groups']);
            //$_POST[$k]->setDescription($v['description']);
            foreach ($groups as $group) {
                $_POST[$k]->addOption($group['groupid'], $group['name']);
            }
            $power_form->addElement($_POST[$k], false);
        }
        $power_form->addElement(new JieqiFormHidden('mod', $_REQUEST['mod']));
        $power_form->addElement(new JieqiFormHidden('action', 'update'));
        $power_form->addElement(new JieqiFormButton(' ', 'submit', $jieqiLang['system']['save_power'], 'submit'));
        $jieqiTpl->setCaching(0);
        $jieqiTpl->assign('jieqi_contents', '<br />' . $power_form->render(JIEQI_FORM_MIDDLE) . '<br />');
        include_once JIEQI_ROOT_PATH . '/admin/footer.php';
    }
} else {
    jieqi_msgwin(LANG_NOTICE, $jieqiLang['system']['no_usage_power']);
}
开发者ID:thu0ng91,项目名称:jmc,代码行数:31,代码来源:power.php

示例3: jieqi_printfail

}
if ($user->getVar('groupid') == JIEQI_GROUP_ADMIN && $jieqiUsersGroup != JIEQI_GROUP_ADMIN) {
    jieqi_printfail($jieqiLang['system']['manage_admin_deny']);
}
$chglog = array();
$chginfo = '';
$chglog['groupid']['from'] = $user->getVar('groupid');
$chglog['groupid']['to'] = $_REQUEST['gid'];
$user->setVar('groupid', $_REQUEST['gid']);
$chginfo .= sprintf($jieqiLang['system']['change_group_log'], $jieqiGroups[$chglog['groupid']['from']], $jieqiGroups[$chglog['groupid']['to']]);
if (!$users_handler->insert($user)) {
    jieqi_printfail($jieqiLang['system']['change_group_failure']);
} else {
    include_once JIEQI_ROOT_PATH . '/class/userlog.php';
    //记录日志
    $userlog_handler = JieqiUserlogHandler::getInstance('JieqiUserlogHandler');
    $newlog = $userlog_handler->create();
    $newlog->setVar('siteid', JIEQI_SITE_ID);
    $newlog->setVar('logtime', JIEQI_NOW_TIME);
    $newlog->setVar('fromid', $_SESSION['jieqiUserId']);
    $newlog->setVar('fromname', $_SESSION['jieqiUserName']);
    $newlog->setVar('toid', $user->getVar('uid', 'n'));
    $newlog->setVar('toname', $user->getVar('uname', 'n'));
    $newlog->setVar('reason', $jieqiLang['system']['change_group_reason']);
    $newlog->setVar('chginfo', $chginfo);
    $newlog->setVar('chglog', serialize($chglog));
    $newlog->setVar('isdel', '0');
    $newlog->setVar('userlog', '');
    $userlog_handler->insert($newlog);
    jieqi_msgwin(LANG_DO_SUCCESS, $jieqiLang['system']['change_group_success']);
}
开发者ID:thu0ng91,项目名称:jmc,代码行数:31,代码来源:changegroup.php

示例4: date

//增加投票值(每日、每周、每月、合计)
$lastdate = date('Y-m-d', $article->getVar('lastovote', 'n'));
$nowdate = date('Y-m-d', JIEQI_NOW_TIME);
$criteria = new CriteriaCompo(new Criteria('articleid', $_REQUEST['id']));
if (substr($nowdate, 0, 7) == substr($lastdate, 0, 7)) {
    $monthovote = $article->getVar('monthovote', 'n') + $addnum;
    $article_handler->updatefields(array('lastovote' => JIEQI_NOW_TIME, 'monthovote' => $monthvote), $criteria);
} else {
    $oldovote = $article->getVar('monthovote', 'n');
    $monthovote = $addnum;
    $article_handler->updatefields(array('lastovote' => JIEQI_NOW_TIME, 'monthovote' => $monthvote, 'oldovote' => $oldovote), $criteria);
}
//记录已经投票标志
if (isset($userset['ovotedate']) && $userset['ovotedate'] == $today) {
    $userset['ovotenum'] = (int) $userset['ovotenum'] + 1;
} else {
    $userset['ovotedate'] = $today;
    $userset['ovotenum'] = 1;
}
$jieqiUsers->setVar('setting', serialize($userset));
$jieqiUsers->saveToSession();
$users_handler->insert($jieqiUsers);
if ($voteneedscore) {
    //扣积分
    $users_handler->changeScore($_SESSION['jieqiUserId'], $jieqiConfigs['article']['ovotescore'], false, false);
} elseif ($jieqiConfigs['article']['scoreovote'] > 0) {
    //加积分
    $users_handler->changeScore($_SESSION['jieqiUserId'], $jieqiConfigs['article']['scoreovote'], true);
}
jieqi_msgwin(LANG_DO_SUCCESS, sprintf($jieqiLang['article']['ovote_success'], $maxvote, $userset['ovotenum']));
开发者ID:thu0ng91,项目名称:jmc,代码行数:30,代码来源:ovote.php

示例5: jieqi_clean_pagecache

    jieqi_clean_pagecache();
    jieqi_msgwin(LANG_DO_SUCCESS, $jieqiLang['system']['cache_clean_success']);
} elseif ($_REQUEST['target'] == 'blockcache') {
    echo '                                                                                                                                                                                                                                                                ';
    echo $jieqiLang['system']['start_clean_blockcache'];
    ob_flush();
    flush();
    jieqi_clean_blockcache();
    jieqi_msgwin(LANG_DO_SUCCESS, $jieqiLang['system']['cache_clean_success']);
} elseif ($_REQUEST['target'] == 'compiled') {
    echo '                                                                                                                                                                                                                                                                ';
    echo $jieqiLang['system']['start_clean_compiled'];
    ob_flush();
    flush();
    jieqi_clean_compiled();
    jieqi_msgwin(LANG_DO_SUCCESS, $jieqiLang['system']['cache_clean_success']);
} else {
    jieqi_printfail(LANG_ERROR_PARAMETER);
}
function jieqi_clean_compiled()
{
    jieqi_delfolder(JIEQI_COMPILED_PATH, false);
}
function jieqi_clean_cache()
{
    global $jieqiCache;
    $jieqiCache->clear(JIEQI_CACHE_PATH);
}
function jieqi_clean_blockcache()
{
    global $jieqiCache;
开发者ID:thu0ng91,项目名称:jmc,代码行数:31,代码来源:cleancache.php

示例6: define

 * @category   jieqicms
 * @package    article
 * @copyright  Copyright (c) Hangzhou Jieqi Network Technology Co.,Ltd. (http://www.jieqi.com)
 * @author     $Author: juny $
 * @version    $Id: setgood.php 228 2008-11-27 06:44:31Z juny $
 */
define('JIEQI_MODULE_NAME', 'article');
require_once '../../../global.php';
jieqi_getconfigs(JIEQI_MODULE_NAME, 'power');
jieqi_checkpower($jieqiPower['article']['manageallarticle'], $jieqiUsersStatus, $jieqiUsersGroup, false, true);
jieqi_loadlang('manage', JIEQI_MODULE_NAME);
if (empty($_REQUEST['id'])) {
    jieqi_printfail($jieqiLang['article']['article_not_exists']);
}
include_once $jieqiModules['article']['path'] . '/class/article.php';
$article_handler =& JieqiArticleHandler::getInstance('JieqiArticleHandler');
$article = $article_handler->get($_REQUEST['id']);
if (!is_object($article)) {
    jieqi_printfail($jieqiLang['article']['article_not_exists']);
}
if ($_REQUEST['action'] == 'no') {
    $article->setVar('toptime', 0);
} else {
    $article->setVar('toptime', JIEQI_NOW_TIME);
}
$article_handler->insert($article);
if ($_REQUEST['action'] == 'no') {
    jieqi_msgwin(LANG_DO_SUCCESS, $jieqiLang['article']['article_notgood_success']);
} else {
    jieqi_msgwin(LANG_DO_SUCCESS, $jieqiLang['article']['article_setgood_success']);
}
开发者ID:thu0ng91,项目名称:jmc,代码行数:31,代码来源:setgood.php

示例7: jieqi_includedb

    jieqi_includedb();
    $query = JieqiQueryHandler::getInstance('JieqiQueryHandler');
    $_REQUEST['configid'] = intval($_REQUEST['configid']);
    $sql = 'select * from ' . jieqi_dbprefix('system_blockconfigs') . ' where id = \'' . jieqi_dbslashes($_REQUEST['configid']) . '\'';
    $res = $query->execute($sql);
    $modconfig = $query->getObject($res);
    if (!is_object($modconfig)) {
        jieqi_printfail($jieqiLang['system']['block_config_notexists']);
    }
    unset($jieqiBlocks);
    jieqi_getconfigs($modconfig->getVar('modules', 'n'), $modconfig->getVar('file', 'n'), 'jieqiBlocks');
    if (!isset($jieqiBlocks[$_REQUEST['key']])) {
        jieqi_printfail($jieqiLang['system']['block_not_exists']);
    }
    $blockSet = $jieqiBlocks[$_REQUEST['key']];
} else {
    jieqi_printfail(LANG_ERROR_PARAMETER);
}
$modname = $blockSet['module'];
if ($modname == 'system') {
    include JIEQI_ROOT_PATH . '/blocks/' . $blockSet['filename'] . '.php';
} else {
    include $jieqiModules[$modname]['path'] . '/blocks/' . $blockSet['filename'] . '.php';
}
$classname = $blockSet['classname'];
include_once JIEQI_ROOT_PATH . '/lib/template/template.php';
$jieqiTpl =& JieqiTpl::getInstance();
$cblock = new $classname($blockSet);
$cblock->updateContent();
jieqi_msgwin(LANG_DO_SUCCESS, sprintf($jieqiLang['system']['block_edit_success'], jieqi_htmlstr($blockSet['blockname'])));
开发者ID:thu0ng91,项目名称:jmc,代码行数:30,代码来源:blockupdate.php

示例8: define

 * ����ģ�壺��
 * 
 * @category   jieqicms
 * @package    pay
 * @copyright  Copyright (c) Hangzhou Jieqi Network Technology Co.,Ltd. (http://www.jieqi.com)
 * @author     $Author: juny $
 * @version    $Id: sndacardshow.php 234 2008-11-28 01:53:06Z juny $
 */
define('JIEQI_MODULE_NAME', 'pay');
define('JIEQI_PAY_TYPE', 'sndacard');
require_once '../../global.php';
jieqi_loadlang('pay', JIEQI_MODULE_NAME);
jieqi_loadlang('snda', JIEQI_MODULE_NAME);
switch ($_REQUEST['retcode']) {
    case 1:
        jieqi_msgwin(LANG_DO_SUCCESS, sprintf($jieqiLang['pay']['buy_egold_success'], jieqi_htmlstr($_REQUEST['buyname']), JIEQI_EGOLD_NAME, jieqi_htmlstr($_REQUEST['egold'])));
        break;
    case -1002:
        jieqi_printfail($jieqiLang['pay']['errmsg_card_password']);
        break;
    case -1003:
        jieqi_printfail($jieqiLang['pay']['errmsg_card_used']);
        break;
    case -2004:
        jieqi_printfail($jieqiLang['pay']['errmsg_card_cant']);
        break;
    case -1:
        jieqi_printfail($jieqiLang['pay']['errmsg_syatem']);
        break;
    case -101:
        jieqi_printfail($jieqiLang['pay']['errmsg_customer']);
开发者ID:thu0ng91,项目名称:jmc,代码行数:31,代码来源:sndacardshow.php

示例9: define

/**
 * 梦联支付-错误处理
 *
 * 梦联支付-错误处理 (http://www.nationm.com.cn)
 * 
 * 调用模板:/modules/pay/templates/nationmerr.html
 * 
 * @category   jieqicms
 * @package    pay
 * @copyright  Copyright (c) Hangzhou Jieqi Network Technology Co.,Ltd. (http://www.jieqi.com)
 * @author     $Author: juny $
 * @version    $Id: nationmerr.php 326 2009-02-04 00:26:22Z juny $
 */
define('JIEQI_MODULE_NAME', 'pay');
define('JIEQI_PAY_TYPE', 'nationm');
require_once '../../global.php';
jieqi_loadlang('pay', JIEQI_MODULE_NAME);
$template = $jieqiModules['pay']['path'] . '/templates/nationmerr.html';
if (file_exists($template)) {
    include_once JIEQI_ROOT_PATH . '/header.php';
    $jieqiTpl->assign('egoldname', JIEQI_EGOLD_NAME);
    if (JIEQI_USE_CACHE) {
        $jieqiTpl->setCaching(0);
    }
    $jieqiTset['jieqi_contents_template'] = $template;
    include_once JIEQI_ROOT_PATH . '/footer.php';
} else {
    jieqi_loadlang('nationm', JIEQI_MODULE_NAME);
    jieqi_msgwin($jieqiLang['pay']['submit_failure_title'], $jieqiLang['pay']['submit_failure']);
}
开发者ID:thu0ng91,项目名称:jmc,代码行数:30,代码来源:nationmerr.php

示例10: JieqiFormLabel

                case JIEQI_TYPE_LABEL:
                    $tmpvar = $v->getVar('cname');
                    ${$tmpvar} = new JieqiFormLabel($v->getVar('ctitle'), $v->getVar('cvalue'));
                    ${$tmpvar}->setDescription($v->getVar('cdescription'));
                    $config_form->addElement(${$tmpvar}, false);
                    break;
                case JIEQI_TYPE_PASSWORD:
                    $tmpvar = $v->getVar('cname');
                    ${$tmpvar} = new JieqiFormPassword($v->getVar('ctitle'), $v->getVar('cname'), 25, 30, '');
                    ${$tmpvar}->setDescription($v->getVar('cdescription'));
                    $config_form->addElement(${$tmpvar}, false);
                    break;
                case JIEQI_TYPE_TXTBOX:
                default:
                    $tmpvar = $v->getVar('cname');
                    ${$tmpvar} = new JieqiFormText($v->getVar('ctitle'), $v->getVar('cname'), 25, 100, $v->getVar('cvalue', 'e'));
                    ${$tmpvar}->setDescription($v->getVar('cdescription'));
                    $config_form->addElement(${$tmpvar}, false);
                    break;
            }
        } while ($v = $configs_handler->getObject());
        $config_form->addElement(new JieqiFormHidden('mod', $_REQUEST['mod']));
        $config_form->addElement(new JieqiFormHidden('define', $_REQUEST['define']));
        $config_form->addElement(new JieqiFormHidden('action', 'update'));
        $config_form->addElement(new JieqiFormButton('&nbsp;', 'submit', $jieqiLang['system']['save_config'], 'submit'));
        $jieqiTpl->assign('jieqi_contents', '<div style="text-align:center;"><span style="line-height:200%">' . $catlink . '</span></div>' . $config_form->render(JIEQI_FORM_MIDDLE) . '<br />');
        include_once JIEQI_ROOT_PATH . '/admin/footer.php';
    }
} else {
    jieqi_msgwin(LANG_NOTICE, $jieqiLang['system']['no_usage_config']);
}
开发者ID:thu0ng91,项目名称:jmc,代码行数:31,代码来源:configs.php

示例11: jieqi_printfail

            } else {
                jieqi_printfail(sprintf($jieqiLang['article']['bookcase_is_full'], $maxnum));
            }
        }
        //没有在书架
        //增加文章的收藏量
        $article_handler->db->query('UPDATE ' . jieqi_dbprefix('article_article') . ' SET goodnum=goodnum+1 WHERE articleid=' . $_REQUEST['bid']);
        $bookcase = $bookcase_handler->create();
        $bookcase->setVar('joindate', JIEQI_NOW_TIME);
        $bookcase->setVar('lastvisit', JIEQI_NOW_TIME);
        $bookcase->setVar('flag', 0);
    }
    $bookcase->setVar('articleid', $article->getVar('articleid', 'n'));
    $bookcase->setVar('articlename', $article->getVar('articlename', 'n'));
    $bookcase->setVar('userid', $jieqiUsers->getVar('uid', 'n'));
    $bookcase->setVar('username', $jieqiUsers->getVar('uname', 'n'));
    $bookcase->setVar('chapterid', 0);
    $bookcase->setVar('chaptername', '');
    $bookcase->setVar('chapterorder', 0);
    if (!$bookcase_handler->insert($bookcase)) {
        jieqi_printfail($jieqiLang['article']['add_articlemark_failure']);
    } else {
        if ($voteneedscore) {
            //扣积分
            $users_handler->changeScore($_SESSION['jieqiUserId'], $jieqiConfigs['article']['addcasescore'], false, false);
        }
        jieqi_msgwin(LANG_DO_SUCCESS, $jieqiLang['article']['add_articlemark_success']);
    }
} else {
    jieqi_printfail($jieqiLang['article']['article_not_exists']);
}
开发者ID:thu0ng91,项目名称:jmc,代码行数:31,代码来源:addbookcase.php

示例12: array

                $sqlerr[] = array('sql' => $v, 'error' => $db_query->db->error());
                if ($_POST['errorstop']) {
                    jieqi_printfail(sprintf($jieqiLang['system']['print_sql_error'], jieqi_htmlstr($v), jieqi_htmlstr($db_query->db->error())));
                    break;
                }
            }
        }
    }
    if (!empty($sqlerr) && $_POST['showerror']) {
        $errorinfo = '';
        foreach ($sqlerr as $v) {
            $errorinfo .= sprintf($jieqiLang['system']['show_error_format'], jieqi_htmlstr($v['sql']), jieqi_htmlstr($v['error']));
        }
        jieqi_msgwin(LANG_DO_SUCCESS, sprintf($jieqiLang['system']['sql_some_error'], $errorinfo));
    } else {
        jieqi_msgwin(LANG_DO_SUCCESS, $jieqiLang['system']['execute_sql_success']);
    }
} else {
    $jieqiTpl->setCaching(0);
    $jieqiTset['jieqi_contents_template'] = JIEQI_ROOT_PATH . '/templates/admin/dbquery.html';
}
include_once JIEQI_ROOT_PATH . '/admin/footer.php';
function jieqi_splitsqlfile(&$ret, $sql, $release = 32270)
{
    //$sql          = trim($sql);
    $sql = rtrim($sql, "\n\r");
    $sql_len = strlen($sql);
    $char = '';
    $string_start = '';
    $in_string = FALSE;
    for ($i = 0; $i < $sql_len; ++$i) {
开发者ID:thu0ng91,项目名称:jmc,代码行数:31,代码来源:dbquery.php

示例13: JieqiMail

             }
             if (isset($jieqiConfigs['system']['mailauth'])) {
                 $params['mailauth'] = $jieqiConfigs['system']['mailauth'];
             }
             if (isset($jieqiConfigs['system']['mailuser'])) {
                 $params['mailuser'] = $jieqiConfigs['system']['mailuser'];
             }
             if (isset($jieqiConfigs['system']['mailpassword'])) {
                 $params['mailpassword'] = $jieqiConfigs['system']['mailpassword'];
             }
             $jieqimail = new JieqiMail($to, $title, $content, $params);
             $jieqimail->sendmail();
             if ($jieqimail->isError(JIEQI_ERROR_RETURN)) {
                 jieqi_printfail(sprintf($jieqiLang['system']['email_send_failure'], implode('<br />', $jieqimail->getErrors(JIEQI_ERROR_RETURN))));
             } else {
                 jieqi_msgwin(LANG_DO_SUCCESS, $jieqiLang['system']['send_password_success']);
             }
         } else {
             jieqi_printfail($jieqiLang['system']['email_not_users']);
         }
     } else {
         jieqi_printfail(LANG_NO_USER);
     }
     break;
 case 'getpass':
 default:
     include_once JIEQI_ROOT_PATH . '/header.php';
     $jieqiTpl->assign('url_getpass', JIEQI_USER_URL . '/getpass.php?do=submit');
     $jieqiTpl->setCaching(0);
     $jieqiTset['jieqi_contents_template'] = JIEQI_ROOT_PATH . '/templates/getpass.html';
     include_once JIEQI_ROOT_PATH . '/footer.php';
开发者ID:thu0ng91,项目名称:jmc,代码行数:31,代码来源:getpass.php

示例14: array

    $article = $article_handler->getObject();
    if (is_object($article)) {
        $articlename = $article->getVar('articlename');
        include_once $jieqiModules['article']['path'] . '/include/repack.php';
        $ptypes = array();
        foreach ($_REQUEST['flagary'] as $v) {
            $ptypes[$v] = 1;
        }
        echo '                                                                                                                                                                                                                                                                ';
        echo sprintf($jieqiLang['article']['batch_repack_doing'], $articlename, date('Y-m-d H:i:s', $starttime), date('Y-m-d H:i:s', $stoptime), date('Y-m-d H:i:s', $article->getVar('lastupdate')), $article->getVar('articleid'));
        ob_flush();
        flush();
        article_repack($article->getVar('articleid'), $ptypes, 1);
        $showinfo = $jieqiLang['article']['repack_success_next'];
    } else {
        jieqi_msgwin(LANG_DO_SUCCESS, sprintf($jieqiLang['article']['batch_repack_success'], $article_static_url . '/admin/batchrepack.php'));
        exit;
    }
    $startlimit++;
    $url = $article_static_url . '/admin/batchrepack.php?action=packwithtime&starttime=' . $starttime . '&stoptime=' . $stoptime . '&startlimit=' . $startlimit;
    foreach ($_REQUEST['packflag'] as $k => $v) {
        $url .= '&packflag[' . $k . ']=' . $v;
    }
    echo sprintf($jieqiLang['article']['repack_next_html'], JIEQI_CHAR_SET, $showinfo, $url, $url);
} else {
    include_once JIEQI_ROOT_PATH . '/admin/header.php';
    $jieqiTpl->assign('article_static_url', $article_static_url);
    $jieqiTpl->assign('article_dynamic_url', $article_dynamic_url);
    //重新生成
    include_once JIEQI_ROOT_PATH . '/lib/html/formloader.php';
    $repack_form = new JieqiThemeForm($jieqiLang['article']['repack_use_id'], 'batchrepack', $article_static_url . '/admin/batchrepack.php');
开发者ID:thu0ng91,项目名称:jmc,代码行数:31,代码来源:batchrepack.php

示例15: define

 * @category   jieqicms
 * @package    obook
 * @copyright  Copyright (c) Hangzhou Jieqi Network Technology Co.,Ltd. (http://www.jieqi.com)
 * @author     $Author: juny $
 * @version    $Id: setgood.php 231 2008-11-27 08:46:26Z juny $
 */
define('JIEQI_MODULE_NAME', 'obook');
require_once '../../../global.php';
jieqi_getconfigs(JIEQI_MODULE_NAME, 'power');
jieqi_checkpower($jieqiPower['obook']['manageallobook'], $jieqiUsersStatus, $jieqiUsersGroup, false, true);
jieqi_loadlang('manage', JIEQI_MODULE_NAME);
if (empty($_REQUEST['id'])) {
    jieqi_printfail($jieqiLang['obook']['obook_not_exists']);
}
include_once $jieqiModules['obook']['path'] . '/class/obook.php';
$obook_handler =& JieqiObookHandler::getInstance('JieqiObookHandler');
$obook = $obook_handler->get($_REQUEST['id']);
if (!is_object($obook)) {
    jieqi_printfail($jieqiLang['obook']['obook_not_exists']);
}
if ($_REQUEST['action'] == 'no') {
    $obook->setVar('toptime', 0);
} else {
    $obook->setVar('toptime', JIEQI_NOW_TIME);
}
$obook_handler->insert($obook);
if ($_REQUEST['action'] == 'no') {
    jieqi_msgwin(LANG_DO_SUCCESS, $jieqiLang['obook']['obook_notgood_success']);
} else {
    jieqi_msgwin(LANG_DO_SUCCESS, $jieqiLang['obook']['obook_setgood_success']);
}
开发者ID:thu0ng91,项目名称:jmc,代码行数:31,代码来源:setgood.php


注:本文中的jieqi_msgwin函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。