personSearch1.tpl.php
2.51 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<script language="javascript">
//<![CDATA[
var names = new Array ();
<? foreach ($this->names as $surname => $data): ?>
names['<?=$surname?>'] = new Array ();
<? foreach ($data as $d): ?>
names['<?=$surname?>'].push (
new Array ('<?=$d[0]?>',
new c_person (
<?=$d[1]->get_personId ()?>,
<?=(($val=$d[1]->get_photographerId ()) !== NULL)?$val:-1?>,
<?=(($val=$d[1]->get_ownerId ()) !== NULL)?$val:-1?>,
'<?=$d[1]->get_firstname ()?>',
'<?=$d[1]->get_surname ()?>',
'<?=$d[1]->get_company ()?>',
'<?=$d[1]->get_email ()?>',
'<?=$d[1]->get_url ()?>',
<?=(($val=$d[1]->get_cameraId ()) !== NULL)?$val:-1?>,
'<?=(($val=$d[1]->get_wmWidth ()) !== NULL)?$val:''?>',
'<?=(($val=$d[1]->get_wmHeight ()) !== NULL)?$val:''?>',
'<?=(($val=$d[1]->get_wmXPos ()) !== NULL)?$val:''?>',
'<?=(($val=$d[1]->get_wmYPos ()) !== NULL)?$val:''?>')));
<? endforeach ?>
<? endforeach ?>
pSearch1 = new c_personSearch1 (
'personSearch1_fname', 'personSearch1_sname',
'personSearch1_fBestFit', 'personSearch1_sBestFit', names, person);
//]]>
</script>
<div class="bgc-bg1 d-bg1">
<div class="bgc-grp1 d-grp1">
<form id="personForm" onSubmit="return false">
<div class="bgc-grp-head1 f-grp-head1 d-grp-head1">
<?=_('search')?>
</div>
<div class="bgc-box1 f-box1 d-box1">
<div style="position: relative; z-index: 1">
<input type="text" style="width: 200px" maxlength="255"
id="personSearch1_sname" value=""
onKeyUp="return pSearch1.altSurnames ()"
onBlur="return pSearch1.hide ('personSearch1_sBestFit')" />
<?=_('surname')?>
<div class="bgc-tt1 d-tt1"
style="position: absolute; top: 20px; left: 0px">
<ul id="personSearch1_sBestFit" class="d-tt1" />
</div>
</div>
<div style="position: relative; z-index: 0">
<input type="text" style="width: 200px" maxlength="255"
id="personSearch1_fname" value=""
onKeyUp="return pSearch1.altFirstnames ()"
onBlur="return pSearch1.hide ('personSearch1_fBestFit')" />
<?=_('firstname')?>
<div class="bgc-tt1 d-tt1"
style="position: absolute; top: 20px; left: 0px">
<ul id="personSearch1_fBestFit" class="d-tt1" />
</div>
</div>
</div>
</form>
</div>
</div>
<script language="javascript">
//<![CDATA[
document.getElementById ('personSearch1_sname').onkeyup =
personSearch1AltSurnameHandler;
document.getElementById ('personSearch1_fname').onkeyup =
personSearch1AltFirstnameHandler;
//]]>
</script>