如何修改phpcms v9的后台登录界面
找到文件/phpcms/modules/admin/templates/log in . TPL . PHP。
<?php defined('IN_ADMIN') or exit('No permission resources.'); ?>
& lt!DOCTYPE html PUBLIC & quot-//W3C//DTD XHTML 1.0过渡版//EN & quot;”http://www . w3 . org/TR/XHTML 1/DTD/XHTML 1-transitional . DTD & quot;& gt
& lthtml xmlns = & quothttp://www.w3.org/1999/xhtml" & gt;
& lthead & gt
& ltmeta http-equiv = & quot;内容类型& quotcontent = & quot文本/html;charset = & lt?php echo CHARSET?& gt”/& gt;
& ltmeta http-equiv = & quot;X-UA兼容& quotcontent = & quotIE = EmulateIE7 & quot/& gt;
& lttitle & gt& lt?PHP echo L(& # 39;phpcms _ logon & # 39)?& gt& lt/title & gt;
& ltstyle type = & quottext/CSS & quot;& gt
div { overflow:hidden;*显示:内嵌-块;} div { *显示:block}
.login_box{background:url(<?php echo IMG_PATH?>admin_img/login_bg.jpg) no-repeat; width:602px; height:416px; overflow:hidden; position:absolute; left:50%; top:50%; margin-left:-301px; margin-top:-208px;}。log in _ box { background:URL(& lt;?php echo IMG_PATH?& gtadmin_img/login_bg.jpg)无重复;宽度:602px高度:416px溢出:隐藏;位置:绝对;左:50%;top:50%;左边距:-301 px;边距-top:-208 px;}
。log in _ iptbox { bottom:90px;_ bottom:72px;颜色:# FFFFFF字体大小:12px高度:30px左:50%;
左边距:-280 px;位置:绝对;宽度:560px溢出:可见;}
.login_iptbox .ipt{height:24px; width:110px; margin-right:22px; color:#fff; background:url(<?php echo IMG_PATH?>admin_img/ipt_bg.jpg) repeat-x; *line-height:24px; border:none; color:#000; overflow:hidden;}。login _ iptbox。ipt { height:24px;宽度:110px右边距:22px颜色:# fff背景:URL(& lt;?php echo IMG_PATH?& gtadmin _ img/ipt _ BG . jpg)repeat-x;*行高:24px边框:无;颜色:# 000;溢出:隐藏;}
& lt?PHP if(SYS _ STYLE = = & # 39;恩& # 39;){ ?& gt
。login _ iptbox。ipt { width:100p x;右边距:12px}
& lt?php }?& gt
。login_iptbox标签{ *position:相对;*顶:-6px;}
.login_iptbox .ipt_reg{margin-left:12px;width:46px; margin-right:16px; background:url(<?php echo IMG_PATH?>admin_img/ipt_bg.jpg) repeat-x; *overflow:hidden;text-align:left;padding:2px 0 2px 5px;font-size:16px;font-weight:bold;}。login _ iptbox。ipt _ reg { margin-left:12px;宽度:46px右边距:16px背景:URL(& lt;?php echo IMG_PATH?& gtadmin _ img/ipt _ BG . jpg)repeat-x;*溢出:隐藏;文本对齐:左对齐;填充:2px 0 2px 5px字体大小:16px字体粗细:粗体;}
.login_tj_btn{ background:url(<?php echo IMG_PATH?>admin_img/login_dl_btn.jpg) no-repeat 0px 0px; width:52px; height:24px; margin-left:16px; border:none; cursor:pointer; padding:0px; float:right;}。log in _ TJ _ BTN { background:URL(& lt;?php echo IMG_PATH?& gtadmin_img/login_dl_btn.jpg)不重复0px 0px宽度:52px高度:24px左边距:16px边框:无;光标:指针;填充:0px浮动:对;}
.yzm{position:absolute; background:url(<?php echo IMG_PATH?>admin_img/login_ts140x89.gif) no-repeat; width:140px; height:89px;right:56px;top:-96px; text-align:center; font-size:12px; display:none;}。yzm {位置:绝对;背景:URL(& lt;?php echo IMG_PATH?& gtadmin_img/login_ts140x89.gif)无重复;宽度:140px高度:89px右:56px顶:-96px;文本对齐:居中;字体大小:12px显示:无;}
。yzm a:链接,。yzm a:访问过{ color:# 036;文字-装饰:无;}
。yzm a:hover { color:# C30;}
.yzm img{cursor:pointer; margin:4px auto 7px; width:130px; height:50px; border:1px solid #fff;}。yzm img { cursor:pointer;保证金:4px自动7px宽度:130px高度:50px边框:1px solid # fff}
。Cr { font-size:12px;font-style:继承;文本对齐:居中;颜色:# ccc宽度:100%;位置:绝对;底部:58px}
。Cr a { color:# CCC;文字-装饰:无;}
& lt/style & gt;
& lt脚本语言= & quotJavaScript & quot& gt
& lt!-
如果(顶!=自己)
如果(自我!= top)top . location = self . location;
//-& gt;
& lt/script & gt;
& lt/head & gt;
& ltbody onload = & quotJavaScript:document . my form . username . focus();”& gt
& ltdiv id = & quotlogin _ bg & quotclass = & quot登录框& quot& gt
& ltdiv class = & quotlog in _ IPTV box & quot;& gt
& lt表单操作= & quotindex.php?m =行政& ampc =指数& ampa =登录& ampdosubmit = 1 & quotmethod = & quot帖子& quotname = & quot我的表单& quot& gt& lt输入名称= & quotdosubmit & quotvalue = & quot”type = & quot提交& quotclass = & quotlogin _ tj _ btn & quot/& gt;& lt标签& gt& lt?PHP echo L(& # 39;用户名& # 39;)?& gt:& lt/label & gt;& lt输入名称= & quot用户名& quottype = & quot文本& quotclass = & quotipt & gt;value = & quot”/& gt;& lt标签& gt& lt?PHP echo L(& # 39;密码& # 39;)?& gt:& lt/label & gt;& lt输入名称= & quot密码& quottype = & quot密码& quotclass = & quotipt & gt;value = & quot”/& gt;& lt标签& gt& lt?PHP echo L(& # 39;安全代码& # 39;)?& gt:& lt/label & gt;& lt输入名称= & quot代码& quottype = & quot文本& quotclass = & quotipt ipt_reg"onfocus = & quotdocument . getelementbyid(& # 39;yzm & # 39)、style.display = & # 39block & # 39″/& gt;
<div id="yzm" class="yzm"><?php echo form::checkcode('code_img')?><br /><a href="javascript:document.getElementById('code_img').src='<?php echo SITE_PROTOCOL.SITE_URL.WEB_PATH;?>api.php?op=checkcode&m=admin&c=index&a=checkcode&time='
Math.random();void(0);"><?php echo L('click_change_validate')?></a></div>& ltdiv id = & quotyzm & quotclass = & quotyzm & quot& gt& lt?PHP echo form::check code(& # 39;code _ img & # 39)?& gt& ltbr/>;& lta href = & quotJavaScript:document . getelementbyid(& # 39;code _ img & # 39).src = & # 39& lt?php回显站点协议。网站网址。WEB _ PATH?& gtapi.php?校验码& ampm =行政& ampc =指数& ampa =校验码& amp时间= & # 39;
math . random();void(0);”& gt& lt?PHP echo L(& # 39;click _ change _ validate & # 39)?& gt& lt/a & gt;& lt/div & gt;
& lt/form & gt;
& lt/div & gt;
& ltdiv class = & quotcr & quot& gt& lt?PHP echo L(& quot;版权& quot)?& gt& lt/div & gt;
& lt/div & gt;
& lt/body & gt;
& lt/html & gt;这是phpcms自带的后台登录接口代码。修改成你需要的代码就行了。
郎峰个人博客
phpcms v9里面的cityid代表什么意思?
对应的城市id编号数据库或者是文件,会有对应的很多城市,每个都有一个对应的cityid
如何去掉网站底部“PoweredbyPHPCMSV9.1.13©2011”字样?
再网站根目录下的/phpcms/templates/default/content/footer.html和page.html