Exemplo n.º 1
0
 function CreateCustomerTables($types)
 {
     $customerModel = new CustomerModel();
     $customerArray = $customerModel->GetCustomerByType($types);
     $result = "";
     foreach ($customerArray as $key => $customer) {
         $result = $result . "<table class = 'customerTable'>\n                        <tr>\n                           \n                            \n                            \n                            <th width = '75px' >CustomerId : </th>\n                            <td>{$customer->CustomerId}</td>\n                        </tr>\n                          \n                        <tr>\n                            <th width = '75px' >Customer Name : </th>\n                            <td>{$customer->UserName}</td>\n                        </tr>\n                        \n                        <tr>\n                            <th>Address : </th>\n                            <td>{$customer->Address}</td>\n                        </tr>\n                        \n                        <tr>\n                            <th>Contact Number : </th>\n                            <td>{$customer->ContactNo}</td>\n                        </tr>\n                        \n                            \n                       \n      \n                                         \n                     </table>";
     }
     return $result;
 }