当前位置: 首页 > news >正文

wordpress 网站地址24小时人工在线客服

wordpress 网站地址,24小时人工在线客服,创维网站关键字优化,导购网站建设1、实现效果,操作成功后失败成功自动跳转 2、创建操作成功失败跳转方法CrlBase.php /**成功后跳转*跳转地址$url* 跳转显示信息$msg* 等待时间$wait* 是否自动跳转$jump*/protected function ok($urlNULL,$msg操作成功,$wait3,$jump1){$code1;include KJ_CORE./tp…

1、实现效果,操作成功后失败成功自动跳转 

 

 2、创建操作成功失败跳转方法CrlBase.php

  /**成功后跳转*跳转地址$url* 跳转显示信息$msg* 等待时间$wait* 是否自动跳转$jump*/protected function ok($url=NULL,$msg='操作成功',$wait=3,$jump=1){$code=1;include  KJ_CORE.'/tpl/dispatch_jump.tpl';}/**失败后跳转*跳转地址$url* 跳转显示信息$msg* 等待时间$wait* 是否自动跳转$jump*/protected function err($url=NULL,$msg='操作失败',$wait=3,$jump=0){$code=0;include  KJ_CORE.'/tpl/dispatch_jump.tpl';}

3、创建跳转模板dispatch_jump.tpl

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/><title>跳转提示</title><style type="text/css">*{ padding: 0; margin: 0; }body{ background: #fff; font-family: "Microsoft Yahei","Helvetica Neue",Helvetica,Arial,sans-serif; color: #333; font-size: 16px; }.system-message{ padding: 24px 48px; }.system-message h1{ font-size: 100px; font-weight: normal; line-height: 120px; margin-bottom: 12px; }.system-message .jump{ padding-top: 10px; }.system-message .jump a{ color: #333; }.system-message .success,.system-message .error{ line-height: 1.8em; font-size: 36px; }.system-message .detail{ font-size: 12px; line-height: 20px; margin-top: 12px; display: none; }</style>
</head>
<body>
<div class="system-message"><?php switch ($code) {case 1:?><h1>:)</h1><p class="success"><?php echo(strip_tags($msg));?></p><?php break;case 0:?><h1>:(</h1><p class="error"><?php echo(strip_tags($msg));?></p><?php break;
} ?><p class="detail"></p><?php if($jump==1){?><p class="jump">页面自动 <a id="href" href="<?php echo($url);?>">跳转</a> 等待时间: <b id="wait"><?php echo($wait);?></b></p><?php }?>
</div>
<script type="text/javascript"><?php if($jump==1){?>(function(){var wait = document.getElementById('wait'),href = document.getElementById('href').href;var interval = setInterval(function(){var time = --wait.innerHTML;if(time <= 0) {location.href = href;clearInterval(interval);};}, 1000);})();<?php }?>
</script>
</body>
</html>

4、实现跳转操作indexCrl.php

<?php
class indexCrl extends  CrlBase {public function index(){$this->ok("index.php?c=index&a=index2",'操作成功,跳转index2');}public function index2(){echo  "index2";}
}

http://www.hkea.cn/news/39444/

相关文章:

  • 建站平台入口徐州网站设计
  • 出口手工艺品网站建设方案站长统计app下载
  • 提升学历骗局武汉搜索引擎排名优化
  • wordpress+park主题上海全国关键词排名优化
  • 潍坊最早做网站的公司短链接生成网址
  • 东莞化工网站建设爱站网ip反域名查询
  • 做网站赚钱 2017哈尔滨关键词排名工具
  • 建设的网站首页微信怎么做推广
  • 建设网站导航百度信息流推广和搜索推广
  • 深圳室内设计公司招聘信息流广告优化
  • 旅游网站首页四种营销模式
  • 负责网站建设如何在百度发广告推广
  • 联通的网站是谁做的营销的主要目的有哪些
  • 衡阳微信网站地推的方法和技巧
  • 南阳做网站公司哪家好自动发外链工具
  • 潍坊网站制作最低价格网络营销案例有哪些
  • 做网站有谁做谷歌seo视频教程
  • 资深的网站推广完美日记网络营销策划书
  • 90设计网站免费素材网站seo培训
  • 整形美容网站源码上海seo优化bwyseo
  • 武威市住房和建设局网站百度app下载安装普通下载
  • 网站物理结构天津百度推广排名
  • 美容平台网站建设百度指数查询移动版
  • 工程公司手机网站建立网站怎么搞
  • 做网站软件wd惠州seo外包
  • 聊城做网站seo关键词分类
  • 网站做公司女生学网络营销这个专业好吗
  • 网络运营主要工作内容seo教程自学入门教材
  • 用其他商标在自己网站做宣传百度云网盘资源分享网站
  • 对商家而言网站建设的好处淘宝关键词查询工具哪个好