Files
2026-09-03 11:24:19 +02:00

66 lines
1.9 KiB
PHP

<?php
if (!empty($_SESSION['site802']))
{
?>
<?php
if (!empty($_SESSION['site802_edit']) && $_POST['subAProfileSave']==$lab_ButtonName_Save)
{
mysql_query("INSERT INTO sys_profiles SET PRO_NAME='".$_POST['inProfileName']."',PRO_DESCRIPTION='".$_POST['inProfileDesc']."'");
$maxProID = sqlValue("select max(PRO_ID) from sys_profiles");
foreach ($_POST['inProfileID'] as $value)
{
mysql_query("INSERT INTO sys_profile_site SET PSA_PRO_ID=$maxProID, PSA_SAC_ID=$value");
}
echo"<div class='actionOK'>$lab_Field_site802_007</div>";
}
?>
<div class="tag100">
<div class="head_tag"><?php echo $lab_Tag_site802_001 ;?></div>
<div class="tag">
<table WIDTH="100%" class="tag">
<tr>
<td class="label"><?php echo $lab_Field_site801_013 ;?></td>
<td class="label"><?php echo $lab_Field_site801_014 ;?></td>
</tr>
<?php
$wynik = mysql_query("select PRO_ID,PRO_NAME,PRO_DESCRIPTION from sys_profiles order by PRO_NAME");
if($wynik)while ($r = mysql_fetch_array($wynik))
{
$sql_1 = $r["PRO_ID"];
$sql_2 = $r["PRO_NAME"];
$sql_3 = $r["PRO_DESCRIPTION"];
echo"
<tr style='cursor: pointer;' onclick=".chr(34)."document.location.href='?pg=site802inf&pro=$sql_1'".chr(34).">
<td class='field_center'>$sql_2</td>
<td class='field_center'>$sql_3</td>
</tr>
";
}
?>
</table>
</div>
<?php
if (!empty($_SESSION['site802_edit']))
echo"
<div class=tag_buttons>
<a href='?pg=site802A'> <INPUT class='btn btn-success btn-sm' TYPE='BUTTON' VALUE='$lab_ButtonName_Add'></A>
</div>
";
?>
</div>
<?php
}
else showFooterWarningAccessNotification($lab_FooterWarningAccessNotification_001);
?>