|
5 | 5 | */ |
6 | 6 | echo '<h2>'.s('Default templates suit').'</h2>'; |
7 | 7 |
|
8 | | -$systemtemplate = <<<EOD |
| 8 | +$systemTemplate = <<<EOD |
9 | 9 | <div style="margin:0; text-align:center; width:100%; background:#EEE;min-width:240px;height:100%;"><br /> |
10 | 10 | <div style="width:96%;margin:0 auto; border-top:6px solid #369;border-bottom: 6px solid #369;background:#DEF;" > |
11 | 11 | <h3 style="margin-top:5px;background-color:#69C; font-weight:normal; color:#FFF; text-align:center; margin-bottom:5px; padding:10px; line-height:1.2; font-size:21px; text-transform:capitalize;">[SUBJECT]</h3> |
|
15 | 15 | <br /></div> |
16 | 16 | EOD; |
17 | 17 |
|
18 | | -$template1 = <<<EOD |
| 18 | +$templateWithLogo = <<<EOD |
19 | 19 | <!doctype html> |
20 | 20 | <html> |
21 | 21 | <head> |
|
79 | 79 | </html> |
80 | 80 | EOD; |
81 | 81 |
|
82 | | -$template2 = <<<EOD |
| 82 | +$simpleResponsiveTemplate = <<<EOD |
83 | 83 | <!doctype html> |
84 | 84 | <html> |
85 | 85 | <head><meta name="viewport" content="width=device-width" /><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
|
409 | 409 | echo formStart(); |
410 | 410 | echo ' |
411 | 411 | <div> |
412 | | - <input type="radio" name="template" value="systemtemplate" checked>System template<br> |
413 | | - <input type="radio" name="template" value="template1">Template with logo<br> |
414 | | - <input type="radio" name="template" value="template2">Simple responsive template<br> |
| 412 | + <input type="radio" name="template" value="systemTemplate" checked>System template<br> |
| 413 | + <input type="radio" name="template" value="templateWithLogo">Template with logo<br> |
| 414 | + <input type="radio" name="template" value="simpleResponsiveTemplate">Simple responsive template<br> |
415 | 415 | <input type="submit" value="Select" name="Submit"> |
416 | 416 | </form> |
417 | 417 | </div>'; |
418 | 418 |
|
419 | 419 | if (isset($_POST['Submit'])) { |
420 | 420 | $radioVal = $_POST['template']; |
421 | 421 | switch ($radioVal) { |
422 | | - case 'systemtemplate': |
| 422 | + case 'systemTemplate': |
423 | 423 | $title = "System template"; |
424 | | - $content = $systemtemplate; |
| 424 | + $content = $systemTemplate; |
425 | 425 | break; |
426 | | - case 'template1': |
| 426 | + case 'templateWithLogo': |
427 | 427 | $title = "Template with logo"; |
428 | | - $content = $template1; |
| 428 | + $content = $templateWithLogo; |
429 | 429 | break; |
430 | | - case 'template2': |
| 430 | + case 'simpleResponsiveTemplate': |
431 | 431 | $title = "Simple responsive template"; |
432 | | - $content = $template2; |
| 432 | + $content = $simpleResponsiveTemplate; |
433 | 433 | break; |
434 | 434 | } |
435 | 435 | $exists = Sql_Fetch_Row_Query(sprintf('select * from %s where title = "%s"', |
|
0 commit comments