"; $result1 = @mysqli_query($conn,$sql1); } for($a=0;$a<$valCount;$a++){ $chk = $_REQUEST['chk'.$a]; if($chk == true){ $sql = "insert into tbl_corr_item set ref_id = '$ref_id', associated_id = '$associated_id', pl_no = '${"pl_no$a"}' , modified_by='".$_SESSION['user_id']."' "; //echo "
"; $result = @mysqli_query($conn,$sql) or die($sql); } } } elseif($frmacn=="Add") { $sqlNote="select note_id, associated_id from tbl_notes where associated_id='$associated_id' "; $resNote=mysqli_query($conn,$sqlNote); $rowsNote=mysqli_fetch_array($resNote); $note_id = $rowsNote['note_id']; $associated_id1 = $rowsNote['associated_id']; //echo "note id".$note_id."
"; //echo $note_id."
"; /*if(isset($associated_id1)) { $sqlReply="select reply_counter from tbl_reply where note_id = '$note_id'"; $resReply=mysqli_query($conn,$sqlReply); $rowsReply=mysqli_fetch_array($resReply); $reply_counter = $rowsReply['reply_counter']; if(isset($reply_counter)){ //echo "note id".$reply_counter; } else{ echo ""; return false; } } else{ }*/ $query_prefix='INSERT INTO '; $query_suffix=''; $msg="Information Note Added Successfully"; for($a=0;$a<$valCount;$a++){ $chk = $_REQUEST['chk'.$a]; if($chk == true){ $sql = "insert into tbl_corr_item set ref_id = '$ref_id', associated_id = '$associated_id', pl_no = '${"pl_no$a"}' , modified_by='".$_SESSION['user_id']."' "; $result = @mysqli_query($conn,$sql); } } } $sql=$query_prefix.$TABLENAME.$query_main.$query_additional.$query_suffix; $res=@mysqli_query($conn,$sql); if(!$res){ $msg='Error adding/updating Note class.'; } } ?>
Correspondance
 
Firm:
Category: Tender Quotation Order File
Associated Record:
Case No:
PL No:

Select All

"; $output= $a; echo $output; $count++; } echo ""; } else { $count=0; $sql1 = "select distinct pl_no from purchase_order_details where purchase_order_no = '$purchase_order_no' and qty != '0' "; $res1=mysqli_query($conn,$sql1); while($rows1=mysqli_fetch_array($res1)){ $val = $rows1['pl_no']; $a = "

"; $output= $a; echo $output; $count++; } echo ""; } $sqlPL = "select id,pl_no from tbl_corr_item where associated_id = '$associated_id' and ref_id='$ref_id'"; $resultPL = @mysqli_query($conn,$sqlPL); $countPL = 0; while($rowPL = @mysqli_fetch_array($resultPL)){ $pl_no=$rowPL['pl_no']; $id=$rowPL['id']; ?>

"; $output= $a; echo $output; $count++; } echo ""; $sqlPL = "select id,pl_no from tbl_corr_item where associated_id = '$associated_id' and ref_id='$ref_id'"; $resultPL = @mysqli_query($conn,$sqlPL); $countPL = 0; while($rowPL = @mysqli_fetch_array($resultPL)){ $pl_no=$rowPL['pl_no']; $id=$rowPL['id']; ?>

"; $output= $a; echo $output; $count++; } echo ""; } else{ $sql1 = "select distinct pl_no from quotation_item_details where internal_ref_no = '$associated_id'"; $res1=@mysqli_query($conn,$sql1); $count=0; while($rows1=mysqli_fetch_array($res1)){ $val = $rows1['pl_no']; $a = "

"; $output= $a; echo $output; $count++; } echo ""; } $sqlPL = "select id,pl_no from tbl_corr_item where associated_id = '$associated_id' and ref_id='$ref_id'"; $resultPL = @mysqli_query($conn,$sqlPL); $countPL = 0; while($rowPL = @mysqli_fetch_array($resultPL)){ $pl_no=$rowPL['pl_no']; $id=$rowPL['id']; ?>
Firm:
Category:
Associated Record:
Case No:
PL No:
Subject:
Correspondence Date: " /> Pick a date
Received Date: " /> Pick a date
Initiated By: checked />Self checked />Client
Client Ref: If Initiated by Self, Enter N/A
Description:
location.href='flexi_notes.php'"; ?>
set_page_data($this_script,$num_rows,$records_per_page=100000,$scroll_num=0,$show_prev_next=true,$show_scroll_prev_next=true,$show_first_last=true); $page->set_qry_string(""); $page_order_result=@mysqli_query($conn,$page->get_limit_query($sql)); $num=@mysqli_num_rows($page_order_result); if($num>0) { $pageon=$_GET['page']; $pageon=($pageon)*100000; $count=$pageon+1; while($row=@mysqli_fetch_array($page_order_result)) { extract($row); ?> "; } ?>
S.No. Date of note Noted by Note Associated ID Note Details View Edit Delete
/    
Page  ".$page->get_page_nav();?>
No Record Found