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

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

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

revision 1.1 by udo, Fri Nov 14 17:02:28 2003 UTC revision 1.2 by udo, Fri Nov 14 17:51:20 2003 UTC
# Line 14  Line 14 
14   * $Id$   * $Id$
15   *   *
16   * $Log$   * $Log$
17     * Revision 1.2  2003/11/14 17:51:20  udo
18     * changed label-text
19     *
20   * Revision 1.1  2003/11/14 17:02:28  udo   * Revision 1.1  2003/11/14 17:02:28  udo
21   * initial commit   * initial commit
22   *   *
# Line 81  Line 84 
84    
85  // this is needed for sorting  // this is needed for sorting
86      $tmp_array = array();      $tmp_array = array();
87      $larger = array();  $larger = array();
88  // this is needed because the arrays may have to be filled with an array  // this is needed because the arrays may have to be filled with an array
89      $empty_array = array("lvalue" => "", "lkey" => "", "lcountrykey" => "", "guid" => "" );      $empty_array = array("lvalue" => "", "lkey" => "", "lcountrykey" => "", "guid" => "" );
90    
# Line 106  Line 109 
109      } else {      } else {
110        $larger = $this->_show_items;        $larger = $this->_show_items;
111        }        }
         
112    
       
113  // both arrays are parsed and missing entries (without a key) are filled  // both arrays are parsed and missing entries (without a key) are filled
114  // with the empty_array. missing lkeys are filled with the lkey from used_keys,  // with the empty_array. missing lkeys are filled with the lkey from used_keys,
115  // so that now every key of the arrays has matching entries. this is important,  // so that now every key of the arrays has matching entries. this is important,
# Line 125  Line 126 
126          }          }
127        }        }
128    
129          
130  // is _undone is selected, that means that the user only wants to see the items that  // is _undone is selected, that means that the user only wants to see the items that
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") {
# Line 140  Line 141 
141            
142  // the elements of the form are created  // the elements of the form are created
143      foreach($this->_set_items as $key => $value) {      foreach($this->_set_items as $key => $value) {
   
         
144  // if the entry == kickedMarkerXXX, $value will be no array  // if the entry == kickedMarkerXXX, $value will be no array
145        if (is_array($value)) {        if (is_array($value)) {
146          $show_element = $value['lkey'] . $this->_show_lang . "s";          $show_element = $value['lkey'] . $this->_show_lang . "s";
# Line 174  Line 173 
173          $this->set_element_value($set_element, $this->_set_items[$key]['lvalue']);          $this->set_element_value($set_element, $this->_set_items[$key]['lvalue']);
174                    
175          $myElement = &$this->get_element($show_element);          $myElement = &$this->get_element($show_element);
176          $myElement->set_label_text("");          $myElement->set_label_text($value['lkey']);
177          $myElement->set_required(false);          $myElement->set_required(false);
178                    
179          $myElement = &$this->get_element($set_element);          $myElement = &$this->get_element($set_element);
180          $myElement->set_label_text("");          $myElement->set_label_text($value['lkey']);
181          $myElement->set_required(false);          $myElement->set_required(false);
182        }        }
183      }            }      
# Line 565  class UploadForm extends StandardFormCon Line 564  class UploadForm extends StandardFormCon
564            
565  }  }
566    
 ?>  
567    ?>

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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