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
|
<?xml version="1.0"?>
<!--
-
- $Id$
-
- This file is part of the OpenLink Software Virtuoso Open-Source (VOS)
- project.
-
- Copyright (C) 1998-2018 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
-
-->
<v:page name="blog_left_page"
xmlns:vm="http://www.openlinksw.com/vspx/weblog/"
xmlns:v="http://www.openlinksw.com/vspx/"
style="/DAV/VAD/blog2/widgets/main.xsl"
doctype="-//W3C//DTD XHTML 1.0 Transitional//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
on-deadlock-retry="5">
<vm:page>
<vm:wa_header>
<vm:wa_title>Web Applications</vm:wa_title>
</vm:wa_header>
<v:variable name="mode1" type="varchar" default="'feed'" persist="1"/>
<v:variable name="mode2" type="varchar" default="'read'" persist="1"/>
<body class="sub_page">
<![CDATA[
<script type="text/javascript">
function loadIframe(iframeName, url) {
if ( window.top.frames[iframeName] ) {
window.top.frames[iframeName].location = url;
return false;
}
else return true;
}
function loadIframe2(url, left, right)
{
if (window.top.frames['right_frm'])
{
window.top.frames['right_frm'].location = url+right;
if (window.top.frames['ifrm'])
{
window.top.frames['ifrm'].location = url+left;
return false;
}
return true;
}
else
return true;
}
window.onload = window.top.frames['right_frm'].frames['right_frm1'].location.reload(true);
</script>
]]>
<?vsp
declare cf_id1 integer;
declare cf_uri1, cf_link1 varchar;
declare descrip any;
cf_id1 := get_keyword('cf_id', self.vc_event.ve_params);
cf_uri1 := get_keyword('cf_uri', self.vc_event.ve_params);
if (cf_id1 is not null and cf_uri1 is not null)
{
select
coalesce (CF_DESCRIPTION, ''), CF_LINK into descrip, cf_link1
from
BLOG.DBA.SYS_BLOG_CHANNEL_FEEDS
where
CF_CHANNEL_URI = cf_uri1 and CF_ID = cf_id1;
http(sprintf('<div>%s</div>', blob_to_string(descrip)));
http(sprintf('<div align="right"><a href="%s" target="_blank">%s</a></div>', cf_link1, cf_link1));
}
else
http('<div align="center"><b>No selected post</b></div>');
update BLOG.DBA.SYS_BLOG_CHANNEL_FEEDS set CF_READ = 1 where
CF_CHANNEL_URI = cf_uri1 and CF_ID = cf_id1;
?>
</body>
</vm:page>
</v:page>
|