evaluate MVC architecture w/ template system
add description field
-tags:
+tags:
+
delimit tags with commas in db (?)
need UNIQUE field in tags
increment tag count on insert
decrement tag count on delete
- if zero delete row
\ No newline at end of file
+ if zero delete row
+
+ see: http://www.pui.ch/phred/archives/2005/05/tags-with-mysql-fulltext.html
\ No newline at end of file
?>
<li>
+ <span class="meta">
+ <?php echo date("Y-m-d", strtotime($row['date'])) ?> by
+ <a class="uname" href="/?user=<?php echo $row['user'] ?>"><?php echo $row['user'] ?></a>
+ </span>
+
<span class="url">
<a href="<?php echo $row['url'] ?>">
<?php echo $row['title'] ? $row['title'] : "<title>" ?>
</a>
</span>
- <span class="meta">
- <?php echo date("Y-m-d", strtotime($row['date'])) ?> by
- <a class="uname" href="/?user=<?php echo $row['user'] ?>"><?php echo $row['user'] ?></a>
- </span>
+
<ul class="tags">
include 'head.html';
include 'header.html';
echo '<hr />';
+
+ ?>
+ <p>
+ clmpr is citation, logging and multi-purpose archive. it saves web links.
+
+ <ul class="tags">
+ tags:
+ <li>delicious</li>
+ <li>clone</li>
+ <li>bookmarks</li>
+ <li>webservice</li>
+ <li>database</li>
+ <li>mindmap</li>
+ <li>citation</li>
+ <li>semantic</li>
+ </ul>
+
+ </p>
+
+ <?
+
echo '© 2011 <a href="http://quilime.com">gabriel dunne</a>';
echo '<hr />';
include 'footer.html';
}
ul.links li {
- margin-bottom:0.75em;
+
}
ul.links li span.url {
- display:block;
+ display:inline-block;
}
ul.links li span.meta {
color:#bbb;
display:inline;
}
ul.tags li {
- background:#eee;
+ background:#f8f8f8;
padding:0 4px;
margin:0 1px;
}
ul.tags li a {
- color:#aaa;
+ color:#bbb;
}