PHP Classes

File: getData.php

Recommend this page to a friend!
  Classes of Prakash Khanchandani   List processor   getData.php   Download  
File: getData.php
Role: Auxiliary script
Content type: text/plain
Description: generate data for the examples
Class: List processor
List data from arrays in HTML tables
Author: By
Last change:
Date: 11 years ago
Size: 8,300 bytes
 

Contents

Class file image Download
<?php

/**
 * @author Prakash Khanchandani
 * @copyright 2013
 * @program getData.php
 *
 * functions to generate data for the list processor demos
 */


/*
the data has been generated from accountMaster using
SELECT branch,
       prdType,
       concat(branch, '-',
              prdType, '-',
              prdSubType, '-',
              accountno)
          AS acNumber,
       acName,
       avlBalHC,
       lgrBalHC
  FROM accountMaster
 WHERE status = 'L' AND branch IN (2, 3, 4)
ORDER BY branch, acNumber;
*/


function getFullData()
{
   
$data[] = array("0002", 10, "0002-10-010-000011", "Bangade Chandrakant Narayan",
       
166, 166);
   
$data[] = array("0002", 10, "0002-10-010-000037", "Jain Suresh Gokulchand", 1016,
       
1016);
   
$data[] = array("0002", 10, "0002-10-010-000051", "Jaiswal Shankarlal Mohanlal",
       
8739, 8739);
   
$data[] = array("0002", 10, "0002-10-010-000056", "Kanadje Bhagwan Ramkrushna",
       
3398, 3398);
   
$data[] = array("0002", 10, "0002-10-010-000089", "Jodhani Haridas Vishnumal",
       
1309, 1309);
   
$data[] = array("0002", 10, "0002-10-010-000104", "Taide Rajesh Sakharam", 473,
       
473);
   
$data[] = array("0002", 10, "0002-10-010-000145", "Shukla Vinod Dharampal", 740,
       
740);
   
$data[] = array("0002", 10, "0002-10-010-000146", "Sawalkar Shyam Gajanan", 500,
       
500);
   
$data[] = array("0002", 10, "0002-10-010-000147", "Patil Babaurao Laxman", 1000,
       
1000);
   
$data[] = array("0002", 10, "0002-10-010-000148", "Ingle Ramesh Yadaorao", 1000,
       
1000);
   
$data[] = array("0002", 10, "0002-10-010-000149", "Kale Mukund Devidas", 1000,
       
1000);
   
$data[] = array("0002", 10, "0002-10-010-000150",
       
"Deshmukh Dineshkumar Anandrao", 1000, 1000);
   
$data[] = array("0002", 10, "0002-10-010-000151", "Saoji Dipak Motiram S", 1000,
       
1000);
   
$data[] = array("0002", 10, "0002-10-010-000152", "Jain Subhashchand Sukhchand",
       
1000, 1000);
   
$data[] = array("0002", 10, "0002-10-010-000153", "Bhai Daud Aziz", 1000, 1000);
   
$data[] = array("0002", 10, "0002-10-010-000154", "Taide Suresh Ukharda", 6050,
       
6050);
   
$data[] = array("0002", 10, "0002-10-010-000155", "Rathi Gopaldas Nandlal", 500,
       
500);
   
$data[] = array("0002", 11, "0002-11-010-000004", "Gopichand Gajanmal", 57621,
       
57621);
   
$data[] = array("0002", 11, "0002-11-010-000024", "Malkapur Steel Products",
       
69925, 69925);
   
$data[] = array("0002", 11, "0002-11-010-000025", "Moresh And Company", 177922,
       
177922);
   
$data[] = array("0003", 10, "0003-10-010-000048", "Manghale Ashok Eknath Eors",
       
66196, 66196);
   
$data[] = array("0003", 10, "0003-10-010-000051", "Lahoti Vinod Sakharam", 59962,
       
59962);
   
$data[] = array("0003", 10, "0003-10-010-000078", "Eklarkar Sunil Prabhakar",
       
69431, 69431);
   
$data[] = array("0003", 10, "0003-10-010-000137", "Nirwan Sanjay Radhakishan",
       
944910, 944910);
   
$data[] = array("0003", 10, "0003-10-010-000138", "Bhokare Manohar Mango",
       
98151.03, 98151.03);
   
$data[] = array("0003", 10, "0003-10-010-000139", "Bugdane Kishor Tryambak",
       
102778.31, 102778.31);
   
$data[] = array("0003", 10, "0003-10-010-000185", "Wagh Punjaji Govind", 176682,
       
176682);
   
$data[] = array("0003", 10, "0003-10-010-000186", "Saoji Vasant Madhav Eors",
       
91255, 91255);
   
$data[] = array("0003", 10, "0003-10-010-000209",
       
"Saoji Kusumavati Narayan Eors", 137494, 137494);
   
$data[] = array("0003", 10, "0003-10-010-000221", "Akal Shriram Wamanrao", 76117,
       
76117);
   
$data[] = array("0003", 10, "0003-10-010-000269", "Saoji Shriram Sunder Eors",
       
87813, 87813);
   
$data[] = array("0003", 11, "0003-11-010-000051", "Mahalaxmi Poha Mill",
       
202550.17, 202550.17);
   
$data[] = array("0003", 11, "0003-11-010-000060", "Shrinath Cotton Products",
       
55618, 55618);
   
$data[] = array("0003", 11, "0003-11-010-000061", "Khadse Vilas Kondbarao",
       
956800.5, 956800.5);
   
$data[] = array("0003", 11, "0003-11-010-000080", "Krushi Sewa Kendra", 435877,
       
435877);
   
$data[] = array("0003", 11, "0003-11-010-000081", "Vikas Traders", 2678797,
       
2678797);
   
$data[] = array("0003", 11, "0003-11-010-000089", "Kabra Narayan Jagannath",
       
994100, 994100);
   
$data[] = array("0003", 11, "0003-11-010-000099", "Deshmukh Shshrao Shriram",
       
66416.34, 66416.34);
   
$data[] = array("0003", 11, "0003-11-010-000108", "Ganesh Paper Mills", 223438,
       
223438);
   
$data[] = array("0003", 11, "0003-11-010-000149", "Umalkar Vijay Balwant",
       
113612, 113612);
   
$data[] = array("0004", 10, "0004-10-010-000007", "Sable Kakarao Ganpatrao",
       
109122.5, 109122.5);
   
$data[] = array("0004", 10, "0004-10-010-000066", "Susar Mahipatrao Banduji",
       
57597, 57597);
   
$data[] = array("0004", 10, "0004-10-010-000079", "Parakh Vinod Premchand",
       
98727, 98727);
   
$data[] = array("0004", 10, "0004-10-010-000234", "Nahar Tejraj Balchand",
       
102884.82, 102884.82);
   
$data[] = array("0004", 10, "0004-10-010-000235", "Sk Iqbal Abdul Gaffar",
       
69906.75, 69906.75);
   
$data[] = array("0004", 10, "0004-10-010-000304", "Jain Pushpam Kumar", 149706,
       
149706);
   
$data[] = array("0004", 10, "0004-10-010-000429", "Tetawar Ramdas Laxman",
       
118346.6, 118346.6);
   
$data[] = array("0004", 10, "0004-10-010-000440", "Saoji Shailesh Narayan",
       
401678, 401678);
   
$data[] = array("0004", 10, "0004-10-010-000623", "Raut Pundlik Kaduba", 82294,
       
82294);
   
$data[] = array("0004", 10, "0004-10-010-000664", "Sormare Sarjerao Laxman",
       
86178, 86178);
   
$data[] = array("0004", 10, "0004-10-010-000727", "Wankhede Sunil Himmtrao",
       
108630.6, 108630.6);
   
$data[] = array("0004", 10, "0004-10-010-000738", "Dahake Ekanath Tukaram",
       
50818.24, 50818.24);
   
$data[] = array("0004", 11, "0004-11-010-000005", "Nathmal Kochar", 50050, 50050);
   
$data[] = array("0004", 11, "0004-11-010-000015", "Vijay Agencies", 136078.28,
       
136078.28);
   
$data[] = array("0004", 11, "0004-11-010-000058", "Sahebrao Waluba Daspute",
       
199098.4, 199098.4);
   
$data[] = array("0004", 11, "0004-11-010-000100", "Gajanan Trading Company",
       
281882.69, 281882.69);
   
$data[] = array("0004", 11, "0004-11-010-000182", "Nakoda Land Developers",
       
558726, 558726);
   
$data[] = array("0004", 11, "0004-11-010-000292",
       
"Prabhakar Agency Prop P A Pable", 946009.6, 946009.6);
   
$data[] = array("0004", 11, "0004-11-010-000358", "Yogesh Scale Centre", 1607484,
       
1607484);
   
$data[] = array("0004", 11, "0004-11-010-000361", "S M Traders", 1958547,
       
1958547);

    return
$data;
}


