Esempio n. 1
0
         $output .= $headerStr;
     }
 } else {
     if ($i == 0) {
         $output .= $headerStr;
     }
 }
 //---------------------------------------------------
 $output .= "<tr><td>" . ($i + 1) . "</td>";
 for ($j = 0; $j < count($columns); $j++) {
     if (in_array($columns[$j]["used_type"], array("group", "order", "separation", "formula_column", "condition", "filter"))) {
         continue;
     }
     $row_id = $columns[$j]["row_id"];
     $value = $row[$row_id];
     if (DateModules::IsDate($value)) {
         $value = DateModules::miladi_to_shamsi($value);
     }
     if ($columns[$j]["renderer"] != "") {
         $tmpVal = isset($row[$row_id . "2"]) ? $row[$row_id . "2"] : $row[$row_id];
         if ($tmpVal != "") {
             eval("\$value = " . $columns[$j]["renderer"] . "('" . $tmpVal . "');");
         } else {
             $value = "";
         }
     }
     $output .= "<td>" . $value . "&nbsp;</td>";
 }
 $output .= "</tr>";
 if (!empty($_POST["pp"]) && $index == $_POST["pp"] - 1) {
     $output .= "</table><div style='page-break-after: always;'>&nbsp;</div>";