Database Forum
Web Database Register Members List Calendar FAQ

 
Go Back   Database Forum > PHPMagic Discussions > Customization
User Name
Password

Reply
 
Thread Tools Search this Thread Display Modes
Default Can I move Detail View to ABOVE the table?
09-19-2007, 06:45 AM #1  

the_pff
Junior Member

 
Status: Offline
Posts: 13
Join Date: Sep 2007

I'm going to have an image field that is hidden in the table, but when people click an item the image (and only the image) displays in the detail view.

So could I move the detail view to above the table? Or better still, into a DIV tag?
Reply With Quote

Cool Good Questiom
11-25-2007, 01:05 PM #2  

Bochaka
Junior Member

 
Status: Offline
Posts: 10
Join Date: Nov 2007

Bloody good question, I can see how usefull this would be ,anybody out there got a solution as I too, and I suspect many others could benefit from it.
Reply With Quote

Default
02-01-2008, 04:22 AM #3  

Gww
Junior Member

 
Status: Offline
Posts: 8
Join Date: Dec 2007

Fairly easy modification. Open your datalist.php file and look for this code, in my file it's on line 901 to 905 (word wrap off)

PHP Code:
        // display details form ...
        
if($this->AllowSelection)
        {
            
$this->HTML .= "\n\t<tr><td align=center colspan=" . ($FieldCount + 1) . "> " . form($SelectedID, $this->AllowUpdate, (($this->HideTableView && $SelectedID) ? 0 : $this->AllowInsert), $this->AllowDelete) . " </td></tr>";
        }
Add a line break between the second last double quote and the closing td so you space the bottom of the Detail View table from the Table View area. This is the code with the added line break.
PHP Code:
        // display details form ...
        
if($this->AllowSelection)
        {
            
$this->HTML .= "\n\t<tr><td align=center colspan=" . ($FieldCount + 1) . "> " . form($SelectedID, $this->AllowUpdate, (($this->HideTableView && $SelectedID) ? 0 : $this->AllowInsert), $this->AllowDelete) . " <br /></td></tr>";
        }
Search for the following code and cut and paste it directly above the line with the "// Templates", in my file it's line 608.

PHP Code:
// Templates
    
if($this->Template!=''){
        
$rowTemplate = @implode('', @file('./'.$this->Template));
        if(!
$rowTemplate){
            
$rowTemplate='';
            
$selrowTemplate = '';
        }else{
            if(
$this->SelectedTemplate!=''){
                
$selrowTemplate = @implode('', @file('./'.$this->SelectedTemplate));
                if(!
$selrowTemplate){
                    
$selrowTemplate='';
                }
            }else{
                
$selrowTemplate = '';
            }
        }
    }else{
        
$rowTemplate = '';
        
$selrowTemplate = '';
    }
// End of templates

Last edited by Gww; 02-01-2008 at 04:29 AM..
Reply With Quote

Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



All times are GMT -5. The time now is 11:44 AM.

Powered by: vBulletin Version 3.7.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Database Forums

Help support our forum assistants and product development ->

go to top go to top