Permalink
Browse files

static admin page copied across from Gradino (nothing implemented off

it)
  • Loading branch information...
1 parent 51591fd commit 03e5c059759adfcfe151aac82be07b3fa658f45c @danja committed Apr 6, 2012
Showing with 145 additions and 0 deletions.
  1. +55 −0 misc/post.html
  2. +7 −0 misc/saxon.sh
  3. +83 −0 www/admin.html
View
@@ -0,0 +1,55 @@
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" version="XHTML+RDFa 1.0">
+ <head>
+ <meta http-equiv="Content-Type" content="text/xhtml; charset=UTF-8"></meta>
+ <title>Rhizomik - ReDeFer - RDF2HTML</title>
+ <link href="/redefer-services/style/rhizomer.css" type="text/css" rel="stylesheet"></link>
+ </head>
+ <body>
+ <div xmlns:dc="http://purl.org/dc/terms/" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:sioc="http://rdfs.org/sioc/ns#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" class="rdf2html">
+ <div class="description">
+ <table about="http://hyperdata.org/Hello" typeof="sioc:Post">
+ <tr>
+ <th colspan="2"><a class="browse" href="http://hyperdata.org/Hello" title="Browse http://hyperdata.org/Hello">Hello</a><div xmlns="" class="connector"> a </div><a class="browse" href="http://rdfs.org/sioc/ns#Post" title="Browse http://rdfs.org/sioc/ns#Post">Post</a></th>
+ </tr>
+ <tr class="http://rdfs.org/sioc/ns#content">
+ <td><a class="browse" href="http://rdfs.org/sioc/ns#content" title="Browse http://rdfs.org/sioc/ns#content">content</a></td>
+ <td property="sioc:content" content="My first post.">
+ <div class="property-object">My first post.</div>
+ </td>
+ </tr>
+ <tr class="http://purl.org/dc/terms/date">
+ <td><a class="browse" href="http://purl.org/dc/terms/date" title="Browse http://purl.org/dc/terms/date">date</a></td>
+ <td property="dc:date" content="2012-04-02T07:24:53.676Z">
+ <div class="property-object">2012-04-02T07:24:53.676Z</div>
+ </td>
+ </tr>
+ <tr class="http://xmlns.com/foaf/0.1/maker">
+ <td><a class="browse" href="http://xmlns.com/foaf/0.1/maker" title="Browse http://xmlns.com/foaf/0.1/maker">maker</a></td>
+ <td>
+ <div class="property-object" rel="foaf:maker">
+ <table typeof="rdfs:Resource">
+ <tr class="http://xmlns.com/foaf/0.1/nick">
+ <td><a class="browse" href="http://xmlns.com/foaf/0.1/nick" title="Browse http://xmlns.com/foaf/0.1/nick">nick</a></td>
+ <td property="foaf:nick" content="danja">
+ <div class="property-object">danja</div>
+ </td>
+ </tr>
+ </table>
+ </div>
+ </td>
+ </tr>
+ <tr class="http://purl.org/dc/terms/title">
+ <td><a class="browse" href="http://purl.org/dc/terms/title" title="Browse http://purl.org/dc/terms/title">title</a></td>
+ <td property="dc:title" content="Hello World!">
+ <div class="property-object">Hello World!</div>
+ </td>
+ </tr>
+ </table>
+ </div>
+ </div>
+ <div id="footlogo">
+ <div id="logo"><a href="http://rhizomik.net"><img src="/redefer-services/images/rhizomer.small.png" alt="Rhizomik"></img> Powered by Rhizomik
+ </a></div>
+ </div>
+ </body>
+</html>
View
@@ -0,0 +1,7 @@
+#!/bin/bash
+#
+# ./saxon.sh rdf2html.xsl ../data/samples/post.rdf > ../data/samples/post-rhizome.html
+#
+java -cp /home/java/saxon9he.jar net.sf.saxon.Transform -xsl:$1 -s:$2
+# $3 $4
+# java net.sf.saxon.Transform -s:source -xsl:stylesheet -o:output
View
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+ <title>Post</title>
+</head>
+
+<body>
+<h1>Admin</h1>
+
+<p>// NB. copied directly across from Gradino as a skeleton - nothing yet
+implemented</p>
+
+<h2>Shutdown</h2>
+
+<form action="/shutdown" method="post">
+ <label>User </label><input type="text" name="user" value="danja" />
+
+ <p><label>Password </label><input type="password" name="password" /></p>
+
+ <p>
+ <input type="submit" value="Submit" /></p>
+</form>
+<hr />
+
+<h2>Backup User DB</h2>
+
+<form action="/backupuserdb" method="post">
+ <p>
+ <input type="submit" value="Submit" /></p>
+</form>
+<hr />
+
+<h2>Revert User DB</h2>
+
+<form action="/revertuserdb" method="post">
+ <label>User </label><input type="text" name="user" value="danja" />
+
+ <p><label>Password </label><input type="password" name="password" /></p>
+
+ <p>
+ <input type="submit" value="Submit" /></p>
+</form>
+<hr />
+
+<h2>Backup Content DB</h2>
+
+<form action="/backupcontentdb" method="post">
+ <p>
+ <input type="submit" value="Submit" /></p>
+</form>
+<hr />
+
+<h2>Revert User DB</h2>
+
+<form action="/revertcontentdb" method="post">
+ <label>User </label><input type="text" name="user" value="danja" />
+
+ <p><label>Password </label><input type="password" name="password" /></p>
+
+ <p>
+ <input type="submit" value="Submit" /></p>
+</form>
+<hr />
+
+<h2>Generate Sitemap</h2>
+
+<form action="/generatesitemap" method="post">
+ <p>
+ <input type="submit" value="Submit" /></p>
+</form>
+<hr />
+
+<h2>Generate Archives</h2>
+
+<form action="/generatearchives" method="post">
+ <p>
+ <input type="submit" value="Submit" /></p>
+</form>
+</body>
+</html>

0 comments on commit 03e5c05

Please sign in to comment.