| 1 | {strip}
|
|---|
| 2 | new Listview({ldelim}
|
|---|
| 3 | template:'quest',
|
|---|
| 4 | id:'{$id}',
|
|---|
| 5 | {if isset($name)}name: LANG.tab_{$name},{/if}
|
|---|
| 6 | {if isset($tabsid)}tabs:{$tabsid},parent:'listview-generic',{/if}
|
|---|
| 7 | data:[
|
|---|
| 8 | {section name=i loop=$data}
|
|---|
| 9 | {ldelim}
|
|---|
| 10 | id: '{$data[i].entry}',
|
|---|
| 11 | name: '{$data[i].Title|escape:"quotes"}',
|
|---|
| 12 | level: '{$data[i].QuestLevel}',
|
|---|
| 13 | {if ($data[i].MinLevel)}
|
|---|
| 14 | reqlevel:{$data[i].MinLevel},
|
|---|
| 15 | {/if}
|
|---|
| 16 | side: '{$data[i].side.side}'
|
|---|
| 17 | {if isset($data[i].itemrewards)}
|
|---|
| 18 | ,itemrewards:[
|
|---|
| 19 | {section name=j loop=$data[i].itemrewards}
|
|---|
| 20 | [{$data[i].itemrewards[j].entry},{$data[i].itemrewards[j].count}]
|
|---|
| 21 | {if $smarty.section.j.last}{else},{/if}
|
|---|
| 22 | {/section}
|
|---|
| 23 | ]
|
|---|
| 24 | {/if}
|
|---|
| 25 | {if isset($data[i].itemchoices)}
|
|---|
| 26 | ,itemchoices:[
|
|---|
| 27 | {section name=j loop=$data[i].itemchoices}
|
|---|
| 28 | [{$data[i].itemchoices[j].entry},{$data[i].itemchoices[j].count}]
|
|---|
| 29 | {if $smarty.section.j.last}{else},{/if}
|
|---|
| 30 | {/section}
|
|---|
| 31 | ]
|
|---|
| 32 | {/if}
|
|---|
| 33 | {if isset($data[i].xp)}
|
|---|
| 34 | ,xp:{$data[i].xp}
|
|---|
| 35 | {/if}
|
|---|
| 36 | {if isset($data[i].money)}
|
|---|
| 37 | ,money:{$data[i].money}
|
|---|
| 38 | {/if}
|
|---|
| 39 | {if isset($data[i].category)}
|
|---|
| 40 | ,category:{$data[i].category}
|
|---|
| 41 | {/if}
|
|---|
| 42 | {if isset($data[i].maincat)}
|
|---|
| 43 | ,category2:{$data[i].maincat}
|
|---|
| 44 | {/if}
|
|---|
| 45 | {if isset($data[i].type)}
|
|---|
| 46 | ,type:{$data[i].type}
|
|---|
| 47 | {/if}
|
|---|
| 48 | {if isset($data[i].Daily)}
|
|---|
| 49 | ,daily: 1
|
|---|
| 50 | {/if}
|
|---|
| 51 | {rdelim}
|
|---|
| 52 | {if $smarty.section.i.last}{else},{/if}
|
|---|
| 53 | {/section}
|
|---|
| 54 | ]
|
|---|
| 55 | {rdelim});
|
|---|
| 56 | {/strip} |
|---|