|
application\config\config.php
$config['base_url'] = 'localhost';
控制器:login.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Login extends CI_Controller {
public function index()
{
$this->load->view('login');
}
}
视图:login.php
<?php
$this->load->helper('url');
?>
<HTML>
<HEAD>
<TITLE>用户登录</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<link href="<?php echo base_url()?>css/main.css" rel="stylesheet" type="text/css">
</HEAD>
<BODY bgColor=#ffffff><BR>
<TABLE cellSpacing=0 cellPadding=0 width=576 align=center border=0>
<TBODY>
<TR>
<TD width="575"><IMG height=100 width=575 src="<?php echo base_url()?>images/1.gif" /></TD>
</TR>
<TR vAlign=top>
<TD><table width="575" border="0" cellpadding="0" cellspacing="0">
<tr>
<TABLE height=130 cellSpacing=2 cellPadding=0 width=575 background=<?php echo base_url()?>images/2.gif border=0>
<TBODY>
<TR>
<TD width=185 height=26> </TD>
<TD width=384 height=26> </TD>
</TR>
<TR>
<TD width=185 height=40> </TD>
<TD width=384 height=40>
<TABLE height=84 cellSpacing=0 cellPadding=0 width=348 border=0>
<TBODY>
<TR>
<form name="form1" method="post" action="logincheck.php">
<TD width=275 valign="bottom" class=hh>
<FONT color=#000000>用户名:
<input name="USERNAME" type="text" id="USERNAME" style="width:80px; BORDER-RIGHT: #F7F7F7 0px solid; BORDER-TOP: #F7F7F7 0px solid; FONT-SIZE: 9pt; BORDER-LEFT: #F7F7F7 0px solid; BORDER-BOTTOM: #c0c0c0 1px solid; HEIGHT: 16px; BACKGROUND-COLOR: #F7F7F7" maxlength="20">
<FONT color=#000000>密码:</FONT>
<input name="PASSWORD" type="password" id="PASSWORD" style="width:80px; BORDER-RIGHT: #F7F7F7 0px solid; BORDER-TOP: #F7F7F7 0px solid; FONT-SIZE: 9pt; BORDER-LEFT: #F7F7F7 0px solid; BORDER-BOTTOM: #c0c0c0 1px solid; HEIGHT: 16px; BACKGROUND-COLOR: #F7F7F7" maxlength="20">
</FONT></FONT></TD>
<TD width=73 height=42 rowspan="2" align=middle valign="bottom">
<TABLE height=25 cellSpacing=0 cellPadding=0 width="100%" border=0>
<TR align=middle>
<TD><input type="image" align="absmiddle" src="<?php echo base_url()?>images/4.gif" alt="登 录"></TD>
</TR>
</TABLE></TD>
</FORM></TR>
</TBODY></TABLE></TD></TR>
<TR>
<TD width=185> </TD>
<TD width=384> </TD>
</TR></TBODY></TABLE>
</TD>
</TR>
<TR>
<TD><img height=130 src="<?php echo base_url()?>images/3.gif"
width=575></TD>
</TR></TBODY></TABLE>
</BODY></HTML>
图片还是无法显示。什么原因啊?
|
|