Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 78 lines (55 sloc) 1.428 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
<?php

/*****
*
* UserData Listing Page
*
* Allows search for records
*
*
*
*****/
$modid=1;
require_once( 'AMP/BaseDB.php' );

/**
* Check for a cached page
*/

/**
* Check for a cached copy of this request
*/
if ( $cached_output = AMP_cached_request( )) {
    print $cached_output;
    exit;
}

require_once('AMP/UserData/Set.inc.php');

//bounce to the index if modin isn't set
if (isset($_REQUEST['modin']) && $_REQUEST['modin']) {
    $modin=intval( $_REQUEST['modin']);
} else {
    header ("Location: index.php");
}

#$intro_id=1;
$admin=false;

$userlist=&new UserDataSet($dbcon, $modin, $admin);

//Check if publishing of data has been authorized

if (!$userlist->_module_def['publish']) {
    header ("Location: index.php");
}

$sub = isset($_REQUEST['btnUDMSubmit']);
$uid= ( isset($_REQUEST['uid']) && $_REQUEST['uid']) ? intval( $_REQUEST['uid'] ) :false;

if ($uid && $modin) {

    $userlist->uid = $uid;
    $output= $userlist->output('DisplayHTML');

} else {

    //display result list
    $output = $userlist->output_list();
                
}

$intro_id = $userlist->modTemplateID;

require_once( 'AMP/BaseTemplate.php' );
if ($intro_id != 1) require_once( 'AMP/BaseModuleIntro.php' );

print '<div id="'.sprintf( AMP_UDM_LIST_CONTAINER, $modin).'">'
      .$output
      .'</div>';

// print $output;

        
// Append the footer and clean up.
require_once( 'AMP/BaseFooter.php' );

?>
Something went wrong with that request. Please try again.