当前位置: 首页>>代码示例>>PHP>>正文


PHP cs_html_img函数代码示例

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


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

示例1: cs_html_br

    $print_form_height[7] = $print_height;
    $print_form_width[7] = $print_width;
    $height = $print_form_height[$print];
    $width = $print_form_width[$print];
    $error = '';
    if (empty($print)) {
        $error .= $cs_lang['error_print'] . cs_html_br(1);
    }
    if (empty($picture_id)) {
        $error .= $cs_lang['error_pic'] . cs_html_br(1);
    }
}
if (!isset($_POST['preview']) or isset($_POST['preview'])) {
    $data['head']['body'] = $cs_lang['body_print'];
} elseif (!empty($error)) {
    $data['head']['body'] = $error;
}
if (isset($_POST['preview']) and empty($error)) {
    $data['if']['preview'] = TRUE;
    if (extension_loaded('gd')) {
        $data['print']['img'] = cs_html_img("mods/gallery/image.php?pic=" . $picture_id . "&size=" . $width);
        $host = $cs_main['php_self']['website'] . $cs_main['php_self']['dirname'];
        $data['print']['url'] = $host . "mods/gallery/print_now.php?pic=" . $picture_id . "&size=" . $width;
        $data['if']['extension'] = TRUE;
    } else {
        $data['print']['img'] = cs_html_img("mods/gallery/image.php?pic=" . $picture_id, $height, $width, '', $picture_id);
        $data['if']['extension'] = FALSE;
    }
}
$data['picture']['id'] = $picture_id;
echo cs_subtemplate(__FILE__, $data, 'gallery', 'print');
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:print.php

示例2: cs_secure

        $gbook[$run]['nick'] = cs_secure($cs_gbook[$run]['users_nick']);
        $gbook[$run]['email'] = cs_secure($cs_gbook[$run]['users_email']);
    } else {
        $gbook[$run]['nick'] = cs_secure($cs_gbook[$run]['gbook_nick']);
        $gbook[$run]['email'] = cs_secure($cs_gbook[$run]['gbook_email']);
    }
    $gbook[$run]['time'] = cs_date('unix', $cs_gbook[$run]['gbook_time'], 1);
    if (empty($user_gb)) {
        $active = cs_link(cs_icon('cancel'), 'gbook', 'manage', 'active=' . $cs_gbook[$run]['gbook_id'], 0, $cs_lang['active']);
        $deactive = cs_link(cs_icon('submit'), 'gbook', 'manage', 'deactive=' . $cs_gbook[$run]['gbook_id'], 0, $cs_lang['deactive']);
    } else {
        $active = cs_link(cs_icon('cancel'), 'gbook', 'manage', 'active=' . $cs_gbook[$run]['gbook_id'] . '&user_gb=' . $user_gb, 0, $cs_lang['active']);
        $deactive = cs_link(cs_icon('submit'), 'gbook', 'manage', 'deactive=' . $cs_gbook[$run]['gbook_id'] . '&user_gb=' . $user_gb, 0, $cs_lang['deactive']);
    }
    $gbook[$run]['lock'] = empty($cs_gbook[$run]['gbook_lock']) ? $active : $deactive;
    $gbook[$run]['id'] = $cs_gbook[$run]['gbook_id'];
    $gbook[$run]['ip'] = '';
    if ($account['access_gbook'] >= 4) {
        $ip = $cs_gbook[$run]['gbook_ip'];
        if ($account['access_gbook'] == 4) {
            $last = strlen(substr(strrchr($cs_gbook[$run]['gbook_ip'], '.'), 1));
            $ip = strlen($gbook_ip);
            $ip = substr($gbook_ip, 0, $ip - $last);
            $ip = $ip . '*';
        }
        $ip_show = empty($ip) ? '-' : $ip;
        $gbook[$run]['ip'] = cs_html_img('symbols/' . $cs_main['img_path'] . '/16/important.' . $cs_main['img_ext'], 16, 16, 'title="' . $ip_show . '"');
    }
}
$data['gbook'] = !empty($gbook) ? $gbook : '';
echo cs_subtemplate(__FILE__, $data, 'gbook', 'manage');
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:manage.php

