Vydat věc bez rezervace ze skladu
<?php global $user; $uid = $user-?>uid; $uzivatele = db_query("SELECT * FROM {users_roles} WHERE uid=$uid"); $povoleni = 0; foreach ($uzivatele as $uzivatel){ if (($uzivatel->rid == 4)||($uzivatel->rid == 4)){ $povoleni = 1; } } if ($povoleni){ ?>
Odkdy (YYYY-MM-DD): | |
Dokdy (YYYY-MM-DD): | |
Kdo: | <?php $lidi = db_query("SELECT name, uid FROM {users} where status = 1 order by name"); echo ''; foreach ($lidi as $clovek){ echo ''.$clovek->name.''; } echo ""; ?> |
"; } ?>