<!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" />
<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>
	<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="rrtable" cellpadding="0" cellspacing="0">
						<tr>
							<th colspan=2>推广我的信息</th>
						</tr>
						<tr class="listingRowHighlight">
                        	<td>信息标题</td>
							<td style="height:38px">
                                <div class="listingRow">
                                <h4 class="listingTitle"><?=$row['title']?></h4>
                                </div>
							</td>
                        </tr>
                        <tr class="listingRowHighlight">
                        	<td>置顶类型</td>
							<td>
                                <select name="upgrade_type" id="upgrade_type">
                                    <option value="cfg_member_upgrade_index_top">首页置顶<?php if($mymps_global['oneforthree']==1){?>（赠送大类和小类置顶）<?php }?></option>
                                	<option value="cfg_member_upgrade_top">大类置顶（<?php echo $row['cityname']?><?php echo $row['gname']?>）</option>
									<option value="cfg_member_upgrade_list_top">小类置顶（<?php echo $row['cityname']?><?php echo $row['catname']?>）</option>
                                </select>
                            </td>
                        </tr>
                        <tr class="listingRowHighlight">
                        	<td>置顶时长</td>
							<td>
                                <?=GetUpgradeTime()?>
                            </td>
						</tr>
                    </table>
				</div>
				<div class="blank10"></div>
                <h2><font color="red"><?php echo $s_uid; ?></font>，您目前拥有 <font color="red"><?=$money?></font> 金币，将扣除 <font id="total" color="red">0</font> 金币</h2>
				<div class="blank10"></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>