-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_cat.php
More file actions
54 lines (49 loc) · 1.62 KB
/
Copy path_cat.php
File metadata and controls
54 lines (49 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php $c_url=vParam('c_url', $_GET['c_url'], $_POST['c_url']); //parametro enviado es el URL de db_items_type
$b_url=vParam('b_url', $_GET['b_url'], $_POST['b_url']); //parametro enviado es el URL de db_items_type
$sort=vParam('s', $_GET['s'], $_POST['s']); //parametro enviado es el URL de db_items_type
//Verifico si existe el parametro muestro la categoria si no muestro el root
if(!$c_url){
$tView='2';
$idc=0;
$vTit=FALSE;
$det['typEst']='1';
}else{
$det=detRow('db_items_type','typUrl',$c_url);
$idc=$det['typID'];
$det_nom=$det['typNom'];
$tView=$det['typ_id'];
$vTit=TRUE;
}
//echo 'typEst. '.$det['typEst'];
if($det['typEst']=='1'){
$isView=TRUE;
}else{
$isView=FALSE;
}
?>
<?php if(($idc>=0)&&($isView==TRUE)){ ?>
<?php echo genBreadcrumb('cat',$idc) ?>
<div class="card mb-4">
<div class="card-body">
<?php if($vTit==TRUE){ ?>
<h1 class="card-title" id="c_<?php echo $idc ?>"><?php echo $det_nom?></h1>
<?php if($det['typDes']){ echo $det['typDes']; }?>
<?php } ?>
<div class="cont-catalog">
<!-- VISTA U-CONST --><?php if ($tView=="1"){ include("_cat_viewUC.php"); } ?>
<!-- VISTA CATALOGO --><?php if ($tView=="2"){ include("_cat_viewCat.php"); } ?>
<!-- VISTA CATALOGO --><?php if ($tView=="3"){ include("_cat_viewExt.php"); } ?>
<!-- VISTA CODEembed --><?php if ($tView=="4"){ include("_cat_viewCode.php"); } ?>
</div>
<div style="clear:both;"></div>
<div><?php btnBackCat($det['typIDp']) ?></div>
</div>
</div>
<?php }else{ ?>
<div>
<div class="alert alert-warning">
<h4>Categoría no válida</h4>
</div>
<div class="well well-sm"><?php btnBackCat($det['typIDp']); ?></div>
</div>
<?php } ?>