Files
code-cegled/_include/include_shirts.php
Ricsi 303f26587f Responsive design;
New menus (members);
Improved interface for parent editing;
2016-12-03 11:10:28 +01:00

33 lines
572 B
PHP

<?php
# HA NINCS ID, AKKOR PÓLÓLISTA
if ($this->is_id()) {
# PÓLÓ SZERKESZTÉSE
$shirt_query = "SELECT * FROM shirt WHERE shirt_id = " . $this->get_id();
$shirt_assoc_array = $sql->assoc_array($shirt_query);
$smarty->assign('shirt_array',$shirt_assoc_array[0]);
$smarty->display('shirt_data_edit.tpl');
}
else {
# PÓLÓ LISTA
$shirt_query = "SELECT * FROM shirt ORDER BY shirt_name ASC";
$shirt_assoc_array = $sql->assoc_array($shirt_query);
$smarty->assign('shirt_assoc_array',$shirt_assoc_array);
$smarty->display('shirt_list.tpl');
}
?>