Source for file edocument_edocform_view_combi.php

Documentation is available at edocument_edocform_view_combi.php


1 <?php
2 /**
3 * @author Martin R. Larsen <mrl@ipwsystems.dk>
4 * @author Jan H. Andersen <jha@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 SSA
8 * @subpackage view
9 * $Id: edocument_edocform_view_combi.php,v 1.1 2005/02/04 06:20:44 jan Exp $
10 */
11
12 require_once($system_path.'basic_view_combi.php');
13
14 class edocument_edocform_view_combi extends basic_view_combi {
15
16 function submitButtons() {
17 $result .= '<div style="padding-bottom: 14px;">';
18 $result .= '<input id="submit1" name="submit1" type="submit" class="mformsubmit" value="'.$this->gl('button_save').'">';
19 $result .= '<input id="submit2" name="submit2" type="button" onclick="this.form._ret.value = this.form.view.value; this.form.view.value=\'combi\'; this.form.submit();" class="mformsubmit" value="Anvend">';
20 $result .= '<input id="submit3" name="submit2" type="button" onclick="this.form.cmd.value = this.form.cmd.value + \',caseclose\'; this.form.submit();" class="mformsubmit" value="Godkend">';
21 $result .= '</div>';
22 return $result;
23 }
24
25 function edit_tree($objectid) {
26 return '';
27 }
28
29 function edit_list($objectid) {
30 $_obj = owRead($objectid);
31 switch ($this->_obj->elements[0]['status']) {
32 case CASE_OPEN:
33 $retlist = 'listactive';
34 break;
35 case CASE_CLOSED:
36 $retlist = 'listclosed';
37 break;
38 }
39 return $this->button('list.png',$this->gl('img_list'),$this->callgui($this->otype,'','',$retlist,'','',$_obj->getParentId()));
40 }
41
42 }
43
44 ?>

Documentation generated on Thu, 9 Jun 2005 06:52:00 +0200 by phpDocumentor 1.2.3