This commit is contained in:
Roly Rudy Gutierrez Pinto
2015-07-31 18:59:16 -04:00
parent 79aadc2358
commit e8319c0c66

View File

@@ -265,6 +265,13 @@ class pmDynaform
$json->rows = count($rows);
$json->data = $rows;
}
//todo compatibility 'columnWidth'
foreach ($json->columns as $column) {
if (!isset($column->columnWidth)) {
$json->layout = "static";
$column->columnWidth = "";
}
}
}
//languages
if ($this->lang === null && $key === "language" && isset($json->language)) {
@@ -517,13 +524,14 @@ class pmDynaform
exit();
}
public function printPmDynaform()
public function printPmDynaform($js = "")
{
$json = G::json_decode($this->record["DYN_CONTENT"]);
$this->jsonr($json);
$javascrip = "" .
"<script type='text/javascript'>" .
"var jsonData = " . G::json_encode($json) . ";" .
$js .
"</script>";
$file = file_get_contents(PATH_HOME . 'public_html/lib/pmdynaform/build/pmdynaform.html');