Commit bccedd30 authored by Jason Frisvold's avatar Jason Frisvold
Browse files

- Started adding code to handle management of tags

parent 22348eab
......@@ -83,6 +83,7 @@ hr.onethird { width: 33%; }
dd { line-height: 1.5em; margin-bottom: 1em; }
p.copyright { color: black; font-size: small; font-weight: normal; margin: 2px; }
div#backend_freetag_list { border: 1px dotted rgb(0, 0, 0); padding: 5px; font-size: 9px; white-space: normal; margin-bottom: 5px; }
div#tag_management_list { /*border: 1px dotted rgb(0, 0, 0);*/ padding: 5px; /*font-size: 9px;*/ white-space: normal; margin-bottom: 5px; }
.formdiv { width: 75%; margin: auto; }
.formlabel { float: left; width: 15%; }
.formrow { clear: both; margin-bottom: 5px; }
......
......@@ -156,12 +156,13 @@
assign_order_by($smarty);
assign_max_feeds($smarty);
assign_feed_types($smarty);
assign_tags($smarty, $user_obj);
// Assign the tags
foreach ($user_obj->tags() as $tag) {
$taglist[$tag->id()] = $tag->name();
}
$smarty->assign('tags', $taglist);
//// Assign the tags
//foreach ($user_obj->tags() as $tag) {
// $taglist[$tag->id()] = $tag->name();
//}
//$smarty->assign('tags', $taglist);
// Close the MySQL handler
$sqlhdlr->close();
......
......@@ -74,6 +74,21 @@
</form>
</div>
<hr class='onethird' />
<div class='todolist'>
<h3>Tag Management</h3>
<div id="tag_management_list">
{assign var='first' value=''}
{foreach name=fetag from=$taglist item=row}
{if $first != $row.first}
<b>{$row.first}:</b>
{/if}
<span class='editTags'>{$row.tag}</span>
{if ! $smarty.foreach.fetag.last}, {/if}
{assign var='first' value=$row.first}
{/foreach}
</div>
</div>
<hr class='onethird' />
<div id='formdiv'>
<h3>Web Feeds</h3>
<form id='feeds' method='post' action='prefs.php'>
......@@ -128,47 +143,6 @@
</a>
</p>
</div>
<!-- <hr class='onethird' />
<div>
<h3>Custom Categories</h3>
<form id='categories' method='post' action='prefs.php'>
<div class='centered'>
<table>
<thead>
<tr class='header'>
<th>Delete?</th>
<th>Category</th>
</tr>
</thead>
<tbody>
{if isset($category_edit)}
{foreach from=$category_edit item=row key=id}
<tr class='{cycle values="odd,even"}'>
<td>
<input type='checkbox' name='category_sel[]' value='{$id}' />
<input type='hidden' name='category_id[]' value='{$id}' />
</td>
<td>{$row}</td>
</tr>
{/foreach}
{/if}
</tbody>
</table>
<br />
<input type='text' name='category_name' />
&nbsp;&nbsp;
<input type='submit' name='cat_add' value='Add' />
&nbsp;&nbsp;
<input type='submit' name='cat_del' value='Delete' />
</div>
</form>
{if isset($max_categories_set) && ($max_categories_set == 1)}
<h3 class='alert'>Unable to create category, Max Categories reached</h3>
{/if}
{if isset($bad_category) && ($bad_category == 1)}
<h3 class='alert'>Unable to create category, Bad Category Name</h3>
{/if}
</div> -->
{include file='footer.tpl'}
</body>
</html>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment