Example #1
0
        </div>
		<!--e:任务详细说明-->
        
    </div>
<!--e:任务信息-->
  


<!--s:回復框-->
<div id="main" class="task_reply">
       
           <?php 
if ($_SESSION['usnamese'] == "") {
    $Usidxx['id'] = 0;
}
if (Jlcount('user_renwu', "userid=" . $Usidxx['id'] . " and renwuid=" . $row['id']) > 0) {
    echo "您已提交报告";
} else {
    if ($row['xianshi'] == 3 || strtotime($row['T_jieshu']) < $CCtimes) {
        echo "该任务已结束";
    } else {
        ?>
           <form id="task_answer_form" class="w930 pad_10  pad_bottom_30 border_bottom_c2c" action="" method="post">
               <input type="hidden" id="t_id" value="<?php 
        echo $row['id'];
        ?>
">
                <textarea id="taskanswer" name="taskanswer" class="task_box"></textarea>
                <div class="fz_14 margin_top_20 clearfix">
                    <a class="button_y1" href="javascript:;" onclick="$(this).next().click();" target="_self" style="float: left;margin-left: 4px;">交稿</a>
                    <input style="width: 0px;height: 0px;border: 0;" type="submit" value="交稿" />
Example #2
0
         $arry["id"] = 128;
         $arry["msg"] = "只有VIP会员才有权参与";
         echo json_encode($arry);
         exit;
     }
 }
 if (isset($ttid) && Sitecount('id', 'remai', "id={$ttid} and xianshi=1 and T_jieshu>'{$CCdates}'") != 1) {
     $arry["id"] = 0;
     //返回代号,未登录:114,
     $arry["msg"] = "任务已结束";
     //返回信息
     echo json_encode($arry);
     exit;
 } else {
     if (isset($ttid) && isset($answer)) {
         if (Jlcount('user_renwu', "userid=" . $Usidxx['id'] . " and renwuid={$ttid}") == 0) {
             $sql = "insert into user_renwu set contents='{$answer}',name='{$Rmusname}',createtime='{$CCdates}',userid=" . $Usidxx['id'] . ", renwuid={$ttid}";
         }
     } else {
         $sql = "update user_renwu set contents='{$answer}' where userid=" . $Usidxx['id'] . " and id={$tid} and xianshi=0";
     }
     mysql_query($sql);
     $count = mysql_affected_rows();
     if ($count > 0) {
         $arry["id"] = 215;
         //提交成功 215
         $arry["msg"] = "提交稿件成功,请耐心等待审核";
         //返回信息
     } else {
         $arry["id"] = 0;
         $arry["msg"] = "提交稿件失败";