Source for file edocument_edocformclass.php

Documentation is available at edocument_edocformclass.php


1 <?php
2 /**
3 * @author Jan H. Andersen <jha@ipwsystems.dk>
4 * @author Martin R. Larsen <mrl@ipwsystems.dk>
5 * @copyright {@link http://www.ipwsystems.dk/ IPW Systems a.s}
6 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
7 * @package eReklamation
8 * @subpackage core
9 * $Id: edocument_edocformclass.php,v 1.3 2005/02/15 12:20:06 jan Exp $
10 */
11 global $system_path;
12 require_once($system_path."core/basicclass.php");
13 define('CASE_OPEN',0);
14 define('CASE_CLOSED',1);
15 define('CASE_DONE',2);
16
17 class edocument_edocform extends basic {
18
19 function edocument_edocform() {
20 $this->basic();
21 $this->setobjecttype('edocform');
22
23 $this->addcolumn('errorcodeid',0,UI_RELATION,'edocerrorcode');
24 $this->addcolumn('correctionid',0,UI_RELATION,'edoccorrection');
25 $this->addcolumn('responsibleid',0,UI_RELATION,'edocresponsible');
26 $this->addcolumn('name',0,UI_STRING);
27 $this->addcolumn('cno',0,UI_STRING);
28 $this->addcolumn('cname',0,UI_STRING);
29 $this->addcolumn('caddress',0,UI_STRING);
30 $this->addcolumn('cpostalcode',0,UI_STRING);
31 $this->addcolumn('ccity',0,UI_STRING);
32 #$this->addcolumn('ccountryid',0,UI_COUNTRY);
33 $this->addcolumn('ccontact',0,UI_STRING);
34 $this->addcolumn('cphone',0,UI_STRING);
35 $this->addcolumn('cemail',0,UI_STRING);
36 $this->addcolumn('comment1',0,UI_TEXT_LITERAL_WRAP);
37 $this->addcolumn('comment2',0,UI_TEXT_LITERAL_WRAP);
38 $this->addcolumn('comment3',0,UI_TEXT_LITERAL_WRAP);
39 $this->addcolumn('status',0,UI_HIDDEN);
40
41 $this->removeview('createvariant');
42 $this->removeview('access');
43 $this->removeview('delete');
44
45 $this->addview('search');
46 }
47
48 function stdListCol() {
49 $arr[] = 'name';
50 $arr[] = 'itemtext';
51 $arr[] = 'cno';
52 $arr[] = 'cname';
53 $arr[] = 'compcauseid';
54 $arr[] = 'createdbyname';
55 $arr[] = 'changed';
56 return $arr;
57 }
58
59 function initLayout() {
60 parent::initLayout();
61 /* $this->byside3('itemtext', 'itemnum', 'compunitid');
62 $this->byside2('cpostalcode', 'ccity');
63 $this->addcolumnstyle('itemtext', 'width: 200px');
64 $this->addcolumnstyle('itemnum', 'width: 150px');
65 $this->addlabelstyle('itemnum','width: 100px;');
66 $this->addcolumnstyle('compunitid', 'width: 150px');
67 $this->addlabelstyle('compunitid','width: 100px;');
68 $this->addcolumnstyle('compcauseid', 'width: 206px');
69 $this->addcolumnstyle('description','width: 740px; height: 80px');
70 $this->addcolumnstyle('cpostalcode', 'width: 50px');
71 $this->addcolumnstyle('ccity', 'width: 175px');
72 $this->addlabelstyle('ccity','width: 100px;');
73 $this->addcolumnstyle('compcountryid', 'width: 356px');
74 $this->addcolumnstyle('comment','width: 740px; height: 80px');
75 $this->addcolumnstyle('comment1','width: 740px; height: 80px');*/
76 }
77
78 }
79
80 ?>

Documentation generated on Thu, 9 Jun 2005 06:51:59 +0200 by phpDocumentor 1.2.3