X3ND1 GANTENG
Server IP : 108.163.255.210  /  Your IP : 3.147.66.224
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/client/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ BERANDA ]     

Current File : /home/unilinki/www/Intellilead/client/view_company_user.php
<?php include('../template/header.php');

	$cid= $_GET['cid'];
	
	$order_by= $_GET['order_by'];
	$order_by2= $_GET['order_by2'];

	if($order_by==''){
		$order_by='user_id';
	}
	if($order_by2==""){
		$order_by2='ASC';
	}


$_SESSION['order_by2']=$order_by2;
$_SESSION['sess_order_by']=$order_by;
//==================================select data================

//pagination
include('../includes/newPagers.php');
$Num_Records_Page = 10; 
$PGobj = new PagerClass();
if($_REQUEST['page']==""){	$cp=1;	}
else{	$cp=intval($_REQUEST['page']);	}
$PGobj->setCurrentPage($cp);
$PGobj->SetCurpage($_SERVER['PHP_SELF']."?cid=".$cid);

$status =" AND status='Active'";

$columns="SELECT * ";
$listingsql=" FROM mstr_user WHERE company_id=".$cid.$status;
$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);
$no= mysql_num_rows($result);
?>
<script language="JavaScript">
	function isValid(formRef)
	{
		for(var i=0;i<formRef.elements.length;i++)
		{
			if(formRef.elements[i].type == "checkbox")
			{
				formRef.elements[i].checked = formRef.cb1.checked
			}
		}
	}
	function want_to_Delete()
	{
		var a;
		a=confirm("Are you sure? You want to delete the selected Record(s)?")
		if(a==true){
			form_frm.haction.value="Delete";
			form_frm.submit();
		}
	}
	function want_to_Delete_qt(id)
	{
		var a;
		a=confirm("Are you sure? You want to delete this Record?")
		if(a==true){
			form_frm.haction.value="Delete1";
			form_frm.id.value=id;
			form_frm.submit()
		}
	}
</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">Manage Clients</h3>
                        <p class="animated fadeInDown">
                          Clients <span class="fa-angle-right fa"></span>Manage Client
                        </p>
                    </div>
                  </div>
              </div>
            <!-- page heading end-->
			   
        <!--body wrapper start-->
    
		<?php include('../template/response.php');?>
		<?php
		$resultcity=mysql_query("select * from mstr_company where company_id='".$cid."';");
		while($cityrow=mysql_fetch_array($resultcity)){
				$company_name=$cityrow['company_name'];				
			}
		?> 
	 <div class="col-md-12 top-20 padding-0">
              <div class="col-md-12">
                <div class="panel">
				<div class="panel-heading"><h3><span style="color:#2196f3;"><?php echo $company_name; ?></span> Client Active UserList (<?php echo $reccnt;?>)</h3></div>
                  <div class="panel-body">					
					<div class="responsive-table">   
					<form method="post" action="delete_company.php" name="form_frm">
					<input type="hidden" name="haction">
					<input type="hidden" name="id">
					<div class="clearfix">
								<?php if(in_array("11", $action_menu)){ ?><div class="btn-group">
									<button id="add-new" type="button" class="btn btn-primary" onclick="window.location.href='add_company_form.php';">
										Add New Client <i class="fa fa-plus"></i>
									</button>
								</div><?php } ?>
								<?php if(in_array("300", $action_menu)){ ?><div class="btn-group">
									<button id="delete-selected" class="btn btn-primary" onclick="want_to_Delete()">
										Delete Selected <i class="fa fa-trash-o"></i>
									</button>
								</div><?php } ?>
					 </div>
					 <p></p>
        <table id="dataTbl2" class="table table-striped table-bordered" width="100%" cellspacing="0">
        <thead class="cf">
        <tr>
            <!--th class="sorting_disabled"><input type="checkbox" name="cb1" onClick="isValid(this.form)"></th-->
			<th>Sr no.</th>
            <th>User Id</th>           
            <th>User Name</th>
			<th>Member Since</th>			
            <th>Image</th>
            <?php if(in_array("4", $action_menu)){ ?><th>Status</th><?php } ?>
            <?php if(in_array("22", $action_menu) || in_array("33", $action_menu)){ ?><th>Action</th><?php } ?>
        </tr>
        </thead>
        <tbody>
        <?php if($no>0){
			  $count = ($cp*$Num_Records_Page)-$Num_Records_Page+1;
			  while($line=mysql_fetch_array($result)) {
//				  $resultcity=mysql_query("select city_name,state_name from mstr_city_state where city_id='".$line['city_name']."';");
//				  while($cityrow=mysql_fetch_array($resultcity)){
//				  	$city=$cityrow['city_name'];
//					$state=$cityrow['state_name'];
//			  		}
		?>
        <tr>
            <!--td><input type="checkbox" name="ids[]" value="< ?php echo $line['company_id']?>"></td-->
			<td><?php echo $count; ?></td>
            <td><?php echo $line['user_name']?></td>
            <td><?php echo $line['name']?></td>			
            <td><?php echo $line['created_date']?></td>
            <td><img src="../resources/<?php if($line['logo']!=''){ echo 'client/'.$line['logo']; }else{echo "no_image.jpg";}?>" class="media-object img-5"/></td>
            <?php if(in_array("4", $action_menu)){ ?><td>
			  <?php if($line['status']=="Active"){ ?>
                <a href="javascript:void();" class="thickbox none btn btn-success" title="Change Status">Active</a>
                 <?php }?>
                 <?php if($line['status']=="Inactive"){?>
              <a href="javascript:void();" class="btn btn-danger" style="color:#700;" title="Change Status">Inactive</a>
             <?php }?></td><?php } ?>
            <?php if(in_array("22", $action_menu) || in_array("33", $action_menu)){ ?><td>
			<ul class="nav nav-tabs">
            <?php if(in_array("22", $action_menu)){ ?><li><a href="edit_company_form.php?id=<?php echo $line['company_id']?>" class="tooltips edit-btn" data-placement="top" data-toggle="tooltip" data-trigger="hover" data-original-title="Edit"><i class="fa fa-edit"></i> Edit</a></li><?php } ?>
            <?php if(in_array("33", $action_menu)){ ?><li><a href="#" class="tooltips delete-btn" data-placement="top" data-toggle="tooltip" data-trigger="hover" data-original-title="Delete" onClick="want_to_Delete_qt('<?php echo $line['company_id']; ?>');"><i class="fa fa-trash-o"></i> Delete</a></li><?php } ?>
            </ul></td><?php } ?>
        </tr>
        <?php  $count++; } }else {?>
        <tr>
           <td colspan="6" style="margin:0px auto; text-align:center; color:#282828; font-size:14px; font-variant:small-caps; font-weight:bold;">
           Your Active Client User List is Empty.</td>	
           </tr>
           </p>
        <?php }?>
        </tbody>
        <tfoot>
        </tfoot>
        </table>
				<div class="row-fluid ">
					<div class="span6">
						<div class="dataTables_info" id="dynamic-table_info" style="width:60%;float:left;padding-top: 8px;"><?php echo $PGobj->showEntries($no); ?></div>
					</div>
					<div class="span6">
						<?php echo $PGobj->showPagerContent(); ?>
					</div>
				</div>			  
            </form>		
                  </div>                
                </div>
              </div>
            </div>  
          </div>

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

Anon7 - 2022
SCDN GOK