• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP print_table函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中print_table函数的典型用法代码示例。如果您正苦于以下问题:PHP print_table函数的具体用法?PHP print_table怎么用?PHP print_table使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了print_table函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: print_results

function print_results($results)
{
    foreach ($results as $id => $data) {
        printf("<h2>%s</h2>\n", $id);
        print_table($data);
    }
}
开发者ID:sollidius,项目名称:Prometheus,代码行数:7,代码来源:index.php


示例2: print_results

function print_results($results)
{
    printf("<h1>%d servers in list</h1>\n", count($results));
    foreach ($results as $id => $data) {
        printf("<h2>%s</h2>\n", $id);
        print_table($data);
    }
}
开发者ID:jaredballou,项目名称:insurgency-tools-old,代码行数:8,代码来源:example.php


示例3: print_results

function print_results($gamequery)
{
    foreach ($gamequery as $id => $data) {
        if ($id != $_GET['id']) {
            continue;
        }
        print_table($data);
    }
}
开发者ID:erfg12,项目名称:PHPJK_ServerControl,代码行数:9,代码来源:status.php


示例4: render

 function render()
 {
     $text = "Lorem ipsum";
     $im = new \Imagick();
     $draw = new \ImagickDraw();
     $draw->setStrokeColor("none");
     $draw->setFont("../fonts/Arial.ttf");
     $draw->setFontSize(96);
     $draw->setTextAlignment(\Imagick::ALIGN_LEFT);
     $metrics = $im->queryFontMetrics($draw, $text);
     return print_table($metrics);
 }
开发者ID:sdmmember,项目名称:Imagick-demos,代码行数:12,代码来源:queryFontMetrics.php


示例5: display

 function display()
 {
     global $CFG, $PAGE, $COURSE;
     $moving = optional_param('moving', 0, PARAM_INT);
     require_capability('format/page:managepages', $this->context);
     $PAGE->print_tabs('manage');
     if ($pages = page_get_all_pages($COURSE->id, 'flat')) {
         $table->head = array(get_string('pagename', 'format_page'), get_string('pageoptions', 'format_page'), get_string('displaytheme', 'format_page'), get_string('displaymenu', 'format_page'), get_string('publish', 'format_page'), get_string('locks', 'format_page'));
         $table->align = array('left', 'center', 'center', 'center', 'center', 'center');
         $table->width = '70%';
         $table->cellspacing = '0';
         $table->id = 'editing-table';
         $table->class = 'generaltable pageeditingtable';
         $table->data = array();
         foreach ($pages as $page) {
             $a = strip_tags(format_string($page->nameone));
             $editalt = get_string('edita', 'format_page', $a);
             $movealt = get_string('movea', 'format_page', $a);
             $delealt = get_string('deletea', 'format_page', $a);
             // Page link/name
             $name = page_pad_string('<a href="' . $PAGE->url_build('page', $page->id) . '" title="' . $a . '">' . format_string($page->nameone) . '</a>', $page->depth);
             // Edit, move and delete widgets
             $widgets = '<a title="' . $editalt . '" href="' . $PAGE->url_build('page', $page->id, 'action', 'editpage', 'returnaction', 'manage') . '" class="icon edit"><img src="' . $CFG->pixpath . '/t/edit.gif" alt="' . $editalt . '" /></a>&nbsp;';
             $widgets .= '<a title="' . $movealt . '" href="' . $PAGE->url_build('action', 'moving', 'moving', $page->id, 'sesskey', sesskey()) . '" class="icon move"><img src="' . $CFG->pixpath . '/t/move.gif" alt="' . $movealt . '" /></a>&nbsp;';
             $widgets .= '<a title="' . $delealt . '" href="' . $PAGE->url_build('action', 'confirmdelete', 'page', $page->id, 'sesskey', sesskey()) . '" class="icon delete"><img src="' . $CFG->pixpath . '/t/delete.gif" alt="' . $delealt . '" /></a>';
             // Theme, menu and publish widgets
             if ($page->parent == 0) {
                 // Only master pages get this one
                 $theme = $this->manage_showhide($page, DISP_THEME);
             } else {
                 //$theme = '';
                 $theme = $this->manage_showhide($page, DISP_THEME);
             }
             $menu = $this->manage_showhide($page, DISP_MENU);
             $publish = $this->manage_showhide($page, DISP_PUBLISH);
             if (empty($page->locks)) {
                 $lockalt = get_string('notlockedalt', 'format_page');
                 $lockicon = 'lock.gif';
             } else {
                 $lockalt = get_string('lockedalt', 'format_page');
                 $lockicon = 'unlock.gif';
             }
             $lock = '<a title="' . $lockalt . '" href="' . $PAGE->url_build('page', $page->id, 'action', 'lock') . '" class="icon lock"><img src="' . $CFG->pixpath . '/t/' . $lockicon . '" alt="' . $lockalt . '" /></a>';
             $table->data[] = array($name, $widgets, $theme, $menu, $publish, $lock);
         }
         print_table($table);
     } else {
         error(get_string('nopages', 'format_page'), $PAGE->url_build('action', 'editpage'));
     }
 }
