First Commit
This commit is contained in:
1 parent
5eb9dd037d
commit
2e62c0e60b
11877 files changed
+2035312
No files matched your search
@@ -0,0 +1,73 @@
|
||||
<?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');
|
||||
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 = "videos";
|
||||
$tarray = initializeTableArray($initTableName);
|
||||
extract($tarray, EXTR_OVERWRITE);
|
||||
|
||||
$user_num = intval($_SESSION['UserInfo']['record_num']);
|
||||
$uploaded_by = $user_num;
|
||||
$today = date("Y-m-d",time());
|
||||
$uploaded_date = $today;
|
||||
$document_date = $today;
|
||||
}
|
||||
|
||||
?>
|
||||
<br>
|
||||
<form method='post' action='/'>
|
||||
<?php
|
||||
$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($PageTitle) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' align='center'> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='30%' align='right' valign='top'><?php displayLanguageText('TEXT-HEADING'); ?>: </td>
|
||||
<td align='left' valign='top'><input type='text' name='title' id='title' value="<?php echo($title) ?>" size='40'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' align='center'> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='right' valign='top'><?php displayLanguageText('TEXT-DESCRIPTION'); ?>: </td>
|
||||
<td align='left' valign='top'><textarea name='description' rows='4' cols='60'><?php echo($description) ?></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' align='center'>
|
||||
<br>
|
||||
<input type='submit' class='btn btn--primary' value='<?php echo($ButtonText) ?>'>
|
||||
<input type='hidden' name='action' value='<?php echo($action) ?>'>
|
||||
<input type='hidden' name='naction' value='<?php echo($next_naction) ?>'>
|
||||
<input type='hidden' name='uploaded_by' value='<?php echo($uploaded_by) ?>'>
|
||||
<input type='hidden' name='uploaded_date' value='<?php echo($uploaded_date) ?>'>
|
||||
<input type='hidden' name='entry_type' value='Heading'>
|
||||
<input type='hidden' name='record_num' value='<?php echo($record_num) ?>'>
|
||||
<br>
|
||||
<br>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
Reference in new issue
Block a user