/[cvs]/nfo/php/libs/org.netfrag.patches/phphtmllib/forms/EditPageForm.php
ViewVC logotype

Diff of /nfo/php/libs/org.netfrag.patches/phphtmllib/forms/EditPageForm.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by udo, Thu Mar 4 23:07:13 2004 UTC revision 1.7 by jonen, Tue Dec 14 21:15:25 2004 UTC
# Line 12  Line 12 
12   * Cvs-Log   * Cvs-Log
13   *   *
14   * $Id$   * $Id$
15     *
16     * $Log$
17     * Revision 1.7  2004/12/14 21:15:25  jonen
18     * + log-layout modifications
19     *
20     * Revision 1.6  2004/12/14 21:10:10  jonen
21     * + inserted Log-Tag
22     *
23   */   */
24    
25    
26   // this is an abstract form-class to edit LangText - content.   // this is an abstract form-class to edit LangText - content.
27   class EditPageForm extends EditDataItem {   class EditPageForm extends EditDataItem {
28    
# Line 84  Line 94 
94          // written into the arrays          // written into the arrays
95                  foreach($this->_datasource->_result as $key => $value) {                  foreach($this->_datasource->_result as $key => $value) {
96                    if (strstr ( $value['lkey'], $this->_sql_key)) {                    if (strstr ( $value['lkey'], $this->_sql_key)) {
97                          if (!in_array($value['lkey'], $used_keys)) {array_push($used_keys, $value['lkey']);}                          if (!in_array($value['lkey'], $used_keys)) {array_push($used_keys, $value['lkey']);}
98                          if ($value['lcountrykey'] == $this->_show_lang) {array_push($this->_show_items, $value);}                          //if ($value['lcountrykey'] == $this->_show_lang) {array_push($this->_show_items, $value);}
99                          if ($value['lcountrykey'] == $this->_set_lang) {array_push($this->_set_items, $value);}                          if ($value['lcountrykey'] == $this->_show_lang) {$this->_show_items[$value['lkey']] = $value;}
100                            //if ($value['lcountrykey'] == $this->_set_lang) {array_push($this->_set_items, $value);}
101                            if ($value['lcountrykey'] == $this->_set_lang) {$this->_set_items[$value['lkey']] = $value;}
102                    }                    }
103                  }                  }
104                    
105                    
106          // this is needed for sorting          // this is needed for sorting
107                  $tmp_array = array();                  $tmp_array = array();
# Line 129  Line 141 
141          // are not yet translated, every entry, that has lvalues in both arrays, is marked.          // are not yet translated, every entry, that has lvalues in both arrays, is marked.
142                  if ($this->_undone == "yes") {                  if ($this->_undone == "yes") {
143                    foreach ($used_keys as $key => $value) {                          foreach ($used_keys as $key => $value) {      
144                          if ((strlen($larger[$key]['lvalue']) > 0) && (strlen($smaller[$key]['lvalue']) > 0)) {                          if ((strlen($larger[$value]['lvalue']) > 0) && (strlen($smaller[$value]['lvalue']) > 0)) {
145                            $this->_set_items[$key] = "kickedMarkerXXX";                            $this->_set_items[$value] = "kickedMarkerXXX";
146                            $this->_show_items[$key] = "kickedMarkerXXX";                            $this->_show_items[$value] = "kickedMarkerXXX";
147                          }                          }
148                    }                    }
149                  }                  }
# Line 154  Line 166 
166    
167                          $set_el = str_replace("/", "x_x", $value) . $this->_set_lang . "u";                          $set_el = str_replace("/", "x_x", $value) . $this->_set_lang . "u";
168                    
169                          if ((strlen($this->_set_items[$key]['lvalue']) < 40) && (strlen($this->_show_items[$key]['lvalue']) < 40)) {                          if ((strlen($this->_set_items[$value]['lvalue']) < 40) && (strlen($this->_show_items[$value]['lvalue']) < 40)) {
170                            $this->add_element( new FEText($show_el, false, 40, 200));                            $this->add_element( new FEText($show_el, false, 40));
171                            $this->add_element( new FEText($set_el, false, 40, 200));                            $this->add_element( new FEText($set_el, false, 40));
172                          } else{                          } else{
173                            $this->add_element( new FETextArea($show_el, false, 10, 40));                            $this->add_element( new FETextArea($show_el, false, 10, 40));
174                            $this->add_element( new FETextArea($set_el, false, 10, 40));                            $this->add_element( new FETextArea($set_el, false, 10, 40));

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.7

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed