Files
crm.twinpol.com/modules/EcmDocuments/showhide_panel.php
2025-05-12 15:44:39 +00:00

15 lines
723 B
PHP
Executable File

<?
session_start();
include("../../config.php");
$sql=mysql_connect($sugar_config['dbconfig']['db_host_name'],$sugar_config['dbconfig']['db_user_name'],$sugar_config['dbconfig']['db_password']);
mysql_select_db($sugar_config['dbconfig']['db_name']);
if($_GET['what']=="firstblock")$set="show_details='".$_GET['value']."'";
if($_GET['what']=="uploadblock")$set="show_upload='".$_GET['value']."'";
if($_GET['what']=="optionsblock")$set="show_options='".$_GET['value']."'";
if($_GET['what']=="searchblock")$set="show_search='".$_GET['value']."'";
if($_GET['what']=="ListViewSmb")$set="show_smb='".$_GET['value']."'";
$z="update ecmdocuments set ".$set." where id='".$_GET['record']."'";
mysql_query($z);
mysql_close($sql);
?>