开发者ID:NextEinstein,项目名称:riverhills,代码行数:50,代码来源:manage.php


示例6: calculate_page_content

/**
 * @param $print_flag
 */
function calculate_page_content($print_flag)
{
    $specmanagement_print_api = new specmanagement_print_api();
    html_page_top1(plugin_lang_get('menu_versgraph'));
    echo '<link rel="stylesheet" href="' . SPECMANAGEMENT_PLUGIN_URL . 'files/specmanagement.css">';
    if (!$print_flag) {
        html_page_top2();
        if (plugin_is_installed('WhiteboardMenu') && file_exists(config_get_global('plugin_path') . 'WhiteboardMenu')) {
            require_once WHITEBOARDMENU_CORE_URI . 'whiteboard_print_api.php';
            $whiteboard_print_api = new whiteboard_print_api();
            $whiteboard_print_api->printWhiteboardMenu();
        }
        $specmanagement_print_api->print_plugin_menu();
        echo '<div align="center">';
        echo '<hr size="1" width="100%" />';
    }
    print_table($print_flag);
    if (!$print_flag) {
        html_page_bottom1();
    }
}
开发者ID:Cre-ator,项目名称:Whiteboard.SpecificationManagement-Plugin,代码行数:24,代码来源:version_graph.php


示例7: display

 function display()
 {
     global $PAGE, $COURSE;
     $moving = required_param('moving', PARAM_INT);
     require_capability('format/page:managepages', $this->context);
     $PAGE->print_tabs('manage');
     if ($pages = page_get_all_pages($COURSE->id)) {
         if (!($name = get_field('format_page', 'nameone', 'id', $moving))) {
             error('Cannot get the name of the page');
         }
         $a = new stdClass();
         $a->name = format_string($name);
         $a->url = $PAGE->url_get_full(array('action' => 'manage'));
         $table->head = array(get_string('movingpage', 'format_page', $a));
         $table->cellpadding = '2px';
         $table->cellspacing = '0';
         $table->width = '30%';
         $table->wrap = array('nowrap');
         $table->id = 'editing-table';
         $table->class = 'pageeditingtable';
         $table->data = array();
         $sortorder = 1;
         $data = array();
         $data[] = $this->movehere_widget($moving, 0, 0, -2, get_string('asamasterpageone', 'format_page'));
         foreach ($pages as $page) {
             if ($page->id != $moving) {
                 $data = array_merge($data, $this->print_moving_hierarchy($page, $moving));
                 $data[] = $this->movehere_widget($moving, 0, $sortorder, -2, get_string('asamasterpageafter', 'format_page', format_string($page->nameone)));
                 $sortorder++;
             }
         }
         // Convert each item in $data into a table row
         foreach ($data as $row) {
             $table->data[] = array($row);
         }
         print_table($table);
     } else {
         error(get_string('nopages', 'format_page'), $PAGE->url_build('action', 'editpage'));
     }
 }
开发者ID:hmatulis,项目名称:RTL-BIDI-Hebrew-Moodle-Plugins,代码行数:40,代码来源:moving.php


示例8: make_html

function make_html($link, $data_date, $base_table)
{
    if ($base_table == 'okato') {
        $classif = "ОКАТО";
    } else {
        $classif = "ОКТМО";
    }
    echo date("H:i:s") . " Генерация html для классификатора {$classif}\n\n";
    $time = -time();
    print_table($link, $data_date, $base_table, '', 'html');
    $i = 1;
    $query = 'SELECT mergedcode FROM ' . $base_table . ' WHERE mergedcode<>\'00000000\' AND exist<>0';
    $result = mysqli_query($link, $query);
    $num_pages = mysqli_num_rows($result);
    while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) {
        $percents = 100 * $i / $num_pages;
        $status = sprintf("%3d", $percents) . '% Обработано ' . sprintf("%7d", $i) . ' из ' . sprintf("%7d", $num_pages) . ' ';
        fwrite(STDERR, "\r{$status}");
        print_table($link, $data_date, $base_table, $row['mergedcode'], 'html');
        $i++;
    }
    $time += time();
    echo "\n\n" . date("H:i:s") . " Генерация html для {$classif} выполнена за " . hms($time) . "\n\n";
}
开发者ID:allardais,项目名称:validwd,代码行数:24,代码来源:make_html.php


