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>Random Object</h1>
00011 
00012    <div id="content">
00013 
00014       <?php echo $view->getHelper()->getHtmlFormattedFlash() ?>
00015 
00016       <?php if (count($view->getVar("random_objects")) > 0): ?>
00017          <form method="post" action="">
00018             <fieldset id="randomObjectPool">
00019                <legend>Pool</legend>
00020                <table class="columnar" cellpadding="0" cellspacing="2" border="0">
00021                   <tr>
00022                      <th></th>
00023                      <th>Title</th>
00024                      <th>Collection</th>
00025                      <th>Pointer</th>
00026                   </tr>
00027                   <?php $i = 0; foreach ($view->getVar("random_objects") as $o): ?>
00028                      <tr <?php (!($i & 1)) ? print 'class="odd"' : print '' ?>>
00029                         <td>
00030                            <input type="checkbox" name="objects[]"
00031                               value="<?php echo $o->getCollection()->getAlias() ?>|<?php echo $o->getPtr() ?>" />
00032                         </td>
00033                         <td>
00034                            <a title="<?php echo DMString::websafe($o->getMetadata('title')) ?>"
00035                               href="<?php echo DMString::websafe($o->getURI(DMBridgeComponent::TemplateEngine)) ?>">
00036                               <?php echo DMString::websafe(DMString::truncate($o->getMetadata('title'), 10)) ?></a>
00037                         </td>
00038                         <td>
00039                            <?php echo DMString::websafe($o->getCollection()->getName()) ?>
00040                         </td>
00041                         <td>
00042                            <?php echo DMString::websafe($o->getPtr()) ?>
00043                         </td>
00044                      </tr>
00045                   <?php $i++; endforeach ?>
00046                </table>
00047             </fieldset>
00048 
00049             <input type="submit" value="Remove Checked From Pool" />
00050          </form>
00051       <?php else: ?>
00052          <p>There are currently no objects in the random object pool.</p>
00053       <?php endif ?>
00054    </div> <!-- #content -->
00055 
00056    <?php include_once($tpl_includes . "/footer.html.php") ?>
 All Data Structures Functions Variables