Ejemplo n.º 1
0
 static function showReportForm($options)
 {
     echo "<div align='center'>";
     echo "<form action='" . $options['target'] . "' method='post'>";
     $reportconfig = new PluginResourcesReportConfig();
     $reportconfig->getFromDBByResource($options['id']);
     echo "<table class='tab_cadre' width='50%'>";
     echo "<tr>";
     echo "<th colspan='2'>";
     _e('Send the intervention report of the resource creation', 'resources');
     echo "</th></tr>";
     echo "<tr class='tab_bg_2 center'>";
     echo "<td colspan='2'>";
     echo "<input type='submit' name='report' value='" . __s('Send a notification') . "' class='submit' />";
     echo "<input type='hidden' name='id' value='" . $options['id'] . "'>";
     echo "<input type='hidden' name='reports_id' value='" . $reportconfig->fields["id"] . "'>";
     echo "</td></tr></table>";
     Html::closeForm();
     echo "</div>";
 }