<?php
class mod_repro extends core_modbase {
function PAGE_index()
{
$this->display('index.tpl');
}
function PAGE_new ()
{
$this->display('new.tpl');
}
function PAGE_reprolist ()
{
header('Content-Type: text/xml');
$reprolist = new SQL('repro_list');
$reproitem = $reprolist
->where(array('repro_state' => 'active'))
->select();
foreach ($reproitem as $repro)
{
$this->template->block('repro', array(
'name' => $repro->repro_name,
'url' => $repro->repro_url,
));
}
$reprolist = new SQL('repro_list');
$reproitem = $reprolist
->where(array('repro_state' => 'delete'))
->select();
foreach ($reproitem as $repro)
{
$this->template->block('delete', array(
'name' => $repro->repro_name,
'url' => $repro->repro_url,
));
}
$this->display('reprolist.tpl');
}
}