function
getLimitedData()
{
   
$data[] = array("0002", 10, "0002-10-010-000037", "Jain Suresh Gokulchand", 1016,
       
1016);
   
$data[] = array("0002", 10, "0002-10-010-000051", "Jaiswal Shankarlal Mohanlal",
       
8739, 8739);
   
$data[] = array("0002", 11, "0002-11-010-000024", "Malkapur Steel Products",
       
69925, 69925);
   
$data[] = array("0002", 11, "0002-11-010-000025", "Moresh And Company", 177922,
       
177922);
   
$data[] = array("0003", 10, "0003-10-010-000048", "Manghale Ashok Eknath Eors",
       
66196, 66196);
   
$data[] = array("0003", 10, "0003-10-010-000051", "Lahoti Vinod Sakharam", 59962,
       
59962);
   
$data[] = array("0003", 11, "0003-11-010-000060", "Shrinath Cotton Products",
       
55618, 55618);
   
$data[] = array("0003", 11, "0003-11-010-000061", "Khadse Vilas Kondbarao",
       
956800.5, 956800.5);
   
$data[] = array("0004", 10, "0004-10-010-000007", "Sable Kakarao Ganpatrao",
       
109122.5, 109122.5);
   
$data[] = array("0004", 10, "0004-10-010-000079", "Parakh Vinod Premchand",
       
98727, 98727);
   
$data[] = array("0004", 11, "0004-11-010-000015", "Vijay Agencies", 136078.28,
       
136078.28);
   
$data[] = array("0004", 11, "0004-11-010-000058", "Sahebrao Waluba Daspute",
       
199098.4, 199098.4);

    return
$data;
}
?>