Example #1
0
    $sql_meal = "SELECT * FROM crm_users WHERE users_id = '{$getmsg}'";
    $res_meal = $db->select_data($sql_meal);
    $rece_name = $res_meal[0]['first_name'];
    $rece_lname = $res_meal[0]['last_name'];
    ?>
                                        <li><!-- start message -->
                                            <a href="#">
                                                <div class="pull-left">
                                                    <img src="img/avatar3.png" class="img-circle" alt="User Image"/>
                                                </div>
                                                <h4>
                                                    <?php 
    echo ucfirst($rece_name) . " " . ucfirst($rece_lname);
    ?>
                                                    <small><i class="fa fa-clock-o"></i> <?php 
    echo timeAgo1($mytim);
    ?>
</small>
                                                </h4>
                                                <p><?php 
    echo $su;
    ?>
</p>
                                            </a>
                                        </li><!-- end message --> 
										<?php 
}
?>
		
                                    </ul>
                                </li>
Example #2
0
                        </div>
                        <div class="col-md-12">	
					<!-- The time line -->
                             <ul class="timeline">
                               <?php 
$sql_posts_view = "SELECT * FROM `posts` WHERE users_id = '{$oid}' AND client_id = '{$did}' ORDER BY `pid` DESC LIMIT 5";
$res_posts_view = $db->select_data($sql_posts_view);
$sql_us = "SELECT * FROM crm_users WHERE users_id = '{$oid}'";
$res_us = $db->select_data($sql_us);
$fnames = stripslashes($res_us[0]['first_name']);
$lnames = stripslashes($res_us[0]['last_name']);
$fulln = ucfirst($fnames) . " " . ucfirst($lnames);
if (count($res_posts_view) > 0) {
    for ($p = 0; $p < count($res_posts_view); $p++) {
        $post_id = $res_posts_view[$p]['pid'];
        $postdate = timeAgo1($res_posts_view[$p]['date']);
        $postbody = $res_posts_view[$p]['desc'];
        $vidurl = $res_posts_view[$p]['vid_url'];
        $image_url = $res_posts_view[$p]['image_url'];
        $php_timestamp_date = date("d F Y", $res_posts_view[$p]['date']);
        ?>
								
                                <li class="time-label">
                                    <span class="bg-red">
                                       <?php 
        echo $php_timestamp_date;
        ?>
                                    </span>
                                </li>
                                <li>
                                    <i class="fa fa-user bg-aqua"></i>
Example #3
0
        echo $id;
        ?>
"><?php 
        if ($recei != "0") {
            echo $res_recivfull;
        } else {
            echo $guestemail;
        }
        ?>
</a></td>
                                                        <td class="subject"><a href="#"><?php 
        echo $subject;
        ?>
</a></td>
                                                        <td class="time"><?php 
        echo timeAgo1($agodatetime);
        ?>
</td>
                                                    </tr>
													<!-- Email MODAL -->
															<div class="modal fade" id="show-modal-<?php 
        echo $id;
        ?>
" tabindex="-1" role="dialog" aria-hidden="true">
																<div class="modal-dialog">
																	<div class="modal-content">
																		<div class="modal-header">
																			<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
																			<h4 class="modal-title"><i class="fa fa-envelope-o"></i> Sent Email Details </h4>
																		</div>
																		<form name="modalform" id="modalform">
Example #4
0
        $cl_sql = "SELECT * FROM import_contact WHERE con_id = '{$cli_id}'";
        $cl_res = $db->select_data($cl_sql);
        $cl_fn = stripslashes($cl_res[0]['firstname']);
        $cl_ln = stripslashes($cl_res[0]['lastname']);
        $cl_full = ucfirst($cl_fn) . " " . ucfirst($cl_ln);
        $desc_post = stripslashes($res_chat[$c]['desc']);
        $timeag = stripslashes($res_chat[$c]['date']);
        $image_url = $res_chat[$c]['image_url'];
        $vid_url = $res_chat[$c]['vid_url'];
        ?>
                                    <div class="item">
                                        <img src="img/avatar.png" alt="user image" class="online"/>
                                        <p class="message">
                                            <a href="#" class="name">
                                                <small class="text-muted pull-right"><i class="fa fa-clock-o"></i> <?php 
        echo timeAgo1($timeag);
        ?>
</small>
                                                <?php 
        echo $cl_full;
        ?>
                                            </a>
                                            <?php 
        echo $desc_post;
        ?>
                                        </p>										
										<?php 
        if (!empty($image_url)) {
            ?>
                                        <div class="attachment">
                                            <h4>Attachments:</h4>