<?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
 -  
 -  
-->
<html>
  <head>
    <title>User Blogs</title>
  </head>
  <body bgcolor="#ffffff">
    <v:page name="select_cat" xmlns:v="http://www.openlinksw.com/vspx/" xmlns:xhtml="http://www.w3.org/1999/xhtml" doctype="-//W3C//DTD XHTML 1.0 Transitional//EN">
      <v:variable name="ur" type="varchar" default="null"/>
      <v:variable name="nam" type="varchar" default="null"/>
      <v:variable name="pwd" type="varchar" default="null"/>
      <font color="red">
        <b>
          <v:error-summary/>
        </b>
      </font>
      <v:data-set name="ds" sql="select BLOGID, BLOGNAME, URL from BLOG..BLOG_USERS_BLOGS where URI = :ur and NAME = :nam and passwd = :pwd" nrows="20" scrollable="1" cursor-type="static" edit="0" width="80">
        <v:param name="ur" value="--self.ur"/>
        <v:param name="nam" value="--self.nam"/>
        <v:param name="pwd" value="--self.pwd"/>
        <v:before-data-bind>
          if (self.ur is null and {?'b_endpoint'} is not null)
	    {
              self.ur := trim({?'b_endpoint'});
	      self.nam := {?'b_user'};
	      self.pwd := {?'b_pwd'};
	    }
          if (self.ur is null and {?'b_endpoint1'} is not null)
	    {
              self.ur := trim({?'b_endpoint1'});
	      self.nam := {?'b_user1'};
	      self.pwd := {?'b_pwd1'};
	    }
	</v:before-data-bind>
        <v:template name="template1" type="simple" name-to-remove="table" set-to-remove="bottom">
          <h4>
          </h4>
          <table width="400" border="2" cellspacing="0" cellpadding="0">
            <tr>
              <td align="center">
                <b>Action</b>
              </td>
              <td align="center">
                <b>
                  <v:label name="label1" value="'Blod ID'" format="%s" width="80"/>
                </b>
              </td>
              <td align="center">
                <b>
                  <v:label name="label2" value="'Blog Name'" format="%s" width="80"/>
                </b>
              </td>
              <td align="center">
                <b>
                  <v:label name="label21" value="'Url'" format="%s" width="80"/>
                </b>
              </td>
            </tr>
          </table>
        </v:template>
        <v:template name="template2" type="repeat" name-to-remove="" set-to-remove="">
          <v:template name="template7" type="if-not-exists" name-to-remove="table" set-to-remove="both">
            <table width="400" border="2" cellspacing="0" cellpadding="0">
              <tr>
                <td align="center" colspan="5">
                  <b>No rows selected</b>
                </td>
              </tr>
            </table>
          </v:template>
          <v:template name="template4" type="browse" name-to-remove="table" set-to-remove="both">
            <table width="400" border="1" cellspacing="2" cellpadding="0">
              <tr>
                <td nowrap="1">
                  <v:button name="ds_select" action="return" value="Select">
                    <v:field name="b_blogid" value="--cast ((control.vc_parent.vc_parent as vspx_row_template).te_rowset[0] as varchar)"/>
                    <v:field name="b_blogid1" value="--cast ((control.vc_parent.vc_parent as vspx_row_template).te_rowset[0] as varchar)"/>
                  </v:button>
                </td>
                <td align="left" nowrap="1">
                  <v:label name="label5" value="--(control.vc_parent as vspx_row_template).te_rowset[0]"/>
                </td>
                <td align="left" nowrap="1">
                  <v:label name="label6" value="--(control.vc_parent as vspx_row_template).te_rowset[1]"/>
                </td>
                <td align="left" nowrap="1">
                  <v:label name="label61" value="--(control.vc_parent as vspx_row_template).te_rowset[2]"/>
                </td>
              </tr>
            </table>
          </v:template>
        </v:template>
      </v:data-set>
    </v:page>
  </body>
</html>
