Sfoglia il codice sorgente

fixed process tree questions tooltip view

Piotr Labudda 7 anni fa
parent
commit
be07d3cad2
1 ha cambiato i file con 13 aggiunte e 12 eliminazioni
  1. 13 12
      SE/procesy5.php

+ 13 - 12
SE/procesy5.php

@@ -1861,12 +1861,14 @@ function tree_callback__show_item_from_CRM_PROCES( &$r, &$tree ) {
 		$popupContent = "{$gotoId} {$gotoFlag} {$r->ID}";
 		$linkStyle = '';
 		if ('popover' == $linkStyle) {
-			?>
-				<a href="<?php echo $popupLink; ?>"><i class="<?php echo $popupIcon; ?> wsk-help popover-with-html p5-L<?= __LINE__; ?>">
-					<div class="popover-heading"><?php echo $popupTitle; ?></div>
-					<div class="popover-body"><?php echo $popupContent; ?></div>
-				</i><?php echo $gotoId; ?></a>
-			<?php
+			echo UI::h('a', [ 'href' => $popupLink ], [
+				UI::h('span', [ 'class' => "wsk-help popover-with-html p5-L" . __LINE__ ], [
+					UI::h('i', [ 'class' => $popupIcon ]),
+					UI::h('span', [ 'class' => "popover-heading" ], $popupTitle),
+					UI::h('span', [ 'class' => "popover-body" ], $popupContent),
+				]),
+				$gotoId,
+			]);
 		} else {
 			echo ' ';
 			echo App::link("&lt;{$gotoId}", array('task'=>'PROCES_VIEW', 'id_proces'=>$gotoId), array('title'=>$popupContent));
@@ -2284,12 +2286,11 @@ function tree_callback__show_item_from_CRM_PROCES( &$r, &$tree ) {
 				echo ' <span style="color:#000;">'.$w->OPIS_ZASOB.'</span>';// komentarz wskaznika
 			}
 			else if (!empty($w->OPIS_ZASOB)) {
-				?>
-					<i class="glyphicon glyphicon-info-sign wsk-help popover-with-html p5-L<?= __LINE__; ?>">
-						<div class="popover-heading"><?php echo "[" . $w->CW_ID . "] " . $w->OPIS; ?></div>
-						<div class="popover-body"><?php echo "[{$w->ID}]" . $w->OPIS_ZASOB; ?></div>
-					</i>
-				<?php
+				echo UI::h('span', [ 'class' => "wsk-help popover-with-html p5-L" . __LINE__ ], [
+						UI::h('i', [ 'class' => "glyphicon glyphicon-info-sign" ]),
+						UI::h('span', [ 'class' => "popover-heading" ], "[" . $w->CW_ID . "] " . $w->OPIS),
+						UI::h('span', [ 'class' => "popover-body" ], "[{$w->ID}]" . $w->OPIS_ZASOB),
+				]);
 			}
 			if ($show_form) $zasoby_id[$w->TYPE][$w->ID] = $w->CW_ID;