<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?=$mcharset?>" />
<title>用户登录--<?=$hostname?></title>
<meta name="author" content="he" />
<meta name="keywords" content="用户登录" />
<meta name="description" content="<?=$hostname?>用户登录" />
<link href="<?=$tplurl?>css/q.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?=$tplurl?>js/jquery.js"></script>
</head>
<body>
<table width="760" height="22" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#E6E6E6">
  <tr>
    <td>&nbsp;&nbsp;<a href="<?=$cms_abs?>" class="lan12i">返回首页</a></td>
  </tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td><a href="<?=$cms_abs?>"><img src="<?php $u=_utag_parse(array("ename" => "csmlogo","tclass" => "image","tname" => "$cmslogo",));if(!empty($u)){?><?=$u['url']?><?php } unset($u);?>" border="0" /></a></td>
            </tr>
            <tr>
                <td height="6" colspan="2" align="left"></td>
          </tr>
        </table></td>
    </tr>
    <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td valign="top">
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td height="170"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <?php $_login_news_img=_ctag_parse(array("tclass" => "archives","limits" => "1","closed" => "-1","abover" => "-1","wherestr" => "a.thumb != ''",));foreach($_login_news_img as $v){_aenter($v);?>
<tr>
<td width="180"><?php $u=_utag_parse(array("tclass" => "image","tname" => "$v[thumb]","maxwidth" => "190","maxheight" => "130","thumb" => "1",));if(!empty($u)){?><img src="<?=$u['url_s']?>" title="<?=$u['subject']?>" width="190" height="130" /><?php } unset($u);?></td>
<td align="center" valign="top" bgcolor="#005099"><table width="90%" border="0" cellspacing="0" cellpadding="5">
    <tr>
      <td height="105" align="left" class="bai14"><a href="<?=$v['arcurl']?>" target="_blank" class="bai14i"><?php echo _utag_parse(array("tclass" => "odeal","tname" => "$v[subject]","trim" => "24",));?>
</a><br />
      <br />
      <span class="bai12"><?php echo _utag_parse(array("tclass" => "odeal","tname" => "$v[abstract]","trim" => "100",));?>
......</span></td
    ></tr>
    
</table></td>
</tr><?php _aquit();} unset($_login_news_img,$v);?>

                        </table></td>
                    </tr>
                    <tr>
                        <td align="center"><table width="94%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td height="34" align="left" class="hui612"><b class="f14u">最新内容</b><br />
                                <br />
                                <?php $_login_news=_ctag_parse(array("tclass" => "archives","limits" => "3","atsource" => "all","closed" => "-1","abover" => "-1",));foreach($_login_news as $v){_aenter($v);?>
<a href="<?=$v['arcurl']?>" target="_blank" class="lan14bi"><?php echo _utag_parse(array("tclass" => "odeal","tname" => "$v[subject]","trim" => "24",));?>
</a><br />
<?php echo _utag_parse(array("tclass" => "odeal","tname" => "$v[abstract]","trim" => "130",));?>
......
<br /><?php _aquit();} unset($_login_news,$v);?>

                                </td>
                            </tr>
                        </table></td>
                    </tr>
                </table></td>
                <td width="262" valign="top">
            	<table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td height="188" align="center" class="bd_hui1">
                        <form name="cmslogin" id="cmslogin" method="post" action="login.php?action=login&forward=<?=$forward?>" onsubmit="var f=1;f=check_cmslogin_submit(this);return f">
                        <table width="92%" border="0" cellspacing="7" cellpadding="0">
                            <tr>
                                <td height="24" align="left" class="f14u"><b>注册用户请直接登录</b></td>
                            </tr>
                            <tr>
                                <td align="left">
                                用户名：<input name="username" id="username" type="text" style="width:140px;height:16px;color:#999" value="" class="text"/>
                                </td>
                            </tr>
                            <tr>
                            	<td id="alert_username" style="color:#F00;"></td>
                            </tr>
                            <tr>
                                <td align="left">
                                密&nbsp;&nbsp;码：<input name="password" id="password" type="password" style="width:142px;height:17px;border:1px solid #7F9DB9;background:#ffffff url(pass.gif) no-repeat;color:#999;" class="text" value="" />
                                </td>
                            </tr>
                            <tr>
                            	<td id="alert_password" style="color:#F00;"></td>
                            </tr>
                            <tr>
                                <td align="left"><table width="90%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td align="center"><input name="cmslogin" type="submit" style="width:58px;height:22px;font-size:13px;" value="登录" onclick="onlogin()" /></td>
                                        <td><a href="<?=$cms_abs?>/adminm.php?action=lostpwd">找回密码</a></td>
                                    </tr>
                                </table></td>
                            </tr>
                        </table>
                        </form>
                        <table width="92%" border="0" cellspacing="0" cellpadding="0" style="border-top:1px solid #aaa">
                          <tr>
                            <td height="40" align="left">&nbsp;&nbsp;<b>没有帐号？</b></td>
                          </tr>
                          <tr>
                            <td height="30" align="center" valign="top"><input name="submit" type="submit" value="立即注册<?=$hostname?>帐号" onclick="location.href='<?=$cms_abs?>/register.php';" /></td>
                          </tr>
                        </table>  
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">&nbsp;</td>
                    </tr>
                    <tr>
                        <td height="110" align="center" class="bd_hui1"><a href="<?=$cms_abs?>"><img src="<?php $u=_utag_parse(array("ename" => "csmlogo","tclass" => "image","tname" => "$cmslogo",));if(!empty($u)){?><?=$u['url']?><?php } unset($u);?>" border="0" /></a></td>
                    </td>
                    </tr>
              </table></td>
                <td width="24" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td height="170"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td height="130" bgcolor="#005099">&nbsp;</td>
                      </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                  </tr>
                </table></td>
            </tr>
        </table></td>
    </tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30">&nbsp;</td>
  </tr>
  <tr>
    <td height="25" align="center" bgcolor="#E6E6E6" class="zi12"><?=$copyright?></td>
  </tr>
  <tr>
    <td>
    </td>
  </tr>
