<?
include("../config/conn.php");
include("../config/function.php");
$ses=" where zt=0";
$ty1id=returnsx("j");if($ty1id!=-1){$ses=$ses." and type1id=".$ty1id;$ty1name=returntasktype(1,$ty1id);}
$ty2id=returnsx("k");if($ty2id!=-1){$ses=$ses." and type2id=".$ty2id;$ty2name=returntasktype(2,$ty2id);}
if(returnsx("m")==0){$ses=$ses." and ifok=0";}elseif(returnsx("m")==1){$ses=$ses." and ifok=1";}
if(returnsx("p")!=-1){$page=returnsx("p");}else{$page=1;}
?>
<html>
<head>
<meta http-equiv="x-ua-compatible" content="ie=7" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>任务大厅 - <?=webname?></title>
<meta name="keywords" content="星期派,素材交易,AE模板,会声会影模板,AE模板教程,AE,相册AE模板,数字内容交易,视频素材"/>
<meta name="description" content="星期派是国内首家商城数字交易网站，提供AE模板，影视后期素材，视频素材，作品鉴赏等，找素材上星期派"/>
    <script>
        var now = new Date();
        var beginTime = now.getTime();
        var isLazyload = 1;
        var isMasonry = 1;
        var obj = {};
        obj.picid = 0;
        obj.exeCode = 16127;
        obj.exeTime = 0.0260;
        obj.loadCode = 16128;
        obj.loadTime = 0;
        obj.kid = 0;
        obj.bigclassid = 0;
        obj.smallclassid = 0;
        obj.page = 1;
    </script>
<link rel="stylesheet" type="text/css" href="css/new_top.css">
<script src="js/jquery-1.7.1.min.js" ></script>
<script src="js/public_new.js" ></script>
<script language="javascript" src="../js/basic.js"></script>
<link href="index.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="index.js"></script>
</head>
<body>

<link rel="stylesheet" href="../css/bottom.css">
<link rel="stylesheet" type="text/css" href="css/scene.css">
<script type="text/javascript" src="js/scene.js"></script>
<script type="text/javascript">PVTJ()</script>
<? include("../tem/top.html");?>
<? include("../tem/top1.html");?>


<div style="width:1200px; margin:0 auto;height: 43px;line-height: 43px;color: #898989;font-size:12px" class="g-taskposition col-lg-12 col-left">

您的位置：<a href="<?=weburl?>">首页</a> &gt; 任务大厅

</div>




<div class="bfb bfbtask fontyh">
<div class="yjcode">
 
 <!--左B-->
 <div class="listleft">
 <ul class="listcap">
 <li class="l1">任务类型：</li>
 <li class="l2">
 <a href="<?=rentser('j','','k','')?>"<? if(returnsx("j")==-1){?> class="a1"<? }?>>全部</a>
 <? while1("*","yjcode_tasktype where admin=1 order by xh asc");while($row1=mysql_fetch_array($res1)){?>
 <a href="<?=rentser('j',$row1[id],'k','')?>"<? if(returnsx("j")==$row1[id]){?> class="a1"<? }?>><?=$row1[name1]?></a>
 <? }?>
 </li>
 </ul>
 <? if($ty1id!=-1){?>
 <ul class="listcap">
 <li class="l1"><?=$ty1name?>：</li>
 <li class="l2">
 <a href="<?=rentser('k','','','')?>"<? if(returnsx("k")==-1){?> class="a1"<? }?>>全部</a>
 <? while1("*","yjcode_tasktype where admin=2 and name1='".$ty1name."' order by xh asc");while($row1=mysql_fetch_array($res1)){?>
 <a href="<?=rentser('k',$row1[id],'p','1')?>"<? if(returnsx("k")==$row1[id]){?> class="a1"<? }?>><?=$row1[name2]?></a>
 <? }?>
 </li>
 </ul>
 <? }?>
 <ul class="listcap">
 <li class="l1">任务状态：</li>
 <li class="l2">
 <a href="<?=rentser('m','','p','1')?>"<? if(returnsx("m")==-1){?> class="a1"<? }?>>全部</a>
 <a href="<?=rentser('m','0','p','1')?>"<? if(returnsx("m")==0){?> class="a1"<? }?>>正在招标</a>
 <a href="<?=rentser('m','1','p','1')?>"<? if(returnsx("m")==1){?> class="a1"<? }?>>已结帖</a>
 </li>
 </ul>
 
 <ul class="rwcap">
 <li class="l1">任务列表</li>
 <li class="l2"><a href="taskadd.php">我要发任务</a></li>
 </ul>
 
 <?
 pagef($ses,30,"yjcode_task","order by sj desc");while($row=mysql_fetch_array($res)){
 taskok($row[endsj],$row[id]);
 ?>
 <ul class="ulist fontyh" onMouseOver="this.className='ulist ulist1 fontyh';" onMouseOut="this.className='ulist fontyh';">
 <li class="l1">
 <strong class="red">￥<?=$row[money1]?></strong> <a href="view<?=$row[id]?>.html" target="_blank" class="a1"><?=$row[tit]?></a> <br>
 <span class="hui"><?=strgb2312(strip_tags($row[txt]),0,60)?></span>
 </li>
 <li class="l2"><?=returntasktype(1,$row[type1id])?><br><?=returntasktype(2,$row[type2id])?></li>
 <li class="l3"><? if(0==$row[ifok]){?><span class="blue">正在招标</span><? }else{?><span class="red">已结帖</span><? }?></li>
 <li class="l4">回复:<?=returncount("yjcode_taskhf where bh='".$row[bh]."'")?><br>更新:<?=dateYMD($row[sj])?></li>
 </ul>
 <? }?>
 <div class="npa">
 <?
 $nowurl="search";
 $nowwd="";
 require("../tem/page.html");
 ?>
 </div>
 </div>
 <!--左E-->
 
 <!--右B-->
 <div class="listright">
  <? adwhile("ADTASK01")?>
  <div class="d1">
  <ul class="u1"><li class="l1">最新任务</li><li class="l2"></li></ul>
  <? while1("*","yjcode_task where zt=0 and ifok=0 order by sj desc limit 10");while($row1=mysql_fetch_array($res1)){?>
  <ul class="u2">
  <li class="l1"><span class="red">￥<?=$row1[money1]?></span> <a href="view<?=$row1[id]?>.html" target="_blank" class="a1"><?=$row1[tit]?></a></li>
  <li class="l2"><?=dateYMD($row1[sj])?></li>
  <li class="l3"><span class="red"><?=returncount("yjcode_taskhf where bh='".$row1[bh]."'")?></span>个回复</li>
  </ul>
  <? }?>
  </div>
 </div>
 <!--右E-->

</div>
</div>
<? include("../tem/bottom.html");?>
</body>
</html>