* @author Loic Vinet
*/
class basket extends dbquery
{
/**
* @access private
* @var integer
*/
private $the_start;
/**
* Redefinition of the user object constructor : configure the SQL argument order by
*/
function __construct()
{
// configure the sql argument order by
if(isset($_GET['start']))
{
$this->the_start = strip_tags($_GET['start']);
}
else
{
$this->the_start = 0;
}
}
/**
* Lists the letters of the alphabet to list the baskets
*/
public function basketlistletters()
{
?>
connect();
$this->query("select count(*) as total from ".$table_name);
$nb_total_1 = $this->fetch_object();
$nb_total = $nb_total_1->total;
// define the defaults values
$nb_pages = ceil($nb_total/$nb_show);
$link = "index.php?page=".$page_name."&start=".$this->the_start."&order=".$this->orderby.$what;
if($nb_pages > 1)
{
$next_start = 0;
$page_list1 = '';
$page_list2 .= $previous." ".$next.'