Responsive design;
New menus (members); Improved interface for parent editing;
This commit is contained in:
33
_include/include_shirts.php
Normal file
33
_include/include_shirts.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?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');
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user