/
slideview.php
125 lines (99 loc) · 3.38 KB
/
slideview.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<?php
include('header.php');
$img_id=$_GET["img_id"];
$findCommand =& $fm->newFindCommand('AllInfo');
$findCommand->addFindCriterion('Filename', $img_id);
$result = $findCommand->execute();
$records = $result->getRecords();
foreach ($records as $record) {
?>
<div class="leftcol slideleft">
<?php
if($record->getField('Source_Type')=='Video') {
echo '<img class="tilethumb" src="img/videoicon.png">';
} else {
$projectionFilepath=fmDisplayFieldResult('Filepath_Projection',$record);
echo '<img class="tilethumb" src="img/thumbnails/'.basename($record->getField('Filepath_Thumbnail')).'">';
include('includes/clipsection.php');
}
?>
<div style="margin-top: 10px;">
<table class="tabledefault">
<tr><td colspan=2> </td></tr>
<?php
fmDisplayFieldTR('File number: ','Filename',$record);
fmDisplayFieldTR('Collection: ','Collection',$record);
//fmDisplayFieldTR('File status: ','Filepath_Projection',$record);
?>
<tr><td colspan=2> </td></tr>
<!--<tr><td colspan=2>Available formats:<br />
Archive TIFF<br />
Projection JPEG<br /></td></tr>-->
<tr class="tablesecondary"><td colspan=2>
<?php
echo ('Captured by '.fmDisplayFieldResult('Capturer_Name',$record).'<br />');
echo ('Catalogued by '.fmDisplayFieldResult('Cataloguer_Name',$record).'<br />');
echo ('Reviewed by '.fmDisplayFieldResult('Reviewer_Name',$record).'<br />');
?>
</td></tr>
<tr><td colspan=2> </td></tr>
<tr class="tablesecondary"><td colspan=2>
<?php
echo ('Entered '.fmDisplayFieldResult('Date_Entered',$record).'<br /><br />');
echo ('Requested by '.fmDisplayFieldResult('Requester_Name',$record).'<br />');
?>
</table>
</div>
</div>
<div class="leftcol slideright">
<div class="slideinfopanel">
<h3>Basic Information</h3><br />
<table class="tabledefault">
<?php
fmDisplayFieldTR('Architect/creator','Creator1_Display',$record);
fmDisplayFieldTR('Work title','Title',$record);
?>
</table>
</div>
<div class="slideinfopanel">
<h3>Work & Media Information</h3><br />
<table class="tabledefault">
<?php
fmDisplayFieldTR('Image Details','Image_Details',$record);
fmDisplayFieldTR('Subject','Work_Subject',$record);
fmDisplayFieldTR('Location','Location_1',$record);
fmDisplayFieldTR('','Location_2',$record);
echo ('<tr><td class="greytext">Dates</td><td>'.fmDisplayFieldResult('Work_Date_Begin',$record)."-".fmDisplayFieldResult('Work_Date_End',$record).'</td></tr>');
fmDisplayFieldTR('Media','Work_Type1',$record);
?>
</table>
</div>
<div class="slideinfopanel">
<h3>Source</h3><br />
<table class="tabledefault">
<?php
fmDisplayFieldTR('Type','Source_Type',$record);
fmDisplayFieldTR('Title','Source_Title',$record);
fmDisplayFieldTR('','Source_Title_Sub',$record);
fmDisplayFieldTR('Author','Source_Author',$record);
fmDisplayFieldTR('Call No.','Call#_Address',$record);
?>
</table>
</div>
</div>
<div class="leftcol slideright">
<div class="slideinfopanel">
<h3>Course information</h3><br />
<table class="tabledefault">
<?php
fmDisplayFieldTR('Lecturer','Course_Lecturer',$record);
fmDisplayFieldTR('Course','Course_Name',$record);
fmDisplayFieldTR('Lecture #','Course_Lecture_Number',$record);
?>
</table>
</div>
</div>
<?php
} //end foreach
include('footer.php');
?>