예제 #1
0
파일: order.php 프로젝트: shiruolin/hzzshop
    $order_list = team_list();
    //mod by coolvee.com 酷唯软件出品
    $tpl_file = 'team_list.htm';
    'teammem_query' == $_REQUEST['act'] && ($tpl_file = 'teammem_list.htm');
    $smarty->assign('order_list', $order_list['orders']);
    $smarty->assign('filter', $order_list['filter']);
    $smarty->assign('record_count', $order_list['record_count']);
    $smarty->assign('page_count', $order_list['page_count']);
    $sort_flag = sort_flag($order_list['filter']);
    $smarty->assign($sort_flag['tag'], $sort_flag['img']);
    make_json_result($smarty->fetch($tpl_file), '', array('filter' => $order_list['filter'], 'page_count' => $order_list['page_count']));
} elseif ($_REQUEST['act'] == 'team_manage_query') {
    /* 检查权限 */
    admin_priv('order_view');
    //mod by coolvee.com 酷唯软件出品
    $order_list = team_list();
    //mod by coolvee.com 酷唯软件出品
    $tpl_file = 'team_manage.htm';
    // 'team_manage_query' == $_REQUEST['act'] && $tpl_file='teammem_list.htm';
    $smarty->assign('order_list', $order_list['orders']);
    $smarty->assign('filter', $order_list['filter']);
    $smarty->assign('record_count', $order_list['record_count']);
    $smarty->assign('page_count', $order_list['page_count']);
    $sort_flag = sort_flag($order_list['filter']);
    $smarty->assign($sort_flag['tag'], $sort_flag['img']);
    make_json_result($smarty->fetch($tpl_file), '', array('filter' => $order_list['filter'], 'page_count' => $order_list['page_count']));
} elseif ($_REQUEST['act'] == 'info') {
    /* 根据订单id或订单号查询订单信息 */
    if (isset($_REQUEST['order_id'])) {
        $order_id = intval($_REQUEST['order_id']);
        $order = order_info($order_id);
예제 #2
0
 # rank list
 $profile["donor"] = $curu["donor"] == "yes" ? "checked=\"checked\"" : "";
 $profile["immunity"] = $curu["immunity"] == "yes" ? "checked=\"checked\"" : "";
 $ranks = rank_list();
 $admintpl->set('rank_combo', get_combo($ranks, $opts));
 # init options
 $opts['name'] = 'name';
 $opts['id'] = 'id';
 $opts['value'] = 'name';
 if ($curu['team'] == "0") {
     $opts['default'] = $curu['team'][0];
 } else {
     $opts['default'] = $curu['team'];
 }
 # team list
 $teams = team_list();
 $admintpl->set('team_combo', get_combo($teams, $opts));
 # lang list
 $opts['name'] = 'language';
 $opts['value'] = 'language';
 $opts['default'] = $curu['language'];
 $langs = language_list();
 $admintpl->set('language_combo', get_combo($langs, $opts));
 # style list
 $opts['name'] = 'style';
 $opts['value'] = 'style';
 $opts['default'] = $curu['style'];
 $styles = style_list();
 $admintpl->set('style_combo', get_combo($styles, $opts));
 # timezone list
 $opts['name'] = 'timezone';
예제 #3
0
    print "   <td><input type=\"text\" name=\"game_time_day\" size=\"1\" value=\"{$ntime_j}\"></td>";
    print "   <td align=\"center\" width=\"10\">/</td>";
    print "   <td><input type=\"text\" name=\"game_time_year\" size=\"1\" value=\"{$ntime_y}\"></td>";
    print "   <td align=\"center\"> &nbsp; </td>";
    print "   <td><input type=\"text\" name=\"game_time_hh\" size=\"1\" value=\"{$ntime_h}\"></td>";
    print "   <td align=\"center\">:</td>";
    print "   <td><input type=\"text\" name=\"game_time_mm\" size=\"1\" value=\"{$ntime_i}\"></td>";
    print " </tr>\n";
    print "</table></td>\n";
    print " </tr>\n";
    for ($cols = 1; $cols < $event_pack_sets + 1; $cols++) {
        $col_name = "team" . $cols;
        print "  <tr bgcolor=\"#ffffff\">\n";
        print "   <td align=\"center\">{$cols}</td>\n";
        print "   <td><select name=\"{$col_name}\" size=\"1\">";
        team_list($eventId);
        print "</select></td>\n";
        print " </tr>\n";
    }
    print "  <tr bgcolor=\"#ffffff\">\n";
    print "\t   <td align=\"center\" colspan=\"2\"><input type=\"submit\" name=\"submit\" value=\"Add Game\"></td>\n";
    print "  </tr>\n";
    print "</table>\n";
    print "</form>\n";
    print_footer();
} elseif ($_GET["getEvent"] != "" && $_GET["getType"] != "") {
    //Updated June 22, 2009
    $getEvent = $_GET["getEvent"];
    $getType = $_GET["getType"];
    $gameInfo = fetch_game_info($getEvent, $getType);
    $hex_array = fetch_hex_array($gameInfo[game_pack_sets], $gameInfo[game_format]);