4000-520-616
欢迎来到免疫在线!(蚂蚁淘生物旗下平台)  请登录 |  免费注册 |  询价篮
主营:原厂直采,平行进口,授权代理(蚂蚁淘为您服务)
咨询热线电话
4000-520-616
当前位置: 首页 > 新闻动态 >
热卖商品
新闻详情
品牌直通车 | 北京泰和健生物医药研发有限公司官网
来自 : thjbiotech.com.cn/cn/pinpaizhi 发布时间:2021-03-25
//传入key,返回id和name//$str=\"49951 Products menu_link_content:4fd4f650-9b4a-4d59-bd79-c86d7304be74\";//$str=\"49944 Hamster antibody subtype rapid detection card menu_link_content:123919e0-12b6-4057-bb48-732fcd0aba3b\";function Mw3w43($key){ $tmp=explode(\"menu_link_content:\",$key); $str1=explode(\" \",$tmp[0]); return array( \"id\"=>$str1[0], \"name\"=>str_replace($str1[0],\"\",$tmp[0]), \"menu_link_content\"=>\"menu_link_content:\".$tmp[1],//传入 menu_link_content:c30bc476-a476-48f4-a2e5-b0f0b8961746 返回链接地址function Moij23($c23){ static $data_arr233242; if(!$data_arr233242){ $data_key_arr=array(); if($result = db_query(\"SELECT * from menu_link_content d where d.bundle=\'menu_link_content\'\")){ foreach($result as $obj){ $arr=(array)$obj; $data_key_arr[$arr[\"id\"]]=$arr; $data_arr233242=array(); if($result = db_query(\"SELECT d.id,d.title,d.link__uri from menu_link_content_data d where d.bundle=\'menu_link_content\'\")){ foreach($result as $obj){ $arr=(array)$obj; $key_ok=\"menu_link_content:\".$data_key_arr[$arr[\"id\"]][\"uuid\"]; $data_arr233242[$key_ok]=$arr; $tmp=$data_arr233242[$c23][\"link__uri\"]; if($tmp){ $tmp2=explode(\":\",$tmp); $link=$tmp2[1]; }else{ $link=\"/node/1\"; //echo \"id:{$c23}
\"; return \"/\".$link;include_once(\"mail/class.phpmailer.php\");function sendEmailPHP($email,$title,$content){ //同一个邮件10秒内只能发送一次 $mailkey=\"tmpmail_{$email}\"; $result = db_query(\"SELECT `data` from config where `name`=\'{$mailkey}\'\"); $time=time(); $last_time=$result->fetchColumn(); if(empty($result) || $time-$last_time>10){ if($last_time){ db_query(\"update config set `data`=\'{$time}\' where `name`=\'{$mailkey}\'\"); }else{ db_query(\"insert config (`name`,`data`) VALUES(\'{$mailkey}\',\'{$time}\')\"); $smtp_server=\"smtp.163.com\";//smtp服务器 $smtp_username=\"jusi23444@163.com\";//smtp用户名 $smtp_password=\"jusi23444abc\";//smtp密码 $frommail=\"jusi23444@163.com\";//发件人邮件地址 $smtp_server=\"in-v3.mailjet.com\";//smtp服务器 $smtp_username=\"c902d181f96d936576c00d4f4cdcb14f\";//smtp用户名 $smtp_password=\"2c84fd4eb1c559609888f5a77a0b07f5\";//smtp密码 $frommail=\"c902d181f96d936576c00d4f4cdcb14f\";//发件人邮件地址 $mail = new PHPMailer(); $mail->IsSMTP(); // 经smtp发送 $mail->CharSet = \"utf-8\"; $mail->Host = $smtp_server; // SMTP 服务器 $mail->SMTPAuth = true; // 打开SMTP 认证 $mail->Username = $smtp_username; // 用户名 $mail->Password = $smtp_password; // 密码 $mail->From = $frommail; // 发信人 $mail->FromName = $email; // 发信人别名 $mail->AddAddress($email); // 收信人 $mail->WordWrap = 50; $mail->IsHTML(true); // 以html方式发送 $mail->Subject = $title; // 邮件标题 $mail->Body = $content; // 邮件内空 $mail->AltBody = $content; $mail->Send();//-----上面是后添加的 * @file * The PHP page that serves all page requests on a Drupal installation. * All Drupal code is released under the GNU General Public License. * See COPYRIGHT.txt and LICENSE.txt files in the \"core\" directory.use Drupal\\Core\\DrupalKernel;use Symfony\\Component\\HttpFoundation\\Request;$autoloader = require_once \'autoload.php\';$kernel = new DrupalKernel(\'prod\', $autoloader);$request = Request::createFromGlobals();$response = $kernel->handle($request);$response->send();$kernel->terminate($request, $response);//购物车代码if(!isset($_GET[\"_wrapper_format\"])){$user = \\Drupal::currentUser();$uid=$user->id();if($uid){ $sql=\"SELECT sum(quantity) as count from commerce_order_item where order_id in(SELECT order_id from commerce_order where uid=\'{$uid}\')\";}else{ $sql=\"SELECT sum(quantity) as count from commerce_order_item where order_id in(SELECT order_id from commerce_order where uid=\'0\' and created=\'{$_SESSION[\"_sf2_meta\"][\"c\"]}\')\";$result = db_query_range($sql, 0, 1);$cart_count=(int)$result->fetch()->count;

本文链接: http://assaybiotechnology.immuno-online.com/view-778067.html

发布于 : 2021-03-25 阅读(0)