🔓 Ultimate Webshell - Penetration Testing Tool

📖 File Reader

<?php

require(dirname(dirname(__FILE__)) . '/pdf/TCPDF-main/tcpdf.php');

require(dirname(__FILE__) . '/app_common.php');
header('Content-Type: text/html; charset=utf-8'); //网页编码
// .'<p>乙方: <img src="'.$qianming.'" width="70"> </p>'


$rec_id=$_POST['rec_id'];
$user_account=$GLOBALS['db']->getRow("select * from ecs_user_account where id={$rec_id}");
$user_account['amount_money']=$user_account['amount']*(-1);
if($user_account['type']==1){
    $arr['msg']="不是股份提现";
    show($arr,2);
}

$tixian_user=$GLOBALS['db']->getRow("select user_id,user_name,mobile_phone,card,real_name,tongxun_address,zhengquan_card from ecs_users where user_id={$user_account['user_id']}");
$money=$user_account['amount_money'];
$real_name=$tixian_user['real_name'];
$mobile_phone=$tixian_user['mobile_phone'];
$card=$tixian_user['card'];
$tongxun_address=$tixian_user['tongxun_address'];
$zhengquan_card=$tixian_user['zhengquan_card'];
$name = $tixian_user['real_name'];;
$y=date("Y",time()+28800);
$m=date("m",time()+28800);
$d=date("d",time()+28800);
$y_24yue=date("Y",strtotime('+2 years', time()+28800)-86400-28800);
$m_24yue=date("m",strtotime('+2 years', time()+28800)-86400-28800);
$d_24yue=date("d",strtotime('+2 years', time()+28800)-86400-28800);

$hetong2_qianming2 =$_POST['hetong2_qianming2'];//签名图片
if(!$hetong2_qianming2){
    $arr['msg']="没有签名图片";
    show($arr);
}


$data = array(
    'title'         => '股票赠送协议' ,
    'jia'           => '蓝凌玻尿酸生物科技(海南)有限公司' ,
    'name'          => $name ,
    'yi'            => $real_name,
    'card'          => $card ,
    'mobile'        => $mobile_phone ,
    'user_name'     => $zhengquan_card,
    'address'       => $tongxun_address,
    'num'           => $money,
    'k_time'           => $y." 年 ".$m." 月 ".$d." 日 ",
    'j_time'           => $y_24yue." 年 ".$m_24yue." 月 ".$d_24yue." 日 ",
    'jiange'            => "24",
    'nian'              => $y,
    'yue'               => $m,
    'ri'                => $d,
    'nian24'            => $y_24yue,
    'yue24'             => $m_24yue,
    'ri24'              => $d_24yue,
    'thumb'             => $hetong2_qianming2,
);

$cont = hetong($data);
$data['content' ] =  $cont;
$pdf = new pdf();
$info = $pdf->createPDF($rec_id,$data);

