1 <% #include <glib.h> %>
3 <% void frame_index(){ %>
5 <frameset rows="20, *">
6 <frame name="head" src="head">
7 <frameset cols="248,*">
8 <frame name="nav" src="nav">
9 <frame name="content" src="content">
16 <% void frame_head(){ %>
28 <a href="noframe" target="parent">No Frames</a>
35 <% void frame_nav(int square, GList *images) { %>
36 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
37 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
38 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
40 <title>Image viewer</title>
41 <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
42 <style type="text/css">
43 * {padding:0; margin:0;}
55 background-color:#f8fbFF;
56 border:solid 2px #B4C7F8;
72 <% for (GList *cur = images; cur; cur = cur->next) { %>
73 <% gchar *img = (gchar *)cur->data; %>
75 <a class="box" target="content" href="show_small?<%= "%s", img %>">
76 <img src="thumb/<%= "%s", img %>"></a>
83 <% void frame_show(char *this, char *link, char *image){ %>
85 <body style="text-align:center;">
86 <a href="<%= "%s?%s", link, image %>">
87 <img src="<%= "%s/%s", this, image %>">