Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

osTicket v1.10 Custom Data Table Mod

Hi

 

Im a php noob

 

 

 

Can anyone please assist in splitting a table into two columns in the following script:

 

<?php
foreach (DynamicFormEntry::forTicket($ticket->getId()) as $form) {
    // Skip core fields shown earlier in the ticket view
    $answers = $form->getAnswers()->exclude(Q::any(array(
        'field__flags__hasbit' => DynamicFormField::FLAG_EXT_STORED,
        Q::not(array('field__flags__hasbit' => DynamicFormField::FLAG_CLIENT_VIEW)),
        'field__name__in' => array('subject', 'priority'),
    )));
    if (count($answers) == 0)
        continue;
    ?>
        <table class="custom-data" cellspacing="0" cellpadding="4" width="100%" border="0">
        <tr><td colspan="2" class="headline flush-left"><?php echo $form->getTitle(); ?></th></tr>
        <?php foreach($answers as $a) {
            if (!($v = $a->display())) continue; ?>
            <tr>
                <th><?php
    echo $a->getField()->get('label');
                ?>:</th>
                <td><?php
    echo $v;
                ?></td>
            </tr>
            <?php } ?>
        </table>
    <?php
    $idx++;
} ?>
 
I have attached an image and wish to make the table below "Jobcard Details" appear the same as the one above it
 
 
Thank you
Lerato

Comments

  • This does not appear to be a suggestion or feedback.  Moving to Mods and Customizations.
    Are you seriously running 1.10-DPR (Developer Preview Release)?  If you are then you should upgrade immediately... and I highly doubt that anyone will be able to assist you with that version.
  • Sorry noob error... and the 1.10 im runnning is the official release

    thank you
Sign In or Register to comment.