table custom template

Status
Not open for further replies.

akirasrebirth

New Member
Hello

is it possible customize the table template like a form template?
I would like to display the elements of the records not in single rows but in different custom tables.
Please look at the attached image for an example.

Thanks roland
 

Attachments

  • tabella.jpg
    tabella.jpg
    18.1 KB · Views: 356
Yes. Tables templates can be customized.

It'll be fiddly work, but no reason you can't make it look like that.

-- hugh
 
Ok

this is my code so far:

Code:
<table width="800" border="1">
  <tr>
    <td><?php echo $this->rows[0][0]->jos_fabrik_formdata_10___codice; ?></td>
    <td width="155" rowspan="5"><?php echo $this->rows[0][0]->jos_fabrik_formdata_10___foto; ?></td>
    <td><?php echo $this->rows[0][0]->jos_fabrik_formdata_10___titolo_orig; ?></td>
    <td>TEC</td>
    <td width="29">&nbsp;</td>
    <td width="258" rowspan="5">&nbsp;</td>
  </tr>
  <tr>
    <td><?php echo $this->rows[0][0]->jos_fabrik_formdata_10___fabrik_internal_id; ?></td>
    <td><?php echo $this->rows[0][0]->jos_fabrik_formdata_10___sezione; ?></td>
    <td>CONT</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><?php echo $this->rows[0][0]->jos_fabrik_formdata_10___durata; ?> min </td>
    <td><?php echo $this->rows[0][0]->jos_fabrik_formdata_10___genere; ?></td>
    <td>EFFIC</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><?php echo $this->rows[0][0]->jos_fabrik_formdata_10___paese; ?></td>
    <td><?php echo $this->rows[0][0]->jos_fabrik_formdata_10___formato_ripresa; ?></td>
    <td>ORIG</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><?php echo $this->rows[0][0]->jos_fabrik_formdata_10___aspetto_dvd; ?></td>
    <td><?php echo $this->rows[0][0]->jos_fabrik_formdata_10___regista; ?></td>
    <td>TOT</td>
    <td>&nbsp;</td>
  </tr>
</table>
With this I have 1 table with the data of the first record.
Now I would have the other tables under this displaying:
record 2
record 3
record 4
record n

and so on.

Can you help me with this?

Thanks

roland
 
try

Code:
<table width="800" border="1">
<?php foreach($this->rows as $group){
    foreach($group as $row){

  <tr>
    <td><?php echo $row->jos_fabrik_formdata_10___codice; ?></td>
    <td width="155" rowspan="5"><?php echo $row->jos_fabrik_formdata_10___foto; ?></td>
    <td><?php echo $rows->jos_fabrik_formdata_10___titolo_orig; ?></td>
    <td>TEC</td>
    <td width="29">&nbsp;</td>
    <td width="258" rowspan="5">&nbsp;</td>
  </tr>
  <tr>
    <td><?php echo $row->jos_fabrik_formdata_10___fabrik_internal_id; ?></td>
    <td><?php echo $row->jos_fabrik_formdata_10___sezione; ?></td>
    <td>CONT</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><?php echo $row->jos_fabrik_formdata_10___durata; ?> min </td>
    <td><?php echo $row->jos_fabrik_formdata_10___genere; ?></td>
    <td>EFFIC</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><?php echo $row->jos_fabrik_formdata_10___paese; ?></td>
    <td><?php echo $row->jos_fabrik_formdata_10___formato_ripresa; ?></td>
    <td>ORIG</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><?php echo $row->jos_fabrik_formdata_10___aspetto_dvd; ?></td>
    <td><?php echo $row->jos_fabrik_formdata_10___regista; ?></td>
    <td>TOT</td>
    <td>&nbsp;</td>
  </tr>


<?php }
}?>
</table>
 
Thank you

this code is working for me:

Code:
<table width="800" border="1">
<?php foreach($this->rows as $group){
    foreach($group as $row){?>

  <tr>
    <td><?php echo $row->jos_fabrik_formdata_10___codice; ?></td>
    <td width="155" rowspan="5"><?php echo $row->jos_fabrik_formdata_10___foto; ?></td>
    <td><?php echo $row->jos_fabrik_formdata_10___titolo_orig; ?></td>
    <td>TEC</td>
    <td width="29">&nbsp;</td>
    <td width="258" rowspan="5">&nbsp;</td>
  </tr>
  <tr>
    <td><?php echo $row->jos_fabrik_formdata_10___fabrik_internal_id; ?></td>
    <td><?php echo $row->jos_fabrik_formdata_10___sezione; ?></td>
    <td>CONT</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><?php echo $row->jos_fabrik_formdata_10___durata; ?> min </td>
    <td><?php echo $row->jos_fabrik_formdata_10___genere; ?></td>
    <td>EFFIC</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><?php echo $row->jos_fabrik_formdata_10___paese; ?></td>
    <td><?php echo $row->jos_fabrik_formdata_10___formato_ripresa; ?></td>
    <td>ORIG</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><?php echo $row->jos_fabrik_formdata_10___aspetto_dvd; ?></td>
    <td><?php echo $row->jos_fabrik_formdata_10___regista; ?></td>
    <td>TOT</td>
    <td>&nbsp;</td>
  </tr>


<?php }
}?>
</table>
roland
 
Sorry for reopen the thread.
Whit this code the check box near every record for selecting is not showing any more. It is possible to add it for deleting records?
thanks

roland
 
its not displaying as the template specifies exactly which parts of the $row its looking for.

Add the following whereever makes the most sense in your template:

Code:
<?php echo $row->fabrik_delete; ?>

in a similar vein you also have

Code:
$row->fabrik_edit;

and
Code:
$row->fabrik_view;

for the edit and view links
 
Status
Not open for further replies.

Members online

No members online now.
Back
Top