TOPIC:

Berechnung von Worten? [Umsetzbar]? 1 week 3 days ago #243383

  • Topic Author
  • 1987Jan
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 88
  • Thanks: 0
Die PDF Übersicht sieht dann so aus


Amputation » (li.) Hand wäre dementsprechend gelb .
Attachments:

Please Log in or Create an account to join the conversation.

Berechnung von Worten? [Umsetzbar]? 1 week 3 days ago #243427

  • Topic Author
  • 1987Jan
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 88
  • Thanks: 0
Goood Morning :)

Den von dir beschriebenen Code habe ich nicht. Habe den Code von der PDF per Support-Thema (PDF) geändert.

Mein Code sieht nun so aus:
(....) 
$el_ersatz = '';
$mayday1 = '';
$kommi = '';

if (count($xmldata)){
   foreach ($xmldata as $data) {
    	$color = '';
	$color_red = '#ff0000';
    	$color_green = '#008000';
    	$color_yellow = '#ffff00';
   $value = nl2br(htmlentities(substr(is_array($data[_FF_DATA_VALUE]) ? implode('|',$data[_FF_DATA_VALUE]) : $data[_FF_DATA_VALUE],0,10000), ENT_QUOTES, 'UTF-8'));
	switch($data[_FF_DATA_NAME]){
	case 'Bein(li.) (18,00%)': 
	case 'Beide Beine (36,00%)': 
      	case 'Genitalbereich (01,00%)': 
      	$color = $color_red;
      		break;
      	case 'Beide Arme (18,00%)': 
      	case 'leichtes SHT: GCS 15–13': 
      	$color = $color_yellow;
      		break;
	  case 'alarm':
          $alarm = $value;
          break;
      case 'beschreibung':
          $beschreibung = $value;
          break;
(....)

Aber der Code hat keine Auswirkungen. Die Farbe ändert sich leider nicht.
Was mach ich denn nun wieder falsch :D

Please Log in or Create an account to join the conversation.

Berechnung von Worten? [Umsetzbar]? 1 week 3 days ago #243439

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 9076
  • Karma: 167
  • Thanks: 737
ändere bitte
switch($data[_FF_DATA_NAME]){

nach
switch($data[_FF_DATA_VALUE]){

Please Log in or Create an account to join the conversation.

Berechnung von Worten? [Umsetzbar]? 1 week 2 days ago #243444

  • Topic Author
  • 1987Jan
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 88
  • Thanks: 0
$z5 = '';
$z6 = '';
$z7 = '';
$verant = '';
$el = '';
$el_ersatz = '';
$mayday1 = '';
$kommi = '';

if (count($xmldata)){
   foreach ($xmldata as $data) {
	  	$color = '';
		$color_red = '#ff0000';
    	$color_green = '#008000';
    	$color_yellow = '#ffff00';
   $value = nl2br(htmlentities(substr(is_array($data[_FF_DATA_VALUE]) ? implode('|',$data[_FF_DATA_VALUE]) : $data[_FF_DATA_VALUE],0,10000), ENT_QUOTES, 'UTF-8'));
	switch($data[_FF_DATA_VALUE]){
		case 'Bein(li.) (18,00%)': 
		case 'Beide Beine (36,00%)': 
      	case 'Genitalbereich (01,00%)': 
      	$color = $color_red;
      		break;
      	case 'Beide Arme (18,00%)': 
      	case 'leichtes SHT: GCS 15–13': 
      	$color = $color_yellow;
      		break;
	  case 'alarm':
          $alarm = $value;
          break;

Gesagt > Getan.
Dann bleibt die PDF leer und es ist gar nichts mehr eingetragen :x

Please Log in or Create an account to join the conversation.

Berechnung von Worten? [Umsetzbar]? 1 week 2 days ago #243446

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 9076
  • Karma: 167
  • Thanks: 737
wie geht es denn weiter im code?

Please Log in or Create an account to join the conversation.

Berechnung von Worten? [Umsetzbar]? 1 week 2 days ago #243448

  • Topic Author
  • 1987Jan
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 88
  • Thanks: 0
So startet die PDF-Datei
<?php
defined('_JEXEC') or die('Direct Access to this location is not allowed.');

$alarm = '';
$beschreibung = '';
$kat = '';
rtorf = '';
$obj1 = '';
(...) knapp 390 weitere Elemente

Anschließend kommt
(...)
$mayday1 = '';
$kommi = '';

if (count($xmldata)){
   foreach ($xmldata as $data) {
	$color = '';
	$color_red = '#ff0000';
    	$color_green = '#008000';
    	$color_yellow = '#ffff00';
   $value = nl2br(htmlentities(substr(is_array($data[_FF_DATA_VALUE]) ? implode('|',$data[_FF_DATA_VALUE]) : $data[_FF_DATA_VALUE],0,10000), ENT_QUOTES, 'UTF-8'));
	switch($data[_FF_DATA_VALUE]){

Dann direkt die "Farben" und alle anderen "Case"Elemente
	case 'Bein(li.) (18,00%)': 
	case 'Beide Beine (36,00%)': 
      	case 'Genitalbereich (01,00%)': 
      	$color = $color_red;
      		break;
      	case 'Beide Arme (18,00%)': 
      	case 'leichtes SHT: GCS 15–13': 
      	$color = $color_yellow;
      		break;

Und dann enden die Case-Elemente und es geht los mit den Tabellen
      case 'kommi':
          $kommi = $value;
          break;
      }
    }
}

?>
<style>
.table,tr,td {
	font:bold;
	font-family:Geneva, Arial, Helvetica, sans-serif;
}
</style>
</head><body>
<div style="margin-top:1px;"></div>
<table width="100%" border="1" cellpadding="1" cellspacing="1" style="text-align:center; border-color:#BBBBBB;">
  <tr bordercolor="#000000" style="font-size:1.5em;">
  	<th width="100%" colspan="4" scope="col" style="vertical-align:super"><strong>Geplante &Uuml;bung #&nbsp;<?php echo $alarm; ?>&nbsp;#</strong></th>
  </tr>
</table>
(...)

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Moderators: ForumSupport
Time to create page: 0.069 seconds

July Sale!

Discounts for all of our extensions + support. Ending July 31st!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!