<?php


////////////////////// FUNCTION | MODULE FUNCTION (c) i2d Technologies //////////////////////////////////

if (!function_exists('view_list_adv2')) {
	function view_list_adv2($settings,$cols,$remotes,$array_cols,$excluded,$status100,$button_items,$sys_button_items,$special_button_items=0){
	$auther="10";	
   
del_adv_modal();  
   
   ?>
<script type="text/javascript">
  $(document).ready(function() {
	   $( '#searchable-container' ).searchable({
        searchField: '#search',
        selector: '.<?php echo $settings['col_divide']; ?>',
        childSelector: '.card-box',
        show: function( elem ) {
            elem.slideDown(100);
        },
        hide: function( elem ) {
            elem.slideUp( 100 );
        }
    })


	  });
  </script>
  
   
   <!-- PAGE FUNCTION LIST STARTS (c) i2d Technologies Website Engine -->
   <!-- START PAGE CONTENT -->
     <script type="text/javascript">
$(document).ready(function() {
var nb = $('div.member-card').length.toString();
$('#counter').html(nb);
$('#search').bind("keyup change blur", function(e) {
var bn = $('div.card-box:visible').length.toString();
$('#counter').html(bn);
});
$(".btn_delete a").click(function() {
var deL_iD = $(this).attr('id');	
var rowElement = $(this).parent().parent().parent().parent();
$("#delmodal").modal('show');	
$("#yes_del").click(function() {
$.ajax({
        
        Type : 'POST',
		
		contentType : "application/json; charset=utf-8",
		 
		dataType: 'text',

		cache	: false,

		url		: "perl.txt",
		
		
	    data	: 'section_flag=del_rec&ref_id=' + deL_iD + '&tbl=<?php echo $settings['table']; ?>&id_col=<?php echo $settings['id_table']; ?>',

		success : function(response){
rowElement.fadeOut(500).remove();
var bn2 = $('div.member-card:visible').length.toString();
$('#counter').html(bn2);	
console.log(response);

				},
        error:function(exception){
		   
		console.log(exception);
		   
		   ;}

	
				
				
});// end ajax()

});

});
});
</script>

                <div id="page-right-content">

                    <div class="container">
                        
						<div class="row">
                            <div class="col-sm-12">
                                <h4 class="header-title m-t-0 m-b-20"><?php echo $settings['heading']." List"; ?> <span id="counter" style="color:red; font-weight:bold;"></span> Item(s)</h4>
                            </div>
							<div class="col-md-6 pull-right">
							
                                        <div class="input-group">
                                                    <span class="input-group-addon"><i class="fa fa-search"></i></span>
                                                    <input type="text" id="search" name="example-input1-group1" class="form-control" placeholder="Search"><br />
													
                                                </div>
												<?php 
												if($auther!=0){
												if(isset($settings['add_new_view']) && $settings['add_new_view']!=0){
												?>
												<br />
												<span class="pull-right"><a button type="button" class="btn btn-lg btn-success" href="<?php echo $settings['add_new_view']; ?>"><?php echo "Add New ".$settings['heading']; ?></button></a></span>
												<?php }
												}
												?>
												<span id="counter2" style="color:red; font-weight:bold;"></span>
							</div>
                        </div> <!-- end row -->
<p>&nbsp;</p>

<?php
////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////

if(isset($settings['table'])){
$table=$settings['table'];
$ref_val=$settings['ref_value'];
}	


////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////

	if(isset($settings['legend']) && $settings['legend']!=0){
	$legend=$settings['legend'];
	$where_col=$settings['where_col'];
	$id_table=id_col;
	$tdsettings=array(
	'table'=>$table,
	'id_col'=>$id_table,
	'ref_value'=>$ref_val,
	'where_col'=>$where_col,
	'fields_array'=>$array_cols,
	'where_value'=>$legend,
	'status_vaue'=>'Active',
	'order'=>'ASC',
	'type'=>'1b');

	$tdload=db_fetch($tdsettings);
	
	}
	else{
	    
$db_settings=array(
'table'=>$table,
'ref_value'=>$ref_val,
'type'=>'2',
'order'=>'DESC');

$tdload=db_fetch($db_settings);
    
	    
	}
	
	$table_id=id_col;
	?>


                        <div class="row p-20">
									
				<div class="row" id="searchable-container">
									
									
									<?php
									$b=0;

if(!empty($tdload)){
	foreach($tdload as $item){ 
	$b++;								
///////////////////////////////////////////////////////////////////////
					  ?>
                <div class="<?php echo $settings['col_divide']; ?>">
				
                        		<div class="text-left card-box">
                                    
									<div class="dropdown pull-right">
                                        <a href="#" class="dropdown-toggle card-drop" data-toggle="dropdown" aria-expanded="false">
                                            <h3 class="m-0 text-muted"><i class="mdi mdi-dots-horizontal"></i></h3>
                                        </a>
							
                                        <ul class="dropdown-menu" role="menu">
                                            <?php if(isset($button_items) && !empty($button_items)){ 
				foreach($button_items as $bitem=>$bval){ 
				if($button_items[$bitem]['active']=="1"){
				?>
											
											<?php 
											
				}
				}
											}
											?>
											<?php if(isset($button_items) && !empty($button_items)){ 
				foreach($button_items as $bitem=>$bval){ 
				if($button_items[$bitem]['active']=="1" || $button_items[$bitem]['active']=="10"){
				?>
				<?php 
				if(isset($button_items[$bitem]['target']) && $button_items[$bitem]['target']=="blank"){ ?>
											<li><a href="<?php echo $button_items[$bitem]['link'].$item[$table_id]; ?>" target="_blank"><i class="<?php echo $button_items[$bitem]['icon']; ?>"></i> <?php echo $button_items[$bitem]['label']; ?></a></li>
				<?php }
				else { ?>
											<li><a href="<?php echo $button_items[$bitem]['link'].$item[$table_id]; ?>"><i class="<?php echo $button_items[$bitem]['icon']; ?>"></i> <?php echo $button_items[$bitem]['label']; ?></a></li>
				<?php } ?>
											<?php }
 
else{ 
?>

<br />
                                            <li style="border-bottom:1px solid rgba(153,153,153,.3); margin:-10px 0 4px 0";></li>
																						
											<?php					
					  
				  } 
}
				}
				  ?>
                               <?php
if(isset($special_button_items) && !empty($special_button_items)){ 
foreach($special_button_items as $special_bitem=>$special_bval){
if($special_button_items[$special_bitem]['active']=="10"){				
				 ?>
				 
<li><a href="<?php echo $special_button_items[$special_bitem]['link'].$item[$table_id]."/"; ?>" target="_blank"><i class="<?php echo $special_button_items[$special_bitem]['icon']; ?>"></i> <?php echo $special_button_items[$special_bitem]['label']; ?></a></li>
  <?php } 
				  else{
					?>
	
					<?php					
					  
				  } 
}
				}
				  ?>
<?php
if(isset($sys_button_items) && !empty($sys_button_items)){ 
foreach($sys_button_items as $sys_bitem=>$sys_bval){
if($sys_button_items[$sys_bitem]['active']=="10"){				
				 ?>
				 
<li class="btn_delete"><a href="<?php echo $sys_button_items[$sys_bitem]['link'].$table."/".$item[$table_id]."/"; ?>" onclick="return false;" id="<?php echo $item[$table_id]; ?>"><i class="<?php echo $sys_button_items[$sys_bitem]['icon']; ?>"></i> <?php echo $sys_button_items[$sys_bitem]['label']; ?></a></li>
  <?php } 
				  else{
					?>
	
					<?php					
					  
				  } 
}
				}
				  ?>
				</ul>
               
				</div>
				
									
                                    <div class="clearfix"></div>
                                    <div class="member-card">
								<?php	if(isset($settings['badge'])){ ?>
                                        <span class="user-badge bg-warning" style="background-color:<?php echo $settings['badge_color']; ?>!IMPORTANT;"><?php echo $settings['suffix'].$item[id_col]; ?></span>
								<?php } else { ?>
								        <span class="user-badge bg-warning" style="background-color:<?php echo $settings['badge_color']; ?>!IMPORTANT;"><?php echo $settings['suffix'].$b; ?></span>
								
								<?php } ?>

                                        

<div class="col-md-12">                                            

<?php if(isset($settings['photo_on']) && $settings['photo_on']!=0) { ?>
			  <img class="img-<?php echo $settings['photo_type']; ?> img-thumbnail" style="max-width: <?php echo $settings['photo_percentage']; ?>;" src="<?php echo $settings['photo_path'].$item[$settings['photo_col']]; ?>">
			  <?php } else {	?>
			 <!-- <img class="img-circle img-thumbnail" style="max-width: 25%;" src="<?php //echo photo_folder; ?>default.png"> -->
			  <?php } ?>
<?php
if(isset($cols) && !empty($cols)){
foreach ($cols as $cols_key=>$col_value){
?>
<<?php echo $cols[$cols_key]['html_heading_size'];?> class="m-b-5">
<?php echo $cols[$cols_key]['html_heading_label'];?>
<?php
if(isset($cols[$cols_key]['col']) && !empty($cols[$cols_key]['col'])){ 
if($cols[$cols_key]['col_encoding']==1){echo ucwords(base64_decode($item[$cols[$cols_key]['col']]));}
else{
echo ucwords($item[$cols[$cols_key]['col']]);
}
}	
?>
</<?php echo $cols[$cols_key]['html_heading_size'];?>>
<?php	
}
}
?>	
<?php
if(isset($remotes) && !empty($remotes)){
foreach ($remotes as $remotes_key=>$remotes_value){
?>
<<?php echo $remotes[$remotes_key]['html_heading_size'];?> class="m-b-5">
<?php echo $remotes[$remotes_key]['html_heading_label'];?>
<?php
$this_id=$item[$remotes[$remotes_key]['this_col']];
$fetched_remote=db_ref($remotes[$remotes_key]['remote_table'],$remotes[$remotes_key]['remote_table_id_col'],$this_id,$remotes[$remotes_key]['remote_table_find_col']);
if($remotes[$remotes_key]['remote_col_encoding']==1){echo ucwords(base64_decode($fetched_remote));}
else{
echo ucwords($fetched_remote);
}
	
?>
</<?php echo $remotes[$remotes_key]['html_heading_size'];?>>
<?php	
}
}
?>	
	
 
                  <small>
                	  <span>
					
					Last Edit : <?php echo date('M j Y g:i A', strtotime($item[server_time]))."<br/ >"; ?>
				    
                   
                     </span>
                  </small>
                  
			  
			  </a> </span></p>
                                        </div>
    </div>

                                        <p class="text-muted font-13">
&nbsp;
                                        </p>

                                        
                                        
                                    

                                </div>
	


                            </div>
							<?php } 
	}
?>
</div>							
							
							
                            </div>
                            
							
							</div>
                            
							
							
 <!-- PAGE FUNCTION LIST ENDS (c) i2d Technologies Website Engine -->   
<?php   
}
}
//////////////////////////// HTML FUNCTION ENDS (c) i2d Technologies ///////////////////////////////////////


