<!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>www.mayicms.com</title> 
<style type="text/css"> 
body{font-size:14px;padding:0;margin:0;color:#53535F;font-family:"microsoft yahei";}p,form,ul,dl,ol,li,dt,dd,h1,h2,h3{margin:0;padding:0;list-style:none;font-family:"microsoft yahei";}select,input,textarea,button{font-family:"microsoft yahei";}select::-webkit-input-placeholder,input::-webkit-input-placeholder{color:#bbb;}.fl{float:left}.fr{float:right;}.clear{clear:both;overflow:hidden;height:10px}.clearfix{clear:both;overflow:hidden;height:0;}input.text{width:200px;border-radius:4px;padding:5px;height:22px;line-height:22px;border:1px solid;border-color:#EDF2F9;margin-right:5px;}input.txt{width:73px!important;padding:5px;height:22px;line-height:22px;border:1px solid;border-color:#EDF2F9;border-radius:4px;margin-right:5px;}input.radio{border:0;vertical-align:middle}input.checkbox{border:0;vertical-align:middle}select{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;vertical-align:middle;border:1px solid #EDF2F9;background:#fff;padding:4px 5px 5px 5px;border-radius:4px;}textarea{font-size:14px;border:1px #EDF2F9 solid;border-radius:4px;padding:10px;width:360px;height:115px;}select:hover,textarea:hover,input.text:hover,input.txt:hover{border:1px #0089F5 solid;}input.mymps{background-color:#0089F5;border:1px #0089F5 solid;border-radius:4px;color:white;cursor:pointer;}input.mymps:hover{background-color:#2E98F6;}input.gray{background-color:#EBF3FE;border:1px #DEDEDE solid;color:#3F87F5!important;border-radius:4px;color:#333;cursor:pointer;}input.gray:hover{background-color:#3F87F5;border:1px #3F87F5 solid;color:white!important;}button.mini,input.mini{padding-left:15px;padding-right:15px;padding-bottom:6px;padding-top:5px;}button.large,input.large{padding-left:30px;padding-right:30px;padding-bottom:8px;padding-top:6px;margin-top:10px;font-size:16px;}button.normal,input.normal{padding-left:20px;padding-right:20px;padding-bottom:8px;padding-top:8px;margin-top:8px;font-size:14px;}.authcode{float:left;border:1px #eee solid;height:32px;cursor:pointer}.map .maptext{width:270px;border:1px #3592e2 solid;padding:6px 10px;}.map .mapsubmit{background-color:#3592e2;border:0;color:white;padding:7px 10px;border-radius:0 2px 2px 0;}.map .none{display:none;}.map #container{position:absolute;margin-top:10px;margin-bottom:10px;}.showme{padding-bottom:30px;padding-top:10px;}.showme ul{margin:10px 15px 10px 10px;padding:10px;border-radius:6px;background-color:#EBF3FE;}.showme li{margin:0;overflow:auto;padding:3px 10px;width:95%;height:100%;line-height:28px;min-height:28px;text-align:left!important;}.showme span.l{color:#5394F6;width:19%;display:block;float:left}.showme span.r{color:#888;width:77%;display:block;float:left;overflow-y:auto;max-height:100px;}.showme span.details{background-color:white!important;padding:6px 10px;border-radius:6px;font-size:12px;}.showme span.r a{color:#3592e2;}center a{text-decoration:none;}.gray{font-size:14px;font-family:microsoft yahei;cursor:pointer;text-align:center}.gray:hover{text-decoration:none;}.gray{background-color:#EBF3FE;border:1px #DEDEDE solid;color:#3F87F5!important;border-radius:2px;color:#333;cursor:pointer;}.gray:hover{background-color:#3F87F5;border:1px #3F87F5 solid;color:white!important;}.large{padding-left:30px;padding-right:30px;padding-bottom:8px;padding-top:6px;margin-top:10px;font-size:16px;}body{padding:0px 0 10px 0;}#center{width:auto;margin-top:0px;margin-right:auto;margin-bottom:0px;margin-left:auto;}.content{padding-left:70px;}.content_1{float:left;width:auto;line-height:24px;}.content_1 .hj{padding-top:5px;padding-bottom:5px;}.content_1 strong{}.content_1 b{}.content_2{line-height:24px;float:right;width:170px;padding-right:15px;margin-top:20px;}.content_2 span{}.clear{clear:both;height:10px;visibility:hidden;overflow:hidden}a:hover{color:#FF0000;}.content_11{float:left;width:auto;line-height:24px;}.cont{padding:10px 30px 0 30px;}.cont_1{width:auto;line-height:24px;}.nr{height:auto;overflow:auto;font-size:13px;}.nr span.l{display:block;width:350px;}.nr span.r{display:block;width:350px;}.nr em{font-style:normal;color:#FF0000;}.nr b{color:#006acd;}.input0{border:1px solid #b9cde3;height:18px;vertical-align:middle;width:150px;line-height:18px;padding-left:5px;padding-right:5px;}textarea{border:1px solid #b9cde3;height:40px;width:436px;vertical-align:middle;padding-left:5px;padding-right:5px;}input.submit{border:1px solid;cursor:pointer;border-color:#fff #848484 #848484 #fff !important;background:#1B72AF !important;color:#FFFFFF !important;line-height:20px;}.mymps{width:100%}.mymps td{border-bottom:1px #f6f6f6 solid;text-align:center;padding:1.7px 0;}.current td{color:#090;border-color:#eee;background-color:#f5fff1;}.current td.icon{background:#f5fff1 url(../member/template/images/valid.gif) no-repeat 5px 4px;}
</style> 
<script type="text/javascript">function $(id) {return document.getElementById(id);}</script>
</head> 

<body> 
<div id="center"> 
	<form action="box.php" method="post">
	<input name="part" value="credits_up" type="hidden">
	<input name="action" value="post" type="hidden">
	<div class="cont"> 
	
		<div class="cont_1"> 
		
			<div>
				<table border="0" cellspacing="0" cellpadding="0" class="mymps">
				<tr bgcolor="#f5f8ff"><td>信用等级</td><td>信用度大于</td><td>信用度小于</td><td>等级图标</td></tr> 
				<?php for($i=1;$i<16;$i++){?>
				<tr align="center" bgcolor="white" <?php if($row['credits'] == $i) echo 'class="current"';?>><td class="icon"><?php echo $i; ?></td><td><?php echo $credit_set[rank][$i]?></td><td><?php echo $credit_set[rank][$i+1]?>&nbsp;</td><td><img src="<?=$mymps_global['SiteUrl']?>/images/credit/<?php echo $i; ?>.gif" border="0"></td> 
				<?php }?>
				</table>
			</div>
		  <div class="nr" style="padding:8px 5px 0 5px;">当前金币 <font color="red"><?=$row['money_own']?></font> <img src="<?=$mymps_global['SiteUrl']?>/member/images/mymps_icon_incomes.gif" align="absmiddle">，我要使用<input name="coin" id="coin" type="text" value="<?=$row['money_own']?>" class="txt" style="width:40px" onKeyUp="if(value><?=$row['money_own']?>)value=<?=$row['money_own']?>;javascript:can_credit();"/>个金币来购买<font id="credit" style="color:red"></font>信用值，总信用值将达到<font id="credit_total" style="color:red"></font>			</div> 
			
		</div>  
	
		<div class="clearfix"></div> 
		<div style="text-align:center; padding:0;">
        <input type="submit" style="width:120px; margin-left:auto; margin-right:auto;" class="mymps normal" value="确认购买" <?php if(empty($row['money_own'])) echo 'disabled';?>/>
        </div> 
	
	</form>
<script type="text/javascript">$('credit').innerHTML = <?php echo $row['money_own'];?>*<?php echo $coin_credit;?>;$('credit_total').innerHTML = parseInt($('credit').innerHTML)+parseInt(<?php echo $row[credit];?>);function can_credit(){$('credit').innerHTML = $('coin').value*<?php echo $coin_credit;?>;$('credit_total').innerHTML = parseInt($('credit').innerHTML)+parseInt(<?php echo $row[credit];?>);}</script>
</div>
</body> 
</html> 