<?php
require("../conn.php");
ob_start();
session_start(); 

require('login_user_check.php');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<link href="../css/css.css" rel="stylesheet" type="text/css"> 
<style type="text/css">
<!--
body { 
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style></head> 
<body><div align="center">
<form name="user_form" method="post" action="../ad_action.php?type_action=edit&occupation_value_1=<?=$_GET['occupation_value_1']?>&degree_value_1=<?=$_GET['degree_value_1']?>&service_value_1=<?=$_GET['service_value_1']?>&service_time_1=<?=$_GET['service_time_1']?>&subject_name_a=<?=$_GET['subject_name_a']?>&subject_name_b=<?=$_GET['subject_name_b']?>&subject_name_c=<?=$_GET['subject_name_c']?>&subject_content_d=<?=$_GET['subject_content_d']?>&experience_value_1=<?=$_GET['experience_value_1']?>&province_name_1=<?=$_GET['province_name_1']?>&city_name_1=<?=$_GET['city_name_1']?>&school_1=<?=$_GET['school_1']?>&professional_1=<?=$_GET['professional_1']?>&class_value_1=<?=$_GET['class_value_1']?>&student_number_1=<?=$_GET['student_number_1']?>&state_value_1=<?=$_GET['state_value_1']?>&effective_value_1=<?=$_GET['effective_value_1']?>&id=<?=$id?>&page=<?=$_GET['page']?>" onSubmit="return user_form_check()">















<?php switch ($_GET['submit_action']) { case '1': $rows_number=6; $id=1; $width_value=150; $height_value=40; $height_number=110;
break; case '2': $rows_number=2; $id=7; $width_value=70; $height_value=150; $height_number=220;
break; case '3': $rows_number=1; $id=9; $width_value=70; $height_value=150; $height_number=220;
break; case '4': $rows_number=1; $id=10; $width_value=550; $height_value=40; }
$ad_check="select * from ad_info_data where sort_id='1'";
$rs_ad_check=mysql_query ($ad_check);
?><br><br>
<table width="970" border="0" cellpadding="0" cellspacing="0" style="border:1px #9DC3EA solid;" class="news_css">
    <tr background="../images/sort_background.jpg">
      <td height="30" colspan="2" class="button_css">　首页变换广告</td>
    </tr> 
    <tr align="center">
	  <td height="40" colspan="2" style="font-size:12px;color:#FF0000;">图片尺寸：<?php switch ($_GET['submit_action']) { case '1': ?>750 * 196<?php break; case '2': ?>210 * 450<?php break;case '3': ?>210 * 450<?php break;case '4': ?>970 * 70<?php } ?>　　　　只能上传.gif 和 .jpg 格式的图片</td>
      </tr>
<?php for ($i=1;$i<=$rows_number;$i++) { $rs_ad_info=mysql_fetch_object ($rs_ad_check) ?>
    <tr>
      
	  
	  <td width="70" height="130">　<?php if ($_GET['submit_action']<3) { ?>广告<?=$i?>：<?php } ?></td>  
	  
	  

	  <td width="900" height="150" rowspan="2" align="left" valign="middle"><iframe src="upload_file.php?id=<?=$id?>&width_value=<?=$width_value?>&height_value=<?=$height_value?>" width="900" height="<?=$height_number?>" frameborder="0" scrolling="no"></iframe></td>
    </tr>
    <tr>
      <td height="20">&nbsp;</td>
    </tr>
<?php $id=$id+1; } ?></table><br><br></form>
</div></body></html>