王尘宇王尘宇

研究百度干SEO做推广变成一个被互联网搞的人

Typecho自定义个人设置页面

之前写过《typecho前台修正个人设置》这么一篇文章,然则内里的html构造是写死的,不够天真。由由于我如今的模板运用的前端框架,前端框架只需改改html构造就可以作出很悦目的款式,于是乎我就折腾了这个。

中心代码

个人资料页面

<?php Typecho_Widget::widget('Widget_Security')->to($security); ?><form action="<?php $security->index('/action/users-profile'); ?>" method="post" enctype="application/x-www-form-urlencoded"><label>用户ID</label><?php $this->user->uid() ?><label>昵称</label><input type="text" name="screenName" value="<?php $this->user->screenName(); ?>"/><label>邮箱</label><input type="text" name="mail" value="<?php $this->user->mail(); ?>"/><label>网站</label><input type="text" name="url" value="<?php $this->user->url(); ?>"/><input name="do" type="hidden" value="profile"><button type="submit">肯定</button></form>

暗码修正页面

<?php Typecho_Widget::widget('Widget_Security')->to($security); ?><form action="<?php $security->index('/action/users-profile'); ?>" method="post" enctype="application/x-www-form-urlencoded"><label><font style="vertical-align: inherit;">暗码</label><input type="password" name="password"/><label>反复暗码</label><inputtype="password" name="confirm"/><input name="do" type="hidden" value="password"><button type="submit">肯定</button></form>

html构造依据本身写的款式调解美化即可。

相关文章

评论列表

发表评论:
验证码

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。