init
This commit is contained in:
14
modules/EcmDocuments/showhide_panel.php
Executable file
14
modules/EcmDocuments/showhide_panel.php
Executable file
@@ -0,0 +1,14 @@
|
||||
<?
|
||||
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);
|
||||
?>
|
||||
Reference in New Issue
Block a user