示例3: empty

     }
 }
 if (empty($_POST['submit']) || !empty($error)) {
     $maps_id = empty($_POST['submit']) ? (int) $_GET['id'] : $_POST['maps_id'];
     $cells = 'games_id, maps_name, maps_text, maps_picture, server_name';
     $data['maps'] = cs_sql_select(__FILE__, 'maps', $cells, 'maps_id = \'' . $maps_id . '\'');
     $data['maps']['maps_id'] = empty($error) ? (int) $_GET['id'] : (int) $_POST['maps_id'];
     $data['maps']['message'] = empty($error) ? $cs_lang['fill_in'] : $cs_lang['error_occured'] . $error;
     $data['maps']['maps_name'] = empty($_POST['maps_name']) ? $data['maps']['maps_name'] : $_POST['maps_name'];
     $data['maps']['maps_text'] = empty($_POST['maps_text']) ? $data['maps']['maps_text'] : $_POST['maps_text'];
     $data['abcode']['smileys'] = cs_abcode_smileys('maps_text');
     $data['abcode']['features'] = cs_abcode_features('maps_text');
     $data['maps']['action'] = cs_url('maps', 'edit');
     $data['games'] = cs_sql_select(__FILE__, 'games', 'games_name,games_id', 0, 'games_name', 0, 0);
     $data['games'] = cs_dropdownsel($data['games'], $data['maps']['games_id'], 'games_id');
     $data['maps']['picture'] = empty($data['maps']['maps_picture']) ? '-' : cs_html_img('uploads/maps/' . $data['maps']['maps_picture']);
     $matches[1] = $cs_lang['pic_infos'];
     $return_types = '';
     foreach ($img_filetypes as $add) {
         $return_types .= empty($return_types) ? $add : ', ' . $add;
     }
     $matches[2] = $cs_lang['max_width'] . $options['max_width'] . ' px' . cs_html_br(1);
     $matches[2] .= $cs_lang['max_height'] . $options['max_height'] . ' px' . cs_html_br(1);
     $matches[2] .= $cs_lang['max_size'] . cs_filesize($options['max_size']) . cs_html_br(1);
     $matches[2] .= $cs_lang['filetypes'] . $return_types;
     $data['maps']['matches'] = cs_abcode_clip($matches);
     $data['if']['picture_remove'] = !empty($data['maps']['maps_picture']) ? TRUE : FALSE;
     echo cs_subtemplate(__FILE__, $data, 'maps', 'edit');
 } else {
     $cs_maps['games_id'] = (int) $_POST['games_id'];
     $cs_maps['maps_name'] = $_POST['maps_name'];
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:edit.php

示例4: array

     $data['squads'][$sq_run]['members'] = array();
 }
 $tr = 0;
 for ($run = 0; $run < $members_loop; $run++) {
     $members = $data['squads'][$sq_run]['members'];
     $hidden = explode(',', $members[$run]['users_hidden']);
     $allow = $members[$run]['users_id'] == $account['users_id'] or $account['access_users'] > 4 ? 1 : 0;
     if (empty($members[$run]['users_picture'])) {
         $members[$run]['picture'] = $cs_lang['nopic'];
     } else {
         $place = 'uploads/users/' . $members[$run]['users_picture'];
         $size = getimagesize($cs_main['def_path'] . '/' . $place);
         $members[$run]['picture'] = cs_html_img($place, $size[1], $size[0]);
     }
     $url = 'symbols/countries/' . $members[$run]['users_country'] . '.png';
     $members[$run]['country'] = cs_html_img($url, 11, 16) . ' ';
     $members[$run]['nick'] = $data['squads'][$sq_run]['clans_tagpos'] == 1 ? $data['squads'][$sq_run]['clans_tag'] . ' ' : '';
     $members[$run]['nick'] .= cs_user($members[$run]['users_id'], $members[$run]['users_nick'], $members[$run]['users_active'], $members[$run]['users_delete']);
     $members[$run]['nick'] .= $data['squads'][$sq_run]['clans_tagpos'] == 2 ? ' ' . $data['squads'][$sq_run]['clans_tag'] : '';
     $users_name = !in_array('users_name', $hidden) || !empty($allow) ? $members[$run]['users_name'] : '';
     $users_surname = !in_array('users_surname', $hidden) || !empty($allow) ? $members[$run]['users_surname'] : '';
     $members[$run]['surname'] = empty($users_name) && empty($users_surname) ? ' - ' : $users_name . ' ' . $users_surname;
     $members[$run]['task'] = cs_secure($members[$run]['members_task']);
     $since = empty($members[$run]['members_since']) ? '-' : cs_date('date', $members[$run]['members_since']);
     $members[$run]['since'] = $since;
     $tr++;
     $members[$run]['if']['td'] = FALSE;
     $members[$run]['if']['end_row'] = FALSE;
     if ($tr % 2 != 0 && $tr == $members_loop) {
         $members[$run]['if']['td'] = TRUE;
     } elseif ($tr % 2 == 0 && $tr != $members_loop) {
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:pictured.php

示例5: isset

                    $cs_gallery_pic['gallery_name'] = $name;
                    $cs_gallery_pic['gallery_status'] = isset($_POST['gallery_status']) ? $_POST['gallery_status'] : 0;
                    $cs_gallery_pic['gallery_access'] = isset($_POST['gallery_access']) ? $_POST['gallery_access'] : 0;
                    $cs_gallery_pic['gallery_watermark'] = $_POST['gallery_watermark'];
                    if (!empty($_POST['gallery_watermark'])) {
                        $watermark_pos = $_POST['watermark_pos'];
                        $watermark_trans = $_POST['gallery_watermark_trans'];
                        $cs_gallery_pic['gallery_watermark_pos'] = $watermark_pos . '|--@--|' . $watermark_trans;
                    }
                    $extension = strlen(strrchr($name, "."));
                    $file = strlen($name);
                    $filename = substr($name, 0, $file - $extension);
                    $cs_gallery_pic['gallery_titel'] = $filename;
                    $cs_gallery_pic['gallery_time'] = cs_time();
                    $gallery_cells = array_keys($cs_gallery_pic);
                    $gallery_save = array_values($cs_gallery_pic);
                    cs_sql_insert(__FILE__, 'gallery', $gallery_cells, $gallery_save);
                }
                $data['pics'][$run]['img'] = cs_html_img('mods/gallery/image.php?picname=' . $name);
                $data['pics'][$run]['name'] = $name;
            }
        }
    }
    cs_redirect($cs_lang['create_done'], 'gallery');
}
if (!isset($_POST['submit_1'])) {
    if (!isset($_POST['submit']) or !empty($error)) {
        $data['if']['start'] = TRUE;
    }
}
echo cs_subtemplate(__FILE__, $data, 'gallery', 'manage_advanced');
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:manage_advanced.php

