blob: 8e4f82ba943f15a01d60f8b585f53af0a500e07f (
plain)
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
|
<?php
if ($this->security()) {
// INCLUDE page_header.html
$this->assign_from_include('page_header.html');
echo '
<script language="javascript" type="text/javascript">
<!--
function select_item()
{
opener.document.post.item_name.value = document.post.items.options[document.post.items.selectedIndex].value;
opener.changed = "True";
window.close();
opener.window.focus();
}
//-->
</script>
';// IF S_STEP1
if ($this->_tpldata['.'][0]['S_STEP1']) {
echo '
<form method="post" action="' . ((isset($this->_tpldata['.'][0]['F_SEARCH_ITEM'])) ? $this->_tpldata['.'][0]['F_SEARCH_ITEM'] : '') . '" name="post">
<table width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<th align="center">' . ((isset($this->_tpldata['.'][0]['L_ITEM_SEARCH'])) ? $this->_tpldata['.'][0]['L_ITEM_SEARCH'] : ((isset($user->lang['ITEM_SEARCH'])) ? $user->lang['ITEM_SEARCH'] : '{ ' . ucfirst(strtolower(str_replace('_', ' ', 'ITEM_SEARCH'))) . ' }')) . '</th>
</tr>
<tr>
<td class="row1" align="center"><input type="text" name="query" size="30" maxlength="255" value="" class="input" /></td>
</tr>
<tr>
<th align="center"><input type="submit" name="search" value="' . ((isset($this->_tpldata['.'][0]['L_SEARCH'])) ? $this->_tpldata['.'][0]['L_SEARCH'] : ((isset($user->lang['SEARCH'])) ? $user->lang['SEARCH'] : '{ ' . ucfirst(strtolower(str_replace('_', ' ', 'SEARCH'))) . ' }')) . '" class="mainoption" /> <input type="button" name="button" value="' . ((isset($this->_tpldata['.'][0]['L_CLOSE_WINDOW'])) ? $this->_tpldata['.'][0]['L_CLOSE_WINDOW'] : ((isset($user->lang['CLOSE_WINDOW'])) ? $user->lang['CLOSE_WINDOW'] : '{ ' . ucfirst(strtolower(str_replace('_', ' ', 'CLOSE_WINDOW'))) . ' }')) . '" onclick="javascript:window.close(); window.opener.window.focus();" class="liteoption" /></th>
</tr>
';// ELSE
} else {
echo '
<form method="post" name="post">
<table width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<th align="center">' . ((isset($this->_tpldata['.'][0]['L_RESULTS'])) ? $this->_tpldata['.'][0]['L_RESULTS'] : ((isset($user->lang['RESULTS'])) ? $user->lang['RESULTS'] : '{ ' . ucfirst(strtolower(str_replace('_', ' ', 'RESULTS'))) . ' }')) . '</th>
</tr>
<tr>
<td class="row1" align="center">
<select name="items" class="input">
';// BEGIN items_row
$_items_row_count = (isset($this->_tpldata['items_row.'])) ? sizeof($this->_tpldata['items_row.']) : 0;
if ($_items_row_count) {
for ($_items_row_i = 0; $_items_row_i < $_items_row_count; $_items_row_i++)
{
echo '
<option value="' . ((isset($this->_tpldata['items_row.'][$_items_row_i]['VALUE'])) ? $this->_tpldata['items_row.'][$_items_row_i]['VALUE'] : '') . '">' . ((isset($this->_tpldata['items_row.'][$_items_row_i]['OPTION'])) ? $this->_tpldata['items_row.'][$_items_row_i]['OPTION'] : '') . '</option>
';}}
// END items_row
echo '
</select>
</td>
</tr>
<tr>
<th align="center"><input type="button" name="select" value="' . ((isset($this->_tpldata['.'][0]['L_SELECT'])) ? $this->_tpldata['.'][0]['L_SELECT'] : ((isset($user->lang['SELECT'])) ? $user->lang['SELECT'] : '{ ' . ucfirst(strtolower(str_replace('_', ' ', 'SELECT'))) . ' }')) . '" class="mainoption" onclick="javascript:select_item();" /></th>
</tr>
';// ENDIF
}
echo '
</table>
</form>
';// INCLUDE page_tail.html
$this->assign_from_include('page_tail.html');
}
?>
|