ramanraj 30-06-2002 chennai

documents
 document[content]="<html><body>... ... blah blah blah ... ...</body></html>";
 document[particular_id]=n;
 document[file_link]="<a href=http://localhost/calpptechno/assertions/proc_n/n>file_description</a>";
 document[file_name]="/usr/local/httpd/htdocs/calpptechno/assertions/proc_n/n.php";

ramanraj 01-01-2002 chennai
basic functions:
	accounting
	generation of all forms
	online chits act and rules
	reports
delight:
	robust
	undo if bill is pending
	sensible what if analysis
team:
	1)  Accounting; Forms; Business Practice
	2)  User Interface; Accuracy; Test Cases
	3)  Reviewer

// FUNCTIONS
// db_pgsql_lib.inc
function Show_Sql ($sql, $fmt_table="<table border=0>", $col_head="")	
	:to display the results of $sql as a html table 
function Retn_Sql_Table ($sql, $fmt_table="<table border=1>", $col_head="")
    	:to display the results of $sql as a html table
function Retn_Sql_Array($sql) : returns array of an array of field names and data
function Retn_Key_Value_Array($sql)
	// returns an array in the format $result[field0]=field1 [ . ' ' . field2 [ . ' ' . fieldn]]
	// where $sql = select field0, field1[, field2[, fieldn]] from tablename;
	// sample $sql values:
	// $sql = "select contact_id, name from contacts" # $result[contact_id]=name;
	// $sql = "select contact_id, initials, name from contacts"  # $result[contact_id]=initials . ' ' . name;

// validate.inc
is_valid_form_data() :parses HTTP_POST/GET_VARS and returns 1 if valid and 0 if invalid
join_list($ar_list)  :RETURNS A STRING IN 0:apples;1:oranges;2:bananas FORMAT OF ALL ITEMS IN $ar_list
split_list($txt)     :array split_list($txt)
    			//$txt = apples;oranges;bananas
    			//$txt = AP:apples;OG:oranges;BN:bananas
    			//split_list returns an associative array for use in forms
    			//$ret_ar[AP]=apples;$ret_ar[OG]=oranges;$ret_ar[BN]=bananas
    			// sample: $txt = "1:apples; 2:oranges; 3:grapes;" 
    			// sample: $txt = "select contact_id, name from contacts";
    			// sample: $txt = "select current_date";


// SCHEDULE
30-03-2002  finish calpp base project
30-04-2002  finish calpp for chits
30-05-2002  implement chits project at LSP Chits
30-05-2002  finish calpp for import/export at LSP Agro
30-06-2002  implement calpp for import/export at LSP Agro
30-06-2002  publish calpp base project at sourceforge.net; gnu.org
            publicise extensively in the media
            vigorously market chits and import/export software to generate revenue
            touch government agencies to sell ideas

// LOGO

  /\  computer aided
 /^^\ legal procedures and proceedings
calpp        

/\ calpp
// 30-01-2002 Ramanraj Plans
Login:  Login through an entity: 

           Login
             |v|
          {==| |===============}             <- viewer: Run SQL Queries, get information
          {                    }                
          {         C          } 
          {         A          } 
          {         L          } 
          {         P          } 
          {         P          } 
          {     fortress       }             <- viewer: Run SQL Queries, get information
          {===============| |==}
                          |v|
                         Logout


Data validation,
conversion and
manipulation

Procedures

Proceedings

viewers :
visitors:Auditors and Authoritiesthe idea behind calpp is to design an elegant system for executing law.

the programmers ought to concentrate on law,  its objects and ends rather than on programming

the easiest and simplest way to execute legal rules, and to maintain the rules themselves

the most transparent and secure system.

user friendly and robust.

secure and reliable.

 step_id |      step_code      | step |                     step_name
---------+---------------------+------+----------------------------------------------------
      12 | 00Resolution        |    1 | Resolution for commencing and conducting new chit
      16 | 01PSO               |    1 | Application furnishing security
      17 | 01PSO               |    2 | Acceptance of Security
      18 | 01PSO               |    2 | Refusal of Security
      19 | 01PSO               |    3 | Appeal u/s.74(1)(c)
      20 | 01PSO               |    4 | Hearing of Appeal u/s.74(1)(c)
      21 | 01PSO               |    4 | Appeal u/s.74(1)(c) allowed
      22 | 01PSO               |    4 | Appeal u/s.74(1)(c) dismissed
      23 | 01PSO               |    5 | Application for PSO
      24 | 01PSO               |    6 | Hearing of Application for PSO
      25 | 01PSO               |    6 | PSO granted
      26 | 01PSO               |    6 | PSO refused
      27 | 01PSO               |    7 | Appeal u/s.4(5) against refusal of PSO
      28 | 01PSO               |    8 | Hearing of Appeal u/s.4(5)
      29 | 01PSO               |    8 | Appeal u/s.4(5) allowed granting PSO
      30 | 01PSO               |    8 | Appeal u/s.4(5) dismissed refusing PSO
      31 | 01PSO               |    9 | Application u/s.4(1) to extend time for Regn.
      32 | 01PSO               |   10 | Extension of time granted u/s.4(1)
      33 | 01PSO               |   10 | Extension of time refused u/s.4(1)
      34 | 02ChitRegistration  |    1 | Application u/s.7 for Regn. of Chit Agreement
      35 | 02ChitRegistration  |    2 | Endorsement of Registration
      36 | 02ChitRegistration  |    2 | Refusal to Register the Chit Agreement
      37 | 02ChitRegistration  |    3 | Appeal u/s.74(1)(a) against refusal to register
      38 | 02ChitRegistration  |    4 | Hearing of Appeal u/s.74(1)(a)
      39 | 02ChitRegistration  |    4 | Appeal u/s.74(1)(a) allowed
      40 | 02ChitRegistration  |    4 | Appeal u/s.74(1)(a) dismissed
      41 | 02ChitRegistration  |    5 | Enlisting of Subscribers
      42 | 02ChitRegistration  |    6 | Declaration u/s.9 that tickets are fully subscribe
      43 | 02ChitRegistration  |    7 | Certificate of Commencement of Chit
      44 | 02ChitRegistration  |    7 | Refusal of Certificate of Commencement                      