Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <table id="bcon_table" width="100%" cellpadding="0" cellspacing="0">
- <thead>
- <tr>
- <th width="80"><?=$_LANG->get('Nr.')?></th>
- <th><?=$_LANG->get('Firma')?></th>
- <th width="200"><?=$_LANG->get('Ort')?></th>
- <th width="120"><?=$_LANG->get('Typ')?></th>
- <th width="140"><?=$_LANG->get('Merkmal (Typ)')?></th>
- <th width="80"><?=$_LANG->get('Optionen')?></th>
- </tr>
- </thead>
- <?
- $x = 0;
- foreach ($businesscontacts as $bc){
- $csv_string .= $bc->getNameAsLine().";".$bc->getAddress1()." ".$bc->getAddress2().";";
- $csv_string .= $bc->getZip().";".$bc->getCity().";";
- $csv_string .= $bc->getPhone().";".$bc->getFax().";".$bc->getEmail()." \n";
- ?>
- <tr class="<?=getRowColor($x)?>" onmouseover="mark(this, 0)" onmouseout="mark(this,1)">
- <td class="content_row" onclick="document.location='index.php?page=<?=$_REQUEST['page']?>&exec=edit&id=<?=$bc->getId()?>'">
- <?=$bc->getCustomernumber()?>
- </td>
- <td class="content_row pointer" onclick="document.location='index.php?page=<?=$_REQUEST['page']?>&exec=edit&id=<?=$bc->getId()?>'">
- <?=$bc->getNameAsLine()?>
- </td>
- <td class="content_row pointer" onclick="document.location='index.php?page=<?=$_REQUEST['page']?>&exec=edit&id=<?=$bc->getId()?>'">
- <?=$bc->getCity()?>
- </td>
- <td class="content_row pointer" onclick="document.location='index.php?page=<?=$_REQUEST['page']?>&exec=edit&id=<?=$bc->getId()?>'">
- <?
- $tmp_output = "";
- if($bc->isExistingCustomer()){
- $tmp_output .= $_LANG->get('Best-Kunde').", ";
- }
- if($bc->isPotentialCustomer()){
- $tmp_output .= $_LANG->get('Interessent').", ";
- }
- if($bc->isSupplier()){
- $tmp_output .= $_LANG->get('Lieferant').", ";
- }
- echo substr($tmp_output, 0, -2);
- ?>  
- </td>
- <? /* if($_USER->isAdmin()){ ?>
- <td class="content_row pointer" onclick="document.location='index.php?exec=edit&id=<?=$bc->getId()?>'">
- <?=$bc->getClient()->getName()?>
- </td>
- <?}*/?>
- <td class="content_row pointer" onclick="document.location='index.php?page=<?=$_REQUEST['page']?>&exec=edit&id=<?=$bc->getId()?>'">
- <? $attribute_id = 25; // ID des Attributes Typ fuer GEschaeftskontakte
- $attribute = new Attribute($attribute_id);
- $all_attribue_items = $attribute->getItems();
- $tmp_output = "";
- foreach ($all_attribue_items AS $aai){
- if($bc->getIsAttributeItemActive($attribute_id, $aai["id"])){
- $tmp_output .= $aai["title"].", ";
- }
- }
- echo substr($tmp_output, 0, -2);
- ?>
- </td>
- <td class="content_row" align="right" onclick="document.location='index.php?page=<?=$_REQUEST['page']?>&exec=edit&id=<?=$bc->getId()?>'">
- <a class="icon-link" href="index.php?page=<?=$_REQUEST['page']?>&exec=edit&id=<?=$bc->getId()?>"><img src="images/icons/pencil.png"></a>
-  
- <? if($_USER->isAdmin() && $_USER->getId() != 14){ ?>
- <a class="icon-link" href="#" onclick="askDel('index.php?page=<?=$_REQUEST['page']?>&exec=delete&id=<?=$bc->getId()?>')"><img src="images/icons/cross-script.png"> </a>
- <?}?>
- </td>
- </tr>
- <? $x++;
- }
- $csv_string = iconv('UTF-8', 'ISO-8859-1', $csv_string);
- fwrite($csv_file, $csv_string);
- fclose($csv_file);
- ?>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement