Add php files

This commit is contained in:
2025-05-12 15:44:39 +00:00
parent c951760058
commit 82d5804ac4
9534 changed files with 2638137 additions and 0 deletions

View File

@@ -0,0 +1,87 @@
<?php
/*****************************************************************************
* The contents of this file are subject to the RECIPROCAL PUBLIC LICENSE
* Version 1.1 ("License"); You may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* http://opensource.org/licenses/rpl.php. Software distributed under the
* License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,
* either express or implied.
*
* You may:
* a) Use and distribute this code exactly as you received without payment or
* a royalty or other fee.
* b) Create extensions for this code, provided that you make the extensions
* publicly available and document your modifications clearly.
* c) Charge for a fee for warranty or support or for accepting liability
* obligations for your customers.
*
* You may NOT:
* a) Charge for the use of the original code or extensions, including in
* electronic distribution models, such as ASP (Application Service
* Provider).
* b) Charge for the original source code or your extensions other than a
* nominal fee to cover distribution costs where such distribution
* involves PHYSICAL media.
* c) Modify or delete any pre-existing copyright notices, change notices,
* or License text in the Licensed Software
* d) Assert any patent claims against the Licensor or Contributors, or
* which would in any way restrict the ability of any third party to use the
* Licensed Software.
*
* You must:
* a) Document any modifications you make to this code including the nature of
* the change, the authors of the change, and the date of the change.
* b) Make the source code for any extensions you deploy available via an
* Electronic Distribution Mechanism such as FTP or HTTP download.
* c) Notify the licensor of the availability of source code to your extensions
* and include instructions on how to acquire the source code and updates.
* d) Grant Licensor a world-wide, non-exclusive, royalty-free license to use,
* reproduce, perform, modify, sublicense, and distribute your extensions.
*
* The Original Code is: CommuniCore
* Olavo Farias
* 2006-04-7 olavo.farias@gmail.com
*
* The Initial Developer of the Original Code is CommuniCore.
* Portions created by CommuniCore are Copyright (C) 2005 CommuniCore Ltda
* All Rights Reserved.
********************************************************************************/
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
require_once("modules/EcmDocuments/dirstree.php");
$z="select id,ecmdocument_id from ecmdocuments_ecmdocs where ecmdoc_id='".$_REQUEST['record']."' and deleted='0'";
$w=$GLOBALS['db']->query($z);
$ile=mysql_num_rows($w);
while($r=$GLOBALS['db']->fetchByAssoc($w))
{
$z1="select name,id,no,date_entered from ecmdocuments where id='".$r['ecmdocument_id']."' and deleted=0";
$w1=$GLOBALS['db']->query($z1);
$r1=$GLOBALS['db']->fetchByAssoc($w1);
$listecm.='<tr>
<td valign="top" class="tabDetailViewDF"><a href="index.php?module=EcmDocuments&action=DetailView&record='.$r1['id'].'">'.print_title($r1['id']."||".check_block($r1['id'],"")).'</a></td>
<td valign="top" class="tabDetailViewDF">'.$r1['description'].'</td>
<td valign="top" class="tabDetailViewDF">'.$r1['date_entered'].'</td>
</tr>';
}
if($ile>0)
{
print "File is in relation with EcmDocuments, do You want to delete relations? <a href='index.php?module=EcmDocs&action=Delete
&record=".$_REQUEST['record']."
&return_module=EcmDocs
&return_action=index&return_id=".$_REQUEST['return_id']."
'>YES</a> | <a href='index.php?module=EcmDocs&action=DetailView&record=".$_REQUEST['record']."&return_module=EcmDocs&return_action=index'>NO</a><br><br>";
}
else
{
ob_start();
header("Location: index.php?module=EcmDocs&action=Delete&record=".$_REQUEST['record']."&return_module=EcmDocs&return_action=index&return_id=".$_REQUEST['return_id']);
}
print '
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tabDetailView">
<tr class="listViewPaginationTdS1">
<td valign="top" class="listViewPaginationTdS1">Dir</td>
<td valign="top" class="listViewPaginationTdS1">Description</td>
<td valign="top" class="listViewPaginationTdS1">Date Created </td>
</tr>
'.$listecm.'
</table>';
?>