Advertisement
Guest User

Untitled

a guest
Sep 24th, 2014
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.35 KB | None | 0 0
  1. <table id="bcon_table" width="100%" cellpadding="0" cellspacing="0">
  2. <thead>
  3. <tr>
  4. <th width="80"><?=$_LANG->get('Nr.')?></th>
  5. <th><?=$_LANG->get('Firma')?></th>
  6. <th width="200"><?=$_LANG->get('Ort')?></th>
  7. <th width="120"><?=$_LANG->get('Typ')?></th>
  8. <th width="140"><?=$_LANG->get('Merkmal (Typ)')?></th>
  9. <th width="80"><?=$_LANG->get('Optionen')?></th>
  10. </tr>
  11. </thead>
  12. <?
  13.  
  14. $x = 0;
  15. foreach ($businesscontacts as $bc){
  16. $csv_string .= $bc->getNameAsLine().";".$bc->getAddress1()." ".$bc->getAddress2().";";
  17. $csv_string .= $bc->getZip().";".$bc->getCity().";";
  18. $csv_string .= $bc->getPhone().";".$bc->getFax().";".$bc->getEmail()." \n";
  19. ?>
  20. <tr class="<?=getRowColor($x)?>" onmouseover="mark(this, 0)" onmouseout="mark(this,1)">
  21. <td class="content_row" onclick="document.location='index.php?page=<?=$_REQUEST['page']?>&exec=edit&id=<?=$bc->getId()?>'">
  22. <?=$bc->getCustomernumber()?>&nbsp;
  23. </td>
  24. <td class="content_row pointer" onclick="document.location='index.php?page=<?=$_REQUEST['page']?>&exec=edit&id=<?=$bc->getId()?>'">
  25. <?=$bc->getNameAsLine()?>&nbsp;
  26. </td>
  27. <td class="content_row pointer" onclick="document.location='index.php?page=<?=$_REQUEST['page']?>&exec=edit&id=<?=$bc->getId()?>'">
  28. <?=$bc->getCity()?>&nbsp;
  29. </td>
  30. <td class="content_row pointer" onclick="document.location='index.php?page=<?=$_REQUEST['page']?>&exec=edit&id=<?=$bc->getId()?>'">
  31. <?
  32. $tmp_output = "";
  33. if($bc->isExistingCustomer()){
  34. $tmp_output .= $_LANG->get('Best-Kunde').", ";
  35. }
  36. if($bc->isPotentialCustomer()){
  37. $tmp_output .= $_LANG->get('Interessent').", ";
  38. }
  39. if($bc->isSupplier()){
  40. $tmp_output .= $_LANG->get('Lieferant').", ";
  41. }
  42. echo substr($tmp_output, 0, -2);
  43. ?> &ensp;
  44. </td>
  45. <? /* if($_USER->isAdmin()){ ?>
  46. <td class="content_row pointer" onclick="document.location='index.php?exec=edit&id=<?=$bc->getId()?>'">
  47. <?=$bc->getClient()->getName()?> &nbsp;
  48. </td>
  49. <?}*/?>
  50. <td class="content_row pointer" onclick="document.location='index.php?page=<?=$_REQUEST['page']?>&exec=edit&id=<?=$bc->getId()?>'">
  51. <? $attribute_id = 25; // ID des Attributes Typ fuer GEschaeftskontakte
  52. $attribute = new Attribute($attribute_id);
  53. $all_attribue_items = $attribute->getItems();
  54. $tmp_output = "";
  55. foreach ($all_attribue_items AS $aai){
  56. if($bc->getIsAttributeItemActive($attribute_id, $aai["id"])){
  57. $tmp_output .= $aai["title"].", ";
  58. }
  59. }
  60. echo substr($tmp_output, 0, -2);
  61. ?>&nbsp;
  62. </td>
  63. <td class="content_row" align="right" onclick="document.location='index.php?page=<?=$_REQUEST['page']?>&exec=edit&id=<?=$bc->getId()?>'">
  64. <a class="icon-link" href="index.php?page=<?=$_REQUEST['page']?>&exec=edit&id=<?=$bc->getId()?>"><img src="images/icons/pencil.png"></a>
  65. &ensp;
  66. <? if($_USER->isAdmin() && $_USER->getId() != 14){ ?>
  67. <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>
  68. <?}?>
  69. </td>
  70. </tr>
  71. <? $x++;
  72. }
  73. $csv_string = iconv('UTF-8', 'ISO-8859-1', $csv_string);
  74. fwrite($csv_file, $csv_string);
  75. fclose($csv_file);
  76. ?>
  77. </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement