function exibeVetor($array) { echo "<div class='list-group'>"; $caminho = ""; $classe = ""; $apelido = ""; $descricao = ""; $irPara = ""; for ($i = 0; $i < count($array); $i++) { $projeto = getInfo($array[$i]['caminho']); if ($projeto != null) { $caminho = $array[$i]['caminho']; $classe = property_exists($projeto, "classe") ? $projeto->classe : $array[$i]['classe']; $apelido = property_exists($projeto, "nome") ? $projeto->nome : ucwords(str_replace("_", " ", $array[$i]['projeto'])); $descricao = property_exists($projeto, "descricao") ? $projeto->descricao : $caminho; $irPara = property_exists($projeto, "redirecionarPara") ? $projeto->redirecionarPara : $caminho; } else { $caminho = $array[$i]['caminho']; $classe = $array[$i]['classe']; $apelido = ucwords(str_replace("_", " ", str_replace("-", " ", $array[$i]['projeto']))); $descricao = $caminho; $irPara = $caminho; } echo "<a href='{$irPara}' class='list-group-item'>"; echo "<h4 class='list-group-item-heading'><span class='glyphicon {$classe}'></span> {$apelido}</h4>"; echo "<p class='list-group-item-text'>" . $descricao . "</p>"; echo "</a>"; } echo "</div>"; }
public function ajaxGetItem() { if (!isset($_REQUEST['url'])) { $this->ajaxReturn(0, '未传入商品链接'); } $info = getInfo($_REQUEST['url']); $info['shop_type'] = 'B'; $info['orig_id'] = ''; $info['coupon_rate'] = intval($info['price'] / $info['coupon_price']) * 1000; $this->ajaxReturn(1, '', $info); }
function main() { require_once "../../config.php"; $q = isset($_GET["q"]) ? $_GET["q"] : ''; $site = isset($_GET["site"]) ? $_GET["site"] : ''; $column2 = "class=\"header filesize\"><a href=#>Size "; $column3 = "Category"; if ($site == 1) { $results = nzbsu($q, $saburl, $sabapikey, $nzbsuapi, $nzbsudl); } elseif ($site == 2) { $results = nzbmatrix($q, $nzbusername, $nzbapi, $saburl, $sabapikey); } elseif ($site == 3) { $column2 = "><a href=#>Rating "; $column3 = "Year"; $results = tmdb($q, $cp_url); } elseif (!empty($_GET['id'])) { if (intval($_GET['id']) != 0) { getInfo($_GET['id'], $cp_url); return false; } else { getCP($id, $cp_url); return false; } } else { $_GET['type'] = $preferredCategories; switch ($preferredSearch) { case '0': //$_GET['type'] = ''; //$results = nzbmatrix($q, $nzbusername, $nzbapi,$saburl,$sabapikey); //$results .= nzbsu($q, $saburl,$sabapikey, $nzbsuapi, $nzbsudl); $results = "<h1>Need to choose default Site and Category</h1>"; break; case '1': $results = nzbmatrix($q, $nzbusername, $nzbapi, $saburl, $sabapikey); break; case '2': $results = nzbsu($q, $saburl, $sabapikey, $nzbsuapi, $nzbsudl); break; case '3': $column2 = "><a href=#>Rating "; $column3 = "Year"; $results = tmdb($q, $cp_url); break; } } $tablebody = "<div id='wSearch'>\n\t\t\t\t\t<table id='search-Table' class='tablesorter' width='100%' style='table-layout:fixed;' cellspacing='0'>\n\t\t\t\t\t\t<thead>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<th style='width:5%;'></th>\n\t\t\t\t\t\t\t\t<th style='width:60%;' onclick=\"setTimeout('updateRows()',10);\"><a href=#>Name <img src=\"./media/arrow.png\"/></a></th>\n\t\t\t\t\t\t\t\t<th style='width:15%;'onclick=\"setTimeout('updateRows()',10);\"{$column2}<img src=\"./media/arrow.png\"/></a></th>\n\t\t\t\t\t\t\t\t<th style='width:20%;' onclick=\"setTimeout('updateRows()',10);\"><a href=#>{$column3} <img src=\"./media/arrow.png\"/></a></th>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</thead>\n\t\t\t\t\t\t<tbody>"; echo !empty($results) ? $tablebody . $results . "</tbody></table></div>" : "<h1>Nothing found!</h1>"; }
function catch_url($k) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://www.xiami.com/search?key=" . $k); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 0); $output = curl_exec($ch); curl_close($ch); $regs = array(); //<a target="_blank" href="http://www.xiami.com/song/1773101670?spm=a1z1s.3521865.23309997.1.cT77HE" title="Palpitation!" data-spm-anchor-id="a1z1s.3521865.23309997.1">Palpitation!</a> preg_match_all("/href=\"http:\\/\\/www.xiami.com\\/song\\/(\\d+)/is", $output, $regs); $ids = $regs[1]; $index = 0; foreach ($ids as $item) { $xml_url = "http://www.xiami.com/widget/xml-single/uid/0/sid/" . $item; $info = getInfo($xml_url); $location = getLocation($info->location); ?> <audio controls="controls"> <source src="<?php echo $location; ?> " type="audio/mpeg" /> Your browser does not support the audio element. </audio> <span><?php echo $info->song_name; ?> </span><img src="<?php echo $info->album_cover; ?> "/></br> <input type="hidden" value="<?php echo $location; ?> "/> <span style="display:none;">src:<?php echo $location; ?> </span><br/> <?php echo '<span><input type="button" onclick="mpg(' . $index . ')" value="mpg it"/></span><br/>'; $index += 1; } }
function sendNotification($userEmail, $messageSubject, $messageContent) { $userName = getInfo($userEmail, 'portalName'); $emailFor = $userEmail; $emailSubject = $messageSubject; $emailMessage = ' <html> <body> <h4>Hi ' . $userName . ',</h4> <p>' . $messageContent . '</p> </body> </html> '; $emailHeaders = 'MIME-Version: 1.0' . "\r\n"; $emailHeaders .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $emailHeaders .= 'From: Updates@TKNDMobile.com'; mail($emailFor, $emailSubject, $emailMessage, $emailHeaders); }
function main() { if (isset($_REQUEST['type'])) { $type = $_REQUEST['type']; if ($type == "info") { return getInfo(); } else { if ($type == "video") { return getVideo(); } else { if ($type == "danmaku") { return getDanmaku(); } } } } make_error(400, "Invaild type"); }
function getInfo($org, $id) { $ans = array(); if ($id == $org['id']) { $ans = array("funcion" => $org['funcion'], "titulo" => $org['titulo'], "glosa" => $org['glosa'], "url" => $org['url']); return $ans; } $hijos = $org['hijos']; if ($hijos != array()) { foreach ($hijos as $X) { $seq = getInfo($X, $id); if ($seq != array()) { $ans = $seq; break; } } } return $ans; }
<?php require 'config.php'; header('Content-Type: application/json,charset=utf-8'); $action = $_REQUEST['action']; if ($action == 'getquota') { getquota($_REQUEST['rank']); } else { if ($action == 'getinfo') { getInfo($_REQUEST['fbid']); } else { if ($action == 'getall') { getAll(); } else { if ($action == 'random') { random($_REQUEST['rank'], $_REQUEST['fbid']); } } } } /*$json=json_decode($jsonstr); //print_r($json); foreach ($json as $user) { $result = $conn->query("update member set response='{$user->rsvp_status}' where fbid='{$user->id}'"); //mysqli_stmt_execute($stmt); }*/ function getInfo($fbid) { //echo $conn; global $conn; if (isset($_REQUEST['token'])) {
include_once "action/smarty_inc.php"; include_once "action/lang.class.php"; include_once "action/mysql.class.php"; include_once "action/public_info.php"; if ($currlang == "en") { include_once "action/page.class.en.php"; } else { include_once "action/page.class.php"; } $where = " where remark='Honour' and seq is null "; //分页 $pagesize = 12; //一页显示多少条 $queryTotal = $db->query("select id from cp " . $where); $total = $db->db_num_rows(); pageft($total, $pagesize); if ($firstcount < 0) { $firstcount = 0; } //显示分页的内容 $smarty->assign("page", $pagenav); //产品 $certRow = getRows("cp " . $where . "order by create_date desc limit {$firstcount}, {$displaypg} ", $db, "id,cp_info_type_" . $currlang . " as cert_name,path"); $smarty->assign("certRows", $certRow); //联系我们ContactUs $contactusInfo = getInfo("cp where remark='ContactUs'", $db, "cp_info_value_" . $currlang . " as info"); $smarty->assign("contactUsInfo", html_entity_decode($contactusInfo[info])); $aboutUsInfoAll = getInfo("cp where remark='AboutUs'", $db, "cp_info_value_" . $currlang . " as info"); $smarty->assign("AboutUsInfoAll", html_entity_decode($aboutUsInfoAll[info])); $smarty->display("cert.html");
if (!empty($_REQUEST['beachthumbs'])) { setInfo("beachthumbs", $_REQUEST['beachthumbs']); } if (!empty($_REQUEST['watermark'])) { setInfo("watermark", $_REQUEST['watermark']); } if (!empty($_REQUEST['contacttext'])) { setInfo("contact", $_REQUEST['contacttext']); } echo '<form action="admin.php" method="post" name="admin">'; echo '<br /><table cellspacing="0" cellpadding="0" border="0" align="center">'; echo '<tr><td>'; echo '<table cellspacing="8" cellpadding="0" border="0" align="center">'; echo '<tr><td colspan="2" align="center" style="font-size: 36px; font-family: Arial;">Admin</td></tr>'; echo '<tr><td align="right">Thumbnails per page (Wedding Gallery)</td><td><input type="text" name="weddingthumbs" value="' . getInfo("weddingthumbs") . '"></td></tr>'; echo '<tr><td align="right">Thumbnails per page (Creative Gallery)</td><td><input type="text" name="creativethumbs" value="' . getInfo("creativethumbs") . '"></td></tr>'; echo '<tr><td align="right">Thumbnails per page (Beach Gallery)</td><td><input type="text" name="beachthumbs" value="' . getInfo("beachthumbs") . '"></td></tr>'; echo '<tr><td align="right">Watermark Text</td><td><input type="text" name="watermark" value="' . getInfo("watermark") . '"></td></tr>'; echo '<tr><td colspan="2" align="center">Contact Info</td></tr>'; echo '<tr><td colspan="2" align="center"><textarea cols="40" rows="8" name="contacttext">' . getInfo("contact") . '</textarea></td></tr>'; echo '<tr><td colspan="2" align="center"><input type="submit" value="Save Changes!"></td></tr>'; echo '<tr><td colspan="2" align="center" style="color: #FF0000">If you want to add or delete pictures, click one of the navigation links on top.</td></tr>'; echo '</table>'; echo '</td></tr>'; echo '</table>'; echo '</form>'; } ?> </body> </html>
<td>(channel ids can be found in URLs, e.g. https://www.youtube.com/channel/<b>UCiDJtJKMICpb9B1qf7qjEOA</b>)</td> </tr> <tr> <td colspan="3"><hr /></td> </tr> <tr> <td colspan="3"><input type="submit" /></td> </tr> </form> </table> <?php if (isset($_GET["hash"])) { $hash = $_GET["hash"]; getInfo(); } function getInfo() { global $hash, $apikey; $restquery = "https://www.googleapis.com/youtube/v3/channels?part=brandingSettings,status,id,snippet,contentDetails,contentOwnerDetails,statistics,topicDetails,invideoPromotion&id=" . $hash . "&key=" . $apikey; // example //$hash = "LLP2X3cVGXP0r56gOGhiRDlA"; //$restquery = "https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&playlistId=".$hash."&maxResults=50&key=".$apikey; $reply = doAPIRequest($restquery); /* echo '<pre>'; print_r($reply->items[0]); echo '</pre>'; */ echo "<hr /><br />";
<?php if (!isset($_GET[certid]) || empty($_GET[certid])) { echo "<script>window.history.back();</script>"; exit; } else { include_once "action/smarty_inc.php"; include_once "action/lang.class.php"; include_once "action/mysql.class.php"; include_once "action/public_info.php"; //ÁªÏµÎÒÃÇContactUs $contactusInfo = getInfo("cp where remark='ContactUs'", $db, "cp_info_value_" . $currlang . " as info"); $smarty->assign("contactUsInfo", html_entity_decode($contactusInfo[info])); $aboutUsInfoAll = getInfo("cp where remark='AboutUs'", $db, "cp_info_value_" . $currlang . " as info"); $smarty->assign("AboutUsInfoAll", html_entity_decode($aboutUsInfoAll[info])); $certInfo = getInfo("cp where id='" . $_GET[certid] . "'", $db, "id,cp_info_type_" . $currlang . " as cert_name,cp_info_value_" . $currlang . " as cert_desc,path"); $smarty->assign("certinfo", $certInfo); $smarty->display("certinfo.html"); }
<?php include_once "action/smarty_inc.php"; include_once "action/lang.class.php"; include_once "action/mysql.class.php"; include_once "action/public_info.php"; //左边导航 $nav_left = getRows('cp where seq is not null ', $db, "cp_info_type_" . $currlang . " as type"); $smarty->assign("NavLeft", $nav_left); //联系我们ContactUs $contactusInfo = getInfo("cp where remark='ContactUs'", $db, "cp_info_value_" . $currlang . " as info"); $smarty->assign("contactUsInfo", html_entity_decode($contactusInfo[info])); //信息 $historyInfoAll = getInfo("cp where remark='History'", $db, "cp_info_value_" . $currlang . " as info"); $smarty->assign("HistoryInfoAll", html_entity_decode($historyInfoAll[info])); $smarty->display("history.html");
function writeResult($rn) { print "<table border=1 cellspacing=0 cellpadding=5>"; print "<caption>room{$rn}</caption>"; print "<tr>"; print "<th>item</th>"; print "<th>price</th>"; print "<th>winner</th>"; print "<th>point</th>"; print "</tr>"; $usernum = getInfo("user_number"); $lognum = getLognumber(); #if(strlen(file_get_contents("log/$lognum/room$rn/result")) > 5) { # return ; #} $wininfo = getWinnerInfo("log/{$lognum}/room{$rn}/transition", $rn); $lines = ""; $vinfo = getValueInfo($lognum); #var_dump($vinfo); foreach ($wininfo as $info) { $pay = $info[3]; $point = $vinfo[$info[0]][$info[1]] - $pay; print "(value:)" . $vinfo[$info[0]][$info[1]] . "-(pay:)" . $pay . "=" . $point . "<br>"; print "<tr>"; print "<td>{$info['1']}</td>"; print "<td>{$info['2']}"; print "<td>{$info['0']}</td>"; print "<td>{$point}</td>"; print "</tr>"; $line = $info[1] . ",price=" . $info[2] . ",user="******",point=" . $point . "\n"; $lines = $lines . $line; #push(@data,$item.",price=".$price.",user="******",point=".$point); } if (strlen(file_get_contents("log/{$lognum}/room{$rn}/result")) < 5) { file_put_contents("log/{$lognum}/room{$rn}/result", $lines); } print "</table><br><br>"; }
<?php include_once "action/smarty_inc.php"; include_once "action/lang.class.php"; include_once "action/mysql.class.php"; include_once "action/public_info.php"; include_once "action/page.class.php"; //栏目类型--课程 $lmlist = getRows("boya_type where pid='2' order by seq", $db, " id,type_name as name,url,seq as typeid "); $smarty->assign("lmlist", $lmlist); //联系我们 $infocn = getInfo(" boya_config where comm_type='Contact'", $db); $smarty->assign("infocn", $infocn); $infocn_type = getInfo(" boya_type where id='4'", $db); $smarty->assign("infocn_type", $infocn_type); $smarty->display("lxwm.html");
<?php include_once "action/smarty_inc.php"; include_once "action/lang.class.php"; include_once "action/mysql.class.php"; include_once "action/public_info.php"; //ÁªÏµÎÒÃÇContactUs $contactusInfo = getInfo("cp where remark='ContactUs'", $db, "cp_info_value_" . $currlang . " as info"); $smarty->assign("contactUsInfo", html_entity_decode($contactusInfo[info])); $wordInfoAll = getInfo("cp where remark='Word'", $db, "cp_info_value_" . $currlang . " as info"); $smarty->assign("WordInfoAll", html_entity_decode($wordInfoAll[info])); $smarty->display("word.html");
<?php if (isset($_GET[task]) && "toUpdateryzz" == $_GET[task] && isset($_GET[ryzzid]) && !empty($_GET[ryzzid])) { require_once "action/checkAamsLogin.php"; require_once "action/smarty_inc.php"; require_once "action/mysql.class.php"; $rows = getRows(" cp where remark='Honour' and seq is null ", $db); $smarty->assign("typeRows", $rows); $info = getInfo(" cp where remark='Honour' and seq is null and id='{$_GET['ryzzid']}'", $db); $smarty->assign("info", $info); $smarty->display("updateryzz.html"); } else { echo "<script>window.history.back();</script>"; exit; }
$text = $day . '(' . $weekday . ')' . $peopleinfo; $text .= empty($row['roombalance']) ? '' : '(单房差:' . $row['roombalance'] . '元)'; $monthli .= '<option value="' . $day . '" data-price="' . $adultprice . '" data-childprice="' . $childprice . '" data-oldprice="' . $oldprice . '" data-number="' . $row['number'] . '">' . $text . '</option>'; } $out['monthli'] = $monthli; $out['jifen'] = $jifenarr; echo json_encode($out); exit; } //获取行程景点信息,暂用于百度地图信息 if ($dopost == 'getdayspots') { $sql = "select * from #@__line_dayspot where lineid='{$lineid}'"; $arr = $dsql->getAll($sql); $out = array(); foreach ($arr as $key => $row) { $spotinfo = getInfo('#@__spot', "where id='{$row['spotid']}' ", 'id,aid,content,litpic,title,lng,lat'); $spotpic = getUploadFileUrl($spotinfo['litpic']); $linkurl = "/spots/show_" . $spotinfo['aid'] . ".html"; $description = cutstr_html(strip_tags($spotinfo['content']), 100); //景点描述 $outstr = "<div style='width:300px;'>"; $outstr .= "<h4 style='margin:0 0 5px 0;padding:0.2em 0'><a href='" . $linkurl . "' target='_blank'>" . $spotinfo['title'] . "</a></h4>"; $outstr .= "<img style='float:right;margin:4px' id='imgDemo' src='" . $spotpic . "' width='139' height='104' title='" . $spotinfo['title'] . "'/>"; $outstr .= "<p style='margin:0;line-height:1.5;font-size:13px;text-indent:2em'>" . $description . "<a href='" . $linkurl . "' target='_blank'>[<font color='#01aec8'>查看详情</font>]</a></p>"; $outstr .= "</div>"; $out[$key][] = $spotinfo['lng']; $out[$key][] = $spotinfo['lat']; $out[$key][] = $outstr; } echo json_encode($out); exit;
require_once ".auth.php"; //connect to database $con = mysqli_connect($db['host'], $db['user'], $db['pass'], $db['name']); // Check connection if (mysqli_connect_errno()) { $error[] = "Failed to connect to MySQL"; $debug[] = mysqli_connect_error(); } $result2 = mysqli_query($con, "SELECT id,serverid FROM p2pool_instances"); while ($row2 = mysqli_fetch_array($result2)) { $p2pool_instance[$row2[1]][] = $row2[0]; } $result3 = mysqli_query($con, "SELECT id,serverid FROM coind_instances"); while ($row3 = mysqli_fetch_array($result3)) { $coind_instance[$row3[1]][] = $row3[0]; } $result = mysqli_query($con, "SELECT id,name,ip FROM servers"); $rows = 0; echo "<table border=1><tr><td>#</td><td>Name</td><td>IP</td><td>uptime</td><td>Disk<br>Usage</td><td>Memory<br>Free</td><td>Load Avg.</td><td>Instances<td>FUNC.</td></tr>"; while ($row = mysqli_fetch_array($result)) { $server = getInfo($row['ip'], $sshkey_location); echo "<tr><td>" . $row['id'] . "</td><td>" . $row['name'] . "</td><td>" . $row['ip'] . "</td><td>" . $server['uptime'] . "</td><td>" . $server['disk_usage'] . "</td><td>" . $server['memory_free'] . "</td><td>" . $server['load'] . "</td><td>p2pool: " . count($p2pool_instance[$row['id']]) . "<br>coind: " . count($coind_instance[$row['id']]) . "</td><td>[<a href=servers.update.php?id=" . $row['id'] . ">Update</a>]</td></tr>"; ++$rows; } if ($rows <= 0) { echo "<tr><td>0</td><td colspan=7><i>There are no servers currently being managed!</i></td><td><a href=servers.add.php>[ADD]</a></td></tr>"; } else { echo "<tr><td>+</td><td colspan=8><a href=servers.add.php>Add Server</a></td></tr>"; } echo "</table>"; mysqli_close($con);
function passwd($uid) { $info = getInfo($uid); return $info['password']; }
function manejarSesionActiva_HTML_generarInformacion($smarty, $sDirLocalPlantillas, $infoLlamada, $infoCampania) { if (substr($infoLlamada['phone'], 0, 1) == '0') { $number = $infoLlamada['phone']; } else { $number = '0' . $infoLlamada['phone']; } $smarty->assign(array('LBL_INFORMACION_LLAMADA' => _tr('Gọi đến kênh ' . $infoLlamada['queue'] . ' - Số điện thoại: ' . $infoLlamada['phone']), 'HTML_result' => _tr(getInfo($number)))); return $smarty->fetch("{$sDirLocalPlantillas}/agent_console_mobivi.tpl"); }
if (array_search($uri, $url) !== false || array_search($_SERVER['REQUEST_URI'], $url) !== false) { $active = ' class="active"'; } } else { $htmlurl = htmlspecialchars($url); if ($url == $uri || $SETTINGS['path'] . $url == $_SERVER['REQUEST_URI']) { $active = ' class="active"'; } } $navbar .= "<li{$active}><a href=\"{$SETTINGS['path']}{$htmlurl}\">{$htmlname}</a></li>\n"; } $navbar .= '</ul>'; } $error = getError(); $warning = false; $info = getInfo(); $boxes = ''; if ($error !== false) { $error_html = htmlspecialchars($error, 0, 'UTF-8'); $boxes .= "<p class=\"error\"><img src=\"{$SETTINGS['path']}/images/icons/error.png\" alt=\"Fehler:\" /> {$error_html}</p>\n"; } if ($warning !== false) { $warning_html = htmlspecialchars($warning, 0, 'UTF-8'); $boxes .= "<p class=\"warning\"><img src=\"{$SETTINGS['path']}/images/icons/error.png\" alt=\"Warnung:\" /> {$warning_html}</p>\n"; } if ($info !== false) { $info_html = htmlspecialchars($info, 0, 'UTF-8'); $boxes .= "<p class=\"info\"><img src=\"{$SETTINGS['path']}/images/icons/information.png\" alt=\"Information:\" /> {$info_html}</p>\n"; } if (!isset($TITLEHTML)) { $TITLEHTML = htmlspecialchars(isset($TITLE) ? "{$TITLE} | eVOC - Englisch Vokabeltrainer" : "eVOC | Englisch Vokabeltrainer", 0, 'UTF-8');
$totalScore2 = 0; $totalPoint2 = 0.0; $totalGPA2 = 0.0; ?> <html> <head> <meta charset='utf-8'><title>所有成绩</title> <link href='http://cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.css' rel='stylesheet'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> </head> <body> <div class='container'><div class='row'> <table class='table table-striped table-bordered table-hover' align='center'> <?php echo "\t\t\t<tr><td colspan='6'>姓名: " . getInfo("姓名", $encode) . "<br>\n\t\t\t\t学号: " . getInfo("学号", $encode) . "<br>\n\t\t\t\t身份证号: " . getInfo("身份证号", $encode) . "<br>\n\t\t\t\t班级: " . getInfo("班级", $encode) . "<br>\n\t\t\t\t</td></tr>\n\t\t\t<tr><th width='40%'>课程名</th><th width='10%'>学分</th><th width='10%'>成绩</th>\n\t\t\t\t<th width='10%'>修读方式</th><th width='10%'>课程属性</th><th width='20%'>考试时间</th></tr>"; foreach ($matches as $val) { /* 课程名{$i[2]} 学分{$i[5]} 成绩{$i[8]} 修读方式{$i[11]} 课程属性{$i[14]} 考试时间{$i[17]}*/ $score_out = ""; if (!preg_match("/[\\S]+/", $val[8], $score)) { $course_num = $course_num - 1; //echo "hhhhhhhhhhhhhhhh=================================================="; continue; } if ($score[0] == "优秀") { $scoreNum = 95; } else { if ($score[0] == "良好") { $scoreNum = 85;
function getDaySpot($day, $lineid, $webid = 0) { global $dsql; $sql = "select * from #@__line_dayspot where day = '{$day}' and lineid='{$lineid}'"; $arr = $dsql->getAll($sql); foreach ($arr as $row) { $spotinfo = getInfo('#@__spot', "where id='{$row['spotid']}' ", 'aid,content,piclist,litpic,title,webid'); $description = cutstr_html(strip_tags($spotinfo['content']), 200); //景点描述 $spotpic = getSpotPic($spotinfo, $row['spotid'], $webid); $out .= ' <div class="spot_top"> <div class="spot_bg_pic"></div> <h3>' . $row['title'] . '</h3> </div> <div class="spot_num"> <div class="spot_p"> <p>' . $description . '</p> </div> <ul class="spot_img">' . $spotpic . ' </ul> </div>'; } return $out; }
<?php //²Ëµ¥ $menulist = getRows("menu where menu_type='PublicTopNav' order by menu_index", $db, " id,menu_url,menu_name_" . $currlang . " as menu_name "); $smarty->assign("menulist", $menulist); //µ×²¿µ¼º½ $nav_buttom_info = getInfo("comm_code where type_name='ButtomNavInfo'", $db, "type_value_" . $currlang . " as type_value"); $smarty->assign("ButtomNavInfo", html_entity_decode($nav_buttom_info[type_value])); //°æȨÐÅÏ¢ $copy_buttom_info = getInfo("comm_code where type_name='ButtomCopyInfo'", $db, "type_value_" . $currlang . " as type_value"); $smarty->assign("ButtomCopyInfo", html_entity_decode($copy_buttom_info[type_value])); ////modify by 1-8 flashÇл» $flashPic = getRows("comm_code where type_name='TopFlashImage' order by remark", $db); $smarty->assign("TopFlashImage", $flashPic); //ÓïÑÔ if ($currlang == "en") { $clang = 'en'; } else { $clang = ''; } $smarty->assign("clang", $clang); $url = $_SERVER["REQUEST_URI"]; $smarty->assign("CURL", $url); $smarty->assign("lang", $lang[$currlang]['public']);
if (isset($_POST["weekDay"])) { $typeID = UserControl::getUserNo(); $typeID = getInfo($typeID)["ID"]; $thisWeek = date("w"); $currentDate = date("Y-m-d"); $target_day = $_POST["weekDay"]; $weekDayArray = array("Sun" => "sunday", "Mon" => "monday", "Tue" => "tuesday", "Wed" => "wednesday", "Thur" => "thursday", "Fri" => "friday", "Sat" => "saturday"); foreach ($weekDayArray as $key => $value) { if (isset($target_day[$key])) { $currentDate = date("Y-m-d"); for ($i = 0; $i < $_POST["repeatTime"]; $i++) { $nextDate = date("Y-m-d", strtotime('next ' . $value, strtotime($currentDate))); markJobDate($typeID, $nextDate, $_POST["district"]); $currentDate = $nextDate; } } } } else { echo "<script> alert('Please select the week day!'); </script>"; } } else { if (isset($_POST["date"], $_POST["district"])) { $typeID = UserControl::getUserNo(); $typeID = getInfo($typeID)["ID"]; markJobDate($typeID, $_POST["date"], $_POST["district"]); } } echo "<script> window.location.replace(\"../profile.php?userNo=" . UserControl::getUserNo() . "\"); </script>"; ?>
function getStartPlacePrint($id) { $info = getInfo('#@__startplace', "where id='{$id}' ", 'cityname'); return $info['cityname']; }
public function ajaxGetItem() { if (!isset($_REQUEST['link'])) { $this->ajaxReturn(0, '未传入商品链接'); } $info = getInfo($_REQUEST['link']); $info['shop_type'] = 'B'; $info['orig_id'] = ''; $tt = (string) ($info['coupon_price'] / $info['price']); $tt = substr($tt, 0, 4); $info['coupon_rate'] = $tt * 10000; $this->ajaxReturn(1, '', $info); }
<?php include_once "action/smarty_inc.php"; include_once "action/lang.class.php"; include_once "action/mysql.class.php"; include_once "action/public_info.php"; //产品类型 $typelist = getRows("product_type t where remark='1'", $db, "id,product_type_" . $currlang . " as product_type,pid"); $smarty->assign("typelist", $typelist); //新闻 $newslist = getRows("news where lang='" . $currlang . "' order by create_date limit 0,8", $db); $smarty->assign("newslist", $newslist); //案例 $caselist = getRows("obj_case where lang='" . $currlang . "' order by create_date limit 0,6", $db); $smarty->assign("caselist", $caselist); //产品 $prodlist = getRows("product where lang='" . $currlang . "' order by create_date limit 0,6", $db); $smarty->assign("prodlist", $prodlist); //简介AboutUs $aboutusInfo = getInfo("comm_code where type_name='AboutUsInfo'", $db, "type_value_" . $currlang . " as info"); $smarty->assign("aboutUsInfo", html_entity_decode($aboutusInfo[info])); //联系我们ContactUs $contactusInfo = getInfo("cp where remark='ContactUs'", $db, "cp_info_value_" . $currlang . " as info"); $smarty->assign("contactUsInfo", html_entity_decode($contactusInfo[info])); $smarty->display("index.html");
<!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=iso-8859-1" /> <title>Jared Cline Photography - Contact</title> <?php include "style.php"; include "functions.php"; ?> </head> <body> <div align="center"><img src="images/contactheader.jpg"></div> <?php include "navigation.php"; $mailer = ''; if ($_REQUEST['check'] == 'yes' && !empty($_REQUEST['email']) && !empty($_REQUEST['message'])) { mail('*****@*****.**', 'Email from jaredcline.com', $_REQUEST['message'], 'From: ' . $_REQUEST['email']); } elseif ($_REQUEST['check'] == 'yes') { $mailer .= '<br /><center><font color="#FF0000">Please enter your email address and message.</font></center>'; } if ($_REQUEST['check'] == 'yes' && !empty($_REQUEST['email']) && !empty($_REQUEST['message'])) { $mailer .= '<br />' . '<center><font color="#00FF00">Thanks for contacting me.</font></center>'; } else { $mailer .= '<br />' . '<form action="contact.php" method="post">' . '<input type="hidden" name="check" value="yes">' . '<table cellspacing="8" cellpadding="0" border="0" align="center">' . '<tr><td align="right">Name:</td><td><input type="text" name="name" size="45"></td></tr>' . '<tr><td align="right">Your Email:</td><td><input type="text" name="email" size="45"></td></tr>' . '<tr><td colspan="2" align="center">Message</td></tr>' . '<tr><td colspan="2" align="center"><textarea cols="40" rows="8" name="message"></textarea></td></tr>' . '<tr><td colspan="2" align="center"><input type="submit" value="Contact Me"></td></tr>' . '</table>' . '</form>'; } $contact = getInfo("contact"); $contact = str_replace("%mailer%", $mailer, $contact); echo '<center>' . $contact . '</center>'; ?> </body> </html>