<a href="javascript:" class="btn"
<?php if ($this->user_id) { ?>
onclick="$.dialog('publish', {category_enable:1, ask_user_id:<?php echo $user['uid']; ?>});" href="javascript:;"
<?php } else { ?>
onclick="window.open('/?/account/login/')"
<?php } ?>
></a>
http://wenda.wecenter.com/question/10091