print_r("生成成功");
function hetong($data){
    $str[]  = '<p style="text-align:center">
                <span style="font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;"><strong><span style="font-family: 宋体; font-size: 29px;">股票赠送协议</span></strong></span>
            </p>
            <p style="text-align:center">
                <span style="font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;"><strong><span style="font-family: 宋体; font-size: 29px;">&nbsp;</span></strong></span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">订约方:</span>
            </p>
            <p style="line-height:150%">
                <span style="font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;"><span style="font-family: 仿宋_GB2312; font-size: 19px;">(1)&nbsp;</span><span style="font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">甲方:</span><span style="text-decoration: underline; font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">&nbsp;'.$data['jia'].'&nbsp;</span><span style="font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">(赠送人)</span></span>
            </p>
            <p style="line-height:150%">
                <span style="font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;"><span style="font-family: 仿宋_GB2312; font-size: 19px;">(2)&nbsp;</span><span style="font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">乙方:</span><span style="text-decoration: underline; font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">&nbsp;'.$data['yi'].'&nbsp;</span><span style="font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">(受赠人)</span></span>
            </p>
            <p style="margin-right:0;line-height:150%">
                <span style="font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">身份证号码:'.$data['card'].'</span>
            </p>
            <p style="margin-right:0;line-height:150%">
                <span style="font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">手机号码:'.$data['mobile'].'&nbsp;&nbsp;</span>
            </p>
            <p style="margin-right:0;line-height:150%">
                <span style="font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">证券账号:'.$data['user_name'].'</span>
            </p>
            <p style="line-height:150%">
                <span style="font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">通讯地址:'.$data['address'].'</span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">上市公司名称:齐家控股有限公司</span>
            </p>
            <p style="line-height:150%">
                <span style="font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;"><span style="font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">香港交易所号码:</span><span style="text-decoration: underline; font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">HK 08395</span><span style="font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">&nbsp;&nbsp;</span></span>
            </p>
            <p style="line-height:150%">
                <span style="font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;"><span style="font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">赠送股票数量:</span><span style="text-decoration: underline; font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">&nbsp;'.$data['num'].'&nbsp;</span><span style="font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">(“该股票”)</span></span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">甲、乙双方根据香港特别行政区法律的规定,就赠与事项达成协议如下:</span>
            </p>       
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">一、赠送股票</span>
            </p>
            <p style="line-height:150%">
                <span style="font-family:仿宋_GB2312;line-height:150%;font-size:19px;">乙方为甲方的经销商因而获取上述股票的赠送资格,甲方赠送该股票时,<br> 该股票处于限售状态,限售期结束以后正常交易,赠送时不存在任何抵押权、留置权和其它债权。赠送双方认为赠送之事项公平合理,甲、乙双方按上述数量进行履行。</span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">二、赠送股票方式</span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;"><span style="line-height: 150%; font-size: 19px; font-family: 仿宋_GB2312;">甲方将于赠送事项有关的所有文件包括《托管协议》、《股票托管授权信》等齐全后的</span> <span style="line-height: 150%; font-size: 19px; font-family: 仿宋_GB2312;">45 个工作日内完成赠送,乙方则接受赠与,若有客观情况致使赠与迟延,并不视为甲方违约。赠送股票的相关费用,由乙方承担。</span></span>
            </p>       
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">三、甲方享有以下权利</span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">甲方会委托有条件的中介机构完成股票赠送、交易等,产生的相关费用由乙方承担。</span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">四、违约责任</span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">如乙方违反本协议相关约定或其他承诺,乙方需退还本协议下的股票至甲方指定账户,并赔偿甲方因此而产生的费用与所受的损失,包括但不限于律师费、诉讼费等其他费用。</span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">五、管辖法律,司法管辖权和其他事项</span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">凡因本协议所引起的或与之相关的任何争议、纠纷、分歧或索赔,包括协议的存在、效力、解释、履行、违反或终止,或因本协议引起的或与之相关的任何非合同性争议,均应提交由香港国际仲裁中心仲裁,并按照提交仲裁通知时有效的《香港国际仲裁中心机构仲裁规则》最终解决。本仲裁条款适用的法律为香港法,仲裁地为香港,仲裁员人数为一名。</span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">六、风险披露</span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">本协议中所涉及股票价值,可能会因为股价的波动而增加或减少,均属于市场行为,乙方自行承担由此带来的风险。</span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">七、分割性</span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">如果本协议有任何一条或多条规定,根据适用法律在任何方面被裁定为无效、不合法或不可执行,本协议其余规定的有效性、合法性或可执行性不应因此在任何方面受到影响或损害。各方应通过诚意磋商,争取以适用法律许可以及各方期望的最大限度内有效的规定取代那些无效、不合法或不可执行的规定,而该等有效的规定所产生的经济效果应尽可能与那些无效、不合法或不能强制执行的规定所产生的经济效果相似。</span>
            </p> 
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">八、其它规定</span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">本协议一式贰份,具有同等法律效力。本协议经双方签字后生效。</span>
            </p>
            <p style="line-height:150%">
                <span style="font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">(以下无正文)</span>
            </p>
            <p style="line-height:150%">
                <br/>
            </p>
            <p style="line-height:150%">
                <span style=";font-family:仿宋_GB2312;line-height:150%;font-size:19px">甲方:</span><span style=";font-family:仿宋_GB2312;line-height:150%;font-size:19px">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style=";font-family:仿宋_GB2312;line-height:150%;font-size:19px">乙方:</span>
            </p>
            <p style="line-height:150%">
                <span style=";font-family:仿宋_GB2312;line-height:150%;font-size:19px">&nbsp;</span>
            </p>
            <p style="text-indent:28px;line-height:150%">
                <span style=";font-family:仿宋_GB2312;line-height:150%;font-size:19px">(签字、盖章)</span><span style=";font-family:仿宋_GB2312;line-height:150%;font-size:19px">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style=";font-family:仿宋_GB2312;line-height:150%;font-size:19px">(签字、盖章)</span>
            </p>
            <p style="line-height:150%">
                <span style=";font-family:仿宋_GB2312;line-height:150%;font-size:19px">&nbsp;</span>
            </p>
            <p style="line-height:150%">
                <span style=";font-family:仿宋_GB2312;line-height:150%;font-size:19px">日期:'.$data['k_time'].' </span><span style=";font-family:仿宋_GB2312;line-height:150%;font-size:19px">&nbsp;&nbsp;&nbsp;</span><span style=";font-family:仿宋_GB2312;line-height:150%;font-size:19px">日期:'.$data['j_time'].'</span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">&nbsp;</span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">&nbsp;</span>
            </p>';
    $str[]  = '<p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">&nbsp;</span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">&nbsp;</span>
            </p><p style="text-align:center;line-height:150%">
                <span style="font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;"><strong><span style="font-family: 宋体; line-height: 150%; font-size: 29px;">托管协议</span></strong></span>
            </p>
            <p style="line-height:150%">
                <span style="font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">日期:'.$data['k_time'].' 
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">订约方:</span>
            </p>
            <p style="line-height:150%">
                <span style="font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;"><span style="font-family: 仿宋_GB2312; font-size: 19px;">I.&nbsp;</span><span style="line-height: 150%; font-size: 19px; font-family: 仿宋_GB2312;">甲方(委托方):'.$data['jia'].'</span></span>
            </p>
            <p style="margin-right:0;line-height:150%">
                <span style="font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">身份证号码:'.$data['card'].'</span>
            </p>
            <p style="margin-right:0;line-height:150%">
                <span style="font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">手机号码:'.$data['mobile'].'&nbsp;&nbsp;</span>
            </p>
            <p style="margin-right:0;line-height:150%">
                <span style="font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">证券账号:'.$data['user_name'].'</span>
            </p>
            <p style="line-height:150%">
                <span style="font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">通讯地址:'.$data['address'].'</span>
            </p>
            <p style="line-height:150%">
                <span style="font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">乙方(托管人):</span>盈富国际证券有限公司</span></span>
            </p>
            <p style="line-height:150%">
                <span style="font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">甲方因为其与第三方的《股票赠送协议》的有关约定,委托乙方<br>作为托管人,双方就有关事宜达成协议如下:</span>
            </p>
            
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">一、托管服务及处理限制</span>
            </p>   
            <p style="line-height:150%">
                <span style="font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">
                    <span style="font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">
                        (1)甲方不可撤销地委托乙方为甲方证券账户内</span>
                    <span style="text-decoration: underline; font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;margin-left:100px">'.$data['num'].'</span>股(数量)的
                    <span style="font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">(代码:08395)的证券(「受限证券」)的托管人,并不可撤销地同意乙方对受限证券进行托管(「托管服务」),且不可撤销地同意乙方对受限证券的交易、提取和转让进行限制(「处理限制」)。限制期限为</span>
                    <span style="text-decoration: underline; font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">'.$data['jiange'].'</span>
                    <span style="font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">个月,自</span>
                    <span style="text-decoration: underline; font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">'.$data['nian'].'</span>
                    <span style="font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">年</span>
                    <span style="text-decoration: underline; font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">'.$data['yue'].'</span>
                    <span style="font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">月</span>
                    <span style="text-decoration: underline; font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">'.$data['ri'].'</span>
                    <span style="font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">日开始,至</span>
                    <span style="text-decoration: underline; font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">'.$data['nian24'].'</span>
                    <span style="font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">年</span>
                    <span style="text-decoration: underline; font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">'.$data['yue24'].'</span>
                    <span style="font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">月</span>
                    <span style="text-decoration: underline; font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">'.$data['ri24'].'</span>
                    <span style="font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">日截止(「限制期」)。为免生疑问</span>
                    <span style="font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">,甲方亦不可转让本协议下的权利和责任予本协议的第三方。</span>
                </span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">(2)甲方声明、承诺并同意:在限制期的任何时候,甲方都不会对乙方下达任何有关处理受限证券的任何指示(包括但不限于对受限证券的交易、提取和转让)。</span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">(3)甲方知悉及同意有关处理限制是按甲方与第三方签订的《股票赠送协议》而订定。甲方不可撤销地同意会为本协议下所订定的服务及安排向乙方付费。</span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">(4)如果甲方对乙方下达任何上述受限指示,甲方不可撤销地同意:</span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">A.乙方无需执行相关指示、而甲方不可向乙方要求赔偿或寻求任何济助。</span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">B.乙方可向甲方提示甲方相关协议的履约责任。</span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">(5)在限制期的初始日当天,甲方须要向乙方一次性支付就受限证券的总市值(以交割市价为准)之2.5 %作为托管费。</span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">(6)甲方知悉及同意须向乙方支付所有基於处理限制而衍生之任何证券买卖或其他服务相关费用。其费用由不时更新的收费准则订定。相关一切费用,乙方可直接於甲方账户内扣除。</span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">(7)在限制期结束后,乙方就本协议对甲方的责任亦随即终止。</span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">(8)甲方须向乙方一次性支付 3 ‰ 的印花税。</span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">二、乙方免于承担赔偿责任</span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;"><span style="line-height: 150%; font-size: 19px; font-family: 仿宋_GB2312;">倘乙方因本协议下的任何服务或条款招致或蒙受任何实际或指称的债务、申索、索求、损失、索偿、税项、费用、收费和各种开支(包括但不限于法律费用,亦不论该些责任或指称是否因为甲方违反本协议下或其他协议而招致)</span> <span style="line-height: 150%; font-size: 19px; font-family: 仿宋_GB2312;">,由此所产生的所有法律风险、后果及全部损失由甲方自行承担。</span></span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">三、适用法律及仲裁条款</span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">(1)本协议适用的法律为香港法。</span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">(2)凡因本协议所引起的或与之相关的任何争议、纠纷、分歧或索赔,包括协议的存在、效力、解释、履行、违反或终止,或因本协议引起的或与之相关的任何非合同性争议,均应提交由香港国际仲裁中心管理仲裁,并按照提交仲裁通知时有效的《香港国际仲裁中心机构仲裁规则》最终解决。本仲裁条款适用的法律为香港法,仲裁地为香港,仲裁员人数为一名。</span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">四、分割性</span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">如果本协议有任何一条或多条规定根据适用法律在任何方面被裁定为无效、不合法或不可执行,本协议其余规定的有效性、合法性或可执行性不应因此在任何方面受到影响或损害。各方应通过诚意磋商,争取以适用法律许可以及各方期望的最大限度内有效的规定取代那些无效、不合法或不可执行的规定,而该等有效的规定所产生的效果应尽可能与那些无效、不合法或不能强制执行的规定所产生的效果相似。</span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">五、风险披露</span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">本协议乃因《股票赠送协议》而订定。倘若甲方提前转出或卖出股票,可能会引致本協議及其他協議违约,由此造成的全部损失及其他法律责任均由甲方承担。另外,本协议中所涉及股票价值,可能会因为股价的波动而增加或减少,均属于市场行为,甲方自行承担由此带来的风险。</span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">六、其他</span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">(1)本协议一式一份,具有同等法律效力,本协议经双方签字后生效。</span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">(2)本协议未尽事宜,甲乙双方可另行协商解决,并以书面协议书的形式订立补充协议。</span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">(3)甲方同意,乙方可以将有关甲方履行协议的情况通知第三方。</span>
            </p>
            <p style="line-height:150%">
                <span style="line-height: 150%; font-size: 19px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">(4)双方可按照本协议中的通讯地址或电邮地址发送通知,如有变更应及时书面通知对方,如果发生收件人拒绝签收或其他无法送达的情形,双方同意从发出通知之日起视为送达。</span>
            </p>
            
            
            
            <p style="line-height:150%">
                <br/>
            </p>
            <p style="line-height:150%">
                <span style=";font-family:仿宋_GB2312;line-height:150%;font-size:19px">甲方:</span><span style=";font-family:仿宋_GB2312;line-height:150%;font-size:19px">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style=";font-family:仿宋_GB2312;line-height:150%;font-size:19px">乙方:</span>
            </p>
            <p style="line-height:150%">
                <span style=";font-family:仿宋_GB2312;line-height:150%;font-size:19px">&nbsp;</span>
            </p>
            <p style="text-indent:28px;line-height:150%">
                <span style=";font-family:仿宋_GB2312;line-height:150%;font-size:19px">(签字、盖章)</span><span style=";font-family:仿宋_GB2312;line-height:150%;font-size:19px">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style=";font-family:仿宋_GB2312;line-height:150%;font-size:19px">(签字、盖章)</span>
            </p>
            <p style="line-height:150%">
                <span style=";font-family:仿宋_GB2312;line-height:150%;font-size:19px">&nbsp;</span>
            </p>
            
            <p style="line-height:150%">
                <span style=";font-family:仿宋_GB2312;line-height:150%;font-size:19px">&nbsp;</span>
            </p>
            ';



    $str[]  = ' 
            <p style="line-height:150%">
                <span style=";font-family:仿宋_GB2312;line-height:150%;font-size:19px">&nbsp;</span>
            </p>
            
            <p style="line-height:150%">
                <span style=";font-family:仿宋_GB2312;line-height:150%;font-size:19px">&nbsp;</span>
            </p>
            
            <p style="line-height:150%">
                <span style=";font-family:仿宋_GB2312;line-height:150%;font-size:19px">&nbsp;</span>
            </p>
            
            <p style="line-height:150%">
                <span style=";font-family:仿宋_GB2312;line-height:150%;font-size:19px">&nbsp;</span>
            </p>
            
            <p style="line-height:150%">
                <span style=";font-family:仿宋_GB2312;line-height:150%;font-size:19px">&nbsp;</span>
            </p>
            
            <p style="line-height:150%">
                <span style=";font-family:仿宋_GB2312;line-height:150%;font-size:19px">&nbsp;</span>
            </p>
            
            <p style="line-height:150%">
                <span style=";font-family:仿宋_GB2312;line-height:150%;font-size:19px">&nbsp;</span>
            </p><p style="margin: 0 0 0 27px;line-height: 111%">
                <span style="font-family: &quot;Microsoft JhengHei UI&quot;; line-height: 111%; font-size: 19px;">證券有限公司股票託管授權信</span>
            </p>
            <p style="line-height:150%">
                <span style="font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">
                    <span style="font-family: 仿宋_GB2312; font-size: 19px;">
                        <span style="font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">本⼈:</span>
                        <span style="text-decoration: underline; font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">'.$data['name'].'</span>,
                        <span style="font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">身份證號:</span>
                        <span style="text-decoration: underline; font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">'.$data['card'].'</span>。
                        <br>
                        <span style="font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">證券賬⼾號碼:</span>
                        <span style="text-decoration: underline; font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">'.$data['user_name'].'</span>。
                        <br>
                        <span style="font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">手機號碼:</span>
                        <span style="text-decoration: underline; font-family: 仿宋_GB2312; line-height: 150%; font-size: 19px;">'.$data['mobile'].'</span>。
                    </span>
            </p>
            <p style="margin-top: 0;margin-right: 0;margin-left: 8px;text-indent: 0;line-height: 111%">
                <span style="font-family: &quot;Microsoft JhengHei UI&quot;; line-height: 111%; font-size: 16px;"><span style="font-family: &quot;Microsoft JhengHei UI&quot;;">兹委托盈富国际證券有限公司托管本⼈之帳户。</span></span>
            </p>
            <p style="margin-top: 0;margin-right: 0;margin-left: 8px;text-indent: 0;line-height: 111%">
                
                    <span style="font-family: &quot;Microsoft JhengHei UI&quot;; line-height: 111%; font-size: 16px;">配售股票本⼈⾃願鎖倉</span>
                    <span style="font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; text-decoration: underline;">'.$data['jiange'].'</span>
               
                <span style="font-family: &quot;Microsoft JhengHei UI&quot;; line-height: 111%; font-size: 16px;">個⽉,⾃股票交割之⽇起⾄</span>
                <span style="font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; text-decoration: underline;">'.$data['j_time'].' </span>
                <span style="font-family: &quot;Microsoft JhengHei UI&quot;; line-height: 111%; font-size: 16px;">到期。</span></span>
            </p>
            <table cellspacing="0">
                <tbody>
                    <tr style="height:32px" class="firstRow">
                        <td width="238" valign="top" style="padding: 0px; border-left-width: 1px; border-color: rgb(127, 127, 127);">
                            <p style="margin-top:3px;margin-right:88px;margin-bottom:0;margin-left:89px;text-autospace:none;text-align:center;line-height:111%">
                                <span style="font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;"><strong><span style="font-family: &quot;Microsoft JhengHei UI&quot;; font-size: 15px;">股票名稱</span></strong></span>
                            </p>
                        </td>
                        <td width="90" valign="top" style="padding: 0px; border-width: 1px; border-color: rgb(127, 127, 127);">
                            <p style="margin-top:3px;margin-right:13px;margin-bottom:0;margin-left:14px;text-autospace:none;text-align:center;line-height:111%">
                                <span style="font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;"><strong><span style="font-family: &quot;Microsoft JhengHei UI&quot;; font-size: 15px;">股票代碼</span></strong></span>
                            </p>
                        </td>
                        <td width="105" valign="top" style="padding: 0px; border-width: 1px; border-color: rgb(127, 127, 127);">
                            <p style="margin: 3px 0 0 23px;line-height: 111%">
                                <span style="font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;"><strong><span style="font-family: &quot;Microsoft JhengHei UI&quot;; font-size: 15px;">股票數量</span></strong></span>
                            </p>
                        </td>
                        <td width="119" valign="top" style="padding: 0px; border-width: 1px; border-color: rgb(127, 127, 127);">
                            <p style="margin-top:3px;margin-right:21px;margin-bottom:0;margin-left:22px;text-autospace:none;text-align:center;line-height:111%">
                                <span style="font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;"><strong><span style="font-family: &quot;Microsoft JhengHei UI&quot;; font-size: 15px;">股票總價值</span></strong></span>
                            </p>
                        </td>
                    </tr>
                    <tr style="height:32px">
                        <td width="238" valign="center" style="padding: 0px; border-left-width: 1px; border-left-color: rgb(127, 127, 127); border-right-width: 1px; border-right-color: rgb(127, 127, 127); border-top: none; border-bottom-width: 1px; border-bottom-color: rgb(127, 127, 127);">
                            <p style="margin-top:3px;margin-right:88px;margin-bottom:0;margin-left:89px;text-autospace:none;text-align:center;line-height:111%">
                                <span style="font-size: 15px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">齐家控股</span>
                            </p>
                        </td>
                        <td width="90" valign="center" style="padding: 0px; border-left-width: 1px; border-left-color: rgb(127, 127, 127); border-right-width: 1px; border-right-color: rgb(127, 127, 127); border-top: none; border-bottom-width: 1px; border-bottom-color: rgb(127, 127, 127);">
                            <p style="margin-top:6px;margin-right:13px;margin-bottom:0;margin-left:14px;text-autospace:none;text-align:center;line-height:111%">
                                <span style="font-size: 15px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">08395</span>
                            </p>
                        </td>
                        <td width="105" valign="center" style="padding: 0px; border-left-width: 1px; border-left-color: rgb(127, 127, 127); border-right-width: 1px; border-right-color: rgb(127, 127, 127); border-top: none; border-bottom-width: 1px; border-bottom-color: rgb(127, 127, 127);">
                            <p style="margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;text-autospace:none;text-align:center;line-height:111%">
                                <span style="font-size: 15px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">'.$data['num'].'</span>
                            </p>
                        </td>
                        <td width="119" valign="top" style="padding: 0px; border-left-width: 1px; border-left-color: rgb(127, 127, 127); border-right-width: 1px; border-right-color: rgb(127, 127, 127); border-top: none; border-bottom-width: 1px; border-bottom-color: rgb(127, 127, 127);">
                            <p style="margin-top:6px;margin-right:17px;margin-bottom:0;margin-left:22px;text-autospace:none;text-align:center;line-height:111%">
                                <span style="font-size: 15px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">HKD</span>
                            </p>
                        </td>
                    </tr>
                </tbody>
            </table>
            <p style="margin: 0 7px 0 8px;line-height: 111%">
                <span style="font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;"><span style="font-family: &quot;Microsoft JhengHei UI&quot;; letter-spacing: 0px; font-size: 15px;">本⼈授權貴公司根據上述指示⾏事,所有責任由本⼈承擔,與貴公司無關,以免貴司⾯臨、蒙受、涉及或因同意上述指示⽽直接或間接招致任何法律⾏動、訴訟、索償、虧損、損失及開⽀。如後期需要辦理證券轉託管⼿續,也由貴公司代為承辦 多謝貴公司之合作。
                </span>
            </p>
            
            <p style="margin: 0 0 0 8px;line-height: 111%">
                <span style="font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">
                    <span style="font-family: &quot;Microsoft JhengHei UI&quot;; font-size: 15px;height:50px;line-height:50px">簽署</span>
                </span>
            </p>
            
            <p style="margin: 0 0 0 8px;line-height: 111%">
                <span style="font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">
                    <span style="font-family: &quot;Microsoft JhengHei UI&quot;; font-size: 15px;">⽇期:</span>
                    <span style="font-family: 宋体; font-size: 15px;"><span style="font-family: &quot;Microsoft JhengHei UI&quot;;">
                        '.$data['k_time'].'
                    </span>
                </span>
            </p>';
    return $str;
}



