First Commit
This commit is contained in:
1 parent
5eb9dd037d
commit
2e62c0e60b
11877 files changed
+2035312
No files matched your search
@@ -0,0 +1,76 @@
|
||||
<?php
|
||||
require_once("include/globals.php");
|
||||
|
||||
if (SessionActive() != 1 || ! UserLoggedIn()) {
|
||||
header("Location: /");
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
// Ensure that only valid user types have access to this module
|
||||
$AllowedUserTypes = array('SuperUser','System Administrator','Communications Administrator');
|
||||
if (checkPermission($AllowedUserTypes) != 1) {
|
||||
echo("<br>\n");
|
||||
$error_message = getLanguageText('ERRORMSG-ACCESS-DENIED');
|
||||
include "form.messages.php";
|
||||
return;
|
||||
}
|
||||
|
||||
// Setup default values on insert
|
||||
if ($naction == 'add') {
|
||||
$initTableName = "photo_gallery_images";
|
||||
$tarray = initializeTableArray($initTableName);
|
||||
extract($tarray, EXTR_OVERWRITE);
|
||||
}
|
||||
|
||||
?>
|
||||
<br>
|
||||
<form method='post' enctype='multipart/form-data' action='/'>
|
||||
<?php
|
||||
if (isset($errorMessages) && count($errorMessages) > 0) {
|
||||
for ($i = 0; $i < count($errorMessages); $i++) {
|
||||
echo($errorMessages[$i] . "<br>\n");
|
||||
}
|
||||
echo("<br>\n");
|
||||
}
|
||||
|
||||
$message_width = $default_form_width;
|
||||
include "form.messages.php";
|
||||
?>
|
||||
<table width='<?php echo($default_form_width) ?>' class='content-table'>
|
||||
<tr>
|
||||
<td colspan='2' align='center' class='heading'><?php echo($gallery_name) ?> - <?php displayLanguageText('TEXT-PHOTOS-UPLOAD'); ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
for ($i = 1; $i <= 10; $i++) {
|
||||
$fname = "filename$i";
|
||||
?>
|
||||
<tr>
|
||||
<td width='25%' align='right' valign='top'><?php displayLanguageText('TEXT-PHOTO'); ?> <?php echo($i) ?>: </td>
|
||||
<td align='left' valign='top'><input type='file' name='<?php echo($fname) ?>' id='<?php echo($fname) ?>' size='80'></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td colspan='2' align='center'>
|
||||
<br>
|
||||
<input type='submit' class='btn btn--primary' value="<?php displayLanguageText('TEXT-UPLOAD'); ?>">
|
||||
<input type='hidden' name='action' value='photo-gallery-images'>
|
||||
<input type='hidden' name='naction' value='upload-images'>
|
||||
<input type='hidden' name='gallery_num' value='<?php echo($gallery_num) ?>'>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<table cellpadding='10'>
|
||||
<tr>
|
||||
<td align='center'><a href='?action=photo-gallery-images&gallery_num=<?php echo($gallery_num) ?>&naction=list' class='btn btn--primary>'> Manage Gallery </a></td>
|
||||
<td align='center'><a href='?action=photo-gallery&gallery_num=<?php echo($gallery_num) ?>' class='btn btn--primary>'> View Gallery </a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
Reference in new issue
Block a user