diff --git a/dashboard/create_member.php b/dashboard/create_member.php index 06c0d18..eadb5ec 100644 --- a/dashboard/create_member.php +++ b/dashboard/create_member.php @@ -58,6 +58,11 @@ if($action == ''){ or die ("Cannot execute query1"); while ($row = $result->fetch_array()){ + if (file_exists($row['filename'])) { + $row['file_exists'] = '1'; + } else { + $row['file_exists'] = '0'; + } $value[] = $row; } $smarty->assign('table_data', $value); diff --git a/dashboard/finanzen.php b/dashboard/finanzen.php index 45ef4f2..ebf991d 100644 --- a/dashboard/finanzen.php +++ b/dashboard/finanzen.php @@ -51,6 +51,11 @@ while ($row = $result->fetch_array()) $inner1[$ln2]['id'] = $row2['id']; $inner1[$ln2]['filename'] = $row2['filename']; + if (file_exists($row2['filename'])) { + $inner1[$ln2]['file_exists'] = '1'; + } else { + $inner1[$ln2]['file_exists'] = '0'; + } $inner1[$ln2]['originalname'] = $row2['originalname']; $dateiarray = explode(".",$row2['originalname']); diff --git a/dashboard/notenupload.php b/dashboard/notenupload.php index 664c423..5a837f2 100644 --- a/dashboard/notenupload.php +++ b/dashboard/notenupload.php @@ -37,6 +37,11 @@ require_once "../language/german.inc.php"; or die ("Cannot execute query1"); while ($row = $result->fetch_array()){ + if (file_exists($row['filename'])) { + $row['file_exists'] = '1'; + } else { + $row['file_exists'] = '0'; + } $value[] = $row; } $smarty->assign('table_data', $value); diff --git a/templates/modern/dashboard/create_member.html b/templates/modern/dashboard/create_member.html index 9a61fc5..7d00804 100644 --- a/templates/modern/dashboard/create_member.html +++ b/templates/modern/dashboard/create_member.html @@ -130,23 +130,29 @@
Datei | -Uploaddatum | -Aktion | -
---|---|---|
{$table_data[table_data].originalname} | -{$table_data[table_data].uploaddatum} | -- |