class pdf {

    # 常量设置
    const PDF_LOGO       = '\Logo\logo_big.png';                    // LOGO路径 该路径是tcpdf下
    const PDF_LOGO_WIDTH = '20';                                    // LOGO宽度
    const PDF_TITLE      = 'www.liuweime.me';                       //
    const PDF_HEAD       = '上电脑课';
    const PDF_FONT       = 'stsongstdlight';
    const PDF_FONT_STYLE = '';
    const PDF_FONT_SIZE  = 10;
    const PDF_FONT_MONOSPACED = 'courier';
    const PDF_IMAGE_SCALE='1.25';


    # tcpdf对象存储
    protected $pdf = null;

    /**
     * 构造函数 引入插件并实例化
     */
    public function __construct() {
        # 实例化该插件
        $this->pdf = new TCPDF();
    }

    /**
     * 设置文档信息
     * @param  $user        string  文档作者
     * @param  $title       string  文档标题
     * @param  $subject     string  文档主题
     * @param  $keywords    string  文档关键字
     * @return null
     */
    protected function setDocumentInfo($title = '') {
        if(empty($user) || empty($title)) return false;
        # 文档创建者名称
        $this->pdf->SetCreator(APP_NAME);
        # 作者
        $this->pdf->SetAuthor($title);
        # 文档标题
        $this->pdf->SetTitle($title);
        # 文档主题
        if(!empty($title)) $this->pdf->SetSubject($title);
        # 文档关键字
        if(!empty($title)) $this->pdf->SetKeywords($title);

    }

