| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- <?
- include("../config/conn.php");
- include("../config/function.php");
- sesCheck();
- $bh=$_GET[bh];
- $userid=returnuserid($_SESSION[SHOPUSER]);
- $sqltask="select * from yjcode_task where bh='".$bh."' and taskty=0 and userid=".$userid."";mysql_query("SET NAMES 'GBK'");$restask=mysql_query($sqltask);
- if(!$rowtask=mysql_fetch_array($restask)){php_toheader("tasklist.php");}
- $sqltaskhf="select * from yjcode_taskhf where bh='".$bh."' and taskty=0 and useridhf=".$rowtask[useridhf]." and ifxz=1";mysql_query("SET NAMES 'GBK'");$restaskhf=mysql_query($sqltaskhf);
- if(!$rowtaskhf=mysql_fetch_array($restaskhf)){php_toheader("tasklist.php");}
- //函数开始
- if($_GET[control]=="add"){
- zwzr();
- $txt=sqlzhuru1($_POST[content]);
- $sj=date("Y-m-d H:i:s");
- intotable("yjcode_tasklog","bh,userid,useridhf,admin,txt,sj,fj","'".$bh."',".$rowtask[userid].",".$rowtask[useridhf].",1,'".$txt."','".$sj."',''");
- php_toheader("taskgts.php?t=suc&bh=".$bh);
- }
- //函数结果
- ?>
- <!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="x-ua-compatible" content="ie=7" />
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
- <title>用户管理面板 - <?=webname?></title>
- <? include("cssjs.html");?>
- <link href="css/task.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript" src="../config/ueditor/ueditor.config.js"></script>
- <script type="text/javascript" src="../config/ueditor/ueditor.all.min.js"> </script>
- <script type="text/javascript" src="../config/ueditor/lang/zh-cn/zh-cn.js"></script>
- <script type="text/javascript">
- function tj(){
- layer.msg('正在处理中,请稍候', {icon: 16 ,time: 0,shade :0.25});
- f1.action="taskgts.php?bh=<?=$bh?>&control=add";
- }
- </script>
- </head>
- <body>
- <? include("../tem/top.html");?>
- <? include("top.php");?>
- <div class="yjcode">
- <? include("left.php");?>
- <!--RB-->
- <div class="userright">
-
- <? include("rcap17.php");?>
- <script language="javascript">
- document.getElementById("rcap1").className="l1 l2";
- </script>
- <!--白B-->
- <div class="rkuang">
-
- <? include("taskv.php");?>
- <?
- while2("*","yjcode_user where id=".$rowtaskhf[useridhf]);$row2=mysql_fetch_array($res2);
- ?>
- <ul class="taskmain">
- <li class="l1">中标用户:</li>
- <li class="l3"><?=$row2[nc]?></li>
- <li class="l1">联系QQ:</li>
- <li class="l3"><a href="http://wpa.qq.com/msgrd?v=3&uin=<?=$row2[uqq]?>&site=<?=weburl?>&menu=yes" target="_blank"><?=$row2[uqq]?></a></li>
- <li class="l1">联系电话:</li>
- <li class="l3"><?=$row2[mot]?></li>
- <li class="l1">用户报价:</li>
- <li class="l3"><strong class="red">¥<?=$rowtaskhf[money1]?></strong></li>
- <li class="l1">中介费用:</li>
- <li class="l3">
- <?
- if(empty($rowtask[yjfs])){echo "雇主承担,费用为<strong class='feng'>¥".$rowtaskhf[money1]*$rowcontrol[taskyj]."</strong>";}
- elseif($rowtask[yjfs]==1){echo "接手方承担";}
- elseif($rowtask[yjfs]==2){echo "双方各承担一半,费用为<strong class='feng'>¥".$rowtaskhf[money1]*$rowcontrol[taskyj]*0.5."</strong>";}
- ?>
- </li>
- <li class="l1">用户IP:</li>
- <li class="l3"><a href="https://www.baidu.com/s?wd=<?=$rowtaskhf[uip]?>" target="_blank"><?=$rowtaskhf[uip]?></a></li>
- <li class="l1">报名时间:</li>
- <li class="l3"><?=$rowtaskhf[sj]?></li>
- <li class="l1">中标时间:</li>
- <li class="l3"><?=$rowtaskhf[zbsj]?></li>
- <li class="l1">任务截止:</li>
- <li class="l3 red"><?=$rowtaskhf[rwdq]?></li>
- <li class="l4">接手留言:</li>
- <li class="l5"><?=strip_tags(returnjgdw($rowtaskhf[txt],"","未填写任何说明"))?></li>
- </ul>
- <div class="taskgtlist">
- <div class="cap"> 沟通记录</div>
- <ul class="u1">
- <li class="l1"><img src="<?=returntppd("../upload/".$rowtask[userid]."/user.jpg","img/nonetx.gif")?>" width="40" height="40" /></li>
- <li class="l2">[雇主] 发起任务<br><?=$rowtask[sj]?></li>
- </ul>
- <?
- while1("*","yjcode_tasklog where bh='".$bh."' order by sj asc");while($row1=mysql_fetch_array($res1)){
- $txt=$row1[txt];
- if($row1[admin]==1){$tp=returntppd("../upload/".$row1[userid]."/user.jpg","img/nonetx.gif");$sf="雇主";}
- elseif($row1[admin]==2){$tp=returntppd("../upload/".$row1[useridhf]."/user.jpg","img/nonetx.gif");$sf="接手方";}
- elseif($row1[admin]==3){$tp="img/nonetx.jpg";$sf="平台";}
- ?>
- <ul class="u1">
- <li class="l1"><img src="<?=$tp?>" width="40" height="40" /></li>
- <li class="l2">[<?=$sf?>] <?=$txt?><br><?=$row1[sj]?></li>
- </ul>
- <? }?>
-
- <div class="clear clear10"></div>
-
- <? if($rowtask[zt]==3 || $rowtask[zt]==4 || $rowtask[zt]==8){?>
- <form name="f1" method="post" onsubmit="return tj()">
- <ul class="u2">
- <li class="l1">回复内容:</li>
- <li class="l2"><script id="editor" name="content" type="text/plain" style="width:810px;height:400px;"><?=$row[txt]?></script></li>
- <li class="l3"><? tjbtnr("提交内容","tasklist.php")?></li>
- </ul>
- </form>
- <? }?>
- </div>
-
- <div class="clear clear10"></div>
- </div>
- <!--白E-->
- </div>
- <!--RE-->
- </div>
- <script language="javascript">
- //实例化编辑器
- var ue= UE.getEditor('editor'
- , {
- toolbars:[
- ['fullscreen', 'source', '|', 'undo', 'redo', '|',
- 'removeformat', 'formatmatch' ,'|', 'forecolor',
- 'fontsize', '|',
- 'link', 'unlink',
- 'insertimage', 'emotion', 'attachment']
- ]
- });
- </script>
- <div class="clear clear15"></div>
- <? include("../tem/bottom.html");?>
- </body>
- </html>
|