C:\xampp\htdocs\kptv2\ro\foto.tpl.php


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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?php
require_once("../dbincl.php");
require_once(
"../conf_/siteconf_.php");
require_once(
"../admin/dbconn.php");

if (isset(
$_GET['aId'])) {
    
$aid $_GET['aId'];

if(
$dbConn) {
    
$ra_page $db->Select($TBL_GALLERYnull, array("Publish""AlbumID"), array("1"$aid), "AND"falsetrue" ORDER BY Date");
    
/*$ra8_page = $db->Select($TBL_GALLERYDIR, null, array("ID"), array($aid));
    if(count($ra8_page))
    $albname = $ra8_page[0]->NameRO;*/
}
}
$title .= " - Galerie Foto";
?>
<main class="page">
    <section class="adr2 breadcrumbs"><a href="index.php" class="adr2">Home</a> &raquo;
    <?php
        
if (isset($_GET['gal'])) {
            echo 
"<a class='adr2' href=\"index.php?pg=foto\">Galerii Foto</a> &raquo; ".$_GET['gal']."</section>";
        }
        else {
            echo 
"Galerii Foto</section>";
        }
    
?>
    <img id="museum_image" alt="" class="Style" src="/admin/spaw2/uploads/images/vizitatigaleriile.png">
    <div id="museum_navigation">
        <?php    
            
if($dbConn) {
                
$ra9_page $db->Select($TBL_GALLERYDIRnull, array(), array(), "AND"falsetrue" ORDER BY NameRO");

                
$cnt9 count($ra9_page);
                for(
$j 0$j $cnt9$j++) {
                    if(
$j%== 0)
                        
print_r("</tr><tr>");
                    echo 
"
                        <a href='index.php?pg=foto&amp;aId="
.$ra9_page[$j]->ID."&amp;gal=".$ra9_page[$j]->NameRO."'>
                            <img src='../images/galerie/covers/"
.$ra9_page[$j]->NameRO.".png' alt='".$ra9_page[$j]->NameRO."' width='150'>
                            <br>
                            "
.$ra9_page[$j]->NameRO."
                        </a>"
;
                }
            }
        
?>

        <?php
            
if (isset($_GET['aId'])) {
        
?>
            <div id="focused_gallery_item">
                <img src="../images/galerie/<?= $ra_page[0]->Image ?>" id="KPTVGallery" alt="">
                <div id=KPTVGalleryCaption><?= $ra_page[0]->NameRO ?></div>
            </div>
            <div id="gallery">
                <?php
                    $cnt 
count($ra_page);
                    if(
$cnt == 0)
                        echo 
"<div class=\"rowy\">".$nuimg."</div>";
                    else {
                        
$spl 0;
                        for(
$i 0$i $cnt$i++) {
                            
print_r("
                                <div class=\"rowy\">
                                    <a href=\"#_self\" onclick=\"LoadGallery('KPTVGallery', '../images/galerie/" 
$ra_page[$i]->Image "', 'KPTVGalleryCaption', '"$ra_page[$i]->NameRO ."')\">
                                        <img src=\"../images/galerie/" 
$ra_page[$i]->Image "\" alt=\""$ra_page[$i]->NameRO ."\" />
                                    </a>
                                    <br />"
substr($ra_page[$i]->NameRO015));
                            if (
strlen($ra_page[$i]->NameRO) > 15) echo " ... ";
                            
print_r("</div>");
                            }
                        }
                
?>
            </div>
        <?php
            
}
        
?>
    </div>
</main>
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586