First Commit
This commit is contained in:
1 parent
5eb9dd037d
commit
2e62c0e60b
11877 files changed
+2035312
No files matched your search
@@ -0,0 +1,105 @@
|
||||
<?php
|
||||
require_once("include/globals.php");
|
||||
|
||||
if (SessionActive() != 1 || ! UserLoggedIn()) {
|
||||
header("Location: /");
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
$form_width = '80%';
|
||||
$message_width = $form_width;
|
||||
include "form.messages.php";
|
||||
?>
|
||||
<br>
|
||||
<table width='<?php echo($form_width) ?>' class='content-table'>
|
||||
<tr>
|
||||
<td align='center' class='heading'>Language Update</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='center'>
|
||||
<br>
|
||||
<form method='post' action='/' name='orderform'>
|
||||
<table cellpadding='3' cellspacing='0' border='0'>
|
||||
<tr class='success'>
|
||||
<td align='left'></td>
|
||||
<td align='left'>English</td>
|
||||
<td align='left'> </td>
|
||||
<td align='left'>French</td>
|
||||
<td align='left'> </td>
|
||||
<td align='left'>Code</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='right'> </td>
|
||||
<td align='left'><input type='text' name='s_english' size='50' value='<?php echo(preg_replace("/'/","'",$s_english)) ?>'></td>
|
||||
<td align='left'> </td>
|
||||
<td align='left'><input type='text' name='s_french' size='50' value='<?php echo(preg_replace("/'/","'",$s_french)) ?>'></td>
|
||||
<td align='left'> </td>
|
||||
<td align='left'><input type='text' name='s_message_id' size='30' value='<?php echo($s_message_id) ?>'></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type='submit' class='btn btn--primary' value='Search'>
|
||||
<input type='checkbox' name='no_french' value='Y'> No French Text
|
||||
<input type='hidden' name='action' value='language-admin'>
|
||||
<input type='hidden' name='naction' value='fetch'>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='center'>
|
||||
<br>
|
||||
<form method='post' action='/' name='orderform'>
|
||||
<table cellpadding='3' cellspacing='0' border='0'>
|
||||
<tr class='success'>
|
||||
<td align='left'></td>
|
||||
<td align='left'>English</td>
|
||||
<td align='left'> </td>
|
||||
<td align='left'>French</td>
|
||||
<td align='left'> </td>
|
||||
<td align='left'>Code</td>
|
||||
</tr>
|
||||
<?php
|
||||
for ($i = 0; $i < $maxEntries; $i++) {
|
||||
|
||||
// Clear any existing values from the fields
|
||||
$english = "";
|
||||
$french = "";
|
||||
$message_id = "";
|
||||
$record_num = "";
|
||||
|
||||
// Get any existing data
|
||||
if (isset($languageData) && $i < count($languageData)) {
|
||||
$row = $languageData[$i];
|
||||
extract($row);
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td align='right'><?php echo($i) ?>.</td>
|
||||
<td align='left'><input type='text' name='english<?php echo($i) ?>' size='50' value='<?php echo(preg_replace("/'/","'",$english)) ?>'></td>
|
||||
<td align='left'> </td>
|
||||
<td align='left'><input type='text' name='french<?php echo($i) ?>' size='50' value='<?php echo(preg_replace("/'/","'",$french)) ?>'></td>
|
||||
<td align='left'> </td>
|
||||
<td align='left'><input type='text' name='message_id<?php echo($i) ?>' size='30' value='<?php echo($message_id) ?>'></td>
|
||||
<input type='hidden' name='record_num<?php echo($i) ?>' value='<?php echo($record_num) ?>'>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td colspan='6' align='center'>
|
||||
<br>
|
||||
<input type='submit' class='btn btn--primary' value='Update Entries'>
|
||||
<input type='hidden' name='action' value='language-admin'>
|
||||
<input type='hidden' name='naction' value='update'>
|
||||
<br>
|
||||
<br>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php include "hotlunch_orders.print_buttons.php"; ?>
|
||||
|
||||
Reference in new issue
Block a user