Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE development » Framework » PDF - horizontal line in title zone
Re: PDF - horizontal line in title zone [message #5663 is a reply to message #5653] Tue, 21 June 2016 04:41 Go to previous messageGo to previous message
AJM is currently offline  AJM
Messages: 2361
Registered: April 2006
Location: Surrey, UK
Senior Member
If you look at the contents of _cm_output_multi() you will see a switch statement like the following:
$outarray = array();

switch ($name) {
    case 'multi1':
        // return a non-empty array to print an empty line
        $outarray[] = array('dummy' => '');
        break;

    case 'multi2':
        // return a non-empty array to print an empty line
        $outarray[] = array('dummy' => '');
        break;

    case 'multi3':
        // return a non-empty array to print an empty line
        $outarray[] = array('dummy' => '');
        break;

    case 'multi4':
        // return a non-empty array to print an empty line
        $outarray[] = array('dummy' => '');
        break;

    .....

    default:
        // return a non-empty array to print an empty line
        $outarray[] = array('dummy' => '');
        break;
} // switch

return $outarray;

Each time this method is called is has a different 'multiN' value in $name, so within the relevant 'case' statement you require code to construct $outarray before it is returned. You are currently outputting both a label and a text field for each line, so in the situation where the text field is empty and you do not want the line printed at all then do nothing as $outarray is already empty. If you put ANYTHING at all in $outarray then the line WILL be printed even if there are no values to print.


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: MNU_ACCOUNT - Add new account
Next Topic: Radicore Forum 11th Birthday
Goto Forum:
  


Current Time: Fri Sep 27 05:28:10 EDT 2024

Total time taken to generate the page: 0.01455 seconds