<div class="habblet-container ">
<div class="cbb clearfix green ">
<div class="box-tabs-container clearfix">
<h2>Tags</h2>
<ul class="box-tabs">
<li id="tab-3-1"><a href="#"><?php echo $shortname; ?>s Mögen...</a><span class="tab-spacer"></span></li>
<li id="tab-3-2" class="selected"><a href="#">Meine Tags</a><span class="tab-spacer"></span></li>
</ul>
</div>
<div id="tab-3-1-content" style="display: none">
<div class="progressbar"><img src="./web-gallery/v2/images/page_loader.gif" alt="" width="29" height="6" /></div>
<a href="./habblet/tagcloud.php?sp=plain" class="tab-ajax"></a>
</div>
<div id="tab-3-2-content" >
<div id="my-tag-info" class="habblet-content-info">
<?php if($tags_num > 19){ echo "Tag limit reached. You need you remove one of your tags before adding another."; } elseif($tags_num == 0){ echo " Beantworte die Fragen oder fuege deine ausgeweahlten tags ein."; } elseif($tags_num < 20){ echo "Du hast nicht alle tags ausgefüllt"; } ?>
</div>
<div class="box-content">
<div class="habblet" id="my-tags-list">
<?php if($tags_num > 0){
echo "<ul class=\"tag-list make-clickable\"> ";
while($row = mysql_fetch_assoc($fetch_tags)){
printf("<li><a href=\"".$path."/tag/%s\" class=\"tag\" style=\"font-size:10px\">%s</a>\n
<a class=\"tag-remove-link\"\n
title=\"Remove tag\"\n
href=\"#\"></a></li>\n", $row['tag'], $row['tag']);
}
echo "</ul>";
} ?>
<?php if($tags_num < 20){ ?>
<form method="post" action="tags_ajax?key=add" onsubmit="TagHelper.addFormTagToMe();return false;" >
<div class="add-tag-form clearfix">
<a class="new-button" href="#" id="add-tag-button" onclick="TagHelper.addFormTagToMe();return false;"><b>tag einfügen</b><i></i></a>
<input type="text" id="add-tag-input" maxlength="20" style="float: right"/>
<em class="tag-question"><?php echo $tag_question; ?></em>
</div>
<div style="clear: both"></div>
</form>
<?php } ?>
</div>
</div>
<script type="text/javascript">
document.observe("dom:loaded", function() {
TagHelper.setTexts({
tagLimitText: "You\'ve reached the tag limit - delete one of your tags if you want to add a new one.",
invalidTagText: "Ungültiger Tag",
buttonText: "OK"
});
TagHelper.init('21063711');
});
</script>
</div>
</div>