File: selection.inc.php

package info (click to toggle)
zoph 0.6-2.1
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 1,716 kB
  • ctags: 2,283
  • sloc: php: 8,554; perl: 1,601; sh: 760; sql: 382; python: 338; makefile: 71
file content (42 lines) | stat: -rw-r--r-- 1,125 bytes parent folder | download | duplicates (2)
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
<?php
if($_SESSION["selected_photo"]) {
?>
<div id="selection">
<?php printf(translate("%s photo(s) selected"), count($_SESSION["selected_photo"]))?><br>

<?php

foreach ($_SESSION["selected_photo"] as $selected_photo_id) {
    $selected_photo=new photo($selected_photo_id);

    $selected_photo->lookup();
    
    unset($selection_actionlinks);
    if ($selected_photo->get("photo_id")!=$photo->get("photo_id")) {
    $selection_actionlinks["relate"]="relation.php?_action=new&amp;" .
                   "photo_id_1=" . $selected_photo->get("photo_id") . "&amp;" .
                   "photo_id_2=" . $photo->get("photo_id") . "&amp;" .
                   "qs=" . $encoded_qs;
    }

    $selection_actionlinks["x"]="photo.php?_action=deselect&amp;photo_id=" . 
                    $selected_photo->get("photo_id") . 
                    "&amp;_qs=" . $encoded_qs;
                                                 

?>
    <div class="thumbnail">
<?php   
        echo create_actionlinks($selection_actionlinks);
        echo $selected_photo->get_image_tag("thumb");
?>
    </div>
<?php
    }
?>
    <br>

</div>
<?php
}
?>