placeholder works now, remove tests; fix automatic day naming; improve descriptions

svn path=/trunk/; revision=33501
This commit is contained in:
max.mehl committed 2016-06-13 09:11:47 +00:00
1 parent d102e0e4ea
commit 90c219e9e3
3 files changed
+3 -13

No files matched your search

+2 -11
View File
@@ -50,7 +50,7 @@ foreach ($days as &$day) { // calculate for each day
$output .= "<tr>";
// date
if ($date = '' ) {
if ($date === '' ) {
$date = "Day " . $day;
}
$output .= "<td>" . $date . $desc . "</td>";
@@ -93,7 +93,7 @@ foreach ($days as &$day) { // calculate for each day
}
$output .= "<tr><td></td><td></td><td></td><td></td>";
$output .= "<td><strong>Total VKP: " . $r_total . " €</strong></td></tr></table>";
$output .= "<td><strong>Total per diem: " . $r_total . " €</strong></td></tr></table>";
//------------------------------------
@@ -102,15 +102,6 @@ function replace_page($temp, $content){
return str_replace(array_keys($vars), $vars, $temp);
}
echo 1;
$template = file_get_contents('/home/www/html/global/internal/pd-result.en.html', true);
echo 2;
$template = file_get_contents('/internal/pd-result.en.html', true);
echo 3;
$template = file_get_contents('/../internal/pd-result.en.html', true);
echo 4;
$template = file_get_contents('../internal/pd-result.en.html', true);
echo 5;
$template = file_get_contents('http://fsfe.org/internal/pd-result.en.html', true);
echo replace_page($template, $output);
-1
View File
@@ -20,7 +20,6 @@
<body>
<h1>Result of calculated per diems</h1>
<p>:RESULT:</p>
<div id="pd-result">:RESULT:</div>
</body>
+1 -1
View File
@@ -39,7 +39,7 @@
</tr>
<tr id="descr">
<td>Calculate this day</td>
<td>Name the day (e.g. by date)</td>
<td>Name the day (e.g. by date) <br />Leave blank to autoname them</td>
<td>Did you pay this meal yourself?</td>
<td>Did you pay this meal yourself?</td>
<td>Did you pay this meal yourself?</td>