public function __construct() { $options = array('key' => 'id', 'table' => 'babel_reply', 'columns' => array('id' => 'rpl_id', 'content' => 'rpl_content', 'adId' => 'rpl_tpc_id', 'userNick' => 'rpl_post_nick', 'userId' => 'rpl_post_usr_id')); parent::init($options); }
<!DOCTYPE HTML> <html> <head> <?php require 'constants.php'; ?> <?php require 'functions.php'; ?> <?php require 'locale/languages.php'; ?> <?php //get data $data = Data::init($fields, $languages); //load language $desc = Language::init($data); $weaponNames = Language::translateWeaponNames($weaponNames, $desc); $skills = Language::translateSkills($skills, $desc); $enchants = Language::translateEnchants($enchants, $desc); $etchings = Language::translateEtchings($etchings, $desc); $necklaceBonuses = Language::translateNumericBonuses($necklaceBonuses, $desc, 'noNecklaceBonus'); $earringBonuses = Language::translateNumericBonuses($earringBonuses, $desc, 'noEarringBonus'); ?> <meta charset="utf-8" /> <title><?php e($desc->title); ?> </title>
<!-- List Clients --> <div id="list-clients-box" class="pure-u-1-2"> <h1>Kunden</h1> <div class="inner"> <ul id="selectable-clients" class="selectable"> <?php $myData = new Data(); $myData->init(); $client_array = $myData->read_clients(); $i = 0; while ($i < count($client_array)) { if ($client_array[$i]->firma) { $listLabel = $client_array[$i]->firma; } else { $listLabel = $client_array[$i]->nachname . ", " . $client_array[$i]->vorname; } echo "<li class='hvr-shadow-radial'\n\t\t\t\t\t\t\t\t\t\t\t\tdata-id='" . $client_array[$i]->id . "' " . "data-kundennummer='" . $client_array[$i]->kundennummer . "' " . "data-anrede='" . $client_array[$i]->anrede . "' " . "data-firma='" . $client_array[$i]->firma . "' " . "data-zusatz='" . $client_array[$i]->zusatz . "' " . "data-nachname='" . $client_array[$i]->nachname . "' " . "data-vorname='" . $client_array[$i]->vorname . "' " . "data-strasse='" . $client_array[$i]->strasse . "' " . "data-plz='" . $client_array[$i]->plz . "' " . "data-ort='" . $client_array[$i]->ort . "' " . "data-land='" . $client_array[$i]->land . "' " . "data-email='" . $client_array[$i]->email . "' " . "data-mwst_type='" . $client_array[$i]->mwst_type . "' " . "data-freitext='" . $client_array[$i]->freitext . "' " . ">" . $listLabel . "<span class='view_kundennummer'>" . $client_array[$i]->kundennummer . "<span><span class='invisible client-id'>" . $client_array[$i]->id . "</span></li>"; $i++; } ?> </ul> <a class="pure-button pure-button-primary" href="#client-add-modal" id="client_new">Neuen Kunden anlegen</a> <a class="pure-button pure-button-primary" href="#client-change-modal" id="client_change">Kunden ändern</a> <a class="button-warning" href="#" id="client_delete">Kunden löschen</a> </div> </div> <!-- List Clients END -->
public function __construct() { $option = array("key" => "groupId1", "key2" => "groupId2", "table" => "group_has_group", "columns" => array("groupId1" => "group_id1", "groupId2" => "group_id2")); parent::init($option); }