#1470 minor fix in rendering
This commit is contained in:
parent
f41e2b6cdd
commit
ae1b00ea18
3 changed files with 7 additions and 7 deletions
|
@ -28,7 +28,7 @@
|
||||||
$this->template = $data['aal_template'];
|
$this->template = $data['aal_template'];
|
||||||
$this->dev = $data['aa_dev'];
|
$this->dev = $data['aa_dev'];
|
||||||
|
|
||||||
$res = $DBc->sqlQuery("SELECT * FROM ach_perk LEFT JOIN (ach_perk_lang) ON (apl_lang='".$_USER->getLang()."' AND apl_perk=ap_id) LEFT JOIN (ach_player_perk) ON (app_perk=ap_id AND app_player='".$_USER->getID()."') WHERE ap_achievement='".$this->id."' AND ap_parent IS NULL");
|
$res = $DBc->sqlQuery("SELECT * FROM ach_perk LEFT JOIN (ach_perk_lang) ON (apl_lang='".$_USER->getLang()."' AND apl_perk=ap_id) LEFT JOIN (ach_player_perk) ON (app_perk=ap_id AND app_player='".$_USER->getID()."') WHERE ap_achievement='".$this->id."' ORDER by ap_porder ASC");
|
||||||
|
|
||||||
$sz = sizeof($res);
|
$sz = sizeof($res);
|
||||||
for($i=0;$i<$sz;$i++) {
|
for($i=0;$i<$sz;$i++) {
|
||||||
|
|
|
@ -112,7 +112,7 @@
|
||||||
|
|
||||||
$res = $DBc->sqlQuery("SELECT sum(ap_value) as anz FROM ach_perk,ach_player_perk WHERE ap_id=app_perk AND app_player='".$_USER->getID()."'");
|
$res = $DBc->sqlQuery("SELECT sum(ap_value) as anz FROM ach_perk,ach_player_perk WHERE ap_id=app_perk AND app_player='".$_USER->getID()."'");
|
||||||
|
|
||||||
$html = "<font size='32px'>".$_USER->getName()." <img src='".$_CONF['image_url']."pic/yubo_done.png'> ".$res[0]['anz']."</font>";
|
$html = "<font size='32px'>".$_USER->getName()." <img src='".$_CONF['image_url']."pic/yubo_done.png'> ".max(0,$res[0]['anz'])."</font>";
|
||||||
|
|
||||||
return $html;
|
return $html;
|
||||||
}
|
}
|
||||||
|
@ -182,7 +182,7 @@
|
||||||
|
|
||||||
$iter = $cat->getDone();
|
$iter = $cat->getDone();
|
||||||
while($iter->hasNext()) {
|
while($iter->hasNext()) {
|
||||||
$curr = $cat->getChildByIdx($iter->getNext());
|
$curr = $iter->getNext();
|
||||||
#$sz = sizeof($tmp);
|
#$sz = sizeof($tmp);
|
||||||
#for($i=0;$i<$sz;$i++) {
|
#for($i=0;$i<$sz;$i++) {
|
||||||
#echo "A";
|
#echo "A";
|
||||||
|
@ -194,7 +194,7 @@
|
||||||
|
|
||||||
$iter = $cat->getOpen();
|
$iter = $cat->getOpen();
|
||||||
while($iter->hasNext()) {
|
while($iter->hasNext()) {
|
||||||
$curr = $cat->getChildByIdx($iter->getNext());
|
$curr = $iter->getNext();
|
||||||
#$sz = sizeof($tmp);
|
#$sz = sizeof($tmp);
|
||||||
#for($i=0;$i<$sz;$i++) {
|
#for($i=0;$i<$sz;$i++) {
|
||||||
#echo "B";
|
#echo "B";
|
||||||
|
@ -259,7 +259,7 @@
|
||||||
$html = "";
|
$html = "";
|
||||||
|
|
||||||
$perk_list = $ach->getOpen();
|
$perk_list = $ach->getOpen();
|
||||||
$perk = $ach->getChildByIdx($perk_list->getNext());
|
$perk = $perk_list->getNext();
|
||||||
|
|
||||||
if($perk->inDev()) {
|
if($perk->inDev()) {
|
||||||
return $html;
|
return $html;
|
||||||
|
@ -281,7 +281,7 @@
|
||||||
|
|
||||||
$perk_list = $ach->getDone();
|
$perk_list = $ach->getDone();
|
||||||
while($perk_list->hasNext()) {
|
while($perk_list->hasNext()) {
|
||||||
$perk = $ach->getChildByIdx($perk_list->getNext());
|
$perk = $perk_list->getNext();
|
||||||
|
|
||||||
#foreach($perk_list as $elem) {
|
#foreach($perk_list as $elem) {
|
||||||
#$perk = $ach->getChild($elem);
|
#$perk = $ach->getChild($elem);
|
||||||
|
|
|
@ -120,7 +120,7 @@
|
||||||
|
|
||||||
$res = $DBc->sqlQuery("SELECT sum(ap_value) as anz FROM ach_perk,ach_player_perk WHERE ap_id=app_perk AND app_player='".$_USER->getID()."'");
|
$res = $DBc->sqlQuery("SELECT sum(ap_value) as anz FROM ach_perk,ach_player_perk WHERE ap_id=app_perk AND app_player='".$_USER->getID()."'");
|
||||||
|
|
||||||
$html = "<div style='display:block;border-bottom:1px solid #000000;'><span style='font-size:32px;'>".$_USER->getName()." <img src='".$_CONF['image_url']."pic/yubo_done.png'> ".$res[0]['anz']."</span></div>";
|
$html = "<div style='display:block;border-bottom:1px solid #000000;'><span style='font-size:32px;'>".$_USER->getName()." <img src='".$_CONF['image_url']."pic/yubo_done.png'> ".max(0,$res[0]['anz'])."</span></div>";
|
||||||
|
|
||||||
return $html;
|
return $html;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue