예제 #1
0

        <div class="main-content">

            <form action="" method="post">
                <?php 
if (!empty($message)) {
    echo '<div class="form-item">' . $message . '</div>';
}
?>

                <form action="" method="post">

                    <?php 
$uid = intval($_GET['iuid']);
$investor = getInvestorById($uid);
$userverification = getUserData($_SESSION['uid']);
if (!$investor) {
    echo ' <div class="content-titles">Investor does not exist.</div>';
    exit;
}
?>
                    <form action="" method="post" enctype="multipart/form-data">
                        <div class="content-block">
                            <div
                                class="content-title"><?php 
echo $investor['company_name'];
?>
 <?php 
if ($investor['verified'] == True) {
    ?>
예제 #2
0
function applyProject($project_id, $investor_id)
{
    global $db_con;
    $investor = getInvestorById($investor_id);
    $recipient = $db_con->escape($investor['email']);
    $name = getUserNameById($_SESSION['uid']);
    $url = $mail_header = "MIME-Version: 1.0\r\n";
    $mail_header .= "Content-type: text/html; charset=UTF-8\r\n";
    $mail_header .= "From: Rangeen<*****@*****.**>\r\n";
    $mail_header .= "Reply-to: Rangeen<*****@*****.**>\r\n";
    //$recipient = $db_con->escape($data['email']);;
    $subject = 'RangeenRoute: Applied for Project.';
    $message = 'Hello' . 'Mr' . $name . '<br><br>';
    $message .= ' has applied project for funding. ' . ' ' . 'http://rangeenroute.com/project_details.php?pid=' . $project_id;
    $message = '<html><body><p align="left">' . $message . '</p></body></html>';
    //mail($recipient, $subject, $message, $mail_header);
    mail('*****@*****.**', $subject, $message, $mail_header);
    mail('*****@*****.**', $subject, $message, $mail_header);
}