Esempio n. 1
0
         $load_ress_1 = $row_load['res1'];
         $load_ress_2 = $row_load['res2'];
         $load_ress_3 = $row_load['res3'];
         $load_ress_4 = $row_load['res4'];
         $load_size = $row_load['traveltime'];
         $load_points = $row_load['points'];
         $load_buildtime = $row_load['stime'];
         $load_b_pic = $row_load['solpic'];
         $positions = $row_load['p'];
         if ($load_b_pic == "") {
             $load_b_pic = LITO_IMG_PATH_URL . "acp_units/keins.png";
         }
         $load_ap = $row_load['AP'];
         $load_vp = $row_load['VP'];
         $load_req_level = $row_load['required_level'];
         $required = make_explore_option_choice("required", $row_load['required']);
         $ras = make_race_choice("rasse", $row_load['race']);
         $build_option = make_soldier_option_choice("build_option", $row_load['tabless']);
         $make_aktion = "action=update&cxid={$sid}&id={$lade_id}";
         $description = $row_load['description'];
         $sol_type_def = make_soldier_type_choice("sol_type", $row_load['sol_type']);
     }
 } else {
     $ras = make_race_choice("rasse", 0);
 }
 //load error buildings
 $result_error = $db->query("SELECT * FROM cc" . $n . "_soldiers where race='' or tabless='' or tabless='0' or required='' or required_level='0'");
 $count = 0;
 $error_buildings = "";
 while ($row_b_error = $db->fetch_array($result_error)) {
     $name = $row_b_error['name'];
Esempio n. 2
0
 }
 if ($lade_id > 0) {
     $not_show = 1;
     $result_loader = $db->query("SELECT * FROM cc" . $n . "_explore where eid='{$lade_id}'");
     while ($row_load = $db->fetch_array($result_loader)) {
         $load_name = $row_load['name'];
         $load_ress_1 = $row_load['res1'];
         $load_ress_2 = $row_load['res2'];
         $load_ress_3 = $row_load['res3'];
         $load_ress_4 = $row_load['res4'];
         $load_required = $row_load['required'];
         $load_points = $row_load['points'];
         $load_buildtime = $row_load['time'];
         $load_b_pic = $row_load['explorePic'];
         $ras = make_race_choice("rasse", $row_load['race']);
         $build_option = make_explore_option_choice("build_option", $row_load['tabless']);
         $make_aktion = "action=update&cxid={$sid}&id={$lade_id}";
         $description = $row_load['description'];
         $positions = $row_load['p'];
         if ($load_b_pic == "") {
             $load_b_pic = LITO_IMG_PATH_URL . "acp_explore/keins.png";
         }
     }
 } else {
     $ras = make_race_choice("rasse", 0);
 }
 //load error buildings
 $result_error = $db->query("SELECT * FROM cc" . $n . "_explore where race='' or tabless='' or tabless='0'");
 $count = 0;
 $error_buildings = "";
 while ($row_b_error = $db->fetch_array($result_error)) {
Esempio n. 3
0
 $load_ress_3 = "";
 $load_ress_4 = "";
 $load_size = "";
 $load_points = "";
 $load_buildtime = "";
 $load_req_level = "";
 $load_b_pic = "";
 $description = "";
 $error_buildings = "";
 $load_reg1 = "";
 $load_reg2 = "";
 $id = "";
 $positions = 0;
 $make_aktion = "action=new&cxid={$sid}";
 $build_option = make_build_option_choice("build_option", "");
 $required = make_explore_option_choice("required", "");
 $sol_type_def = make_soldier_type_choice("sol_type", "");
 $not_show = 0;
 $load_b_pic = LITO_IMG_PATH_URL . "acp_units/keins.png";
 $result = $db->query("SELECT * FROM cc" . $n . "_rassen");
 $race_count = 0;
 $out_race = array();
 while ($row_ras = $db->fetch_array($result)) {
     $race_count++;
     $out_race[] = $row_ras;
 }
 $tpl->assign('race_all', $out_race);
 $result_options = $db->query("SELECT * FROM cc" . $n . "_buildings_option");
 $out_units = array();
 $count = 0;
 while ($row_b_option = $db->fetch_array($result_options)) {