kit.html 9.13 KB
<!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=utf-8">
	<title>首页</title>

	<link rel="stylesheet" type="text/css" href="../css/style/common.css">
    <style type="text/css">
	    html,body{
	    	margin: 0;
	    	padding: 0;
	    }
		h1,.mian{
			margin: 20px;
		}
		.pop-title{
			text-align: center;
		}
		.pop-content{
			margin-top: 20px;
		}
		.pop-btn{
			margin-top: 20px;
			text-align: center;
		}
		#popdiv{
			padding: 30px;
			width: 400px;
		}
    </style>  

    <script type="text/javascript" src="../../common/js/base/jquery-1.8.2.min.js"></script>
	<script type="text/javascript" src="../../common/js/base/sea.js"></script>      
	<script type="text/javascript" src="../js/javascript/common/config.js"></script>      
</head>
<body>

<!-- header-->

<!-- header end -->

<!-- main start -->
<h1>按钮</h1>
<div class="mian">
	<a href="#" class="submitBtn">按钮</a>
	<a href="#" class="submitBtn orangeBtn">按钮</a>
	<a href="#" class="submitBtn grayBtn">按钮</a>
	<a href="#" class="submitBtn disabledBtn">禁用</a>
	<a href="#" class="submitBtn strongBtn">按钮</a>
	<button class="submitBtn strongBtn">按钮</button>
	<a href="#" class="submitBtn orangeBtn strongBtn">按钮</a>
	<span class="submitBtn grayBtn strongBtn">按钮</span>
	<span class="submitBtn disabledBtn strongBtn">按钮</span>
</div>
<div class="mian">
	<a href="#" class="submitBtn bigBtn">按钮</a><br><br>
	<a href="#" class="submitBtn orangeBtn bigBtn">按钮</a><br><br>
	<a href="#" class="submitBtn grayBtn bigBtn">按钮</a><br><br>
	<a href="#" class="submitBtn disabledBtn bigBtn">禁用</a>
</div>

<h1>文本框</h1>
<div class="mian">
	<table class="form-table">
		<tr>
			<td class="align-right"><span class="required-icon">*</span>标题:</td>
			<td>
				<input class="iptText">
				<p class="iptTips">提示文字</p>
			</td>
		</tr>
		<tr>
			<td class="align-right">标题:</td>
			<td><input class="iptText valid"></td>
		</tr>
		<tr>
			<td class="align-right">标题:</td>
			<td><input class="iptText error"></td>
		</tr>
		<tr>
			<td class="align-right">标题:</td>
			<td>
				<select>
					<option>请选择</option>
					<option>选项一</option>
				</select>
			</td>
		</tr>
	</table>
</div>
<h1>分步</h1>
<div class="mian">
	<div class="steps col4">
	    <ul class="clearfix">
	        <li class="steps-current steps1">                               
	            <span class="steps-num">1</span>
	            填写身份信息
	            <i></i>
	            <em></em>
	        </li>
	        <li class="steps2"> 
	            <span class="steps-num">2</span>
	            确认信息
	            <i></i>
	            <em></em>
	        </li>
	        <li class="steps3">
	            <span class="steps-num">3</span>
	            认证审核
	            <i></i>
	            <em></em>
	        </li>
	        <li class="steps4">
	            <span class="steps-num">4</span>
	            认证完成
	        </li>
	    </ul>
	</div>  
</div>
<div class="mian">
	<div class="steps col4">	  
	    <ul class="clearfix">
	        <li class="steps-current steps1">                               
	            <span class="steps-num">1</span>
	            填写身份信息
	            <i></i>
	            <em></em>
	        </li>
	        <li class="steps-current steps2"> 
	            <span class="steps-num">2</span>
	            确认信息
	            <i></i>
	            <em></em>
	        </li>
	        <li class="steps3">
	            <span class="steps-num">3</span>
	            认证审核
	            <i></i>
	            <em></em>
	        </li>
	        <li class="steps4">
	            <span class="steps-num">4</span>
	            认证完成
	        </li>
	    </ul>
	</div>
</div>

<div class="mian">
	<div class="steps col3">	  
	    <ul class="clearfix">
	        <li class="steps-current steps1">                               
	            <span class="steps-num">1</span>
	            填写身份信息
	            <i></i>
	            <em></em>
	        </li>
	        <li class=" steps2"> 
	            <span class="steps-num">2</span>
	            确认信息
	            <i></i>
	            <em></em>
	        </li>
	        <li class="steps3">
	            <span class="steps-num">4</span>
	            认证完成
	        </li>
	    </ul>
	</div>
</div>

