function actShortUrl() { if (isset($_POST['longurl']) && isset($_POST['type'])) { $result = shortUrl($_POST['longurl'], $_POST['type']); if ($result) { echo $result; } else { echo 'error'; } } }
public function previewPdf() { //pdf初始设置 $config = array('info' => array('title' => '测试'), 'header' => array('imageWidth' => 60)); $experts = '大强老师、伟煌、超明、百川'; //专家姓名及陪同人员 $organization = '华南师范大学-数学科学学院'; //单位 $visit_time = '2999-12-31'; //访问时间 $expert_profile = '主讲课程: ● 数学院、全校理科综合1班: 数学分析(1)、数学分析(2)、数学分析(3)、微分方程数值方法 ● 全校公共课: 高等数学I、高等数学II、高等数学III ● 互开课: 线性代数、工程数学(复变函数、积分变换、概率论) 奖励: ● 获得 2010 年“为了明天”教学奖中青年教师课堂教学优秀奖三等奖 ● 获得 “2009—2010 学年度课堂教学质量优秀教师” 称号: 指导本科生科研实践: 全国大学生数学建模竞赛、美国数学建模竞赛 论文 钟柳强, 关于《数学分析》课程教学的几点思考,华南师范大学学报社会科学版(教育研究增刊),2011年6月, 166-167. 研究生主讲课程: ● 三年制学术型(数学、统计学类)研究生学科学位课程: 数值分析 ● 专业方向课程:偏微分方程数值解、有限元方法的数学理论、电磁场有限元方法、快速算法研究、论文选读 等'; //专家简介 $report_title = 'LWHPHP'; //报告题目 $summary = 'PHP框架'; //摘要 $level_major_scale = '0—0-0'; //层次、专业方向、规模 $report_time_address = '2999-12-31 25:00 阶梯教室'; //报告时间及地点 $dean_suggestion = '<img src="' . shortUrl('assets', '/images/ok.png') . '">'; //数学所所长意见 $leader_suggestion = ''; //学院领导意见 //变量替换 $this->html = sprintf($this->html, $experts, $organization, $visit_time, $expert_profile, $report_title, $summary, $level_major_scale, $report_time_address, $dean_suggestion, $leader_suggestion); require_once '/Data/ClassLib/Pdf.class.php'; $a = new \Pdf($config); $a->setHtmlBody($this->html); $a->build(); }
<?php include '../lib/twitese.php'; if (isset($_POST['longurl']) && isset($_POST['type'])) { $result = shortUrl($_POST['longurl'], $_POST['type']); if ($result) { echo $result; } else { echo 'error'; } } ?>
} } $(function(){leaveWord(); $("#textbox").focus(); $("#textbox").keydown(function(){leaveWord();}).keyup(function(){leaveWord();}) }); </script> </head> <body> <?php include 'lib/twitese.php'; $t = getTwitter(); if (isset($_POST['status']) && isset($_POST['url'])) { $status = '传阅: '; $shortUrl = shortUrl($_POST['url']); $postText = trim($_POST['status']); if ($shortUrl) { $status .= $shortUrl . ' ' . $postText . ' '; } else { $status .= $postText . ' '; } $result = $t->update($status); } $text = ''; if (isset($_GET['u'])) { $url = $_GET['u']; } if (isset($_GET['t'])) { $title = $_GET['t']; $text = $_GET['t'];