示例9: print_aside_deck

function print_aside_deck($id)
{
    global $DECK_SINGLE_TABLE_ATTR;
    $table = get_deck_table_name($id);
    print_msg(get_deck_name_by_id($id));
    $total = print_table($table, $DECK_SINGLE_TABLE_ATTR, 'print_single_deck_table_callback');
    print_msg("total = {$total}");
}
开发者ID:jjjj222,项目名称:hsinfo,代码行数:8,代码来源:html.php


示例10: survey_print_all_responses

function survey_print_all_responses($cmid, $results, $courseid)
{
    $table->head = array("", get_string("name"), get_string("time"));
    $table->align = array("", "left", "left");
    $table->size = array(35, "", "");
    foreach ($results as $a) {
        $table->data[] = array(print_user_picture($a->id, $courseid, $a->picture, false, true, false), "<a href=\"report.php?action=student&amp;student={$a->id}&amp;id={$cmid}\">" . fullname($a) . "</a>", userdate($a->time));
    }
    print_table($table);
}
开发者ID:JackCanada,项目名称:moodle-hacks,代码行数:10,代码来源:lib.php


示例11: view_summary

 /**
  * Display auto generated info about the assignment
  */
 function view_summary($submission = null, $return = false)
 {
     global $USER, $CFG;
     $table = new Object();
     $table->id = 'summary';
     $table->class = 'generaltable';
     $table->align = array('right', 'left');
     $table->size = array('20%', '');
     $table->width = '100%';
     // Language
     $item_name = get_string('assignmentlangs', 'assignment_onlinejudge') . ':';
     $lang = get_string('lang' . $this->onlinejudge->language, 'assignment_onlinejudge');
     $table->data[] = array($item_name, $lang);
     if (is_null($submission)) {
         $submission = $this->get_submission();
     }
     // Status
     $item_name = get_string('status') . helpbutton('status', get_string('status'), 'assignment_onlinejudge', true, false, '', true) . ':';
     $item = get_string('notavailable');
     if (!empty($submission->status)) {
         $item = get_string('status' . $submission->status, 'assignment_onlinejudge');
     }
     $table->data[] = array($item_name, $item);
     // Judge time
     $item_name = get_string('judgetime', 'assignment_onlinejudge') . ':';
     $item = get_string('notavailable');
     if (isset($submission->judgetime)) {
         $item = userdate($submission->judgetime) . '&nbsp(' . get_string('early', 'assignment', format_time(time() - $submission->judgetime)) . ')';
     }
     $table->data[] = array($item_name, $item);
     // Information
     $item_name = get_string('info', 'assignment_onlinejudge') . ':';
     $item = get_string('notavailable');
     if (isset($submission->status)) {
         if ($submission->status === 'pending') {
             if (empty($CFG->assignment_oj_daemon_pid)) {
                 //Judge from cron
                 $lastcron = get_field('modules', 'lastcron', 'name', 'assignment');
                 $left = ceil(($lastcron + $CFG->assignment_oj_cronfreq - time()) / 60);
                 $left = $left > 0 ? $left : 0;
                 $submission->info = get_string('infopending', 'assignment_onlinejudge', $left);
             } else {
                 $submission->info = get_string('notavailable');
             }
         } else {
             if ($submission->status !== 'ac' && $submission->status !== 'ce' && empty($submission->info)) {
                 $submission->info = get_string('info' . $submission->status, 'assignment_onlinejudge');
             }
         }
         if (!empty($submission->info)) {
             $item = $submission->info;
         }
     }
     $options = new stdClass();
     $options->para = false;
     $table->data[] = array($item_name, format_text(stripslashes($item), FORMAT_MOODLE, $options));
     // Statistics
     $item_name = get_string('statistics', 'assignment_onlinejudge') . ':';
     $item = get_string('notavailable');
     if (isset($submission->id)) {
         $item = '';
         $ac_rate = $this->get_statistics($submission, &$item);
         if (!empty($item)) {
             $item .= '<br />' . get_string('successrate', 'assignment_onlinejudge') . ': ' . round($ac_rate * 100, 2) . '%';
         }
     }
     $table->data[] = array($item_name, $item);
     // Output (Show to teacher only)
     $context = get_context_instance(CONTEXT_MODULE, $this->cm->id);
     if (has_capability('mod/assignment:grade', $context) && isset($submission->output)) {
         $table->data[] = array(get_string('output', 'assignment_onlinejudge') . ':', format_text(stripslashes($submission->output), FORMAT_PLAIN));
     }
     $output = print_table($table, true);
     if ($return) {
         return $output;
     }
     echo $output;
 }
