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
|
<?vsp
--
-- $Id: xs_t_1_hits.vsp,v 1.2 2006/08/15 19:30:35 source Exp $
--
-- This file is part of the OpenLink Software Virtuoso Open-Source (VOS)
-- project.
--
-- Copyright (C) 1998-2006 OpenLink Software
--
-- This project is free software; you can redistribute it and/or modify it
-- under the terms of the GNU General Public License as published by the
-- Free Software Foundation; only version 2 of the License, dated June 1991.
--
-- This program is distributed in the hope that it will be useful, but
-- WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-- General Public License for more details.
--
-- You should have received a copy of the GNU General Public License along
-- with this program; if not, write to the Free Software Foundation, Inc.,
-- 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--
--
if ({?'del'} = '1')
delete from DB.DBA.XML_TEXT2_XT_TEXT_HIT where TTH_T_ID = atoi ({?'tt_id'}) and TTH_D_ID = atoi ({?'tth_d_id'});
?>
<html>
<head><link rel="stylesheet" type="text/css" href="../demo.css"></head>
<body>
<table class="tableresult">
<TR><TD COLSPAN="5">Current hits</TD></TR>
<tr>
<td CLASS="genlistheadt">File</td>
<td CLASS="genlistheadt">ID</td>
<td CLASS="genlistheadt">Registered</td>
<td CLASS="genlistheadt">Actions</td>
</tr>
<?vsp
for select TTH_D_ID, TTH_TS, XT_FILE
from DB.DBA.XML_TEXT2_XT_TEXT_HIT,
DB.DBA.XML_TEXT2
where TTH_T_ID = atoi ({?'tt_id'}) and TTH_U_ID = 1 and XT_ID = TTH_D_ID
order by TTH_TS desc do {
?>
<tr>
<td><?=XT_FILE?></td>
<td><?=TTH_D_ID?></td>
<td><?=TTH_TS?></td>
<td>
<table BORDER="0" CELLPADDING="0">
<tr>
<td>
<table border=0>
<tr>
<td>
<a href="xs_t_1_hits.vsp?tth_d_id=<?=TTH_D_ID?>&tt_id=<?={?'tt_id'}?>&del=1">Remove</a>
</td>
<td>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<?vsp
}
?>
</table>
<p>Back to <a href="xs_t_1_list.vsp">main</a></p>
</body>
</html>
|