selfmade01: sorry, hier ist der Code

Beitrag lesen

Hallo,

hier ist der Code,
er zeigt mir einfach keine <input> Felder an

hier der Script-Teil. Title wird geändert, auch die Buttons kommen sauber

  
$( "#editinfo" ).click(function(){  
	var infoId = $(this).attr('data-id');  
	var url = "incl/getData/getInfoData.php?func=editDetailDialog&table=info&id="+infoId;  
	 $.widget("ui.dialog", $.extend({}, $.ui.dialog.prototype, {  
			_title: function(title) {  
			var $title = this.options.title || '&nbsp;'  
			if( ("title_html" in this.options) && this.options.title_html == true )  
			title.html($title);  
			else title.text($title);  
			}  
			}));  
		var titletext = '<?php echo _("Show Info Details ");?>';  
		var $modalDialog = $('<div></div>', { 'class': 'exampleModal', 'id': 'exampleModal1' })  
		   .appendTo('body')  
		   .dialog({  
		   autoOpen: false,  
		   //  
		   height: 625,  
		   width: 650,  
		   show: 'fold',  
		   title: "<div class='widget-header'><h4 class='smaller'><i class='ace-icon fa fa-leaf green'></i>&nbsp;"+titletext+"</h4></div>",  
		   title_html: true,  
		   buttons: [  
				  
			{  
			html: "<i class='ace-icon fa fa-times bigger-110'></i>&nbsp; <?php echo _('Close');?> ",  
			"class" : "btn btn-xs",  
			click: function() {  
			$( this ).dialog( "close" );  
			}  
		}  
		],  
		modal: true  
	   });  
  
 $modalDialog.load(url);  
 $modalDialog.dialog("open");  
  
});  

hier der php-code des dialog-Fensters

  
elseif($func == "editDetailDialog"){  
	$id			=	$_GET['id'];  
	$mysqltable	=	$_GET['table'];  
	  
			$s ='<!DOCTYPE html>';  
			$s .='<html>';  
			$s .='<head></head>';  
			$s .='<body>';	  
			$s .= '<table><tbody>';  
  
			  
			  
			$s .='<form action="" method="post">';  
			$s .= '<tr><td>'._("Name").'</td>';  
			$a .= '<td><input type="text" id="name" name="name" ></td></tr>';  
			$s .= '<tr><td>'._("Name 1").'</td>';  
			$a .= '<td><input type="text" id="name1" name="name1" placeholder="'._("Name 1").' "></td></tr>';  
			$s .= '<label>'._("cm").'</label>';  
			$a .= '<input type="text" id="cm" name="cm" placeholder="'._("in cm").' ">';  
			$s .= '<label>'._("%").'</label>';  
			$a .= '<input type="text" id="percent" name="percent" placeholder="'._(" in %").' ">';  
			$s .= '<label>'._("Information").'</label>';  
			$a .= '<input type="text" id="info" name="info" placeholder="'._("Information").' ">';  
			$s .= '<label>'._("Information 2").'</label>';  
			$a .= '<input type="text" id="selfinfo" name="selfinfo" placeholder="'._("Your Informations").' ">';  
			$a .="</form>";  
			$s .= "</tbody></table>";  
			  
			$s .="</body></html>";  
			//}  
echo $s;	  
}  

Keine Ahnung wieso er die input-Felder nicht anzeigt und ansonsten die ganze Formatierung auch nicht

Grüße Jürgen