    /**
     * 设置文档的页眉页脚信息
     * @param  null
     * @return null
     */
    protected function setHeaderFooter() {
        # 设置页眉信息
        # 格式 logo地址 logo宽度 页眉标题 页眉说明文字 页眉字体颜色 页眉下划线颜色
        $this->pdf->SetHeaderData(self::PDF_LOGO , self::PDF_LOGO_WIDTH , self::PDF_TITLE , self::PDF_HEAD , array(35 , 35 , 35) , array(221,221,221));
        # 设置页脚信息
        # 格式 页脚字体颜色 页脚下划线颜色
        $this->pdf->setFooterData(array(35 , 35 , 35) , array(221,221,221));

        # 设置页眉页脚字体
        $this->pdf->setHeaderFont(array('stsongstdlight' , self::PDF_FONT_STYLE , self::PDF_FONT_SIZE));
        $this->pdf->setFooterFont(array('helvetica' , self::PDF_FONT_STYLE , self::PDF_FONT_SIZE));
    }

    /**
     * 关闭页眉页脚
     * @param  null
     * @return null
     */
    protected function closeHeaderFooter() {
        # 关闭页头
        $this->pdf->setPrintHeader(false);
        # 关闭页脚
        $this->pdf->setPrintFooter(false);
    }

    /**
     * 设置间距 包括正文间距 页眉页脚间距
     * @param  null
     * @return null
     */
    protected function setMargin() {
        # 设置默认的等宽字体
        $this->pdf->SetDefaultMonospacedFont('courier');
        # 正文左侧 上侧 右侧间距
        $this->pdf->SetMargins(15, 7, 15);
        # 页眉间距
        $this->pdf->SetHeaderMargin(5);
        # 页脚间距
        $this->pdf->SetFooterMargin(10);
    }

