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

PHP getHTMLTagContent函数代码示例

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

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



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

示例1: isset

$converter = isset($converter) ? $converter : $got_converter;
$selected = $converter != '';
$show_coords_conv = isset($show_coords_conv) ? $show_coords_conv : false;
$got_geodesic = isset($_GET['g']) ? $_GET['g'] : '';
$geodesic = isset($geodesic) ? $geodesic : $got_geodesic;
$geodesic = urldecode(stripslashes($geodesic));
$readonly = isset($_GET['readonly']) ? $_GET['readonly'] == 'true' ? 'true' : 'false' : 'false';
$conv_iso = isset($_GET['i']) ? $_GET['i'] : '';
if (!$parted) {
    include "../conf/config.php";
    include "../func/function.php";
    include "declaration.php";
    echo getDoctype(false) . "\n";
    ?>
<html <?php 
    echo getHTMLTagContent();
    ?>
>
  <head>
    <script type="text/javascript" charset="UTF-8" src="<?php 
    echo getScriptJS(__FILE__);
    ?>
"></script>
<?php 
    include "application_" . $_SESSION['language'] . ".php";
    include "mailfunctions_" . $_SESSION['language'] . ".php";
    ?>
    <?php 
    echo getMetaTags();
    ?>
    <title><?php 
开发者ID:GrottoCenter,项目名称:GrottoCenter,代码行数:31,代码来源:converter.php


示例2: sendMail2

function sendMail2($mail_dest, $subject, $mail_body, $from_email = "", $add_cc_email = "", $send_a_copy = true)
{
    $mail_subject = "[" . $_SESSION['Application_name'] . "]" . " " . $subject;
    if ($from_email == "") {
        $from_email = $_SESSION['Application_mail'];
    }
    $reply_email = $from_email;
    $header_date = date("D, j M Y H:i:s");
    //-0600"); // avec offset horaire
    //HTML Content
    $css = 'body
          {
            font-family: arial, sans-serif;
            font-size: 9pt;
            background-color: white; 
            color: black;
          }
          
          a
          {
            text-decoration: none;
            color: #34558A;
            border-bottom: dotted 1px #458EFF;
          }
          
          a:hover
          {
            color: #FFA713;
            border-bottom: dotted 1px #FFA713;
          }';
    //$html_mail_body = '<html '.getHTMLTagContent().'><head><style type="text/css">'.$css.'</style><title>'.$subject.'</title></head><body>'.$mail_body.'</body></html>';
    $mail_body = "TEST";
    $html_mail_body = '<html ' . getHTMLTagContent() . '><head><title>' . $subject . '</title></head><body>' . $mail_body . '</body></html>';
    //TXT Content
    $txt_mail_body = HTML2TxtMail($html_mail_body);
    $pipe = '-----=' . md5(uniqid(mt_rand()));
    $mail_header = 'From: ' . $from_email . "\n";
    if ($add_cc_email != "") {
        $mail_header .= 'Cc: ' . $add_cc_email . "\n";
    }
    if ($send_a_copy) {
        $mail_header .= 'Bcc: ' . $_SESSION['Application_mail'] . "\n";
    }
    $mail_header .= 'Reply-To: ' . $reply_email . "\n";
    $mail_header .= 'Return-Path: ' . $reply_email . "\n";
    $mail_header .= 'MIME-Version: 1.0' . "\n";
    $mail_header .= 'Content-Type: multipart/alternative; boundary="' . $pipe . '"';
    $mail_header .= 'X-Mailer: PHP/' . phpversion() . "\n";
    $mail_header .= 'Date: ' . $header_date;
    //-----------------------------------------------
    // TXT
    //-----------------------------------------------
    $mail_body = 'This is a multi-part message in MIME format.' . "\n\n";
    $mail_body .= '--' . $pipe . '--' . "\n";
    $mail_body .= 'Content-Type: text/plain; charset="UTF-8"' . "\n";
    $mail_body .= 'Content-Transfer-Encoding: 8bit' . "\n\n";
    $mail_body .= $txt_mail_body . "\n\n";
    //-----------------------------------------------
    // HTML
    //-----------------------------------------------
    $mail_body .= '--' . $pipe . '--' . "\n";
    $mail_body .= 'Content-Type: text/html; charset="UTF-8"' . "\n";
    $mail_body .= 'Content-Transfer-Encoding: 8bit' . "\n\n";
    $mail_body .= $html_mail_body . "\n\n";
    $mail_body .= '--' . $pipe . '--' . "\n";
    return mail($mail_dest, $mail_subject, $mail_body, $mail_header);
}
开发者ID:GrottoCenter,项目名称:GrottoCenter,代码行数:67,代码来源:function.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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