<?php $formdata['q'] = array('type' => 'text', 'label' => v('CMT_SEARCH')); $formdata['c_q_username'] = array('type' => 'checkbox', 'parent_class' => 'multi_checkbox', 'settings' => array('data' => array('1' => v('CMT_USERNAME'))), 'value' => 1); $formdata['c_q_first_name'] = array('type' => 'checkbox', 'parent_class' => 'multi_checkbox', 'settings' => array('data' => array('1' => v('CMT_FIRST_NAME'))), 'value' => 1); $formdata['c_q_last_name'] = array('type' => 'checkbox', 'parent_class' => 'multi_checkbox', 'settings' => array('data' => array('1' => v('CMT_LAST_NAME'))), 'value' => 1); $formdata['c_q_email'] = array('type' => 'checkbox', 'parent_class' => 'multi_checkbox', 'settings' => array('data' => array('1' => v('CMT_EMAIL'))), 'value' => 1); foreach ($formdata as $key => $val) { if (isset(${$key})) { $formdata[$key]['value'] = ${$key}; } } $filter_array['SEARCH'] = $formdata; $formdata = NULL; print "<div class='filter'>"; show_filter($filter_array); print "</div><!-- /.filter -->"; $head_array['TABLE'] = array("CMT_DATE" => "date", "CMT_USERNAME" => "username", "CMT_FIRST_NAME" => "first_name", "CMT_LAST_NAME" => "last_name"); $head_array['CONSTRUCT'] = array("add" => true); $data_array['TABLE'] = array("date" => "date", "username" => "default", "first_name" => "default", "last_name" => "default"); $data_array['CONSTRUCT'] = array("edit" => true, "copy" => true, "delete" => true, "activate" => true); if (!isset($order)) { $data_array['SORT'] = array("date" => $direction); } else { $data_array['SORT'] = array($order => $direction); } foreach ($head_array['CONSTRUCT'] as $key => $value) { if ($value === true) { print "<div class='engine-function'><a href='#' class='" . $key . "' data-content='" . $modul . "' ><i class='icon-" . $key . "'></i></a></div><!-- /.engine-function -->"; } }
foreach ($items as $k => $v) { echo '<tr>'; echo '<td>' . $site_name[$k] . '</td>' . "\n"; echo '<td>' . $page_name[$k] . '</td>' . "\n"; echo '<td>' . $items[$k] . '</td>' . "\n"; echo '</tr>'; } echo '</table>'; } else { echo '<p>No page URLs could be found for module ' . $detail_limiter . '</p>'; } } else { $module_location_text = $core_local_limiter ? ucfirst($core_local_limiter) . ' modules' : 'All modules'; $module_limit_text = $module_limiter ? ' limited by substring ' . $module_limiter : ''; echo '<h3>' . $module_location_text . $module_limit_text . '</h3>'; show_filter($module_limiter, $core_local_limiter); if (empty($modules_by_page_type)) { echo '<hr /><p>No results to show</p><hr />'; die; } echo '<table border="1" cellpadding="2" cellspacing="0">' . "\n"; echo "<tr>\n"; echo "<th>Module</th>\n"; echo "<th>Pages using this module (approx)</th>\n"; echo "<th>Random Page Using this module</th>\n"; echo "<th>More URLs</th>"; echo "</tr>\n"; foreach ($modules_by_page_type as $module => $my_page_types) { echo "<tr>\n"; echo "<td>{$module}</td>\n"; $page_total = $url = $link = '';