    /**
     * 正文设置 包括 分页 图片比例 正文字体
     * @param  null
     * @return null
     */
    protected function setMainBody() {

        # 开启分页 true开启 false关闭 开启分页时参数2起作用 表示正文距底部的间距
        $this->pdf->SetAutoPageBreak(true , 25);
        # 设置图片比例
        $this->pdf->setImageScale(self::PDF_IMAGE_SCALE);
        #
        $this->pdf->setFontSubsetting(true);
        # 设置正文字体 stsongstdlight是Adobe Reader默认字体
        $this->pdf->SetFont('stsongstdlight', '', 14);
        # 添加页面 该方法如果前面已有页面 会在将页脚添加到页面中 并自动添加下一页 否则添加新一页
        $this->pdf->AddPage();
    }

    /**
     * 生成pdf
     * @param  $info    array
     *   array(
     *          'user'=>'文档作者' ,
     *          'title'=>'文档标题' ,
     *          'subject'=>'文档主题' ,
     *          'keywords'=>'文档关键字' ,
     *          'content'=>'文档正文内容' ,
     *          'HT'=>'是否开启页眉页脚' ,
     *          'path'=>'文档保存路径');
     * @return null
     */
    public function createPDF($rec_id,$info = array()) {
        if(empty($info) || !is_array($info)) return false;

        $this->setDocumentInfo('股票赠送协议');
        $this->closeHeaderFooter();
        $this->setMargin();
        $this->setMainBody();
        $thumb = $info['thumb'];
        foreach ($info['content'] as $key => $v){
            # 写入内容
            $this->pdf->writeHTML($v, true, false, true, false, '');
            if($key == 0){
                $this->pdf->Image("https://csdns.oss-cn-beijing.aliyuncs.com/23a5f6a28f00e4e627fdf9e254fd17f.png",30,165, 50, 50);
                $this->pdf->Image($thumb,130,155, 30, 30);
            }
            if($key == 1){
                $this->pdf->Image("https://csdns.oss-cn-beijing.aliyuncs.com/23a5f6a28f00e4e627fdf9e254fd17f.png",35,135, 50, 50);
                $this->pdf->Image($thumb,130,115, 50, 50);
            }
            if($key == 2){
                $this->pdf->Image($thumb,35,185, 30, 30);
            }

        }
        # 输出  I输出到浏览器 F输出到指定路径
        // $this->pdf->Output($info['path'] , 'I');
        $this->pdf->Output(dirname(dirname(__FILE__)) . '/pdf/' . $rec_id . '.pdf','F');
        $url="/pdf/{$rec_id}.pdf";
        $GLOBALS['db']->query("update ecs_user_account set pdf='{$url}' where id={$rec_id}");
    }
}