Example #1
0
<?php 
    $counter = 0;
    foreach ($page_list as $row) {
        #Show one row at a time
        echo "<div class='ui-state-default'>\r\r\n\t\t<table style='" . get_row_color($counter, 2) . "' width='100%'>\r\r\n\t\t<tr>\r\r\n    \t<td valign='top' width='1%'>\r\r\n\t\t<a href='javascript:void(0)' onclick=\"confirmDeleteEntity('" . base_url() . "help/remove_help_item/i/" . encryptValue($row['id']) . "/t/" . encryptValue($row['topiccode']) . "', 'Are you sure you want to remove this help item? \\nThis operation can not be undone. \\nClick OK to confirm, \\nCancel to cancel this operation and stay on this page.');\" title='Click to remove this help item.'><img src='" . base_url() . "images/delete.png' border='0'/></a>\r\r\n\t\t<input type='hidden' name='helpitem[]' value='" . $row['id'] . "' />\r\r\n\t\t</td>\r\r\n\t\r\r\n    \t<td width='98%' align='left'>";
        if (!empty($row['fileurl'])) {
            if (strtolower(strrchr($row['fileurl'], ".")) == '.swf') {
                echo "<a href=\"javascript:void(0)\" onclick=\"updateFieldLayer('" . base_url() . "page/view_video/f/" . encryptValue('documents') . "/u/" . encryptValue($row['fileurl']) . "', '', '', '_', '')\" class='bluelink'>View Larger Video</a>\r\r\n\t\t\t\t<br>\r\r\n\t\t\t\t<object id=\"movie\" type=\"application/x-shockwave-flash\" data=\"" . base_url() . "downloads/documents/" . $row['fileurl'] . "\" style=\"width: 400px; height: 250px;\">\r\r\n\t<embed src=\"" . base_url() . "downloads/documents/" . $row['fileurl'] . "\" type=\"application/x-shockwave-flash\" width=\"400\" height=\"100%\" allowScriptAccess=\"sameDomain\" pluginspage=\"http://get.adobe.com/de/flashplayer/\"></embed>\r\r\n</object>\r\r\n<br>";
            } else {
                if (is_file_an_image(UPLOAD_DIRECTORY . "documents/" . $row['fileurl'])) {
                    $WIDTH = 600;
                    $img_properties = minimize_image(UPLOAD_DIRECTORY . "documents/" . $row['fileurl'], '', $WIDTH);
                    $imgwidth = $img_properties['actualwidth'] < $WIDTH ? $img_properties['actualwidth'] : $WIDTH;
                    echo "<a href='javascript:void(0)' onclick=\"updateFieldLayer('" . base_url() . "downloads/documents/" . $row['fileurl'] . "','','','_','')\"><img src='" . base_url() . "downloads/documents/" . $row['fileurl'] . "' width='" . $imgwidth . "' border='0'></a>\r\r\n\t\t\t\t\t <br>";
                } else {
                    echo "<br><a href='" . base_url() . "documents/force_download/u/" . encryptValue($row['fileurl']) . "/f/" . encryptValue('documents') . "' class='bluelink'><img src='" . base_url() . "images/" . get_doc_logo($row['fileurl']) . "' border='0'>\r\r\n\t\t\t&nbsp;\r\r\n\t\t\tDownload Document</a><br>";
                }
            }
        }
        if (!empty($row['helplink'])) {
            echo "<a href='" . $row['helplink'] . "' class='contentlink' target='_blank'>" . $row['helplink'] . "</a>";
        }
        echo stripslashes(html_entity_decode(html_entity_decode($row['details'])));
        echo "</td>\r\r\n\t\t<td width='1%' valign='top' align='right'><span class='ui-icon ui-icon-arrowthick-2-n-s'></span></td> \r\r\n    \t</tr></table></div>";
        $counter++;
    }
    ?>
  
                

</td>
Example #2
0
    <td><input type="button" name="search" id="search" value="Search" class="bodybutton"/></td>
              </tr>
</table>
</td>
              </tr>
            <tr>
              <td>
<div id="searchresults">
<?php 
#Show search results
if (!empty($page_list)) {
    echo "<table width='100%' border='0' cellspacing='0' cellpadding='5'>\r\r\n          \t<tr>\r\r\n\t\t\t<td width='1%' class='listheader'>&nbsp;</td>\r\r\n           \t<td class='listheader' nowrap>Report</td>\r\r\n\t\t\t<td class='listheader' nowrap>Date</td>\r\r\n\t\t\t</tr>";
    $counter = 0;
    foreach ($page_list as $row) {
        #Show one row at a time
        echo "<tr style='" . get_row_color($counter, 2) . "'>\r\r\n\t\t\t\r\r\n\t\t\t<td valign='top' nowrap><img src='" . base_url() . "images/" . get_doc_logo($row['fileurl']) . "' border='0' height='20'/>&nbsp;</td>\r\r\n            \r\r\n\t\t\t<td><a href='" . base_url() . "documents/force_download/u/" . encryptValue($row['fileurl']) . "/f/" . encryptValue('reports') . "' class='contentlink'>" . $row['reportname'] . "</a></td>\r\r\n            \r\r\n\t\t\t<td>" . date('d-M-Y', strtotime($row['uploaddate'])) . "</td>\r\r\n              </tr>";
        $counter++;
    }
    $url_part = !empty($t) && decryptValue($t) == 'archive' ? '/t/' . encryptValue('archive') : '';
    echo "<tr>\r\r\n\t<td colspan='3' align='center'  class='layer_table_pagination'>" . pagination($this->session->userdata('search_total_results'), $rows_per_page, $current_list_page, base_url() . "reports/report_list" . $url_part . "/p/%d") . "</td>\r\r\n\t</tr>\r\r\n\t</table>";
} else {
    $status = !empty($t) && decryptValue($t) == 'archive' ? 'archived' : 'active';
    echo format_notice("<span class='error'>There are no " . $status . " reports at the moment.</span>");
}
?>
</div>
              </td>
              </tr>

        </table></td>
            </tr>