<h1>成功,警告,错误icon</h1>
<div class="mian">
	<span class="safe-icon"></span>
	<span class="safe-icon warning-icon"></span>
	<span class="safe-icon error-icon"></span>
</div>

<h1>分页</h1>

<div class="mian">
	<div class="page">
		<a href="#" class="prev">上一页</a><a href="#">1</a><b>2</b><span>...</span><a href="#">13</a><a href="#">14</a><span>...</span><a href="#">39</a><a href="#">40</a><a href="#" class="next">下一页</a>
	</div>
</div>

<h1>验证</h1>
<div class="mian">
	<form  class="s-validate">
		<table class="form-table">
			<tr>
				<td class="align-right"><span class="required-icon">*</span>标题:</td>
				<td>
					<input name="1" class="iptText required">
					<p class="iptTips">提示文字</p>
				</td>
			</tr>
			<tr>
				<td class="align-right"><span class="required-icon">*</span>不验证:</td>
				<td>
					<input name="2" class="iptText ignore">
					<p class="iptTips">提示文字</p>
				</td>
			</tr>
			<tr>
				<td class="align-right"></td>
				<td>
					<button type="submit" class="submitBtn">提交</button>
				</td>
			</tr>
		</table>
	</form>
	注:1、如果使用公共调用的validate方法,即form  class="s-validate" , 如需要对某文本框不进行验证,需要加class=“ignore”。
	2、若单独调用validate方法,如需要对某文本框不进行验证 。 需要使用如:<pre>$( '.s-validate' ).validate({ignore:'.ignore'});</pre>
</div>

<h1>alert 提示框</h1>
<div class="mian">
	<span class="submitBtn" id="alert">alert提示框</span>
	<span class="submitBtn" id="erroralert">错误提示框</span>
	<span class="submitBtn" id="warningalert">警告提示框</span>
</div>
<h1>确认框</h1>
<div class="mian">
	<span class="submitBtn" id="confirm">确认框</span>
</div>
<h1>弹出层</h1>
<div class="mian">
	<a href="#popdiv" class="submitBtn s-fancybox" id="pop">普通弹层</a>
</div>
<div id="popdiv" style="display:none">
	<h2 class="pop-title">普通弹层</h2>
	<div class="pop-content">
		弹层内容
	</div>
	<div class="pop-btn">
		<span class="submitBtn" onclick="$.fancybox.close();">下一步</span>
		<span class="submitBtn grayBtn" onclick="$.fancybox.close();">取消</span>
	</div>
</div>
<!--main end-->

<script type="text/javascript">
	seajs.use(['../js/javascript/common/common.js']);
	seajs.use(['pophint'],function( pophint ) {

        $( '#alert' ).click(function(){
            new pophint( null , {
                 content:"<span class='safe-icon success-icon'></span> <span class='successTips'>密码修改成功</span>"  ,
                 
                 //<span class='safe-icon warning-icon'></span> <span class='warningTips'>密码修改失败</span>
                 //<span class='safe-icon error-icon'></span> <span class='errorTips'>错误</span>

                 onName:"立即重新登录",
                 showButton:false ,
                 operation : function( target ){
                    //点击确定按钮执行的回调  
                 } 
            });
        });
        $( '#erroralert' ).click(function(){
            new pophint( null , {
                 content:"<span class='safe-icon error-icon'></span> <span class='errorTips'>错误提示</span>"  ,
                 
                 //<span class='safe-icon warning-icon'></span> <span class='warningTips'>密码修改失败</span>
                 //<span class='safe-icon error-icon'></span> <span class='errorTips'>错误</span>

                 onName:"确定",
                 showButton:false ,
                 operation : function( target ){
                    //点击确定按钮执行的回调  
                 } 
            });
        });
        $( '#warningalert' ).click(function(){
            new pophint( null , {
                 content:"<span class='safe-icon  warning-icon'></span> <span class='warningTips'>警告提示</span>"  ,
                 
                 //<span class='safe-icon warning-icon'></span> <span class='warningTips'>密码修改失败</span>
                 //<span class='safe-icon error-icon'></span> <span class='errorTips'>错误</span>

                 onName:"确定",
                 showButton:false ,
                 operation : function( target ){
                    //点击确定按钮执行的回调  
                 } 
            });
        });
        
        $( '#confirm' ).click(function(){
            new pophint( this , {
            	content:"<span class='safe-icon warning-icon'></span> <span class='warningTips'>确定要删除吗</span>"  ,
                 operation : function( target ){
                    //点击确定按钮执行的回调  
                 } 
            });
        });
    });
</script>
<!-- footer start -->

<!-- footer end -->

</body>
</html>