<?php
/*********************************************************      
 程序说明：         
    功能说明：删除操作日志
              
    调用关系：调用: header.inc 
              被调用:       
 
    变量说明：

    作者：
		         
修改注释：      
NO.1      
姓名：            
时间：      
修改说明：      
*********************************************************/

require("../../inc/header.inc");

if($sure_del){
     $del_sql = isset($del_sql) ? stripslashes($del_sql) : '';
	 //echo "$del_sql";
	 $result=omc_db_query($del_sql,$omc_db);
	 if ($result)
		 $log_name = $user_info["account"].$del_sql." successful";
	 else
		$log_name = $user_info["account"].$del_sql." fail";
	 insertLog("$log_name");	 

	 if($result){
           echo " <meta http-equiv=\"refresh\" content=\"0; url=./oper_log_down.php\"> ";
	 }else{	       
	       echo "<script language=\"javascript\"> ";
               echo "alert('";
	       echo "delete $userName failed";
	       echo "'); ";
	       echo "location.href=\"./oper_log_down.php\";";
               echo "</script>";
	 }

}if($no_del){
        echo " <meta http-equiv=\"refresh\" content=\"0; url=./oper_log_down.php\"> ";
}else{
	$del_sql = isset($del_sql) ? stripslashes($del_sql) : '';
	echo "<form action=\"$PHP_SELF\">";
        echo "<br>";
        echo "$strAreYouSureToDelete?";
        echo "<input type=\"hidden\" name=\"del_sql\" value=\"$del_sql\">";
        echo "<br>&nbsp;&nbsp;&nbsp;&nbsp;<input type=\"Submit\" name=\"sure_del\" value=\"$strYes\"> ";
        echo "&nbsp;&nbsp;&nbsp;<input type=\"Submit\" name=\"no_del\" value=\"$strNo\">";       
        echo "</form> ";
}

?>  
</body>  
  
</html>  