示例6: foreach

    include_once 'lang/' . $account['users_lang'] . '/countries.php';
    foreach ($cs_country as $short => $full) {
        $short == $cs_clans['clans_country'] ? $sel = 1 : ($sel = 0);
        $data['clans']['country'] .= cs_html_option($full, $short, $sel);
    }
    $data['clans']['country'] .= cs_html_select(0) . ' ' . cs_html_img('symbols/countries/' . $cs_clans['clans_country'] . '.png', 11, 16, 'id="' . $el_id . '"');
    $data['clans']['url'] = cs_secure($cs_clans['clans_url']);
    $data['clans']['since'] = cs_dateselect('since', 'date', $cs_clans['clans_since']);
    $data['clans']['password'] = cs_secure($cs_clans['clans_pwd']);
    $data['users']['nick'] = $users_nick;
    if (empty($cs_clans['clans_picture'])) {
        $data['clans']['pic'] = $cs_lang['nopic'];
    } else {
        $place = 'uploads/clans/' . $cs_clans['clans_picture'];
        $size = getimagesize($cs_main['def_path'] . '/' . $place);
        $data['clans']['pic'] = cs_html_img($place, $size[1], $size[0]);
    }
    $matches[1] = $cs_lang['pic_infos'];
    $return_types = '';
    foreach ($img_filetypes as $add) {
        $return_types .= empty($return_types) ? $add : ', ' . $add;
    }
    $matches[2] = $cs_lang['max_width'] . $op_clans['max_width'] . ' px' . cs_html_br(1);
    $matches[2] .= $cs_lang['max_height'] . $op_clans['max_height'] . ' px' . cs_html_br(1);
    $matches[2] .= $cs_lang['max_size'] . cs_filesize($op_clans['max_size']) . cs_html_br(1);
    $matches[2] .= $cs_lang['filetypes'] . $return_types;
    $data['clans']['clip'] = cs_abcode_clip($matches);
    $data['data']['id'] = $clans_id;
    echo cs_subtemplate(__FILE__, $data, 'clans', 'edit');
} else {
    $clans_cells = array_keys($cs_clans);
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:edit.php

示例7: cs_threads_comments

 if (empty($thread['threads_comments'])) {
     include_once 'mods/board/repair.php';
     $thread['threads_comments'] = cs_threads_comments($thread['threads_id']);
 }
 $icon = 'post_';
 $tid = $thread['threads_id'];
 if (!empty($account['users_id']) and $thread['threads_last_time'] > $cs_readtime and $thread['threads_last_time'] > $thread['read_since']) {
     $icon .= 'unread_';
 }
 if (!empty($thread['threads_close'])) {
     $icon .= 'close_';
 }
 if ($thread['threads_important']) {
     $icon .= 'important_';
 }
 $data['threads'][$run]['icon'] = cs_html_img('symbols/board/' . $icon . '.png');
 if (!empty($thread['threads_important'])) {
     $data['threads'][$run]['important'] = $cs_lang['important'] . ' ';
 } else {
     $data['threads'][$run]['important'] = '';
 }
 $headline = cs_secure($thread['threads_headline']);
 $data['threads'][$run]['headline'] = cs_link($headline, 'board', 'thread', 'where=' . $thread['threads_id']);
 if ($thread['threads_comments'] > $account['users_limit']) {
     $data['threads'][$run]['pages'] = cs_html_br(1);
     $data['threads'][$run]['pages'] .= $cs_lang['page'] . ' ';
     $data['threads'][$run]['pages'] .= cs_pages('board', 'thread', $thread['threads_comments'], 0, $thread['threads_id'], 0, 0, 1);
 } else {
     $data['threads'][$run]['pages'] = '';
 }
 $data['threads'][$run]['comments'] = $thread['threads_comments'];
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:active.php

示例8: elseif

    if (!empty($surname) and !empty($name)) {
        $data['eventguests'][$run]['name'] = $surname . ', ' . $name;
    } elseif (!empty($surname) or !empty($name)) {
        $data['eventguests'][$run]['name'] = $surname . $name;
    } else {
        $data['eventguests'][$run]['name'] = '';
    }
    if (empty($cs_eventguests[$run]['eventguests_phone'])) {
        if (in_array('users_phone', $hidden)) {
            $cs_eventguests[$run]['eventguests_phone'] = empty($allow) ? '' : cs_html_italic(1) . $cs_eventguests[$run]['users_phone'] . cs_html_italic(0);
        } elseif (!empty($allow)) {
            $cs_eventguests[$run]['eventguests_phone'] = $cs_eventguests[$run]['users_phone'];
        }
    }
    if (empty($cs_eventguests[$run]['eventguests_mobile'])) {
        if (in_array('users_mobile', $hidden)) {
            $cs_eventguests[$run]['eventguests_mobile'] = empty($allow) ? '' : cs_html_italic(1) . $cs_eventguests[$run]['users_mobile'] . cs_html_italic(0);
        } elseif (!empty($allow)) {
            $cs_eventguests[$run]['eventguests_mobile'] = $cs_eventguests[$run]['users_mobile'];
        }
    }
    $data['eventguests'][$run]['user'] = empty($cs_eventguests[$run]['users_id']) ? '-' : cs_user($cs_eventguests[$run]['users_id'], $cs_eventguests[$run]['users_nick'], $cs_eventguests[$run]['users_active'], $cs_eventguests[$run]['users_delete']);
    $data['eventguests'][$run]['since'] = cs_date('unix', $cs_eventguests[$run]['eventguests_since']);
    $data['eventguests'][$run]['phone'] = empty($cs_eventguests[$run]['eventguests_phone']) ? '&nbsp;' : cs_html_img('symbols/' . $cs_main['img_path'] . '/16/linphone.' . $cs_main['img_ext'], 16, 16, 'title="' . $cs_eventguests[$run]['eventguests_phone'] . '"');
    $data['eventguests'][$run]['mobile'] = empty($cs_eventguests[$run]['eventguests_mobile']) ? '&nbsp;' : cs_html_img('symbols/' . $cs_main['img_path'] . '/16/sms_protocol.' . $cs_main['img_ext'], 16, 16, 'title="' . $cs_eventguests[$run]['eventguests_mobile'] . '"');
    $data['eventguests'][$run]['status'] = $cs_lang['status_' . $cs_eventguests[$run]['eventguests_status']];
    $data['eventguests'][$run]['notice'] = empty($cs_eventguests[$run]['eventguests_notice']) ? '&nbsp;' : cs_icon('txt', 16, $cs_lang['notice']);
    $data['eventguests'][$run]['edit'] = cs_link(cs_icon('edit', 16, $cs_lang['edit']), 'events', 'guestsadm', 'id=' . $cs_eventguests[$run]['eventguests_id'], 0, $cs_lang['edit']);
    $data['eventguests'][$run]['remove'] = cs_link(cs_icon('editdelete', 16, $cs_lang['remove']), 'events', 'guestsdel', 'id=' . $cs_eventguests[$run]['eventguests_id'], 0, $cs_lang['remove']);
}
echo cs_subtemplate(__FILE__, $data, 'events', 'guests');
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:guests.php

