?php require_once('mysql.php'); require_once('_auth.php'); $page['url']='price'; $page['title']='Цены'; $page['descr']='Цены на проживание и услуги в Центре Отдыха «Зерен»'; $q='SELECT * FROM `price_info` WHERE `id` = 1'; $rs=mysql_query($q); $row = mysql_fetch_assoc($rs); require_once('head.php'); echo' '; $icon_title=''; $edit_title=''; $icon_text1=''; $icon_text2=''; $icon_text3=''; $icon_text4=''; $icon_text5=''; $edit_text1=''; $edit_text2=''; $edit_text3=''; $edit_text4=''; $edit_text5=''; if($user_status=='login'){ $icon_title=''; $edit_title=''; $icon_text1='

'; $edit_text1=''; $icon_text2='

'; $edit_text2=''; $icon_text3='

'; $edit_text3=''; $icon_text4='

'; $edit_text4=''; $icon_text5='

'; $edit_text5=''; $icon_text6='

'; $edit_text6=''; $icon_text7='

'; $edit_text7=''; $icon_text8='

'; $edit_text8=''; echo' '; } echo'

'.$row['title'].''.$icon_title.'

'.$edit_title.'
'; if($user_status!='login'){ $qw='SELECT * FROM `price_list`ORDER BY `id` ASC'; $rw=mysql_query($qw); echo' '; $i=1; while($row1 = mysql_fetch_assoc($rw)){ echo' '; $i++; } echo'
'.$i.' '.$row1['name'].' '.$row1['kol'].' '.$row1['sum'].'
'; } else{ $qw='SELECT * FROM `price_list`ORDER BY `id` ASC'; $rw=mysql_query($qw); echo' '; $i=1; while($row1 = mysql_fetch_assoc($rw)){ echo' '; $i++; } echo'
'.$i.'
 
+
'; } echo'
'.$icon_text1.''.$edit_text1.'
'.nl2br($row['p1']).'
'.$icon_text2.''.$edit_text2.'
'.nl2br($row['p2']).'
'.$icon_text3.''.$edit_text3.'
'.nl2br($row['p3']).'
'.$icon_text4.''.$edit_text4.'
'.nl2br($row['p4']).'
'.$icon_text5.''.$edit_text5.'
'.nl2br($row['p5']).'
'.$icon_text6.''.$edit_text6.'
'.nl2br($row['p6']).'
'.$icon_text7.''.$edit_text7.'
'.nl2br($row['p7']).'
'; if($user_status!='login'){ $qw='SELECT * FROM `price_uslugi` ORDER BY `id` ASC'; $rw=mysql_query($qw); echo' '; $i=1; while($row1 = mysql_fetch_assoc($rw)){ echo' '; $i++; } echo'
'.$i.' '.$row1['name'].' '.$row1['kol'].' '.$row1['sum'].'
'; } else{ $qw='SELECT * FROM `price_uslugi` ORDER BY `id` ASC'; $rw=mysql_query($qw); echo' '; $i=1; while($row1 = mysql_fetch_assoc($rw)){ echo' '; $i++; } echo'
'.$i.'
 
+
'; } echo'
'.$icon_text8.''.$edit_text8.'
'.nl2br($row['p8']).'
'; if($user_status!='login'){ $qw='SELECT * FROM `price_med` ORDER BY `id` ASC'; $rw=mysql_query($qw); echo' '; $i=1; while($row1 = mysql_fetch_assoc($rw)){ echo' '; $i++; } echo'
'.$i.' '.$row1['name'].' '.$row1['kol'].' '.$row1['sum'].'
'; } else{ $qw='SELECT * FROM `price_med` ORDER BY `id` ASC'; $rw=mysql_query($qw); echo' '; $i=1; while($row1 = mysql_fetch_assoc($rw)){ echo' '; $i++; } echo'
'.$i.'
 
+
'; } echo'
'; require_once(foot.php); ?>