</table>
<script type="text/javascript">
function check_cmslogin_submit(form){
var i = true;
clearalerts(form);
obj = $('#username')[0]; objval = trim($('#username')[0].value);j = true;
if(j && (objval == '' || objval == 0)){
 $('#alert_username').append('不能为空'); if(i) obj.focus(); j = false; i = false;
}
 if(j && strlen(objval) > 15){
 $('#alert_username').append('输入长度大于15');if(i) obj.focus(); j = false; i = false;
}
 obj = $('#password')[0]; objval = trim($('#password')[0].value);j = true;
if(j && (objval == '' || objval == 0)){
 $('#alert_password').append('不能为空'); if(i) obj.focus(); j = false; i = false;
}
 if(j && strlen(objval) > 15){
 $('#alert_password').append('输入长度大于15');if(i) obj.focus(); j = false; i = false;
}
 return i;
}
function strlen(str){
	return str.replace(/[^\x00-\xff]/g, "**").length;
}
function trim(str) {
	return (str + '').replace(/\s+$/g, '').replace(/^\s+/g, '');
}
function clearalerts(form){
	tags = findtags(form,'td');
	if(!tags) return;
	var reg = /alert_/;
	for(k in tags){
		if(reg.test(tags[k].id)) tags[k].innerHTML = '';
	}
}
function findtags(parentobj, tag) {
	if(!isUndefined(parentobj.getElementsByTagName)) {
		return parentobj.getElementsByTagName(tag);
	} else if(parentobj.all && parentobj.all.tags) {
		return parentobj.all.tags(tag);
	} else {
		return null;
	}
}
function isUndefined(variable) {
	return typeof variable == 'undefined' ? true : false;
}
</script>
</body>
</html>
