<?php
include "inc.php"; 
include "config/logincheck.php";  
$selectedpage=''; 
$selectleft='content-pages';
$selectintab='content-pages';
//echo "<pre>"; print_r($getcompanybasicinfo); exit;
?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

<title>Web Settings - <?php echo $systemname; ?></title> 
<?php include "headerinc.php"; ?>
</head>

<body class="greyouter">
  <?php include "header.php"; ?>



<!--------------Left Menu---------------->


<?php include "left.php"; ?>





<!--------------Mid Body---------------->


<section class="profile">
        <div class="listcontent">

            <div class="card">
                <div class="card-body">
                    <div class="bodysection bodypricesection">
                        <h1>Web Settings</h1>
                        <?php include "websettingstabs.php"; ?>
						
                        <div class="tbtabcontent">


                        
						<div class="card-footer text-right" style="overflow:hidden; padding-top:0px;">

                     <div class="header-elements">
							<div class="list-icons">
		                		 <a href="#" onClick="loadpop('Add Page',this,'800px')" data-toggle="modal" data-target=".bs-example-modal-center" popaction="action=addcontentpages"><button type="button" class="btn btn-primary btn-sm" style="position: absolute; top: 56px; right: 17px;">Add Page</button></a>
		                	</div>
	                	</div>

					 
                        <table class="table">
							<thead>
								<tr style="background-color: #f6f6f6;">
									
									<th width="5%">Image</th>
                                    <th width="25%">Title</th>
									<th width="5%">Slug</th>
									<th width="5%">Status</th>
									<th width="5%">Date</th>
									<th width="1%">&nbsp;</th>
								</tr>
							</thead>
							<tbody>
<?php 
$limit=clean($_GET['records']);
$page=clean($_GET['page']); 
$sNo=1; 
$targetpage='content-pages?ga='.$_REQUEST['ga'].'&'; 
// $rs=GetRecordList('*','sys_contentPages',' where addBy="'.$_SESSION['agentUserid'].'"    order by id asc  ','100',$page,$targetpage); 
$rs=GetRecordList('*','sys_contentPages',' where 1 order by id asc  ','100',$page,$targetpage); 
$totalentry=$rs[1]; 
$paging=$rs[2];  
while($rest=mysqli_fetch_array($rs[0])){
?>
								
<tr>
	<td width="1%" align="left" valign="top"><?php if(isset($rest['image'])){ ?><img src="upload/<?php echo stripslashes($rest['image']); ?>" width="50"  ><?php } ?></td>
	
	<td align="left" valign="top"><?php echo stripslashes($rest['title']); ?></td>
	
	<td width="5%" align="left" valign="top"><?php echo stripslashes($rest['SlugContent']); ?></td>
	<td width="5%" align="left" valign="top"><?php if($rest['status']==1){echo "Active";}else{echo "In-active";} ?></td>
	
	<td width="5%" align="left" valign="top"><?php echo date("d-m-Y",strtotime($rest['addDate'])); ?></td>
	
	<td width="1%" align="left" valign="top">

	<button type="button" class="btn alpha-primary text-primary-800 btn-icon"  onclick="loadpop('Add Page',this,'800px')" data-toggle="modal" data-target=".bs-example-modal-center" popaction="action=addcontentpages&id=<?php echo encode($rest['id']); ?>"><i class="fa fa-pencil" aria-hidden="true"></i></button>	</td>
							  </tr>
								 <?php $sNo++; } ?>
							</tbody>
			  </table>	
					 <div class="card-footer text-right">
		 
										<div style="float: left; font-size: 13px; padding: 7px 11px; border: 1px solid #ededed; background-color: #fff; color: #000;">Total Records: <strong><?php echo $totalentry; ?></strong></div>
											<div class="pagingnumbers"><?php echo $paging; ?></div>
											
						 
			  </div>
										
											

						 

	

            </div>

        </div>
        </div>
        </div>
        </div>
    </section>




<!-- HTML -->




  <?php include "footerinc.php"; ?>

</body>
</html>
