<?php // Simple example that demonstrates listing users from a // Stack Exchange site. Makes use of the output helper functions. require_once 'config.php'; require_once '../../src/output_helper.php'; // Generate the site combobox $combo = OutputHelper::CreateCombobox(API::Sites(), 'site'); $site_html = $combo->FetchMultiple()->SetIndices('name', 'api_site_parameter')->SetCurrentSelection()->GetHTML(); ?> <!DOCTYPE html> <html> <head> <title>Stack.PHP - User List</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <link rel='stylesheet' type='text/css' href='../common/style.css' /> </head> <body> <form id='form'> <div id='site_selector'> <b>Select a Stack Exchange site:</b> <?php echo $site_html; ?> <input type="submit" value="Go" /> </div> <?php if (isset($_GET['site'])) { $site = API::Site($_GET['site']); $request = $site->Users(); if (isset($_GET['sort'])) {