LFG_ACCESS_SITE_ADMINISTRATOR, LFG_CLASS => LFG_ACCESS_SITE_ADMINISTRATOR, LFG_SERVER => LFG_ACCESS_SITE_ADMINISTRATOR, LFG_ZONE => LFG_ACCESS_SITE_ADMINISTRATOR, LFG_INSTANCE => LFG_ACCESS_SITE_USER, LFG_CHARACTER => LFG_ACCESS_SITE_USER, LFG_GUILD => LFG_ACCESS_SITE_USER); function LFG_View_browse_printRow($data, $type, $access, $phrases) { global $access_require; $link_item = LFG_Controller_PrintLink(LFG_PAGE_BROWSE, $data['name'], array('type' => $type, 'id' => $data['id'])); $row = ( $access > LFG_ACCESS_SITE_ADMINISTRATOR ) ? "
| ".$GLOBALS['Phrasebook']->getPhrase('none').' | |||
| ".LFG_Controller_PrintLink(LFG_PAGE_FORM, $phrases[$type.'_add'], $args)." | |||
| ".LFG_Controller_PrintLink(LFG_PAGE_BROWSE, $phrases[LFG_CLASS.'_plural'], array('type' => LFG_CLASS, 'id' => $id, 'list' => 1))." | |||
| ".LFG_Controller_PrintLink(LFG_PAGE_BROWSE, $phrases[LFG_ZONE.'_plural'], array('type' => LFG_ZONE, 'id' => $id, 'list' => 1))." | |||
| ".LFG_Controller_PrintLink(LFG_PAGE_BROWSE, $phrases[LFG_SERVER.'_plural'], array('type' => LFG_SERVER, 'id' => $id, 'list' => 1))." | |||
| ".LFG_Controller_PrintLink(LFG_PAGE_BROWSE, $phrases[LFG_CLASS.'_plural'], array('type' => LFG_CLASS, 'id' => $id, 'list' => 1))." | "; $body .= "".LFG_Controller_PrintLink(LFG_PAGE_FORM, $phrases['add'], array('type' => LFG_TYPE_ADD, 'sub_type' => LFG_CLASS, 'parent' => $result['id']))." | ||
| ".LFG_Controller_PrintLink(LFG_PAGE_BROWSE, $phrases[LFG_ZONE.'_plural'], array('type' => LFG_ZONE, 'id' => $id, 'list' => 1))." | "; $body .= "".LFG_Controller_PrintLink(LFG_PAGE_FORM, $phrases['add'], array('type' => LFG_TYPE_ADD, 'sub_type' => LFG_ZONE, 'parent' => $result['id']))." | ||
| ".LFG_Controller_PrintLink(LFG_PAGE_BROWSE, $phrases[LFG_SERVER.'_plural'], array('type' => LFG_SERVER, 'id' => $id, 'list' => 1))." | "; $body .= "".LFG_Controller_PrintLink(LFG_PAGE_FORM, $phrases['add'], array('type' => LFG_TYPE_ADD, 'sub_type' => LFG_SERVER, 'parent' => $result['id']))." | ||
| ".$GLOBALS['Phrasebook']->getPhrase('color').": | |||
| ".$GLOBALS['Phrasebook']->getPhrase('capacity').": | {$result['capacity']} | ||
| ".LFG_Controller_PrintLink(LFG_PAGE_BROWSE, $phrases[LFG_CHARACTER.'_plural'], array('type' => LFG_CHARACTER, 'sub_type' => LFG_SERVER, 'id' => $id, 'list' => 1))." | |||
| ".LFG_Controller_PrintLink(LFG_PAGE_BROWSE, $phrases[LFG_INSTANCE.'_plural'], array('type' => LFG_INSTANCE, 'sub_type' => LFG_SERVER, 'id' => $id, 'list' => 1))." | |||
| ".LFG_Controller_PrintLink(LFG_PAGE_BROWSE, $phrases[LFG_GUILD.'_plural'], array('type' => LFG_GUILD, 'sub_type' => LFG_SERVER, 'id' => $id, 'list' => 1))." | |||
| ".LFG_Controller_PrintLink(LFG_PAGE_BROWSE, $phrases[LFG_CHARACTER.'_plural'], array('type' => LFG_CHARACTER, 'sub_type' => LFG_SERVER, 'id' => $id, 'list' => 1))." | ".LFG_Controller_PrintLink(LFG_PAGE_FORM, $phrases['add'], array('type' => LFG_TYPE_ADD, 'sub_type' => LFG_CHARACTER, 'parent' => $id))." | ||
| ".LFG_Controller_PrintLink(LFG_PAGE_BROWSE, $phrases[LFG_INSTANCE.'_plural'], array('type' => LFG_INSTANCE, 'sub_type' => LFG_SERVER, 'id' => $id, 'list' => 1))." | ".LFG_Controller_PrintLink(LFG_PAGE_FORM, $phrases['add'], array('type' => LFG_TYPE_ADD, 'sub_type' => LFG_INSTANCE, 'parent' => $id))." | ||
| ".LFG_Controller_PrintLink(LFG_PAGE_BROWSE, $phrases[LFG_GUILD.'_plural'], array('type' => LFG_GUILD, 'sub_type' => LFG_SERVER, 'id' => $id, 'list' => 1))." | ".LFG_Controller_PrintLink(LFG_PAGE_FORM, $phrases['add'], array('type' => LFG_TYPE_ADD, 'sub_type' => LFG_GUILD, 'parent' => $id))." | ||
| ".LFG_Controller_PrintLink(LFG_PAGE_BROWSE, $phrases[LFG_INSTANCE_MEMBERS.'_plural'], array('type' => LFG_CHARACTER, 'sub_type' => LFG_GUILD, 'id' => $id, 'is_list' => 1))." | |||
| ".LFG_Controller_PrintLink(LFG_PAGE_BROWSE, $phrases[LFG_INSTANCE.'_plural'], array('type' => LFG_INSTANCE, 'sub_type' => LFG_GUILD, 'id' => $id, 'is_list' => 1))." | |||
| {$phrases[LFG_CLASS]}: | \n"; $body .= "".LFG_Controller_printLink(LFG_PAGE_BROWSE, $class[0]['name'], array('type' => LFG_CLASS, 'id' => $result['class']))." | \n"; $body .= "||
| {$phrases[LFG_SERVER]}: | \n"; $body .= "".LFG_Controller_printLink(LFG_PAGE_BROWSE, $server[0]['name'], array('type' => LFG_SERVER, 'id' => $result['class']))." | \n"; $body .= "||
| {$phrases[LFG_GUILD]}: | \n"; if ( !is_null($result['guild']) ) { $ranks = array($phrases['guild_rank_master'], $phrases['guild_rank_officer'], $phrases['guild_rank_member']); $guild = $GLOBALS['LFG_Model']->get(LFG_GUILD, array('id' => $result['guild'])); $body .= "".LFG_Controller_PrintLink(LFG_PAGE_BROWSE, $guild[0]['name'], array('type' => LFG_GUILD, 'id' => $result['guild']))." ({$ranks[$guild[0]['guild_access']]}) | \n"; } else { $body .= "{$phrases['none']} | |
| {$phrases['instance_rank']} | {$phrases['name']} | {$phrases['class']} | "; if ( $admin ) { $body .= "{$phrases['admin']} | \n"; } $body .= "
| {$phrases['instance_rank_leader']} | \n"; $body .= "".LFG_Controller_PrintLink(LFG_PAGE_BROWSE, $members[0]['name'], array('type' => LFG_CHARACTER, 'id' => $members[0]['id']))." | \n"; if ( $admin ) { $body .= "\n"; } $body .= " | ".LFG_Controller_PrintLink(LFG_PAGE_BROWSE, $members[$i][$j]['name'], array('type' => LFG_CHARACTER, 'id' => $members[$i][$j]['name']))." | \n"; if ( $admin ) { $body .= "\n"; $body .= " ".LFG_Controller_PrintLink(LFG_PAGE_FORM, $phrases['instance_uninvite'], array('type' => LFG_TYPE_UNINVITE, 'id' => $id, 'sub_id' => $members[$i][$j]['id']))."\n"; $body .= " ".LFG_Controller_PrintLink(LFG_PAGE_FORM, $phrases['instance_promote'], array('type' => LFG_TYPE_PROMOTE, 'id' => $id, 'sub_id' => $members[$i][$j]['id']))."\n"; $body .= " ".LFG_Controller_PrintLink(LFG_PAGE_FORM, $phrases['instance_demote'], array('type' => LFG_TYPE_DEMOTE, 'id' => $id, 'sub_id' => $members[$i][$j]['id']))."\n"; $body .= " | \n"; } $body .= " \n"; } } break; } if ( $access <= LFG_ACCESS_SITE_ADMINISTRATOR ) { $phrases = $GLOBALS['Phrasebook']->getPhrases('edit', 'delete'); $body .= "
| \n"; $body .= " ".LFG_Controller_PrintLink(LFG_PAGE_FORM, $phrases['edit'], array('type' => LFG_TYPE_EDIT, 'sub_type' => $type, 'id' => $result['id'])); $body .= " ".LFG_Controller_PrintLink(LFG_PAGE_FORM, $phrases['delete'], array('type' => LFG_TYPE_DELETE, 'sub_type' => $type, 'id' => $result['id'])); $body .= " | |||