<?php

include('functions.php');
include('db.inc.php');

$title="tagok";
$leiro_type="tag"; // ez egyben a kuki neve is

$query="SELECT kk_tag.*, kk_megye.nev AS megye, (@price:=0) AS price, IF(ext=1,@price:=@price+4400,0) AS p1, IF(ext=1,IF(kategoria_2,@price:=@price+800,0),0) AS k2, IF(ext=1,IF(kategoria_3,@price:=@price+800,0),0) AS k3, IF(ext=1,IF(kategoria_4,@price:=@price+800,0),0) AS k4, IF(ext=1,IF(kategoria_5,@price:=@price+800,0),0) AS k5, IF(ext=1,IF(kategoria_6,@price:=@price+800,0),0) AS k6, IF(ext=1,IF(kategoria_7,@price:=@price+800,0),0) AS k7, IF(ext=1,IF(kategoria_8,@price:=@price+800,0),0) AS k8, @price AS price_all FROM kk_tag LEFT JOIN kk_megye ON kk_tag.megye=kk_megye.id";


$h3_title="Szaknévsor tagok";
$edit_script="a_tag_edit.php";
$delete_script="a_tag_del.php";

include('main.inc.php');


printf("<a href=\"#\" onClick=\"window.open('set_fields.php?type=tag','set_fields','left=0,top=0,width=450,height=825')\">Mezők beállítása</a>");


include('footer.inc.php');

?>