dmBridge PHP API
index.html.php
00001 <?php
00002 
00003 $tpl_includes = dirname(__FILE__) . "/../../../../templates/admin/templates/includes";
00004 include_once($tpl_includes . "/head.html.php") ?>
00005 
00006 </head>
00007 
00008 <?php include_once($tpl_includes . "/body.html.php") ?>
00009 
00010    <h1>Highlighted Object</h1>
00011 
00012    <div id="content">
00013 
00014       <?php echo $view->getHelper()->getHtmlFormattedFlash() ?>
00015 
00016       <?php if (count($view->getVar("highlighted_objects")) > 0): ?>
00017          <form method="post" action="">
00018             <fieldset id="highlightedObjectSchedule">
00019                <legend>Schedule</legend>
00020                <table class="columnar" cellspacing="2" cellpadding="0" border="0">
00021                   <tr>
00022                      <th></th>
00023                      <th>Effective</th>
00024                      <th>Title</th>
00025                      <th>Alias</th>
00026                      <th>Pointer</th>
00027                   </tr>
00028                   <?php
00029                   $i = 0;
00030                   $drawn = false;
00031                   foreach ($view->getVar("highlighted_objects") as $obj):
00032                      $class = (!($i & 1)) ? 'odd' : '';
00033                      $class .= ($view->getVar("highlighted_object") && $view->getVar("highlighted_object")->equals($obj)) ? ' active' : ''; ?>
00034                      <tr class="<?php echo $class ?>">
00035                         <td>
00036                            <input type="checkbox" name="dates"
00037                               value="<?php echo $obj->getHighlightedDate()->format("Y-m-d") ?>" />
00038                         </td>
00039                         <td>
00040                            <?php echo $obj->getHighlightedDate()->format("Y-m-d") ?>
00041                         </td>
00042                         <td>
00043                            <a title="<?php echo DMString::websafe($obj->getMetadata("title")) ?>"
00044                               href="<?php echo DMString::websafe($obj->getReferenceURL()) ?>">
00045                               <?php echo DMString::websafe(DMString::truncate($obj->getMetadata("title"), 6)) ?>
00046                            </a>
00047                         </td>
00048                         <td>
00049                            <span title="<?php echo DMString::websafe($obj->getCollection()->getName()) ?>"
00050                                 ><?php echo DMString::websafe($obj->getCollection()->getAlias()) ?></span>
00051                         </td>
00052                         <td>
00053                            <?php echo DMString::websafe($obj->getPtr()) ?>
00054                         </td>
00055                      </tr>
00056                   <?php $i++; endforeach ?>
00057                </table>
00058             </fieldset>
00059 
00060             <input type="submit" value="Un-Highlight Checked" />
00061          </form>
00062       <?php else: ?>
00063          <p>There are currently no highlighted objects scheduled.</p>
00064       <?php endif ?>
00065    </div> <!-- #content -->
00066 
00067    <?php include_once($tpl_includes . "/footer.html.php") ?>
 All Data Structures Functions Variables