- Timestamp:
- Oct 27, 2007, 10:36:03 PM (17 years ago)
- Location:
- db
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
db/include/quest.php
r113 r114 20 20 <?php if( !empty($sql_select['other']['SrcItemId']) ){ ?> 21 21 <tr><td>Důležitá věc:</td></tr> 22 <tr><td style="padding-left: 20px;"><?php echo $sql_select['quest']['SrcItemCount']."x ".$sql_select['other']['SrcItemId']; ?></td></tr>22 <tr><td style="padding-left:10px;"><?php echo $sql_select['quest']['SrcItemCount']."x ".$sql_select['other']['SrcItemId']; ?></td></tr> 23 23 <?php }; ?> 24 24 … … 34 34 <?php if( !empty($sql_select['other']['ReqItems']) ){ ?> 35 35 <tr><td>Věci vyžadované pro splnění:</td></tr> 36 <tr><td style="padding-left: 20px;"><?php echo $sql_select['other']['ReqItems']; ?></td></tr>36 <tr><td style="padding-left:10px;"><?php echo $sql_select['other']['ReqItems']; ?></td></tr> 37 37 <?php }; if( !empty($sql_select['other']['ReqSource']) ){ ?> 38 38 <tr><td>Unknown:</td></tr> 39 <tr><td style="padding-left: 20px;"><?php echo $sql_select['other']['ReqSource']; ?></td></tr>39 <tr><td style="padding-left:10px;"><?php echo $sql_select['other']['ReqSource']; ?></td></tr> 40 40 <?php }; if( !empty($sql_select['other']['ReqCreatureOrGOId']) ){ ?> 41 41 <tr><td>Věci vyžadované pro splnění:</td></tr> 42 <tr><td style="padding-left: 20px;"><?php echo $sql_select['other']['ReqCreatureOrGOId']; ?></td></tr>42 <tr><td style="padding-left:10px;"><?php echo $sql_select['other']['ReqCreatureOrGOId']; ?></td></tr> 43 43 <?php }; ?> 44 44 </table></td><td width="70%" style="padding-bottom:20px;"><table width="100%" border="0" cellspacing="0" cellpadding="0"> -
db/post_read.php
r113 r114 98 98 }; 99 99 100 $this->sql_select = SQLselect_Strankovani("SELECT * FROM `quest_template` WHERE ( $where`Title` LIKE '% $q%' ) ORDER BY `entry` ASC", $this->limit, $this->nastranu, "?id=questy&q=".$this->q."&lvl_d=".$this->lvl_d."&lvl_h=".$this->lvl_h, $this->sid);100 $this->sql_select = SQLselect_Strankovani("SELECT * FROM `quest_template` WHERE ( $where`Title` LIKE '%".$this->q."%' ) ORDER BY `entry` ASC", $this->limit, $this->nastranu, "?id=questy&q=".$this->q."&lvl_d=".$this->lvl_d."&lvl_h=".$this->lvl_h, $this->sid); 101 101 if( @mysql_num_rows($this->sql_select[1]) > 0 ){ 102 102 $this->sql_select['result'] .= "<table width=\"100%\" class=\"search_result\" cellspacing=\"0\" cellpadding=\"0\">\n"; … … 117 117 $this->sql_select['result'] .= "<a href=\"index.php?gameobject=".$start_gameobject['entry']."\">".$start_gameobject['name']."</a><br>"; 118 118 }; 119 $startovni_dotaz_item = mysql_query("SELECT * FROM item_template WHERE startquest='".$result['entry']."' "); 120 if( @mysql_num_rows($startovni_dotaz_item) > 0 ){ 121 while($start_item = @MySQL_Fetch_Array($startovni_dotaz_item)){ 122 switch($start_item['Quality']){ 123 case 0: $sql_select['other']['item_color'] = "class=\"graylink\""; break; 124 case 1: $sql_select['other']['item_color'] = "class=\"whitelink\""; break; 125 case 2: $sql_select['other']['item_color'] = "class=\"greenlink\""; break; 126 case 3: $sql_select['other']['item_color'] = "class=\"bluelink\""; break; 127 case 4: $sql_select['other']['item_color'] = "class=\"purplelink\""; break; 128 case 5: $sql_select['other']['item_color'] = "class=\"orangelink\""; break; 129 case 6: $sql_select['other']['item_color'] = "class=\"redlink\""; break; 130 }; 131 $this->sql_select['other']['StartNPC'] .= "<a href=\"index.php?item=".$start_item['entry']."\"".$sql_select['other']['item_color'].">".$start_item['name']."</a><br>\n"; 132 }; }; 119 133 120 134 $this->sql_select['result'] .= "</td>"; … … 202 216 while($start_NPC = @MySQL_Fetch_Array($startovni_dotaz_item)){ 203 217 switch($start_NPC['Quality']){ 204 case 0: $ sql_select['other']['item_color']= "class=\"graylink\""; break;205 case 1: $ sql_select['other']['item_color']= "class=\"whitelink\""; break;206 case 2: $ sql_select['other']['item_color']= "class=\"greenlink\""; break;207 case 3: $ sql_select['other']['item_color']= "class=\"bluelink\""; break;208 case 4: $ sql_select['other']['item_color']= "class=\"purplelink\""; break;209 case 5: $ sql_select['other']['item_color']= "class=\"orangelink\""; break;210 case 6: $ sql_select['other']['item_color']= "class=\"redlink\""; break;218 case 0: $item_color = "class=\"graylink\""; break; 219 case 1: $item_color = "class=\"whitelink\""; break; 220 case 2: $item_color = "class=\"greenlink\""; break; 221 case 3: $item_color = "class=\"bluelink\""; break; 222 case 4: $item_color = "class=\"purplelink\""; break; 223 case 5: $item_color = "class=\"orangelink\""; break; 224 case 6: $item_color = "class=\"redlink\""; break; 211 225 }; 212 $this->sql_select['other']['StartNPC'] .= "<a href=\"index.php?item=".$start_NPC['entry']."\"".$ sql_select['other']['item_color'].">".$start_NPC['name']."</a><br>\n";226 $this->sql_select['other']['StartNPC'] .= "<a href=\"index.php?item=".$start_NPC['entry']."\"".$item_color.">".$start_NPC['name']."</a><br>\n"; 213 227 }; }; 214 228 if( empty($this->sql_select['other']['StartNPC']) ){ … … 236 250 if( @mysql_num_rows($SrcItemId_dotaz) > 0 ){ 237 251 $SrcItemId = @MySQL_Fetch_Array($SrcItemId_dotaz); 238 $this->sql_select['other']['SrcItemId'] .= "<a href=\"index.php?item=".$SrcItemId['entry']."\">".$SrcItemId['name']."</a><br>\n"; 252 switch($SrcItemId['Quality']){ 253 case 0: $item_color = "class=\"graylink\""; break; 254 case 1: $item_color = "class=\"whitelink\""; break; 255 case 2: $item_color = "class=\"greenlink\""; break; 256 case 3: $item_color = "class=\"bluelink\""; break; 257 case 4: $item_color = "class=\"purplelink\""; break; 258 case 5: $item_color = "class=\"orangelink\""; break; 259 case 6: $item_color = "class=\"redlink\""; break; 260 }; 261 $this->sql_select['other']['SrcItemId'] .= "<a href=\"index.php?item=".$SrcItemId['entry']."\"".$item_color.">".$SrcItemId['name']."</a><br>\n"; 239 262 }; 240 263
Note:
See TracChangeset
for help on using the changeset viewer.