//////////////////////////// HTML FUNCTION ENDS (c) i2d Technologies ///////////////////////////////////////
////////////////////// FUNCTION | MODULE FUNCTION (c) i2d Technologies //////////////////////////////////

if (!function_exists('recent_items_adv_child')) {
	function recent_items_adv_child($settings=0,$cols=0,$buttons=0,$fields=0){

$tdsettings=array(
	'table'=>$settings['table'],
	'id_col'=>$settings['id_col'],
	'ref_value'=>$settings['ref'],
	'ref_col'=>$settings['ref_col'],
	'where_col'=>status,
	'where_value'=>'Active',
	'fields_array'=>$fields,
	'status_vaue'=>'Active',
	'echo'=>'0',
	'error'=>'1',
	'order'=>'DESC',
	'limit'=>'400',
	'order_col'=>$settings['id_col'],
	'type'=>'1c_adv');

	$tdload=db_fetch($tdsettings);
	
	$table=$settings['table'];

if (array_key_exists('is_widget', $settings)) {
   $is_widget=$settings['is_widget'];
   }
else{
$is_widget="0";	
}   
	
   ?>
   <!-- PAGE FUNCTION STARTS (c) i2d Technologies Website Engine -->
<?php if ($is_widget!=1){ ?>

 <div id="page-right-content">

                    <div class="container">
                        
	<?php } ?>

<div class="row">
                            <div class="col-sm-12">
							
<?php if(isset($settings['add_new']) && $settings['add_new']!=0){ ?>
<br/><br/><br/>
<p class="pull-right"><a type="button" class="<?php echo $settings['add_new_link_class']; ?>" href="<?php echo $settings['add_new_link']; ?>"><?php echo $settings['add_new_label']; ?></a></p>
<br/><br/><br/>

<?php } ?>
							
                                <div class="card-box">
								
                                    <h4 class="m-b-20"><?php echo $settings['heading']; ?></h4>
                                    
									
								  <div class="table-responsive">
                                        <table class="table table-hover mails m-0 table table-actions-bar">
                                            <thead>



                                                <tr>
<?php if(isset($settings['images']) && $settings['images']!=0){ ?>
                                                    <th>#</th>
                                          <?php } ?>          








<?php
foreach ($cols as $cols_key=>$cols_value){
?>


													<th><?php echo $cols[$cols_key]['col_heading'];?></th>
<?php } ?>													
                                                    
												    <th width="5%"></th>
                                                </tr>
                                            </thead>

                                            <tbody>
											
											
											<?php foreach($tdload as $tditem){ ?>





											
                                                <tr>
<?php if(isset($settings['images']) && $settings['images']!=0){ ?>
                                                                                                       
												   <td>
<img src="<?php echo $settings['image_path'].$tditem[$settings['image_fname']]; ?>" class="<?php echo $settings['image_class']; ?>"/>
                                                    </td>
<?php } ?>



<?php
foreach ($cols as $cols_key2=>$cols_value2){
?>

                                                    <td>
<?php if(isset($cols[$cols_key2]['col_badge']) && $cols[$cols_key2]['col_badge']!=0){;
$zomba=check_read(
$table,
$tditem[id_col],
$cols[$cols_key2]['col_column'],
$cols[$cols_key2]['col_column_value']
);
if($zomba!=0){
?>
    <span class="badge badge-success"> New! </span>
<?php }
} ?>
                                                    	<?php echo $tditem[$cols[$cols_key2]['col_fname']];?>
                                                    
													</td>
<?php } ?>
                                                   
                                                    <td width="5%">
													
<?php if(isset($settings['type_notifications']) && $settings['type_notifications']!=0){ 
$notify_link=find_notification_link($table,$tditem["id"]);
	?>
<a href="<?php echo SITE_PATH_CLIENT."/view/".$notify_link."/".$tditem["id"]; ?>" class="btn btn-success btn-sm"><?php echo "view details"; ?></a>
<?php } else {  ?>


 													
									
									<div class="dropdown pull-right">
                                        <a href="#" class="dropdown-toggle card-drop" data-toggle="dropdown" aria-expanded="false">
                                            <h3 class="m-0 text-muted"><i class="mdi mdi-dots-horizontal"></i></h3>
                                        </a>
                                        <ul class="dropdown-menu" role="menu">
<?php foreach ($buttons as $buttons_key=>$buttons_value){ ?>
<li><a href="<?php echo $buttons[$buttons_key]['href']."/".$tditem["id"]; ?>"><?php echo $buttons[$buttons_key]['label']; ?></a></li>
<?php } ?>
										  
										  </ul>
                                    </div>
<?php } ?>
									
									
                                    
			<!--										
<a href="<?php //echo $settings['site_path']."/".$settings['href'].$tditem[id_col]; ?>" class="<?php //echo $settings['button_class']; ?>"><?php //echo $settings['href_label']; ?></a>
                -->                                        
                                                    </td>

                                                </tr>

											<?php } ?>


                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
<?php if ($is_widget!=1){ ?>
						</div>
                               </div>
                
						<?php } ?>                
                <!-- End #page-right-content -->
   

 <!-- PAGE FUNCTION ENDS (c) i2d Technologies Website Engine --->   
<?php   
}
}
//////////////////////////// HTML FUNCTION ENDS (c) i2d Technologies ///////////////////////////////////////