示例9: empty

$data['join']['email'] = empty($cs_joinus['joinus_email']) ? '-' : cs_html_mail($cs_joinus['joinus_email'], $cs_joinus['joinus_email']);
if (empty($cs_joinus['joinus_icq'])) {
    $data['join']['icq'] = '-';
} else {
    $data['join']['icq'] = cs_html_link('http://www.icq.com/people/' . $cs_joinus['joinus_icq'], $cs_joinus['joinus_icq']);
}
if (empty($cs_joinus['joinus_jabber'])) {
    $data['join']['jabber'] = '-';
} else {
    $cs_joinus['joinus_jabber'] = cs_secure($cs_joinus['joinus_jabber']);
    $data['join']['jabber'] = cs_html_jabbermail($cs_joinus['joinus_jabber']);
}
if (empty($cs_joinus['games_id'])) {
    $data['join']['game'] = '-';
} else {
    $img = cs_html_img('uploads/games/' . $cs_joinus['games_id'] . '.gif');
    $where = "games_id = '" . $cs_joinus['games_id'] . "'";
    $cs_game = cs_sql_select(__FILE__, 'games', 'games_name, games_id', $where);
    $link = cs_link($cs_game['games_name'], 'games', 'view', 'id=' . $cs_game['games_id']);
    $data['join']['game'] = $img . ' ' . $link;
}
if (empty($cs_joinus['squads_id'])) {
    $data['join']['squad'] = '-';
} else {
    $where = "squads_id = '" . $cs_joinus['squads_id'] . "'";
    $cs_squad = cs_sql_select(__FILE__, 'squads', 'squads_name, squads_id', $where);
    $data['join']['squad'] = cs_link($cs_squad['squads_name'], 'squads', 'view', 'id=' . $cs_squad['squads_id']);
}
$data['join']['webcon'] = empty($cs_joinus['joinus_webcon']) ? '-' : cs_secure($cs_joinus['joinus_webcon']);
$data['join']['lanact'] = empty($cs_joinus['joinus_lanact']) ? '-' : cs_secure($cs_joinus['joinus_lanact']);
$data['join']['date'] = cs_date('date', $cs_joinus['joinus_date']);
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:view.php

