• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP themeImagePath函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: del_replyOp

 /**
  * 删除回复
  */
 public function del_replyOp()
 {
     // 验证回复
     $this->checkReplySelf();
     $model = Model();
     // 删除商品
     $goods_list = $model->table('circle_thg')->where(array('theme_id' => $this->t_id, 'reply_id' => $this->r_id))->delete();
     // 删除附件
     $where = array();
     $where['affix_type'] = 2;
     $where['member_id'] = $_SESSION['member_id'];
     $where['theme_id'] = $this->t_id;
     $where['reply_id'] = $this->r_id;
     $affix_list = $model->table('circle_affix')->where($where)->select();
     if ($affix_list) {
         foreach ($affix_list as $val) {
             @unlink(themeImagePath($val['affix_filename']));
             @unlink(themeImagePath($val['affix_filethumb']));
         }
         $model->table('circle_affix')->where($where)->delete();
     }
     // The recycle bin add delete records
     $param = array();
     $param['theme_id'] = $this->t_id;
     $param['reply_id'] = $this->r_id;
     $param['op_id'] = $_SESSION['member_id'];
     $param['op_name'] = $_SESSION['member_name'];
     $param['type'] = 'reply';
     Model('circle_recycle')->saveRecycle($param);
     // 删除回复
     $model->table('circle_threply')->where(array('theme_id' => $this->t_id, 'reply_id' => $this->r_id, 'member_id' => $_SESSION['member_id']))->delete();
     // Experience
     if (intval($this->reply_info['reply_exp']) > 0) {
         $param = array();
         $param['member_id'] = $_SESSION['member_id'];
         $param['member_name'] = $_SESSION['member_name'];
         $param['circle_id'] = $this->c_id;
         $param['itemid'] = $this->t_id . ',' . $this->r_id;
         $param['type'] = 'delReplied';
         $param['exp'] = $this->reply_info['reply_exp'];
         Model('circle_exp')->saveExp($param);
     }
     showDialog(L('nc_common_op_succ'), 'reload', 'succ');
 }
开发者ID:mengtaolin,项目名称:shopping,代码行数:47,代码来源:theme.php


示例2: del_replyOp

 /**
  * 删除回复
  */
 public function del_replyOp()
 {
     // 身份验证
     $rs = $this->checkIdentity('cm');
     if (!empty($rs)) {
         showMessage($rs);
     }
     $t_id = intval($_GET['t_id']);
     $r_id = intval($_GET['r_id']);
     // 验证回复
     $model = Model();
     $where = array();
     $where['theme_id'] = $t_id;
     $where['reply_id'] = $r_id;
     $where['circle_id'] = $this->c_id;
     $reply_info = $model->table('circle_threply')->where($where)->find();
     if (empty($reply_info)) {
         showDialog(L('circle_reply_not_exists'), 'reload');
     }
     // 删除附件
     $affix_list = $model->table('circle_affix')->where(array('affix_type' => 2, 'theme_id' => $t_id, 'reply_id' => $r_id))->select();
     if (!empty($affix_list)) {
         foreach ($affix_list as $val) {
             @unlink(themeImagePath($val['affix_filename']));
             @unlink(themeImagePath($val['affix_filethumb']));
         }
         $model->table('circle_affix')->where(array('affix_type' => 2, 'theme_id' => $t_id, 'reply_id' => $r_id))->delete();
     }
     // 删除商品
     $model->table('circle_thg')->where(array('theme_id' => $t_id, 'reply_id' => $r_id))->delete();
     // The recycle bin add delete records
     $param = array();
     $param['theme_id'] = $t_id;
     $param['reply_id'] = $r_id;
     $param['op_id'] = $_SESSION['member_id'];
     $param['op_name'] = $_SESSION['member_name'];
     $param['type'] = 'reply';
     Model('circle_recycle')->saveRecycle($param);
     // 删除回复
     $rs = $model->table('circle_threply')->where(array('theme_id' => $t_id, 'reply_id' => $r_id))->delete();
     // 更新话题回复数
     $model->table('circle_theme')->update(array('theme_id' => $t_id, 'theme_commentcount' => array('exp', 'theme_commentcount-1')));
     // Experience
     if (intval($reply_info['reply_exp']) > 0) {
         $param = array();
         $param['member_id'] = $reply_info['member_id'];
         $param['member_name'] = $reply_info['member_name'];
         $param['circle_id'] = $this->c_id;
         $param['itemid'] = $t_id . ',' . $r_id;
         $param['type'] = 'delReplied';
         $param['exp'] = $reply_info['reply_exp'];
         Model('circle_exp')->saveExp($param);
     }
     showDialog(L('nc_common_op_succ'), 'reload', 'succ');
 }