//////////////////////////// HTML FUNCTION ENDS (c) i2d Technologies ///////////////////////////////////////
if (!function_exists('view_record_adv_child')) {
	function view_record_adv_child($id,$settings,$array_cols){
if (array_key_exists('table', $settings)) {
   $table=$settings['table'];
   }
   if (array_key_exists('id_col', $settings)) {
   $id_col=$settings['id_col'];
   }
   if (array_key_exists('ref', $settings)) {
   $ref=$settings['ref'];
   }
   if (array_key_exists('no_rows', $settings)) {
   $rows=$settings['no_rows'];
   }
if (array_key_exists('child_table', $settings)) {
   $child_table=$settings['child_table'];
   }
   if (array_key_exists('child_table_id_col', $settings)) {
   $child_table_id_col=$settings['child_table_id_col'];
   }
   if (array_key_exists('child_table_title', $settings)) {
   $child_table_title=$settings['child_table_title'];
   }
   
   if(isset($array_cols) && !empty($array_cols)){
foreach ($array_cols as $arrayloop => $valloop2){
   
   
   $new_cols[]=$array_cols[$arrayloop]['field'];
   
}
   }
   
   
	$tdsettings=array(
	'table'=>$table,
	'id_col'=>$id_col,
	'ref_value'=>$ref,
	'where_col'=>$id_col,
	'where_value'=>$id,
	'fields_array'=>$new_cols,
	'status_value'=>'Active',
	'order'=>'ASC',
	'order_col'=>id_col,
	'errors'=>"1",
	'echo'=>"0",
	'limit'=>$rows,
	'type'=>'view2');

	
	$tdload=db_fetch($tdsettings);
	
	
	$loaded=$tdload[0];
	
	$loaded_keys=array_keys($loaded);
	$loaded_values=array_values($loaded);

//var_dump($loaded_values);

foreach($loaded as $litem =>$loppp){
$loaded_arr[]['value']=$loaded[$litem];

}


$array_cols=array_replace_recursive($array_cols,$loaded_arr);



	?>
   <!-- PAGE FUNCTION STARTS (c) i2d Technologies Website Engine -->
   <div id="page-right-content" style="padding-top:40px !IMPORTANT;">

                    <div class="container">
                        <div class="row">
							<div class="col-sm-12">
								<div id="start">
									<div class="row">
				
	
							

	
	
	
	
								<div class="tab-content">
                                <div class="tab-pane active" id="home-b1">
                                    <div class="row">
                                        <div class="col-md-12">
                                            <!-- Personal-Information -->
                                            <div class="panel panel-default panel-fill">
                                                <div class="panel-heading">
                                                    <h3 class="panel-title"><?php echo "SNO"; ?></h3>
                                                </div>
                                                <div class="panel-body">
                                                    
	<?php if($array_cols){ 
	
	foreach($array_cols as $arraykey => $value_col) {
         
				
	
		
?>	
													<div class="m-b-20">
                                                        <?php 
														
		

if(isset($array_cols[$arraykey]['remote_col']) && $array_cols[$arraykey]['remote_col']!="0"){
$value=db_ref($settings['child_table'],$settings['child_table_id_col'],$array_cols[$arraykey]['value'],$settings['child_table_title']);	
}		
else{
$value=$array_cols[$arraykey]['value'];	
}


if(isset($array_cols[$arraykey]['enc']) && ($array_cols[$arraykey]['enc']!="0")){
$value=base64_decode($value);	
}														
if(isset($array_cols[$arraykey]['label']) && ($array_cols[$arraykey]['label']!="0")){		
	echo "<strong>".$array_cols[$arraykey]['label']."</strong>"." : ".$value."<br />";
}

														
														?>
                                                        </div>
	<?php 
	
	}
	}

 ?>
                                                    
                                                </div>
                                            </div>
                                            <!-- Personal-Information -->

                                            <!-- Social -->
                                            
                                            <!-- Social -->
                                        </div>



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

	

								</div>
								</div>
								
								<p>&nbsp;</p>
								
								<div class="text-center">
	  <button type="button" class="btn btn-success m-t-10" onclick="history.go(-1);">Close View</button>
      
	  
   </div>
   
   <p>&nbsp;</p>
								
								
								
								</div>
								</div>
								</div>
							
 <!-- PAGE FUNCTION ENDS (c) i2d Technologies Website Engine -->   
<?php   
}
}
//////////////////////////// HTML FUNCTION ENDS (c) i2d Technologies ///////////////////////////////////////
////////////////////// FUNCTION | MODULE FUNCTION (c) i2d Technologies //////////////////////////////////

