<table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_19422"> phpcms2008 조회수 플러그인 플러그인 <br> 특정 기사의 조회수를 늘리고, 지정된 범위 내의 기사의 조회수를 늘립니다. <br> 특정 열의 기사 조회수 늘리기 <br> 기업활동 확대 등 <br> 다른 항목을 정의하고 개발할 수도 있습니다. <br><div class="blockcode"> <div id="code_EZF"><ol> <li><?php<li>session_start();<li>extract($_POST);<li>dirname(__FILE__)이 필요합니다.'/include/common.inc.php ';<li>$keyadmin="www.bitefu.net";<li>if($key && $key==$keyadmin)<li>{<li> $_SESSION["NowKey"]=$keyadmin;<li>}<li>if($_SESSION["NowKey"] && $_SESSION["NowKey"]=$keyadmin){<li>?></li> <li><script 언어="JavaScript" src="images/ js/jquery.min.js"></script></li> <li><form action="" method="post" name="form"></li> <li>选择增加类型:<br>< br></li> <li><hr></li> <li>指정ID:</li> <li><input name="thisid" type="text" id="thisid" size="10" /></li> <li><br> ;<li>ID范围:<li><input name="idstart" type="text" id="idstart" size="10" /></li> <li>-</li> <li><input name="idend " type="text" id="idend" size="10" /></li> <li><hr /></li> <li>공주活跃<br>指정ID:</li> <li> <input name="comid " type="text" id="comid" size="10" /></li> <li><br>ID范围:</li> <li> <input name="comstart" type="text" id="comstart" size="10" /></li> <li> - </li> <li> <input name="comend" type="text" id="comend" size="10" /></li> <li><br>전부: </li> <li> <input name="comall" type="checkbox" id="comall" value="1" /></li> <li><hr /></li> <li>栏目ID:</li> <li><input type="hidden" name="catid" id="catid" value="all"></li> <li> <span onclick="this.style.display='none';$('#reselect_catid').show ();" style="cursor:pointer;">전체 부분 <font color="red">点击중중选</font></span></li> <li> <span id="reselect_catid" style="디스플레이: 없음;"></li> <li> <span id="load_catid"></span> </li> <li> <a href="javascript:category_reload();">중요</a></li> <li> </span><script type="text/javascript"></li> <li> 함수 카테고리_로드 (id)</li> <li> {</li> <li> $.get('load.php', { 필드: 'catid', id: id },</li> <li> function(data){</li> <li> $('#load_catid') .append(data);</li> <li> });</li> <li> }</li> <li> function Category_reload()</li> <li> {</li> <li> $('#load_catid').html('');</li> <li> Category_load(0 );</li> <li> }</li> <li> 카테고리_로드(0);</li> <li> </script></li> <li> <br><hr></li> <li><br></li> <li>增加值:<입력 이름 ="addnum" type="text" size="10" value="<?=$addnum;?>"/>【必填】</li> <li><br></li> <li><입력 유형= "submit" name="submit" value="提交" /></li> <li></form></li> <li><?php<li>}else{<li>?></li> <li><양식 ID ="form1" name="form1" method="post" action=""></li> <li>KEY:<input type="text" name="key" /></li> <li><input type=" submit" name="checkkey" value="提交" /></li> <li></form></li> <li><? }?></li> <li> <li><?php<li>//print_r($_POST);<li>if(!$addnum && $submit){echo "<span style='color:red' >增加值不能为空!";}</li> <li>if($submit && $addnum)</li> <li>{</li> <li> if($thisid){</li> <li> $sql="update `".DB_PRE."content_count` set ` hits` = `hits` ".$addnum." where `contentid`='$thisid'";</li> <li> }else if($idstart){</li> <li> $sql="update `".DB_PRE."content_count` set `hits` = `hits` ".$addnum ." 여기서 `contentid` >= '$idstart'";</li> <li> if($idend){$sql.=" 및 `contentid` <= '$idend'";}<li> }else if($comid || $comstart || $comall){<li> if($comid){<li> $sql="update `".DB_PRE."member_info` set `logintimes` = `logintimes` ".$addnum." where `userid`='$comid'";<li> }else if($comstart){<li> $sql="update `".DB_PRE."member_info` set `logintimes` = `logintimes` ".$addnum ." 여기서 `userid` >= '$comstart'";</li> <li> if($comend){$sql.=" 및 `userid` <='$comend'";}</li> <li> }else if($comall && $comall==1){</li> <li> $sql="update `".DB_PRE."member_info` set `logintimes` = `logintimes` ".$addnum;</li> <li> }else{$sql='';} </li> <li> }else if($catid){//</li> <li> if($catid=="all"){</li> <li> $sql="update `".DB_PRE."content_count` set `hits` = `hits ` ".$addnum;</li> <li> }else{</li> <li> $getid_query=mysql_query("상태=99인 `".DB_PRE."content`에서 `contentid` 선택 ".get_sql_catid($catid));</li> <li> while($rs=mysql_fetch_assoc($getid_query)){$getid[]=$rs['contentid'];}</li> <li> $idstr=implode(",",$getid);</li> <li> $sql="update `".DB_PRE."content_count` set `hits` = `hits` ".$addnum." 여기서 `contentid` in ($idstr)";</li> <li> }</li> <li> }else{$sql='';}</li> <li>}</li> <li>if($sql && $submit)</li> <li>{</li> <li> mysql_query($sql);</li> <li> echo date("Y-m-d H:i:s")."성공적인 작업 수행, 共影响数据: ".mysql_affected_rows()." 条";</li> <li>}else if(!$sql && $submit){</li> <li> echo "<br><span style='color:red'>输入信息有误请确认后再提交!< ;/span>";</li> <li>}</li> <li>?></li> </ol></div> <em onclick="copycode($('code_EZF'));">复代码</em> </div> </td></tr></table> <div id="comment_19422" class="cm"> </div> <div id="post_rate_div_19422"></div> <br><br>