1 <% #include <glib.h> %>
5 Content-Type: text/html; charset=UTF-8
9 <% void frame_index(){ %>
11 <frameset rows="20, *">
12 <frame name="head" src="?head">
13 <frameset cols="248,*">
14 <frame name="nav" src="?nav">
15 <frame name="content" src="?content">
22 <% void frame_head(){ %>
34 <a href="?noframe" target="parent">No Frames</a>
41 <% void frame_nav(int square, GList *images) { %>
42 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
43 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
44 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
46 <title>Image viewer</title>
47 <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
48 <style type="text/css">
49 * {padding:0; margin:0;}
61 background-color:#f8fbFF;
62 border:solid 2px #B4C7F8;
78 <% for (GList *cur = images; cur; cur = cur->next) { %>
79 <% gchar *img = (gchar *)cur->data; %>
81 <a class="box" target="content" href="images/<%= "%s", img %>">
82 <img src="thumbs/<%= "%s", img %>"></a>
90 <% void frame_content(){ %>