Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
keywords.php
1 <!--
16 -->
17 <?php
18  require_once dirname(__FILE__).'/../../../../../core/include/init.inc';
19  if (!isset($_GET['type_code'])) return FALSE;
20 
21  $GLOBALS['SQ_SYSTEM']->am->includeAsset($_GET['type_code']);
22  $asset = new $_GET['type_code']();
23  $keywords = $asset->getAvailableKeywords();
24 ?>
25 
26 <html>
27  <head>
28  <title><?php echo htmlspecialchars(ucwords(str_replace('_', ' ', $_GET['type_code']))) ?> Format Keyword Replacements</title>
29  <style>
30  body {
31  background-color: #FFFFFF;
32  }
33 
34  body, p, td, ul, li, input, select, textarea{
35  color: #000000;
36  font-family: Arial, Verdana Helvetica, sans-serif;
37  font-size: 10px;
38  }
39 
40  fieldset {
41  padding: 0px 10px 5px 5px;
42  border: 1px solid #E0E0E0;
43  }
44 
45  legend {
46  color: #2086EA;
47  }
48  </style>
49  </head>
50 
51  <body>
52  <p><b><i>The following keyword replacements may be used for <?php echo htmlspecialchars(ucwords(str_replace('_', ' ', $_GET['type_code']))); ?> asset values.<br/>Note that the percentage signs (%) are required.</i></b></p>
53 
54  <p>
55  <fieldset>
56  <legend><b>Asset Information</b></legend>
57  <table border="0" width="100%">
58  <?php
59  foreach ($keywords as $keyword => $description) {
60  ?>
61  <tr><td valign="top" width="200"><b>%<?php echo $keyword?>%</b></td><td valign="top"><?php echo isset($description) ? $description : '' ?></td></tr>
62  <?php
63  }
64  ?>
65  </table>
66  </fieldset>
67  </p>
68  </body>
69 </html>