</div>
				<div class="attorney_row">
					<div class="attorney_left">
						<label>Firm Contact Person</label>
						<input type="text" name="frm_contact" id="frm_contact" value="<?php 
    echo ucwords($get_att_information->first_name) . " " . ucwords($get_att_information->last_name);
    ?>
"/>
						<span class="error"></span>
						
					</div>
					<div class="attorney_right">
						<label>Position</label>
						<input type="text" name="position" id="position" value="<?php 
    $desid = $get_att_information->designation;
    echo $meshednew->GetDesgBydesId($desid);
    ?>
"/>
						<span class="error"></span>
						
					</div>
				</div>
				<div class="attorney_row">
					<div class="attorney_left">
						<label>Contact E-mail</label>
						<input type="text" name="contct_email" value="<?php 
    echo $get_att_information->email_id;
    ?>
" id="contct_email"/>
						<span class="error"></span>
						
$admin = $_SESSION['username'];
$admin_id = $getdata->GetDetailsByUsername($admin, "id");
if (isset($_REQUEST['message']) && $_REQUEST['message'] != '') {
    $insert_mes = mysql_query("INSERT INTO `message_sent` (`form_id`,`user_id`,`sent_by`,`main_user_id`,`message`,`date_message`) VALUES ('{$_REQUEST['fid']}','{$_REQUEST['uid']}','{$admin_id}','{$_REQUEST['sent_ids']}','{$_REQUEST['message']}',now())") or die(mysql_error());
}
if (isset($_REQUEST['message_reply_r']) && $_REQUEST['message_reply_r'] != '') {
    $sendmessage = mysql_query("INSERT INTO `message_reply`(`message_sent_id`,`form_id`,`user_id`,`main_user_id`,`reply_by`,`sent_by`,`message_reply`,`date_reply`) VALUES ('{$_REQUEST['message_id_r']}','{$_REQUEST['fid']}','{$_REQUEST['uid']}','{$_REQUEST['main_user_r']}','{$admin_id}','{$_REQUEST['sent_by_r']}','{$_REQUEST['message_reply_r']}',now())") or die(mysql_error());
}
$temp_message = mysql_query("SELECT * FROM `message_sent` WHERE `user_id`='{$_REQUEST['uid']}' &&`form_id`='{$_REQUEST['fid']}' order by message_id desc") or die(mysql_error());
$message = mysql_fetch_object($temp_message);
?>
				<div>
				  <div id="news_list">
					  <div class="rep_middle">
					  <div class="rep_tit"><a>
					  <?php 
echo "<b>" . ($fname = $getdata->GetObjectById($message->sent_by, "first_name") . "</b>");
echo "<b>" . ($lname = $getdata->GetObjectById($message->sent_by, "last_name") . "</b><br/>");
$desg = $getdata->GetObjectById($message->sent_by, "designation");
echo "<b>" . ($desgna = $getdata->GetDesgBydesId($desg) . "</b><br/>");
?>
						</a></div>
                       <div class="rep_rep_tit"><?php 
$a_mess = $message->date_message;
echo date('Y-M-d', strtotime($a_mess)) . "<br/>";
echo date('h:i:s a', strtotime($a_mess));
?>
                            </div>
					  <div class="rep">
						<?php 
echo $tempmessages = $message->message;
Exemple #3
0
		</div>
		<div class="tabbertab">
			<h2>Final Billing</h2>
			<?php 
				//include('../includes/final-billing-document.php'); 
				//include('../includes/pdf-generator/final-billing.php'); 	
				include('../includes/tcpdf/examples/final-billing.php');
				
				$pdfdata = mysql_query("SELECT * FROM `final_billing` WHERE `user_id`='$_REQUEST[uid]' && `form_id`='$_REQUEST[fid]'") or die(mysql_error());
				if(mysql_num_rows($pdfdata))
				{
					while($fbilling=mysql_fetch_object($pdfdata))
					{
						$hire_di        = $fbilling->hire_id;	
						$designation	= $getdata->GetObjectById($hire_di,"designation");
						$designations   = $getdata->GetDesgBydesId($designation);
						$dfirst_name	= ucwords($getdata->GetObjectById($hire_di,"first_name"));
						$last_name		= ucwords($getdata->GetObjectById($hire_di,"first_name"));
			?>
						<div class="pdf_down">
							<a href="<?php echo $sitepath;?>/billing/<?=$fbilling->pdf_name?>" target="_blank">Final Billing PDF</a>
							<div class="genrated_date">
								<b>
									<?=$designations?>: &nbsp;<?=$dfirst_name?>&nbsp;<?=$last_name?>
								</b>&nbsp;
								<br/>
								Generated On:&nbsp;<?=date('d-M-y',strtotime($fbilling->date_time))?>
							</div>
						</div>
			<?php
					}
$page -= 1;
$per_page = 15;
$previous_btn = true;
$next_btn = true;
$first_btn = true;
$last_btn = true;
$start = $page * $per_page;
$query =mysql_query("select a.*,b.*,d.* from plantiff_information a inner join plantiff_case_type_info b on a.form_id=b.form_id and a.id=b.id inner join members d on a.id=d.id and b.id=d.id where b.admin_approved=0 and b.case_closed=0 ORDER BY a.`form_id` DESC LIMIT $start, $per_page") or die(mysql_error());
$i=1;
while ($row = mysql_fetch_array($query)) {
?>
<form name="verify" method="post" action="">
<div class="log_row">

	<div class="serial_no_15"><?php  echo $i; ?>&nbsp;</div>
	<div class="user_name_15"><?php $att_id = $row['attorney_id']; $designation = $getdata->GetObjectById($att_id,"designation"); echo $getdata->GetDesgBydesId($designation); ?>&nbsp;(<?php echo ucwords($getdata->GetObjectById($att_id,"first_name"))."&nbsp".ucwords($getdata->GetObjectById($att_id,"last_name")); ?>)
	<input type="hidden" name="user_id" id="user_id" value="<?php echo $row['id']; ?>">&nbsp;</div>
	<div class="first_name_15"><?php  echo ucwords($row['plantiff_name']);?>&nbsp;</div>
	<div class="email_address_15"><?php $date_birth = $row['p_d_o_b']; echo date('d-m-Y',strtotime($date_birth));?>&nbsp;</div>
	<div class="status_15">
		<?php 
			if($row['activated'] == '1')
			{
				echo "<img src='../images/approved.jpg' title='Account is Activated'>";
			}
			else
			{
				echo "<img src='../images/pending.jpg' title='Account is not Activated Yet'>";
			}
		?>
		&nbsp;