本文整理汇总了PHP中jieqi_getconfigs函数的典型用法代码示例。如果您正苦于以下问题:PHP jieqi_getconfigs函数的具体用法?PHP jieqi_getconfigs怎么用?PHP jieqi_getconfigs使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了jieqi_getconfigs函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: addlog
function addlog($data)
{
global $jieqiLsort;
jieqi_getconfigs('system', 'lsort', 'jieqiLsort');
if (empty($data) || !is_array($data)) {
return false;
}
$newLogs =& $this->create();
$logtype = isset($data['logtype']) ? intval($data['logtype']) : 0;
$newLogs->setVar('logtype', $logtype);
isset($data['siteid']) ? $newLogs->setVar('siteid', intval($data['siteid'])) : $newLogs->setVar('siteid', JIEQI_SITE_ID);
isset($data['loglevel']) ? $newLogs->setVar('loglevel', intval($data['loglevel'])) : $newLogs->setVar('loglevel', intval($jieqiLsort[$logtype]['loglevel']));
isset($data['logtime']) ? $newLogs->setVar('logtime', intval($data['logtime'])) : $newLogs->setVar('logtime', JIEQI_NOW_TIME);
isset($data['userid']) ? $newLogs->setVar('userid', intval($data['userid'])) : $newLogs->setVar('userid', intval($_SESSION['jieqiUserId']));
isset($data['username']) ? $newLogs->setVar('username', $data['username']) : $newLogs->setVar('username', $_SESSION['jieqiUserName']);
isset($data['userip']) ? $newLogs->setVar('userip', $data['userip']) : $newLogs->setVar('userip', jieqi_userip());
isset($data['targetname']) ? $newLogs->setVar('targetname', $data['targetname']) : $newLogs->setVar('targetname', $jieqiLsort[$logtype]['targetname']);
isset($data['targetid']) ? $newLogs->setVar('targetid', intval($data['targetid'])) : $newLogs->setVar('targetid', 0);
isset($data['targettitle']) ? $newLogs->setVar('targettitle', $data['targettitle']) : $newLogs->setVar('targettitle', '');
isset($data['logurl']) ? $newLogs->setVar('logurl', $data['logurl']) : $newLogs->setVar('logurl', jieqi_addurlvars(array(), false, false));
isset($data['logcode']) ? $newLogs->setVar('logcode', intval($data['logcode'])) : $newLogs->setVar('logcode', 0);
isset($data['logtitle']) ? $newLogs->setVar('logtitle', $data['logtitle']) : $newLogs->setVar('logtitle', $jieqiLsort[$logtype]['logtitle']);
isset($data['logdata']) ? $newLogs->setVar('logdata', $data['logdata']) : $newLogs->setVar('logdata', '');
isset($data['lognote']) ? $newLogs->setVar('lognote', $data['lognote']) : $newLogs->setVar('lognote', '');
isset($data['fromdata']) ? $newLogs->setVar('fromdata', $data['fromdata']) : $newLogs->setVar('fromdata', '');
isset($data['todata']) ? $newLogs->setVar('todata', $data['todata']) : $newLogs->setVar('todata', '');
return $this->insert($newLogs);
}
示例2: setContent
function setContent()
{
global $jieqiTpl;
global $jieqiConfigs;
if (empty($_SESSION['jieqiUserId'])) {
return false;
} else {
jieqi_getconfigs('article', 'configs');
$article_static_url = empty($jieqiConfigs['article']['staticurl']) ? $GLOBALS['jieqiModules']['article']['url'] : $jieqiConfigs['article']['staticurl'];
$article_dynamic_url = empty($jieqiConfigs['article']['dynamicurl']) ? $GLOBALS['jieqiModules']['article']['url'] : $jieqiConfigs['article']['dynamicurl'];
$jieqiTpl->assign('article_static_url', $article_static_url);
$jieqiTpl->assign('article_dynamic_url', $article_dynamic_url);
include_once $GLOBALS['jieqiModules']['article']['path'] . '/class/article.php';
$article_handler =& JieqiArticleHandler::getInstance('JieqiArticleHandler');
$criteria = new CriteriaCompo(new Criteria('authorid', $_SESSION['jieqiUserId']));
$article_handler->queryObjects($criteria);
$articles = array();
$i = 0;
while ($v = $article_handler->getObject()) {
$articles[$i]['url'] = $article_static_url . '/articlemanage.php?id=' . $v->getVar('articleid');
$articles[$i]['caption'] = $v->getVar('articlename');
$articles[$i]['goodnum'] = $v->getVar('goodnum');
$articles[$i]['lastupdate'] = $v->getVar('lastupdate');
$articles[$i]['id'] = $v->getVar('articleid');
$i++;
}
$jieqiTpl->assign_by_ref('articles', $articles);
}
}
示例3: setContent
function setContent($isreturn = false)
{
global $jieqiTpl;
global $jieqiConfigs;
jieqi_getconfigs('article', 'configs');
$article_static_url = empty($jieqiConfigs['article']['staticurl']) ? $GLOBALS['jieqiModules']['article']['url'] : $jieqiConfigs['article']['staticurl'];
$article_dynamic_url = empty($jieqiConfigs['article']['dynamicurl']) ? $GLOBALS['jieqiModules']['article']['url'] : $jieqiConfigs['article']['dynamicurl'];
$jieqiTpl->assign('article_static_url', $article_static_url);
$jieqiTpl->assign('article_dynamic_url', $article_dynamic_url);
jieqi_includedb();
$query = JieqiQueryHandler::getInstance('JieqiQueryHandler');
$criteria = new CriteriaCompo();
$criteria->setFields("r.*,a.articlename");
$criteria->setTables(jieqi_dbprefix('article_reviews') . " AS r LEFT JOIN " . jieqi_dbprefix('article_article') . " AS a ON r.ownerid=a.articleid");
if ($this->exevars['istop'] == 1) {
$criteria->add(new Criteria('r.istop', '1'));
} elseif ($this->exevars['istop'] == 2) {
$criteria->add(new Criteria('r.istop', '0'));
}
if ($this->exevars['isgood'] == 1) {
$criteria->add(new Criteria('r.isgood', '1'));
} elseif ($this->exevars['isgood'] == 2) {
$criteria->add(new Criteria('r.isgood', '0'));
}
$criteria->setSort('r.topicid');
$criteria->setOrder('DESC');
$criteria->setLimit($this->exevars['listnum']);
$criteria->setStart(0);
$query->queryObjects($criteria);
$reviewrows = array();
$i = 0;
while ($v = $query->getObject()) {
$reviewrows[$i]['reviewtitle'] = jieqi_htmlstr(str_replace(array("\r", "\n"), array('', ' '), $v->getVar('title', 'n')));
$reviewrows[$i]['ownerid'] = $v->getVar('ownerid');
$reviewrows[$i]['articlename'] = $v->getVar('articlename');
$reviewrows[$i]['topicid'] = $v->getVar('topicid');
$reviewrows[$i]['url_review'] = $article_dynamic_url . '/reviews.php?aid=' . $v->getVar('ownerid');
$reviewrows[$i]['poster'] = $v->getVar('poster');
$reviewrows[$i]['posterid'] = $v->getVar('posterid');
$reviewrows[$i]['postdate'] = date('m-d H:i', $v->getVar('posttime'));
$reviewrows[$i]['posttime'] = $v->getVar('posttime');
$reviewrows[$i]['replytime'] = $v->getVar('replytime');
$reviewrows[$i]['views'] = $v->getVar('views');
$reviewrows[$i]['replies'] = $v->getVar('replies');
$reviewrows[$i]['islock'] = $v->getVar('islock');
$reviewrows[$i]['istop'] = $v->getVar('istop');
$reviewrows[$i]['isgood'] = $v->getVar('isgood');
$reviewrows[$i]['topictype'] = $v->getVar('topictype');
$reviewrows[$i]['url_articleinfo'] = jieqi_geturl('article', 'article', $v->getVar('ownerid'), 'info');
$reviewrows[$i]['url_articleindex'] = jieqi_geturl('article', 'article', $v->getVar('ownerid'), 'index');
$reviewrows[$i]['url_articleread'] = $reviewrows[$i]['url_articleindex'];
$i++;
}
$jieqiTpl->assign_by_ref('reviewrows', $reviewrows);
$jieqiTpl->assign('url_more', $article_dynamic_url . '/reviewslist.php');
}
示例4: setContent
function setContent($isreturn = false)
{
global $jieqiTpl;
global $jieqiConfigs;
jieqi_getconfigs('obook', 'configs');
$obook_static_url = empty($jieqiConfigs['obook']['staticurl']) ? $GLOBALS['jieqiModules']['obook']['url'] : $jieqiConfigs['obook']['staticurl'];
$obook_dynamic_url = empty($jieqiConfigs['obook']['dynamicurl']) ? $GLOBALS['jieqiModules']['obook']['url'] : $jieqiConfigs['obook']['dynamicurl'];
$jieqiTpl->assign('obook_static_url', $obook_static_url);
$jieqiTpl->assign('obook_dynamic_url', $obook_dynamic_url);
}
示例5: setContent
function setContent($isreturn = false)
{
global $jieqiTpl;
global $jieqiConfigs;
jieqi_getconfigs('article', 'configs');
$article_static_url = empty($jieqiConfigs['article']['staticurl']) ? $GLOBALS['jieqiModules']['article']['url'] : $jieqiConfigs['article']['staticurl'];
$article_dynamic_url = empty($jieqiConfigs['article']['dynamicurl']) ? $GLOBALS['jieqiModules']['article']['url'] : $jieqiConfigs['article']['dynamicurl'];
$jieqiTpl->assign('article_static_url', $article_static_url);
$jieqiTpl->assign('article_dynamic_url', $article_dynamic_url);
$jieqiTpl->assign('url_articlesearch', $article_dynamic_url . '/search.php');
}
示例6: jieqi_url_system_avatar
/**
* 返回用户头像图片url
*
* @param int $uid 用户id
* @param int $size 返回类型 'd'=>图片目录, 'l'=>大图(默认), 's'=>小图, 'i'=>图标, 'a'=>返回前面几个合并的数组
* @param int $type 图片类型 -1 系统自动判断,0 无头像 1=>'.gif', 2=>'.jpg', 3=>'.jpeg', 4=>'.png', 5=>'.bmp'
* @param bool $retdft 无头像是否返回默认头像地址,true-是(默认),false-否
* @access public
* @return mixed
*/
function jieqi_url_system_avatar($uid, $size = 'l', $type = -1, $retdft = true)
{
global $jieqiConfigs;
global $jieqi_image_type;
if (!isset($jieqiConfigs['system'])) {
jieqi_getconfigs('system', 'configs');
}
if (empty($jieqi_image_type)) {
$jieqi_image_type = array(1 => '.gif', 2 => '.jpg', 3 => '.jpeg', 4 => '.png', 5 => '.bmp');
}
if (function_exists('gd_info') && $jieqiConfigs['system']['avatarcut']) {
$avatar_cut = true;
} else {
$avatar_cut = false;
}
$base_avatar = '';
if ($uid == 0 || $type == 0 || $type > 0 && !isset($jieqi_image_type[$type])) {
if ($retdft) {
$base_avatar = JIEQI_USER_URL . '/images';
$type = 2;
$uid = 'noavatar';
} else {
return false;
}
} elseif ($type < 0) {
return JIEQI_USER_URL . '/avatar.php?uid=' . $uid . '&size=' . $size;
}
$prefix = $jieqi_image_type[$type];
if (empty($base_avatar)) {
$base_avatar = jieqi_uploadurl($jieqiConfigs['system']['avatardir'], $jieqiConfigs['system']['avatarurl'], 'system') . jieqi_getsubdir($uid);
}
switch ($size) {
case 'd':
return $base_avatar;
break;
case 'l':
return $base_avatar . '/' . $uid . $prefix;
break;
case 's':
return $avatar_cut ? $base_avatar . '/' . $uid . 's' . $prefix : $base_avatar . '/' . $uid . $prefix;
break;
case 'i':
return $avatar_cut ? $base_avatar . '/' . $uid . 'i' . $prefix : $base_avatar . '/' . $uid . $prefix;
break;
case 'a':
default:
if ($avatar_cut) {
return array('l' => $base_avatar . '/' . $uid . $prefix, 's' => $base_avatar . '/' . $uid . 's' . $prefix, 'i' => $base_avatar . '/' . $uid . 'i' . $prefix, 'd' => $base_avatar);
} else {
return array('l' => $base_avatar . '/' . $uid . $prefix, 's' => $base_avatar . '/' . $uid . $prefix, 'i' => $base_avatar . '/' . $uid . $prefix, 'd' => $base_avatar);
}
break;
}
}
示例7: setContent
function setContent($isreturn = false)
{
global $jieqiTpl;
global $jieqiConfigs;
global $jieqiSort;
jieqi_getconfigs('article', 'configs');
jieqi_getconfigs('article', 'sort');
$article_static_url = empty($jieqiConfigs['article']['staticurl']) ? $GLOBALS['jieqiModules']['article']['url'] : $jieqiConfigs['article']['staticurl'];
$article_dynamic_url = empty($jieqiConfigs['article']['dynamicurl']) ? $GLOBALS['jieqiModules']['article']['url'] : $jieqiConfigs['article']['dynamicurl'];
$jieqiTpl->assign('article_static_url', $article_static_url);
$jieqiTpl->assign('article_dynamic_url', $article_dynamic_url);
include_once $GLOBALS['jieqiModules']['article']['path'] . '/class/article.php';
//载入相关处理函数
include_once $GLOBALS['jieqiModules']['article']['path'] . '/include/funarticle.php';
$article_handler =& JieqiArticleHandler::getInstance('JieqiArticleHandler');
$criteria = new CriteriaCompo();
$criteria->add(new Criteria('authorid', $this->blockvars['cacheid']));
if ($this->exevars['isfull'] == 1) {
$criteria->add(new Criteria('isfull', 1));
} elseif ($this->exevars['isfull'] == 2) {
$criteria->add(new Criteria('isfull', 0));
}
$criteria->setSort($this->exevars['field']);
if ($this->exevars['asc'] == 1) {
$criteria->setOrder('ASC');
} else {
$criteria->setOrder('DESC');
}
$criteria->setLimit($this->exevars['listnum']);
$criteria->setStart(0);
$article_handler->queryObjects($criteria);
$articlerows = array();
$k = 0;
while ($v = $article_handler->getObject()) {
$articlerows[$k] = jieqi_article_vars($v);
$articlerows[$k]['order'] = $k + 1;
if ($this->exevars['field'] == 'goodnew') {
$articlerows[$k]['visitnum'] = $v->getVar('allvisit');
} else {
$articlerows[$k]['visitnum'] = $v->getVar($this->exevars['field']);
}
if ($this->exevars['field'] == 'size') {
$articlerows[$k]['visitnum'] = ceil($articlerows[$k]['visitnum'] / 1024) . 'K';
} elseif ($this->exevars['field'] == 'lastupdate' || $this->exevars['field'] == 'postdate' || $this->exevars['field'] == 'toptime') {
$articlerows[$k]['visitnum'] = date('m-d', $articlerows[$k]['visitnum']);
}
$k++;
}
$jieqiTpl->assign_by_ref('articlerows', $articlerows);
$jieqiTpl->assign('ownerid', $this->blockvars['cacheid']);
}
示例8: setContent
function setContent($isreturn = false)
{
global $jieqiTpl;
global $jieqiConfigs;
jieqi_getconfigs('article', 'configs');
$article_static_url = empty($jieqiConfigs['article']['staticurl']) ? $GLOBALS['jieqiModules']['article']['url'] : $jieqiConfigs['article']['staticurl'];
$article_dynamic_url = empty($jieqiConfigs['article']['dynamicurl']) ? $GLOBALS['jieqiModules']['article']['url'] : $jieqiConfigs['article']['dynamicurl'];
$jieqiTpl->assign('article_static_url', $article_static_url);
$jieqiTpl->assign('article_dynamic_url', $article_dynamic_url);
$sorts = array('allvisit', 'monthvisit', 'weekvisit', 'dayvisit', 'allauthorvisit', 'monthauthorvisit', 'weekauthorvisit', 'dayauthorvisit', 'allvote', 'monthvote', 'weekvote', 'dayvote', 'postdate', 'lastupdate', 'authorupdate', 'masterupdate', 'goodnum', 'size', 'weekrate', 'monthrate', 'toptime');
foreach ($sorts as $sort) {
$jieqiTpl->assign('url_' . $sort, jieqi_geturl('article', 'toplist', 1, $sort));
}
}
示例9: setContent
function setContent($isreturn = false)
{
global $jieqiTpl;
global $jieqiConfigs;
global $jieqiSort;
include_once $GLOBALS['jieqiModules']['article']['path'] . '/class/article.php';
//载入相关处理函数
include_once $GLOBALS['jieqiModules']['article']['path'] . '/include/funarticle.php';
jieqi_getconfigs('article', 'configs');
jieqi_getconfigs('article', 'sort');
$article_static_url = empty($jieqiConfigs['article']['staticurl']) ? $GLOBALS['jieqiModules']['article']['url'] : $jieqiConfigs['article']['staticurl'];
$article_dynamic_url = empty($jieqiConfigs['article']['dynamicurl']) ? $GLOBALS['jieqiModules']['article']['url'] : $jieqiConfigs['article']['dynamicurl'];
$jieqiTpl->assign('article_static_url', $article_static_url);
$jieqiTpl->assign('article_dynamic_url', $article_dynamic_url);
$articlerows = array();
if (count($this->exevars) > 0) {
$article_handler =& JieqiArticleHandler::getInstance('JieqiArticleHandler');
$sql = 'SELECT * FROM ' . jieqi_dbprefix('article_article') . ' WHERE articleid IN (0,' . implode(',', $this->exevars) . ')';
$sql .= ' LIMIT 0, 100';
$res = $article_handler->db->query($sql);
$k = 0;
while ($v = $article_handler->getObject($res)) {
$articlerows[$k] = jieqi_article_vars($v);
$articlerows[$k]['order'] = $k + 1;
$k++;
}
}
$i = 0;
$maxrow = count($articlerows);
$sortrows = array();
foreach ($this->exevars as $aid) {
$k = 0;
while ($k < $maxrow && $articlerows[$k]['articleid'] != $aid) {
$k++;
}
if ($k < $maxrow) {
$articlerows[$k]['order'] = $i + 1;
$sortrows[$i] =& $articlerows[$k];
$i++;
}
}
$jieqiTpl->assign_by_ref('articlerows', $sortrows);
}
示例10: setContent
function setContent($isreturn = false)
{
global $jieqiSort;
global $jieqiTpl;
global $jieqiConfigs;
jieqi_getconfigs('article', 'sort');
jieqi_getconfigs('article', 'configs');
$article_static_url = empty($jieqiConfigs['article']['staticurl']) ? $GLOBALS['jieqiModules']['article']['url'] : $jieqiConfigs['article']['staticurl'];
$article_dynamic_url = empty($jieqiConfigs['article']['dynamicurl']) ? $GLOBALS['jieqiModules']['article']['url'] : $jieqiConfigs['article']['dynamicurl'];
$jieqiTpl->assign('article_static_url', $article_static_url);
$jieqiTpl->assign('article_dynamic_url', $article_dynamic_url);
$sortrows = array();
$jieqiTpl->assign('url_articlelist', jieqi_geturl('article', 'articlelist', 1, 0));
$i = 0;
foreach ($jieqiSort['article'] as $k => $v) {
$sortrows[$i] = array('sortid' => $k, 'sortname' => $v['caption'], 'url_sort' => jieqi_geturl('article', 'articlelist', 1, $k), 'sortlayer' => $v['layer']);
$i++;
}
$jieqiTpl->assign_by_ref('sortrows', $sortrows);
}
示例11: setContent
function setContent($isreturn = false)
{
global $jieqiSort;
global $jieqiTpl;
global $jieqiConfigs;
jieqi_getconfigs('obook', 'sort');
jieqi_getconfigs('obook', 'configs');
$obook_static_url = empty($jieqiConfigs['obook']['staticurl']) ? $GLOBALS['jieqiModules']['obook']['url'] : $jieqiConfigs['obook']['staticurl'];
$obook_dynamic_url = empty($jieqiConfigs['obook']['dynamicurl']) ? $GLOBALS['jieqiModules']['obook']['url'] : $jieqiConfigs['obook']['dynamicurl'];
$jieqiTpl->assign('obook_static_url', $obook_static_url);
$jieqiTpl->assign('obook_dynamic_url', $obook_dynamic_url);
$sortrows = array();
if ($jieqiConfigs['obook']['fakesort'] == 1) {
if (!empty($jieqiConfigs['obook']['fakeprefix'])) {
$tmpvar = '/' . $jieqiConfigs['obook']['fakeprefix'] . 'sort';
} else {
$tmpvar = '/files/obook/sort';
}
$tmpurl = $obook_dynamic_url . $tmpvar . '/0/1' . $jieqiConfigs['obook']['fakefile'];
} else {
$tmpurl = $obook_dynamic_url . '/obooklist.php?class=0';
}
$jieqiTpl->assign('url_obookindex', $tmpurl);
$jieqiTpl->assign('url_obooklist', $tmpurl);
$i = 0;
foreach ($jieqiSort['obook'] as $k => $v) {
if ($jieqiConfigs['obook']['fakesort'] == 1) {
if (!empty($jieqiConfigs['obook']['fakeprefix'])) {
$tmpvar = '/' . $jieqiConfigs['obook']['fakeprefix'] . 'sort';
} else {
$tmpvar = '/files/obook/sort';
}
$tmpurl = $obook_dynamic_url . $tmpvar . $k . '/0/1' . $jieqiConfigs['obook']['fakefile'];
} else {
$tmpurl = $obook_dynamic_url . '/obooklist.php?class=' . $k;
}
$sortrows[$i] = array('sortid' => $k, 'sortname' => $v['caption'], 'url_sort' => $tmpurl, 'sortlayer' => $v['layer']);
$i++;
}
$jieqiTpl->assign_by_ref('sortrows', $sortrows);
}
示例12: define
<?php
/**
* 网站首页
*
* 默认首页是载入/configs/blocks.php里面配置的区块
*
* 调用模板:无
*
* @category jieqicms
* @package system
* @copyright Copyright (c) Hangzhou Jieqi Network Technology Co.,Ltd. (http://www.jieqi.com)
* @author $Author: juny $
* @version $Id: index.php 344 2009-06-23 03:06:07Z juny $
*/
//定义本页面所属区块
define('JIEQI_MODULE_NAME', 'system');
require_once 'global.php';
//包含区块参数
jieqi_getconfigs(JIEQI_MODULE_NAME, 'blocks', 'jieqiBlocks');
//包含页头页尾
include_once JIEQI_ROOT_PATH . '/header.php';
$jieqiTpl->assign('jieqi_indexpage', 1);
//设置首页标志,便于模板里面可以判断
$jieqiTset['jieqi_contents_template'] = '';
//内容位置不赋值,全部用区块
include_once JIEQI_ROOT_PATH . '/footer.php';
示例13: jieqi_getconfigs
}
if (!empty($jieqiTset['jieqi_contents_template'])) {
if (!isset($jieqiTset['jieqi_contents_cacheid'])) {
$jieqiTset['jieqi_contents_cacheid'] = NULL;
}
if (!isset($jieqiTset['jieqi_contents_compileid'])) {
$jieqiTset['jieqi_contents_compileid'] = NULL;
}
$jieqiTpl->include_compiled_inc($jieqiTset['jieqi_contents_template'], $jieqiTset['jieqi_contents_compileid']);
}
//根据模板包含区块配置文件
if (!empty($jieqiTset['jieqi_blocks_config'])) {
if (!empty($jieqiTset['jieqi_blocks_module'])) {
jieqi_getconfigs($jieqiTset['jieqi_blocks_module'], $jieqiTset['jieqi_blocks_config'], 'jieqiBlocks');
} else {
jieqi_getconfigs(JIEQI_MODULE_NAME, $jieqiTset['jieqi_blocks_config'], 'jieqiBlocks');
}
}
//区块处理
if (!isset($jieqi_showlblock)) {
$jieqi_showlblock = false;
}
if (!isset($jieqi_showcblock)) {
$jieqi_showcblock = false;
}
if (!isset($jieqi_showrblock)) {
$jieqi_showrblock = false;
}
if (!isset($jieqi_showtblock)) {
$jieqi_showtblock = false;
}
示例14: JieqiFormTextArea
$collect_form->addElement(new JieqiFormTextArea($jieqiLang['article']['rule_article_title'], 'articletitle', htmlspecialchars(jieqi_collectstop($jieqiCollect['articletitle']), ENT_QUOTES), 5, 60), true);
$collect_form->addElement(new JieqiFormTextArea($jieqiLang['article']['rule_article_author'], 'author', htmlspecialchars(jieqi_collectstop($jieqiCollect['author']), ENT_QUOTES), 5, 60));
$collect_form->addElement(new JieqiFormTextArea($jieqiLang['article']['rule_article_sort'], 'sort', htmlspecialchars(jieqi_collectstop($jieqiCollect['sort']), ENT_QUOTES), 5, 60));
if (!is_array($jieqiCollect['sortid'])) {
$jieqiCollect['sortid'] = array();
}
$tmpstr = '';
foreach ($jieqiCollect['sortid'] as $k => $v) {
if (!empty($tmpstr)) {
$tmpstr .= '||';
}
$tmpstr .= $k . '=>' . $v;
}
$sortelement = new JieqiFormText($jieqiLang['article']['rule_sort_relation'], 'sortid', 60, 10000, htmlspecialchars($tmpstr, ENT_QUOTES));
$sortelement->setIntro($jieqiLang['article']['rule_sort_note']);
jieqi_getconfigs(JIEQI_MODULE_NAME, 'sort');
$sortstr = '';
foreach ($jieqiSort['article'] as $k => $v) {
if (!empty($sortstr)) {
$sortstr .= '||';
}
$sortstr .= $v['caption'] . '=>' . $k;
}
$sortelement->setDescription(sprintf($jieqiLang['article']['rule_sort_guide'], $sortstr));
$collect_form->addElement($sortelement);
$collect_form->addElement(new JieqiFormTextArea($jieqiLang['article']['rule_article_keywords'], 'keyword', htmlspecialchars(jieqi_collectstop($jieqiCollect['keyword']), ENT_QUOTES), 5, 60));
$collect_form->addElement(new JieqiFormTextArea($jieqiLang['article']['rule_article_intro'], 'intro', htmlspecialchars(jieqi_collectstop($jieqiCollect['intro']), ENT_QUOTES), 5, 60));
$collect_form->addElement(new JieqiFormTextArea($jieqiLang['article']['rule_article_image'], 'articleimage', htmlspecialchars(jieqi_collectstop($jieqiCollect['articleimage']), ENT_QUOTES), 5, 60));
$collect_form->addElement(new JieqiFormText($jieqiLang['article']['rule_articleimage_filter'], 'filterimage', 60, 250, htmlspecialchars($jieqiCollect['filterimage'], ENT_QUOTES)));
$indexelement = new JieqiFormTextArea($jieqiLang['article']['rule_articleindex_url'], 'indexlink', htmlspecialchars(jieqi_collectstop($jieqiCollect['indexlink']), ENT_QUOTES), 5, 60);
$indexelement->setIntro($jieqiLang['article']['rule_articleindex_note']);
示例15: jieqi_getconfigs
$logrows[$k]['logtime'] = $v->getVar('logtime');
$logrows[$k]['userid'] = $v->getVar('userid');
$logrows[$k]['username'] = $v->getVar('username');
$logrows[$k]['userip'] = $v->getVar('userip');
$logrows[$k]['targetname'] = $v->getVar('targetname');
$logrows[$k]['targetid'] = $v->getVar('targetid');
$logrows[$k]['targettitle'] = $v->getVar('targettitle');
$logrows[$k]['logurl'] = $v->getVar('logurl');
$logrows[$k]['logcode'] = $v->getVar('logcode');
$logrows[$k]['logtitle'] = $v->getVar('logtitle');
$logrows[$k]['logdata'] = $v->getVar('logdata');
$logrows[$k]['lognote'] = $v->getVar('lognote');
//$logrows[$k]['fromdata']=$v->getVar('fromdata');
//$logrows[$k]['todata']=$v->getVar('todata');
$k++;
}
$jieqiTpl->assign_by_ref('logrows', $logrows);
/*查找日志类型*/
jieqi_getconfigs(JIEQI_MODULE_NAME, 'lsort', 'jieqiLsort');
if (!isset($jieqiLsort)) {
$jieqiLsort = array();
}
$jieqiTpl->assign_by_ref('logsort', $jieqiLsort);
//处理页面跳转
include_once JIEQI_ROOT_PATH . '/lib/html/page.php';
$jumppage = new JieqiPage($logs_handler->getCount($criteria), $jieqiConfigs['system']['userlogpnum'], $_REQUEST['page']);
$jumppage->setlink('', true, true);
$jieqiTpl->assign('url_jumppage', $jumppage->whole_bar());
$jieqiTpl->setCaching(0);
$jieqiTset['jieqi_contents_template'] = JIEQI_ROOT_PATH . '/templates/admin/logs.html';
include_once JIEQI_ROOT_PATH . '/admin/footer.php';