/[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.5 by jonen, Tue Dec 14 21:07:13 2004 UTC
# Line 84  Line 84 
84          // written into the arrays          // written into the arrays
85                  foreach($this->_datasource->_result as $key => $value) {                  foreach($this->_datasource->_result as $key => $value) {
86                    if (strstr ( $value['lkey'], $this->_sql_key)) {                    if (strstr ( $value['lkey'], $this->_sql_key)) {
87                          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']);}
88                          if ($value['lcountrykey'] == $this->_show_lang) {array_push($this->_show_items, $value);}                          //if ($value['lcountrykey'] == $this->_show_lang) {array_push($this->_show_items, $value);}
89                          if ($value['lcountrykey'] == $this->_set_lang) {array_push($this->_set_items, $value);}                          if ($value['lcountrykey'] == $this->_show_lang) {$this->_show_items[$value['lkey']] = $value;}
90                            //if ($value['lcountrykey'] == $this->_set_lang) {array_push($this->_set_items, $value);}
91                            if ($value['lcountrykey'] == $this->_set_lang) {$this->_set_items[$value['lkey']] = $value;}
92                    }                    }
93                  }                  }
94                    
95                    
96          // this is needed for sorting          // this is needed for sorting
97                  $tmp_array = array();                  $tmp_array = array();
# Line 129  Line 131 
131          // 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.
132                  if ($this->_undone == "yes") {                  if ($this->_undone == "yes") {
133                    foreach ($used_keys as $key => $value) {                          foreach ($used_keys as $key => $value) {      
134                          if ((strlen($larger[$key]['lvalue']) > 0) && (strlen($smaller[$key]['lvalue']) > 0)) {                          if ((strlen($larger[$value]['lvalue']) > 0) && (strlen($smaller[$value]['lvalue']) > 0)) {
135                            $this->_set_items[$key] = "kickedMarkerXXX";                            $this->_set_items[$value] = "kickedMarkerXXX";
136                            $this->_show_items[$key] = "kickedMarkerXXX";                            $this->_show_items[$value] = "kickedMarkerXXX";
137                          }                          }
138                    }                    }
139                  }                  }
# Line 154  Line 156 
156    
157                          $set_el = str_replace("/", "x_x", $value) . $this->_set_lang . "u";                          $set_el = str_replace("/", "x_x", $value) . $this->_set_lang . "u";
158                    
159                          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)) {
160                            $this->add_element( new FEText($show_el, false, 40, 200));                            $this->add_element( new FEText($show_el, false, 40));
161                            $this->add_element( new FEText($set_el, false, 40, 200));                            $this->add_element( new FEText($set_el, false, 40));
162                          } else{                          } else{
163                            $this->add_element( new FETextArea($show_el, false, 10, 40));                            $this->add_element( new FETextArea($show_el, false, 10, 40));
164                            $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.5

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