开发者ID:Maplecms,项目名称:shopnc-yhmall,代码行数:58,代码来源:manage.php


示例3: theme_replydelOp

 /**
  * 话题回复删除
  */
 public function theme_replydelOp()
 {
     $t_id = intval($_GET['t_id']);
     $r_id = intval($_GET['r_id']);
     $model = Model();
     // 验证回复
     $reply_info = $model->table('circle_threply')->where(array('theme_id' => $t_id, 'reply_id' => $r_id))->find();
     if (empty($reply_info)) {
         showMessage(L('param_error'));
     }
     // 删除附件
     $affix_list = $model->table('circle_affix')->where(array('affix_type' => 2, 'theme_id' => $t_id, 'reply_id' => $r_id))->select();
     if (!empty($affix_list)) {
         foreach ($affix_list as $val) {
             @unlink(themeImagePath($val['affix_filename']));
             @unlink(themeImagePath($val['affix_filethumb']));
         }
         $model->table('circle_affix')->where(array('affix_type' => 2, 'theme_id' => $t_id, 'reply_id' => $r_id))->delete();
     }
     // 删除商品
     $model->table('circle_thg')->where(array('theme_id' => $t_id, 'reply_id' => $r_id))->delete();
     // The recycle bin add delete records
     $param = array();
     $param['theme_id'] = $t_id;
     $param['reply_id'] = $r_id;
     $param['op_id'] = 0;
     $param['op_name'] = L('cirlce_administrator');
     $param['type'] = 'adminreply';
     Model('circle_recycle')->saveRecycle($param, $reply_info);
     // 删除回复
     $model->table('circle_threply')->where(array('theme_id' => $t_id, 'reply_id' => $r_id))->delete();
     // 更新话题回复数
     $model->table('circle_theme')->update(array('theme_id' => $t_id, 'theme_commentcount' => array('exp', 'theme_commentcount-1')));
     // Experience
     if (intval($reply_info['reply_exp']) > 0) {
         $param = array();
         $param['member_id'] = $reply_info['member_id'];
         $param['member_name'] = $reply_info['member_name'];
         $param['circle_id'] = $reply_info['circle_id'];
         $param['itemid'] = $t_id . ',' . $r_id;
         $param['type'] = 'delReplied';
         $param['exp'] = $reply_info['reply_exp'];
         Model('circle_exp')->saveExp($param);
     }
     showMessage(L('nc_common_op_succ'));
 }
开发者ID:noikiy,项目名称:haifenbao,代码行数:49,代码来源:circle_theme.php


示例4: circle_delOp

 /**
  * 删除圈子
  */
 public function circle_delOp()
 {
     $id = intval($_GET['c_id']);
     if ($id <= 0) {
         showMessage(L('param_error'));
     }
     $model = Model();
     $circle_info = $model->table('circle')->find($id);
     if (!empty($circle_info)) {
         @unlink(BASE_UPLOAD_PATH . DS . ATTACH_CIRCLE . '/group/' . $circle_info['circle_id'] . '.jpg');
     }
     // 删除附件
     $affix_list = $model->table('circle_affix')->where(array('circle_id' => $id))->select();
     if (!empty($affix_list)) {
         foreach ($affix_list as $val) {
             @unlink(themeImagePath($val['affix_filename']));
             @unlink(themeImagePath($val['affix_filethumb']));
         }
         $model->table('circle_affix')->where(array('circle_id' => $id))->delete();
     }
     // 删除商品
     $model->table('circle_thg')->where(array('circle_id' => $id))->delete();
     // 删除赞表相关
     $model->table('circle_like')->where(array('circle_id' => $id))->delete();
     // 删除回复
     $model->table('circle_threply')->where(array('circle_id' => $id))->delete();
     // 删除话题
     $model->table('circle_theme')->where(array('circle_id' => $id))->delete();
     // 删除成员
     $model->table('circle_member')->where(array('circle_id' => $id))->delete();
     // 删除圈子
     $model->table('circle')->delete($id);
     $this->log(L('nc_del_circle') . '[' . $id . ']');
     showMessage(L('nc_common_op_succ'));
 }
开发者ID:xuxuecheng,项目名称:shopnc,代码行数:38,代码来源:circle_manage.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP themeImageUrl函数代码示例发布时间:2022-05-23
下一篇:
PHP theme函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap