コード例 #1
0
ファイル: add_help_view.php プロジェクト: nwtug/academia
              <tr>
                <td colspan="3" nowrap>
<b>Content List:</b><br />
<div id="sortable" class='selectfield' style='background: #F2F4F4;width:100%;'> 
<?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++;
    }
    ?>
コード例 #2
0
ファイル: addons.php プロジェクト: nwtug/academia
     }
 } else {
     if (!empty($area) && $area == 'search_user_invitations_list') {
         $table_HTML .= $combined_js_HTML . $combined_css_HTML;
         if (!empty($page_list)) {
             $table_HTML .= "<table width='100%' border='0' cellspacing='0' cellpadding='5'>\r\r\n          \t<tr>\r\r\n\t\t\t<td class='listheader' colspan='2' align='left'>Invitation</td>\r\r\n           \t<td class='listheader' align='right' nowrap>Time Left</td>\r\r\n\t\t\t</tr>";
             $counter = 0;
             foreach ($page_list as $row) {
                 #Is the company private or public?
                 $type_icon = $row['companytype'] == 'private' ? "private_icon.png" : "public_icon.png";
                 #Show one row at a time
                 $table_HTML .= "<tr style='" . get_row_color($counter, 2) . "'>\r\r\n\t\t\t<td width='1%' valign='top' nowrap><img src='" . base_url() . "images/" . $type_icon . "' /> ";
                 #The inviting company icon
                 if (!empty($row['iconurl'])) {
                     #Get image settings and reduce the size if it is too wide
                     $img_settings = minimize_image(UPLOAD_DIRECTORY . "images/" . $row['iconurl']);
                     $width = $img_settings['width'] > 56 ? 56 : $img_settings['width'];
                     $table_HTML .= "<img src='" . base_url() . "downloads/images/" . $row['iconurl'] . "' width='" . $width . "'/>";
                 }
                 $diff_format = $row['datediff'] < 0 ? " class='redtext'" : " class='contentlink'";
                 $diff = $row['datediff'] < 0 ? "-" : "";
                 $date_diff_str = get_date_diff_str(abs($row['datediff']), 'hrs');
                 $table_HTML .= "</td>\r\r\n                <td width='98%'><a href='" . base_url() . "deal/view_invitation/i/" . encryptValue($row['id']) . "' " . $diff_format . ">" . wordwrap($row['dealdescription'], 70, '<BR>') . "</a></td>\r\r\n                <td width='1%' align='right' valign='top' nowrap><span " . $diff_format . ">" . $diff . $date_diff_str . "</span></td>\r\r\n              </tr>";
                 $counter++;
             }
             $table_HTML .= "</table>";
         } else {
             $table_HTML .= format_notice("No invitation meets your search.");
         }
     } else {
         if (!empty($area) && $area == 'order_accountnumber_list') {