示例10: array

    $pfad = "uploads/abcode";
    $allowed = array('.gif', '.GIF', '.jpg', '.JPG', '.png', '.PNG', 'jpeg', 'JPEG');
    if ($handle = opendir($pfad)) {
        while (false !== ($file = readdir($handle))) {
            $ending = substr($file, -4);
            if ($file[0] != '.' and in_array($ending, $allowed)) {
                $all_smileys[] = $file;
            }
        }
    }
    $result = array_values(array_diff($all_smileys, $act_smileys));
    if (!empty($result)) {
        $counter = 0;
        for ($run = 0; $run < count($result); $run++) {
            $data['file'][$run]['name'] = $result[$run];
            $data['file'][$run]['preview'] = cs_html_img('uploads/abcode/' . $result[$run]);
            $data['file'][$run]['run'] = empty($data['file'][$run]['run']) ? '' : $data['file'][$run]['run'];
            $data['file'][$run]['order'] = empty($_POST['order_' . $counter]) ? '' : (int) $_POST['order_' . $counter];
            $data['file'][$run]['counter'] = $counter;
            $counter++;
        }
    }
} else {
    for ($run = 0; $run < count($data['file']); $run++) {
        $sql_cells = array('abcode_func', 'abcode_pattern', 'abcode_file', 'abcode_order');
        $sql_saves = array('img', $data['file'][$run]['run'], $data['file'][$run]['name'], $data['file'][$run]['order']);
        cs_sql_insert(__FILE__, 'abcode', $sql_cells, $sql_saves);
    }
    cs_cache_delete('abcode_smileys');
    cs_cache_delete('abcode_content');
    cs_redirect($cs_lang['changes_done'], 'abcode', 'manage');
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:import.php

示例11: cs_secure

 $data['news']['news_text'] = cs_secure($cs_news['news_text'], $abcode[0], $abcode[1], $abcode[2], $abcode[3], $abcode[4]);
 if (empty($cs_news['news_readmore_active'])) {
     $data['news']['news_readmore'] = '';
 } else {
     $data['news']['news_readmore'] = cs_secure($cs_news['news_readmore'], $abcode[0], $abcode[1], $abcode[2], $abcode[3], $abcode[4]);
     $data['news']['news_readmore'] .= cs_html_br(2);
 }
 $data['news']['users_link'] = cs_user($cs_news['users_id'], $cs_news['users_nick'], $cs_news['users_active'], $cs_news['users_delete']);
 $data['if']['catimg'] = empty($cs_news['categories_picture']) ? false : true;
 $data['news']['url_catimg'] = empty($data['if']['catimg']) ? '' : 'uploads/categories/' . $cs_news['categories_picture'];
 $data['news']['pictures'] = '';
 if (!empty($cs_news['news_pictures'])) {
     $news_pics = explode("\n", $cs_news['news_pictures']);
     $data['news']['pictures'] = cs_html_br(2);
     foreach ($news_pics as $pic) {
         $link = cs_html_img('uploads/news/thumb-' . $pic);
         $path = $cs_main['php_self']['dirname'];
         $data['news']['pictures'] .= cs_html_link($path . 'uploads/news/picture-' . $pic, $link) . ' ';
     }
 }
 $data['if']['show'] = false;
 if (!empty($cs_news['news_mirror'])) {
     $data['if']['show'] = true;
     $temp_mirror = explode("\n", $cs_news['news_mirror']);
     $temp_mirror_name = explode("\n", $cs_news['news_mirror_name']);
     $tpl_run = 0;
     for ($run_mirror = 1; $run_mirror < count($temp_mirror); $run_mirror++) {
         $num = $run_mirror;
         if ($run_mirror == count($temp_mirror) - 1) {
             $data['mirror'][$tpl_run]['dot'] = '';
         } elseif (!empty($run_mirror)) {
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:view.php

示例12: cs_sql_select

 $data['head']['mod'] = $cs_lang[$op_squads['label'] . 's'];
 $data['lang']['clan_label'] = $cs_lang[$op_clans['label']];
 $cs_clans = cs_sql_select(__FILE__, 'clans', 'clans_name,clans_id', "clans_pwd != ''", 'clans_name', 0, 0);
 $data['squads']['clan_sel'] = cs_dropdown('clans_id', 'clans_name', $cs_clans, $cs_squads['clans_id']);
 $data['squads']['clans_pwd'] = $clans_pwd;
 if ($data['if']['gamesmod'] == TRUE) {
     $el_id = 'game_1';
     $cs_games = cs_sql_select(__FILE__, 'games', 'games_name,games_id', 0, 'games_name', 0, 0);
     $games_count = count($cs_games);
     $data['squads']['games_sel'] = '';
     for ($run = 0; $run < $games_count; $run++) {
         $sel = $cs_games[$run]['games_id'] == $cs_squads['games_id'] ? 1 : 0;
         $data['squads']['games_sel'] .= cs_html_option($cs_games[$run]['games_name'], $cs_games[$run]['games_id'], $sel);
     }
     $url = 'uploads/games/' . $cs_squads['games_id'] . '.gif';
     $data['squads']['games_img'] = cs_html_img($url, 0, 0, 'id="' . $el_id . '"');
 }
 $matches[1] = $cs_lang['secure_stages'];
 $matches[2] = $cs_lang['stage_1'] . $cs_lang['stage_1_text'] . cs_html_br(1);
 $matches[2] .= $cs_lang['stage_2'] . $cs_lang['stage_2_text'] . cs_html_br(1);
 $matches[2] .= $cs_lang['stage_3'] . $cs_lang['stage_3_text'] . cs_html_br(1);
 $matches[2] .= $cs_lang['stage_4'] . $cs_lang['stage_4_text'];
 $data['squads']['secure_clip'] = cs_abcode_clip($matches);
 $matches[1] = $cs_lang['pic_infos'];
 $return_types = '';
 foreach ($img_filetypes as $add) {
     $return_types .= empty($return_types) ? $add : ', ' . $add;
 }
 $matches[2] = $cs_lang['max_width'] . $op_squads['max_width'] . ' px' . cs_html_br(1);
 $matches[2] .= $cs_lang['max_height'] . $op_squads['max_height'] . ' px' . cs_html_br(1);
 $matches[2] .= $cs_lang['max_size'] . cs_filesize($op_squads['max_size']) . cs_html_br(1);
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:new.php

示例13: cs_html_img

         for ($run = 0; $run < $folders_loop; $run++) {
             if (empty($folders[$run]['folders_picture'])) {
                 $cs_lap = cs_html_img('symbols/gallery/image.gif');
             } else {
                 $cs_lap = cs_html_img("uploads/folders/" . $folders[$run]['folders_picture']);
             }
             $more = 'id=' . $id . '&amp;cat_id=' . $folders[$run]['folders_id'];
             $cat_1[$run]['folders_img'] = cs_link($cs_lap, 'usersgallery', 'users', $more);
             $cat_1[$run]['folders_name'] = $folders[$run]['folders_name'];
         }
     }
     $data['cat_1'] = !empty($cat_1) ? $cat_1 : array();
     if (!empty($gallery_loop)) {
         for ($run = 0; $run < $gallery_loop; $run++) {
             $img[$run]['img'] = $cs_gallery[$run]['usersgallery_id'];
             $cs_lap = cs_html_img('symbols/gallery/nowatermark.gif', '100', '100');
             $num = $start + $run;
             $img[$run]['link'] = cs_link($cs_lap, 'usersgallery', 'com_view', 'id=' . $id . '&amp;cat_id=' . $cat_id . '&amp;move=' . $num);
         }
     }
     $data['img'] = !empty($img) ? $img : array();
     if (!empty($data['cat_1']) or !empty($gallery_loop)) {
         $data['data']['pages'] = cs_pages('usersgallery', 'users', $gallery_count, $start, 0, 0, $cols_rows, 0, 'cat_id=' . $cat_id . '&amp;id=' . $id);
     } else {
         $empty_cat['lang']['empty_cat'] = $cs_lang['empty_cat'];
     }
 }
 if (empty($empty_cat['lang']['empty_cat']) and !empty($cat_id)) {
     $cat_list_1['0']['cat_list_1'] = '1';
 } else {
     $cat_list_1['0']['cat_list_1'] = '';
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:users.php

示例14: cs_translate

<?php

// ClanSphere 2010 - www.clansphere.net
// $Id$
$cs_lang = cs_translate('ranks');
$cs_option = cs_sql_option(__FILE__, 'ranks');
$select = 'ranks_url, ranks_img, ranks_code';
$data = array();
$data['ranks'] = cs_sql_select(__FILE__, 'ranks', $select, 0, 0, 0, $cs_option['max_navlist']);
$ranks_loop = count($data['ranks']);
for ($run = 0; $run < $ranks_loop; $run++) {
    $data['ranks'][$run]['picture'] = '';
    if (!empty($data['ranks'][$run]['ranks_url'])) {
        $picture = cs_html_img($data['ranks'][$run]['ranks_img']);
        $data['ranks'][$run]['picture'] = cs_html_link($data['ranks'][$run]['ranks_url'], $picture);
    } else {
        $data['ranks'][$run]['picture'] = $data['ranks'][$run]['ranks_code'];
    }
}
echo cs_subtemplate(__FILE__, $data, 'ranks', 'navlist');
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:20,代码来源:navlist.php

示例15: cs_redirect

            cs_redirect('', 'users', 'manage');
        } else {
            $error .= $cs_lang['up_error'];
        }
    }
}
if (empty($error)) {
    $data['head']['body'] = $cs_lang['picture_manage'];
} else {
    $data['head']['body'] = $error;
}
if (!empty($error) or empty($files['picture']['tmp_name']) and empty($del)) {
    if (empty($userpic)) {
        $data['users']['current_pic'] = $cs_lang['nopic'];
    } else {
        $size = getimagesize($cs_main['def_path'] . '/uploads/users/' . $userpic);
        $data['users']['current_pic'] = cs_html_img('uploads/users/' . $userpic, $size[1], $size[0]);
    }
    $matches[1] = $cs_lang['pic_infos'];
    $return_types = '';
    foreach ($img_filetypes as $add) {
        $return_types .= empty($return_types) ? $add : ', ' . $add;
    }
    $matches[2] = $cs_lang['max_width'] . $op_users['max_width'] . ' px' . cs_html_br(1);
    $matches[2] .= $cs_lang['max_height'] . $op_users['max_height'] . ' px' . cs_html_br(1);
    $matches[2] .= $cs_lang['max_size'] . cs_filesize($op_users['max_size']) . cs_html_br(1);
    $matches[2] .= $cs_lang['filetypes'] . $return_types;
    $data['users']['picup_clip'] = cs_abcode_clip($matches);
    $data['users']['id'] = $users_id;
    echo cs_subtemplate(__FILE__, $data, 'users', 'picture_edit');
}
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:picture_edit.php


注:本文中的cs_html_img函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。