<!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=gbk" />
<meta http-equiv="Content-Language" content="zh-CN" />
<title><?=$mymps_global[SiteName]?>推广服务中心</title>
<link type="text/css" rel="stylesheet" href="<?=$mymps_global[SiteUrl]?>/template/global/zhiding.css" >
<script src="<?=$mymps_global[SiteUrl]?>/template/global/mymps_noerr.js" type="text/javascript"></script>
</head>
<body>
<div id="dcontent">
<div class="all">
	<div class="blank"></div>
	<h2><?php echo $s_uid; ?>，请选择置顶类型：</h2>
	<div class="blank10"></div>
		<div class="blankColor2Px"></div>
	<div id="con">

		<div id="tagContent">
			<div class="border">
                <form method="post" action="<?=$mymps_global[SiteUrl]?>/box.php?part=upgrade" name="form1" onsubmit="document.form1.post_submit.disabled=true;">
                <input type="hidden" name="id" value="<?=$id?>">
                <input type="hidden" name="catid" value="<?=$catid?>">
                <input type="hidden" name="money_own" value="<?=$money_own?>">
                <input type="hidden" name="iftop" value="<?=$row['upgrade_type']?>">
				<input type="hidden" name="iflisttop" value="<?=$row['upgrade_type_list']?>">
                <input type="hidden" name="ifindextop" value="<?=$row['upgrade_type_index']?>">
                <input type="hidden" name="ac" value="actionupgrade">
                <input type="hidden" name="box" value="1">

				<div id="proSerList" class="tagContentClass  selectTag">
					<table class="fftable" cellpadding="0" cellspacing="0">
						<tr>
							<th>推广我的信息</th>
							<th align="left" style="padding-left:10px;">
							<span>置顶类型</span>
							</th>
							<th align="left" style="padding-left:10px;">
							<span>置顶时长</span>
							</th>
						</tr>
						<tr class="listingRowHighlight">
							<td style="height:38px">
                                <div class="listingRow">
                                <h4 class="listingTitle">
                                <a style="text-decoration:underline;" href="<?=$mymps_global[SiteUrl]?>/information.php?id=<?=$id?>" target="_blank"><?=$row[title]?></a>
                                																			</h4>
                                </div>
							</td>
							<td align="center">
                                <select name="upgrade_type" id="upgrade_type">
                                    <option value="cfg_member_upgrade_top">大类置顶</option>
									<option value="cfg_member_upgrade_list_top">小类置顶</option>
                                    <option value="cfg_member_upgrade_index_top">上首页</option>
                                </select>
                            </td>
							<td align="center">
                                <?=GetUpgradeTime()?>
                            </td>
						</tr>
                    </table>
				</div>
				<div id="message" class="errorMsgBorder errorMsgText" style="display:none;">请至少选择一项服务</div>
				<div class="hline" ></div>
				<table border="0" cellspacing="0" cellpadding="0" width="100%" class="totalnew">
					<tr>
						<td><div>您目前拥有金币<font color="red"><?=$money?></font>，将扣除您的金币：</div></td>
						<td width="10%" ><div><span ><font id="total">0</font></span></div></td>
					</tr>
				</table>
				<div class="blank20"></div>
                <CENTER>
                <button type="submit" class="ButtonOrgLong WordSevenLong" name="actionupgrade"  style="width:250px;background:transparent url(<?=$mymps_global[SiteUrl]?>/images/zhiding/pay_btnTmp.png) no-repeat scroll 0pt -105px;" id="post_submit">确认无误，提交置顶</button>
                </CENTER>
				</form>
				<script language="javascript">
                function calculate() 
                {
                    var ID0=document.getElementById("upgrade_type").value; 
                    var ID1=document.getElementById("upgrade_time").value; 
                    var ID2=document.getElementById("total").value;
                    if(ID0 == "cfg_member_upgrade_top"){
                        document.getElementById("total").innerHTML=<?php echo $mymps_global[cfg_member_upgrade_top]?>*ID1;
                    }else if(ID0 == "cfg_member_upgrade_list_top"){
                        document.getElementById("total").innerHTML=<?php echo $mymps_global[cfg_member_upgrade_list_top]?>*ID1;
                    }else{
                        document.getElementById("total").innerHTML=<?php echo $mymps_global[cfg_member_upgrade_index_top]?>*ID1;
                    }
                    
                    if(ID0==""||ID1=="") 
                    ID2="";
                    setTimeout("calculate()",30);
                } 
                calculate()
                </script>
			</div>
			<div class="blank20"></div>
		</div>
	</div>
</div>
</div>
</body>
</html>