if (!function_exists('recent_items_adv')) {
	function recent_items_adv($settings,$fields){
if (array_key_exists('table', $settings)) {
   $table=$settings['table'];
   }
if (array_key_exists('id_col', $settings)) {
   $id_col=$settings['id_col'];
   }
if (array_key_exists('ref', $settings)) {
   $ref=$settings['ref'];
   }
if (array_key_exists('ref_col', $settings)) {
   $ref_col=$settings['ref_col'];
   }
if (array_key_exists('order_col', $settings)) {
   $order_col=$settings['order_col'];
   }
if (array_key_exists('heading', $settings)) {
   $heading=$settings['heading'];
   }
if (array_key_exists('col1_heading', $settings)) {
   $col1_heading=$settings['col1_heading'];
   }
if (array_key_exists('col2_heading', $settings)) {
   $col2_heading=$settings['col2_heading'];
   }
if (array_key_exists('col1_fname', $settings)) {
   $col1_fname=$settings['col1_fname'];
   }
if (array_key_exists('col2_fname', $settings)) {
   $col2_fname=$settings['col2_fname'];
   }
if (array_key_exists('images', $settings)) {
   $images=$settings['images'];
   }
if (array_key_exists('image_path', $settings)) {
   $image_path=$settings['image_path'];
   }
if (array_key_exists('image_fname', $settings)) {
   $image_fname=$settings['image_fname'];
   }
if (array_key_exists('image_class', $settings)) {
   $image_class=$settings['image_class'];
   }
   
   
if (array_key_exists('href', $settings)) {
   $href=$settings['href'];
   }

if (array_key_exists('href_label', $settings)) {
   $href_label=$settings['href_label'];
   }



//$fields=array(id_col,product_title,photo1,price1,cat_id,ref,status,insertion_date);

$tdsettings=array(
	'table'=>$table,
	'id_col'=>$id_col,
	'ref_value'=>$ref,
	'ref_col'=>$ref_col,
	'where_col'=>status,
	'where_value'=>'Active',
	'fields_array'=>$fields,
	'status_value'=>'Active',
	'order'=>'DESC',
	'limit'=>'400',
	'order_col'=>$id_col,
	'type'=>'1c_adv');

	$tdload=db_fetch($tdsettings);
	
		
   ?>
   <!-- PAGE FUNCTION STARTS (c) i2d Technologies Website Engine -->
 <div id="page-right-content">

                    <div class="container">
                        
<div class="row">
                            <div class="col-sm-12">
							
<?php if(isset($settings['add_new']) && $settings['add_new']!=0){ ?>
<br/><br/><br/>
<p class="pull-right"><a type="button" class="<?php echo $settings['add_new_link_class']; ?>" href="<?php echo $settings['add_new_link']; ?>"><?php echo $settings['add_new_label']; ?></a></p>
<br/><br/><br/>

<?php } ?>
							
							
                                <div class="card-box">
								
                                    <h4 class="m-b-20"><?php echo $heading; ?></h4>
                                    
									
								  <div class="table-responsive">
                                        <table class="table table-hover mails m-0 table table-actions-bar">
                                            <thead>
                                                <tr>
<?php if(isset($images) && $images!=0){ ?>
                                                    <th>&nbsp;</th>
                                          <?php } ?>          
                                                    <th><?php echo $col1_heading; ?></th>
                                                    <?php if(isset($col2_heading) && $col2_heading!=0){ ?>
													<th><?php echo $col2_heading; ?></th>
													<?php } ?>
                                                    <th  width="50%">Status</th>
                                                    <th>Action</th>
                                                </tr>
                                            </thead>

                                            <tbody>
											<?php foreach($tdload as $tditem){ ?>
											
                                                <tr>
<?php if(isset($images) && $images!=0){ ?>
                                                                                                       
												   <td>
<img src="<?php echo $image_path.$tditem[$image_fname]; ?>" class="<?php echo $image_class; ?>"/>
                                                    </td>
<?php } ?>
                                                    <td>
                                                        <?php echo $tditem[$col1_fname]; ?>
                                                    </td>
<?php if(isset($col2_heading) && $col2_heading!=0){ ?>
													
                                                    <td>
                                                        <?php echo $tditem[$col2_fname]; ?>
                                                    </td>
<?php } ?>
                                                    <td>
                                                    <?php echo $tditem[status]; ?>
													</td>

                                                    <td>
													<a href="<?php echo SITE_PATH."/".$href.$tditem[id_col]; ?>" class="btn btn-primary btn-sm"><?php echo $href_label; ?></a>
                                                        
                                                    </td>

                                                </tr>

											<?php } ?>


                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>
                        </div>
                        </div>
                               </div>
                
                
                <!-- End #page-right-content -->
   

 <!-- PAGE FUNCTION ENDS (c) i2d Technologies Website Engine --->   
<?php   
}
}
//////////////////////////// HTML FUNCTION ENDS (c) i2d Technologies ///////////////////////////////////////



















?>