开发者ID:hit-moodle,项目名称:onlinejudge,代码行数:81,代码来源:assignment.class.php


示例12: print_topic

<?php

print_topic("VIEWING MEMBERS");
include get_file_loc('menue.inc');
print_galactic_post_menue();
$container = array();
$container["url"] = "skeleton.php";
$container["body"] = "galactic_post_view_members.php";
if ($action == "Remove") {
    $db->query("DELETE FROM galactic_post_writer WHERE game_id = {$player->game_id} AND account_id = {$var['id']}");
}
$db->query("SELECT * FROM galactic_post_writer WHERE game_id = {$player->game_id} AND account_id != {$player->account_id}");
if ($db->nf()) {
    print_table();
    print "<tr>";
    print "<th align=\"center\">Player Name</th>";
    print "<th align=\"center\">Last Wrote</th>";
    print "<th align=\"center\">Options</th>";
    print "</tr>";
    while ($db->next_record()) {
        $curr_writter = new SMR_PLAYER($db->f("account_id"), $player->game_id);
        $time = $db->f("last_wrote");
        print "<tr>";
        print "<td align=\"center\">{$curr_writter->player_name}</td>";
        print "<td align=\"center\"> " . date("n/j/Y g:i:s A", $time) . "</td>";
        $container["id"] = $curr_writter->account_id;
        print_form($container);
        print "<td>";
        print_submit("Remove");
        print "</td>";
        print "</tr>";
开发者ID:smrealms,项目名称:smrv2.0,代码行数:31,代码来源:galactic_post_view_members.php


示例13: history

 function history($question, $state, $number, $cmoptions, $options)
 {
     $history = '';
     if (isset($options->history) and $options->history) {
         if ($options->history == 'all') {
             // show all states
             $states = get_records_select('question_states', "attempt = '{$state->attempt}' AND question = '{$question->id}' AND event > '0'", 'seq_number ASC');
         } else {
             // show only graded states
             $states = get_records_select('question_states', "attempt = '{$state->attempt}' AND question = '{$question->id}' AND event IN (" . QUESTION_EVENTS_GRADED . ")", 'seq_number ASC');
         }
         if (count($states) > 1) {
             $strreviewquestion = get_string('reviewresponse', 'quiz');
             $table = new stdClass();
             $table->width = '100%';
             if ($options->scores) {
                 $table->head = array(get_string('numberabbr', 'quiz'), get_string('action', 'quiz'), get_string('response', 'quiz'), get_string('time'), get_string('score', 'quiz'), get_string('grade', 'quiz'));
             } else {
                 $table->head = array(get_string('numberabbr', 'quiz'), get_string('action', 'quiz'), get_string('response', 'quiz'), get_string('time'));
             }
             foreach ($states as $st) {
                 $st->responses[''] = $st->answer;
                 $this->restore_session_and_responses($question, $st);
                 $b = $state->id == $st->id ? '<b>' : '';
                 $be = $state->id == $st->id ? '</b>' : '';
                 if ($state->id == $st->id) {
                     $link = '<b>' . $st->seq_number . '</b>';
                 } else {
                     if (isset($options->questionreviewlink)) {
                         $link = link_to_popup_window($options->questionreviewlink . '?state=' . $st->id . '&amp;number=' . $number, 'reviewquestion', $st->seq_number, 450, 650, $strreviewquestion, 'none', true);
                     } else {
                         $link = $st->seq_number;
                     }
                 }
                 if ($options->scores) {
                     $table->data[] = array($link, $b . get_string('event' . $st->event, 'quiz') . $be, $b . $this->response_summary($question, $st) . $be, $b . userdate($st->timestamp, get_string('timestr', 'quiz')) . $be, $b . round($st->raw_grade, $cmoptions->decimalpoints) . $be, $b . round($st->grade, $cmoptions->decimalpoints) . $be);
                 } else {
                     $table->data[] = array($link, $b . get_string('event' . $st->event, 'quiz') . $be, $b . $this->response_summary($question, $st) . $be, $b . userdate($st->timestamp, get_string('timestr', 'quiz')) . $be);
                 }
             }
             $history = print_table($table, true);
         }
     }
     return $history;
 }
开发者ID:kai707,项目名称:ITSA-backup,代码行数:45,代码来源:questiontype.php


示例14: DataForm

    $export_pdf_form = new DataForm(DataForm::TYPE_EXPORT_PDF, 'export_pdf_form', null, api_get_self() . '?exportpdf=&offset=' . intval($_GET['offset']) . '&selectcat=' . intval($_GET['selectcat']) . '&' . api_get_cidreq(), '_blank', '');
    if ($export_pdf_form->validate()) {
        $params = $export_pdf_form->exportValues();
        Display::set_header(null, false, false);
        $params['join_firstname_lastname'] = true;
        $params['show_official_code'] = true;
        $params['export_pdf'] = true;
        $params['only_total_category'] = false;
        GradebookUtils::export_pdf_flatview($flatviewtable, $cat, $users, $alleval, $alllinks, $params, $mainCourseCategory[0]);
    } else {
        Display::display_header(get_lang('ExportPDF'));
    }
}
if (isset($_GET['print'])) {
    $printable_data = GradebookUtils::get_printable_data($cat[0], $users, $alleval, $alllinks, $params, $mainCourseCategory[0]);
    echo print_table($printable_data[1], $printable_data[0], get_lang('FlatView'), $cat[0]->get_name());
    exit;
}
if (!empty($_GET['export_report']) && $_GET['export_report'] == 'export_report') {
    if (api_is_platform_admin() || api_is_course_admin() || api_is_course_coach() || $isDrhOfCourse) {
        $user_id = null;
        if (empty($_SESSION['export_user_fields'])) {
            $_SESSION['export_user_fields'] = false;
        }
        if (!api_is_allowed_to_edit(false, false) and !api_is_course_tutor()) {
            $user_id = api_get_user_id();
        }
        $printable_data = GradebookUtils::get_printable_data($cat[0], $users, $alleval, $alllinks, $params, $mainCourseCategory[0]);
        switch ($_GET['export_format']) {
            case 'xls':
                $export = new GradeBookResult();
开发者ID:KRCM13,项目名称:chamilo-lms,代码行数:31,代码来源:gradebook_flatview.php


示例15: dialogue_list_conversations_inout

function dialogue_list_conversations_inout($dialogue, $inout)
{
    // list open conversations of the current user awaiting their reply
    global $USER, $CFG;
    if (!($course = get_record("course", "id", $dialogue->course))) {
        error("Course is misconfigured");
    }
    if (!($cm = get_coursemodule_from_instance("dialogue", $dialogue->id, $course->id))) {
        error("Course Module ID was incorrect");
    }
    $context = get_context_instance(CONTEXT_MODULE, $cm->id);
    $dialoguemanagers = array_keys(get_users_by_capability($context, 'mod/dialogue:manage'));
    $params->pane = optional_param('pane', '', PARAM_TEXT);
    $timenow = time();
    $showbutton = false;
    if (empty($params->order)) {
        $params->order = 'c.timemodified ASC';
    } else {
        $params->order = rtrim(ltrim(optional_param('order', '', PARAM_TEXT), "\\'"), "\\'");
    }
    // list the conversations requiring a resonse from this user in full
    if ($conversations = dialogue_get_conversations_unique_subject($dialogue, $USER, 'closed = 0 ', $params->order)) {
        // reorder the conversations by (other) name
        foreach ($conversations as $conversation) {
            if ($inout == 'outgoing' && !($USER->id == $conversation->userid)) {
                continue;
            }
            if ($inout == 'incoming' && !($USER->id == $conversation->recipientid)) {
                continue;
            }
            if (in_array($USER->id, $dialoguemanagers)) {
                if (!in_array($conversation->userid, $dialoguemanagers)) {
                    if (!($with = get_record("user", "id", $conversation->userid))) {
                        error("User's record not found");
                    }
                } else {
                    if (!($with = get_record("user", "id", $conversation->recipientid))) {
                        //continue;
                        error("User's record not found");
                    }
                }
            } else {
                if ($USER->id != $conversation->userid) {
                    if (!($with = get_record("user", "id", $conversation->userid))) {
                        error("User's record not found");
                    }
                } else {
                    if (!($with = get_record("user", "id", $conversation->recipientid))) {
                        error("User's record not found");
                    }
                }
            }
            $names[$conversation->id] = fullname($with);
        }
        // used to sord by names, i disabled it to have the table be sorted by clicking the arrows
        // on each column's header title.
        //natcasesort($names);
        print_simple_box_start("center");
        $table->head = array(get_string("dialoguewith", "dialogue"), get_string("subject", "dialogue"), get_string("lastentry", "dialogue") . "<a href=\"view.php?id={$cm->id}&amp;pane={$params->pane}&amp;order='c.timemodified ASC'\">" . "<img src=\"{$CFG->wwwroot}/mod/dialogue/pix/arrow-down.png\" height=16 width=16></a>" . "<a href=\"view.php?id={$cm->id}&amp;pane={$params->pane}&amp;order='c.timemodified DESC'\">" . "<img src=\"{$CFG->wwwroot}/mod/dialogue/pix/arrow-up.png\" height=16 width=16></a>", get_string("actions", "dialogue"));
        $table->width = "80%";
        $table->align = array("left", "left", "left", "center");
        $table->size = array("*", "*", "*", "*");
        $table->cellpadding = 2;
        $table->cellspacing = 0;
        foreach ($names as $cid => $name) {
            $conversation = $conversations[$cid];
            $hasattachmenticon = "&nbsp";
            if ($entries = get_records_select("dialogue_entries", "conversationid = {$conversation->id}", "id")) {
                foreach ($entries as $entry) {
                    if (!empty($entry->attachment)) {
                        $hasattachmenticon = "&nbsp<img src=\"{$CFG->wwwroot}/mod/dialogue/pix/paperclip.gif\" height=11 width=14>&nbsp";
                    }
                }
            }
            if ($conversation->total - $conversation->readings > 0) {
                $mailstatusicon = "pix/pmmail.gif";
                $unread = '<span class="unread">' . ($conversation->total - $conversation->readings) . '</span>';
            } else {
                $unread = 0;
                $mailstatusicon = "pix/answermail.gif";
            }
            $actions = "&nbsp";
            $actions .= "<a href=\"dialogues.php?id={$cm->id}&amp;action=deleteconversation&amp;cid={$conversation->id}\">" . "<img src=\"{$CFG->wwwroot}/mod/dialogue/pix/mail-delete.png\" height=11 width=14 alt=\"" . get_string("deleteconversation", "dialogue") . "\" title=\"" . get_string("deleteconversation", "dialogue") . "\" >&nbsp</a>";
            //        $actions .= "<a href=\"dialogues.php?id=$cm->id&amp;action=confirmclose&amp;cid=$conversation->id&pane=2\">".
            //	  "<img src=\"$CFG->wwwroot/mod/dialogue/pix/mail-archive.png\" height=11 width=14 alt=\"".get_string("archiveconversation", "dialogue")."\" title=\"".get_string("archiveconversation", "dialogue")."\" >&nbsp</a>";
            $table->data[] = array($name, "<img src=\"{$CFG->wwwroot}/mod/dialogue/{$mailstatusicon}\" height=14 width=15>&nbsp" . "<a href=\"dialogues.php?id={$cm->id}&amp;action=printdialogue&amp;cid={$conversation->id}\">" . clean_text($conversation->subject) . "</a>" . $hasattachmenticon, userdate($conversation->timemodified), $actions);
        }
        print_table($table);
        print_simple_box_end();
    }
}
开发者ID:hmatulis,项目名称:RTL-BIDI-Hebrew-Moodle-Plugins,代码行数:91,代码来源:locallib.php


示例16: list_dir


//.........这里部分代码省略.........
    		echo "<td><img border=\"0\" width=\"22\" height=\"22\" align=\"absmiddle\" ";
    		echo "src=\""._EXT_URL."/images/_delete_.gif\" alt=\"".$GLOBALS["messages"]["dellink"]."\" title=\"";
    		echo $GLOBALS["messages"]["dellink"]."\"></td>\n";
    		// UPLOAD
    		echo "<td><img border=\"0\" width=\"22\" height=\"22\" align=\"absmiddle\" ";
    		echo "src=\""._EXT_URL."/images/_upload_.gif\" alt=\"".$GLOBALS["messages"]["uplink"];
    		echo "\" title=\"".$GLOBALS["messages"]["uplink"]."\"></td>\n";
    	}
    
    	// ADMIN & LOGOUT
    	if($GLOBALS["require_login"]) {
    		echo "<td>::</td>";
    		// ADMIN
    		if($admin) {
    			echo "<td><a href=\"".make_link("admin",$dir,NULL)."\">";
    			echo "<img border=\"0\" width=\"22\" height=\"22\" align=\"absmiddle\" ";
    			echo "src=\""._EXT_URL."/images/_admin.gif\" alt=\"".$GLOBALS["messages"]["adminlink"]."\" title=\"";
    			echo $GLOBALS["messages"]["adminlink"]."\"></A></td>\n";
    		}
    		// LOGOUT
    		echo "<td><a href=\"".make_link("logout",NULL,NULL)."\">";
    		echo "<img border=\"0\" width=\"22\" height=\"22\" align=\"absmiddle\" ";
    		echo "src=\""._EXT_URL."/images/_logout.gif\" alt=\"".$GLOBALS["messages"]["logoutlink"]."\" title=\"";
    		echo $GLOBALS["messages"]["logoutlink"]."\"></a></td>\n";
    	}
    	// Logo
    	echo "<td style=\"padding-left:10px;\">";
    	//echo "<div style=\"margin-left:10px;float:right;\" width=\"305\" >";
    	echo "<a href=\"".$GLOBALS['ext_home']."\" target=\"_blank\" title=\"joomlaXplorer Project\"><img border=\"0\" align=\"absmiddle\" id=\"ext_logo\" style=\"filter:alpha(opacity=10);-moz-opacity:.10;opacity:.10;\" onmouseover=\"opacity('ext_logo', 60, 99, 500);\" onmouseout=\"opacity('ext_logo', 100, 60, 500);\" ";
    	echo "src=\""._EXT_URL."/images/logo.gif\" align=\"right\" alt=\"" . $GLOBALS['messages']['logolink'] . "\"></a>";
    	//echo "</div>";
    	echo "</td>\n";
    	
    	echo "</tr></table></td>\n";
    	
    	// Create File / Dir
    	
    	if($allow && is_writable($GLOBALS['home_dir'].'/'.$dir)) {
    		echo "<td align=\"right\"><table><form action=\"".make_link("mkitem",$dir,NULL)."\" method=\"post\">\n<tr><td>";
    		echo "<select name=\"mktype\"><option value=\"file\">".$GLOBALS["mimes"]["file"]."</option>";
    		echo "<option value=\"dir\">".$GLOBALS["mimes"]["dir"]."</option></select>\n";
    		echo "<input name=\"mkname\" type=\"text\" size=\"15\">";
    		echo "<input type=\"submit\" value=\"".$GLOBALS["messages"]["btncreate"];
    		echo "\"></td></tr></form></table></td>\n";
    	}
    	
    	echo "</tr></table>\n";
    	*/
    // End Toolbar
    // Begin Table + Form for checkboxes
    echo "<table width=\"95%\" cellpadding=\"5\" cellspacing=\"2\"><tr class=\"sectiontableheader\">\n";
    echo "<th width=\"44%\"><b>\n";
    if ($GLOBALS["order"] == "name") {
        $new_srt = $_srt;
    } else {
        $new_srt = "yes";
    }
    echo "<a href=\"" . make_link("list", $dir, NULL, "name", $new_srt) . "\">" . $GLOBALS["messages"]["nameheader"];
    if ($GLOBALS["order"] == "name") {
        echo $images;
    }
    echo "</a></b></td>\n<th width=\"10%\"><b>";
    if ($GLOBALS["order"] == "size") {
        $new_srt = $_srt;
    } else {
        $new_srt = "yes";
    }
    echo "<a href=\"" . make_link("list", $dir, NULL, "size", $new_srt) . "\">" . $GLOBALS["messages"]["sizeheader"];
    if ($GLOBALS["order"] == "size") {
        echo $images;
    }
    echo "</a></b></th>\n<th width=\"12%\" ><b>";
    if ($GLOBALS["order"] == "type") {
        $new_srt = $_srt;
    } else {
        $new_srt = "yes";
    }
    echo "<a href=\"" . make_link("list", $dir, NULL, "type", $new_srt) . "\">" . $GLOBALS["messages"]["typeheader"];
    if ($GLOBALS["order"] == "type") {
        echo $images;
    }
    echo "</a></b></th>\n<th width=\"12%\"><b>";
    if ($GLOBALS["order"] == "mod") {
        $new_srt = $_srt;
    } else {
        $new_srt = "yes";
    }
    echo "<a href=\"" . make_link("list", $dir, NULL, "mod", $new_srt) . "\">" . $GLOBALS["messages"]["modifheader"];
    if ($GLOBALS["order"] == "mod") {
        echo $images;
    }
    echo "</a></b></th></tr>\n";
    // make & print Table using lists
    print_table($dir, make_list($dir_list, $file_list), $allow);
    // print number of items & total filesize
    echo "<tr><td colspan=\"4\"><hr/></td></tr><tr>\n<td>&nbsp;</td>";
    echo "<td>" . $num_items . " " . $GLOBALS["messages"]["miscitems"] . " " . parse_file_size($tot_file_size) . "</td>\n";
    echo "<td>&nbsp;</td><td>&nbsp;</td>";
    echo "</tr>\n<tr><td colspan=\"4\"><hr/></td></tr></table>\n";
}
开发者ID:BACKUPLIB,项目名称:mwenhanced,代码行数:101,代码来源:extplorer.list.php


示例17: restore_print_course_header

function restore_print_course_header($course_header)
{
    $status = true;
    if ($course_header) {
        $table = new object();
        //This is tha align to every ingo table
        $table->align = array("right", "left");
        //The width
        $table->width = "70%";
        //Put interesting course header in table
        //The course name
        $tab[0][0] = "<b>" . get_string("name") . ":</b>";
        $tab[0][1] = $course_header->course_fullname . " (" . $course_header->course_shortname . ")";
        //The course summary
        $tab[1][0] = "<b>" . get_string("summary") . ":</b>";
        $tab[1][1] = $course_header->course_summary;
        $table->data = $tab;
        //Print title
        print_heading(get_string("course") . ":");
        //Print backup course header info
        print_table($table);
    } else {
        $status = false;
    }
    return $status;
}
开发者ID:kai707,项目名称:ITSA-backup,代码行数:26,代码来源:restorelib.php


示例18: search_items

function search_items($dir)
{
    // search for item
    if (isset($GLOBALS['__POST']["searchitem"])) {
        $searchitem = stripslashes($GLOBALS['__POST']["searchitem"]);
        $subdir = isset($GLOBALS['__POST']["subdir"]) && $GLOBALS['__POST']["subdir"] == "y";
        $list = make_list($dir, $searchitem, $subdir);
    } else {
        $searchitem = NULL;
        $subdir = true;
    }
    $msg = $GLOBALS["messages"]["actsearchresults"];
    if ($searchitem != NULL) {
        $msg .= ": (/" . get_rel_item($dir, $searchitem) . ")";
    }
    show_header($msg);
    // Search Box
    echo "<BR><TABLE><FORM name=\"searchform\" action=\"" . make_link("search", $dir, NULL);
    echo "\" method=\"post\">\n<TR><TD><INPUT name=\"searchitem\" type=\"text\" size=\"25\" value=\"";
    echo $searchitem . "\"><INPUT type=\"submit\" value=\"" . $GLOBALS["messages"]["btnsearch"];
    echo "\">&nbsp;<input type=\"button\" value=\"" . $GLOBALS["messages"]["btnclose"];
    echo "\" onClick=\"javascript:location='" . make_link("list", $dir, NULL);
    echo "';\"></TD></TR><TR><TD><INPUT type=\"checkbox\" name=\"subdir\" value=\"y\"";
    echo ($subdir ? " checked>" : ">") . $GLOBALS["messages"]["miscsubdirs"] . "</TD></TR></FORM></TABLE>\n";
    // Results
    if ($searchitem != NULL) {
        echo "<TABLE width=\"95%\"><TR><TD colspan=\"2\"><HR></TD></TR>\n";
        if (count($list) > 0) {
            // Table Header
            echo "<TR>\n<TD WIDTH=\"42%\" class=\"header\"><B>" . $GLOBALS["messages"]["nameheader"];
            echo "</B></TD>\n<TD WIDTH=\"58%\" class=\"header\"><B>" . $GLOBALS["messages"]["pathheader"];
            echo "</B></TD></TR>\n<TR><TD colspan=\"2\"><HR></TD></TR>\n";
            // make & print table of found items
            print_table($list);
            echo "<TR><TD colspan=\"2\"><HR></TD></TR>\n<TR><TD class=\"header\">" . count($list) . " ";
            echo $GLOBALS["messages"]["miscitems"] . ".</TD><TD class=\"header\"></TD></TR>\n";
        } else {
            echo "<TR><TD>" . $GLOBALS["messages"]["miscnoresult"] . "</TD></TR>";
        }
        echo "<TR><TD colspan=\"2\"><HR></TD></TR></TABLE>\n";
    }
    ?>
<script language="JavaScript1.2" type="text/javascript">
<!--
	if(document.searchform) document.searchform.searchitem.focus();
// -->
</script><?php 
}
开发者ID:morovan,项目名称:granitpiestany.sk,代码行数:48,代码来源:fun_search.php


示例19: print_input_hidden


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP print_table_break函数代码示例发布时间:2022-05-15
下一篇:
PHP print_summary_menu函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap