Changeset 8604


Ignore:
Timestamp:
01/11/11 06:43:50 (9 years ago)
Author:
rub
Message:

Add filter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/FacebookPlug/Server/trunk/admin/view_list.php

    r8548 r8604  
    2222 
    2323$view_version = (isset($_GET['v']) ? $_GET['v'] : FBP_VERSION); 
    24 $max_rows = (isset($_GET['r']) ? $_GET['mr'] : 1000); 
    25 $max_group_rows = (isset($_GET['r']) ? $_GET['mgr'] : 10); 
     24$max_group_rows = (isset($_GET['mgr']) ? $_GET['mgr'] : 10); 
     25 
     26$max_history_rows = (isset($_GET['mhr']) ? $_GET['mhr'] : 1000); 
     27$history_filter = (isset($_GET['hf']) ? $_GET['hf'] : 'do_upload_photo'); 
    2628 
    2729?> 
     
    7375    </tr> 
    7476<?php 
    75 $result = fbp_db_query("select * from FBP_HISTORY where VERSION = '".mysql_real_escape_string($view_version)."' and SCRIPT_NAME = 'do_upload_photo' order by ID desc limit 0 , ".mysql_real_escape_string($max_rows).";"); 
     77$result = fbp_db_query("select * from FBP_HISTORY where VERSION = '".mysql_real_escape_string($view_version)."' and SCRIPT_NAME = '".mysql_real_escape_string($history_filter)."' order by ID desc limit 0 , ".mysql_real_escape_string($max_history_rows).";"); 
    7678 
    7779// Mettre le count et le titre de l'image 
Note: See TracChangeset for help on using the changeset viewer.