微信摇一摇统计次数微官网
发布时间:2017-07-07, 12:04:07 分类:PHP | 编辑 off 网址 | 辅助
图集1/5
正文 1850字数 1,320,374阅读
<?php
namespace Addons\Yaoyiyao\Controller;
use Home\Controller\AddonsController;
class YaoyiyaoController extends AddonsController{
var $model;
function _initialize() {
$this->model = $this->getModel ( 'yaoyiyao' );
parent::_initialize ();
$act = strtolower ( _ACTION );
$type = I ( 'type' );
$res ['title'] = '列表';
$res ['url'] = addons_url ( 'Yaoyiyao://Yaoyiyao/lists' );
$res ['class'] = $act == 'lists' || $type == 'text' ? 'current' : '';
$nav [] = $res;
$res ['title'] = '设置';
$res ['url'] = addons_url ( 'Yaoyiyao://Yaoyiyao/config' );
$res ['class'] = $act == 'config' || $type == 'config' ? 'current' : '';
$nav [] = $res;
$res ['title'] = '清零';
$res ['url'] = addons_url ( 'Yaoyiyao://Yaoyiyao/dc' );
$res ['class'] = $act == 'dc' || $type == 'dc' ? 'current' : '';
$nav [] = $res;
$this->assign ( 'nav', $nav );
}
public function dc() {
if($_GET['del']=='ok'){
$map['numm']=0;
$mapw['id']=array('gt',0);
M('yaoyiyao')->where($mapw)->save($map);
header('Location:/index.php?s=/addon/Yaoyiyao/Yaoyiyao/lists.html');
exit;
}
$templateFile = $this->model ['template_list'] ? $this->model ['template_list'] : '';
$this->display ( $templateFile );
}
// 通用插件的列表模型
public function lists() {
$map ['token'] = get_token ();
$list_data = $this->_get_model_list ( $this->model,0,'numm desc' );
foreach($list_data['list_data'] as &$lv){
$lk++;
if($_GET['p']<2) $_GET['p']=0;
$lkn=$lk+($_GET['p']*10);
$lv['user']=$lv['user'].' (第'.$lkn.'名)';
}
$this->assign ( $list_data );
$templateFile = $this->model ['template_list'] ? $this->model ['template_list'] : '';
$this->display ( $templateFile );
}
}
Run code
Cut to clipboard
(支付宝)给作者钱财以资鼓励 (微信)→
有过 13 条评论 »
DISCUZ积分交易系统积分活动异常BUG修复方法
Discuz x3.1 x3 x2.5论坛刷积分各种方法+修复补丁
dz论坛回复主题等奖励积分自动归零归0更新0
function countcredit($uid, $update = true) { global $_G; $credits = 0; if($uid && !empty($_G['setting']['creditsformula'])) { $member = C::t('common_member_count')->fetch($uid); //20170722 //print_r($member);exit; //qq 2500152288S // lizhenqiu.com if(empty($member)){ C::t('common_member_count')->insert(array('uid'=>$uid)); } //end eval("\$credits = round(".$_G['setting']['creditsformula'].");"); if($uid == $_G['uid']) { if($update && $_G['member']['credits'] != $credits) { C::t('common_member')->update_credits($uid, $credits); $_G['member']['credits'] = $credits; } } elseif($update) { C::t('common_member')->update_credits($uid, $credits); } } return $credits; }
<header> <!--狗日的破UC浏览器!--> </header> 视频 <iframe height="250" width="100%" src="{$find.video}" frameborder="0" 'allowfullscreen'=""></iframe>
//解决微信内核为wkwebview时返回上一页,界面不刷新的问题 window.onpageshow = function(event){ if (event.persisted) { window.location.reload(); } };
$("#submitGrade").click(function () { $("#courseStandardVoId tr td").find("input[type='radio']").each(function(){ if($(this).is(":checked")){ alert($(this).val()); } }); }