added edit.php
This commit is contained in:
parent
f7c40e622e
commit
49160476fb
35
sai/modules/saimod_sys_locale/edit.php
Normal file
35
sai/modules/saimod_sys_locale/edit.php
Normal file
@ -0,0 +1,35 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
|
||||
<title>PHPDevel Wysiwyg HTML Editor</title>
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="description" content="" />
|
||||
<meta name="keywords" content="" />
|
||||
|
||||
<?php $wysiwyg_root = 'wysiwyg/'; include 'wysiwyg/php/init.php'; ?>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<?php
|
||||
|
||||
if (get_magic_quotes_gpc()) $_POST = array_map('stripslashes', $_POST);
|
||||
|
||||
$subject = isset($_POST['subject']) ? $_POST['subject'] : 'Subject';
|
||||
$message = isset($_POST['message']) ? $_POST['message'] : 'Message';
|
||||
|
||||
?>
|
||||
|
||||
<form action="demo.php" method="post">
|
||||
<table>
|
||||
<tr><td><input type="text" name="subject" value="<?=htmlspecialchars($subject);?>" /></td></tr>
|
||||
<tr><td><?php echo wysiwyg('wysiwyg_id', 'message', $message); ?></td></tr>
|
||||
<tr><td><input type="submit" value="Submit" /></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@ -9,7 +9,7 @@ class saimod_sys_locale extends \SYSTEM\SAI\SaiModule {
|
||||
|
||||
public static function html_content(){
|
||||
$result = '<h3>Locale String</h3>'.
|
||||
'<table class="table table-hover table-condensed" style="overflow: auto;">'.
|
||||
'<form action="http://www.mojotrollz.eu/danube/system/sai/modules/saimod_sys_locale/edit.php"><table class="table table-hover table-condensed" style="overflow: auto;">'.
|
||||
'<tr>'.'<th>'.'ID'.'</th>'.'<th>'.'Category'.'</th>';
|
||||
|
||||
foreach (self::getLanguages() as $lang){
|
||||
@ -29,14 +29,14 @@ class saimod_sys_locale extends \SYSTEM\SAI\SaiModule {
|
||||
while($r = $res->next()){
|
||||
$result .= '<tr>'.'<td>'.$r["id"].'<br><input type="submit" class="btn-danger" value="delete" delete_ID="'.$r["id"].'">'.'</td>'.'<td>'.$r["category"].'</td>';
|
||||
foreach ($languages as $columns){
|
||||
$result .= '<td>'.$r[$columns].'<br><input type="submit" class="btn" value="edit" lang="'.$columns.'" edit_ID="'.$r["id"].'">'.'</td>';
|
||||
$result .= '<td>'.$r[$columns].'<br><input type="submit" subject="testsubject" message="testmessage" class="btn" value="edit" lang="'.$columns.'" edit_ID="'.$r["id"].'">'.'</td>';
|
||||
}
|
||||
|
||||
$result .= '</tr>';
|
||||
|
||||
}
|
||||
|
||||
$result .= '</table>';
|
||||
$result .= '</table></form>';
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user