/[cvs]/nfo/php/libs/org.netfrag.app/YAA/NewsEdit.php
ViewVC logotype

Diff of /nfo/php/libs/org.netfrag.app/YAA/NewsEdit.php

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

revision 1.1 by udo, Fri Nov 14 18:07:22 2003 UTC revision 1.2 by udo, Mon Dec 15 21:08:53 2003 UTC
# Line 51  loadModule('WebExplorer::Module::DataLis Line 51  loadModule('WebExplorer::Module::DataLis
51  class YAA_NewsEdit extends WebExplorer_Module_DataList {  class YAA_NewsEdit extends WebExplorer_Module_DataList {
52    
53    function set_gui_object() {    function set_gui_object() {
       
 // the request determines, if  
54    
55      $subtopic = $_REQUEST['subtopic'];      $subtopic = $_REQUEST['subtopic'];
56    
# Line 70  class YAA_NewsEdit extends WebExplorer_M Line 68  class YAA_NewsEdit extends WebExplorer_M
68    
69        if ($whichSubtopic == 1 || $whichSubtopic == 2 || $whichSubtopic == 3 ) {        if ($whichSubtopic == 1 || $whichSubtopic == 2 || $whichSubtopic == 3 ) {
70            $editTextForm = new EditTextForm ('Upload new feed image', 600, $whichSubtopic, $whichLanguage, $this->_args[options]);            $editTextForm = new EditTextForm ('Upload new feed image', 600, $whichSubtopic, $whichLanguage, $this->_args[options]);
71            $content = new FormProcessor($editTextForm, 'editTextForm', '', "");                             // $EditPageForm->set_cancel_action($_SERVER['PHP_SELF'] . "?t=News");
72              $content = new FormProcessor($editTextForm, 'editTextForm', '', "");
73        }        }
74        else {     /*   else {
75            $EditPageForm = new EditPageForm ('found items form ' . $whichSubtopic . ":", 600, $whichSubtopic, $_REQUEST['lang_show'], $_REQUEST['lang_set'], $_REQUEST['undone'], $this->_args[options]);            $EditPageForm = new EditPageForm ('found items form ' . $whichSubtopic . ":", 600, $whichSubtopic, $_REQUEST['lang_show'], $_REQUEST['lang_set'], $_REQUEST['undone'], $this->_args[options]);
76                    //  $EditPageForm->set_cancel_action($_SERVER['PHP_SELF'] . "?t=News");
77            $content = new FormProcessor($EditPageForm, 'EditPageForm', '', "");            $content = new FormProcessor($EditPageForm, 'EditPageForm', '', "");
78        }  
79          }*/
80      }      }
81    
82  // the subtopic is passed from the VerticalCSSNavTable in Page_News - left_block()  // the subtopic is passed from the VerticalCSSNavTable in Page_News - left_block()
# Line 107  class YAA_NewsEdit extends WebExplorer_M Line 108  class YAA_NewsEdit extends WebExplorer_M
108            }            }
109            $content = $comp->render();            $content = $comp->render();
110            break;            break;
111    /*
112          case 'searchKey':          case 'searchKey':
113            $languages = array("deutsch"=>"de", "englisch"=>"en", "tuerkisch"=>"tr");            $languages = array("deutsch"=>"de", "englisch"=>"en", "tuerkisch"=>"tr");
   
114            $myForm = html_form("specify", $_SERVER['PHP_SELF'] . "?t=News" . "&sub_lang=" . $subtopic, "POST");            $myForm = html_form("specify", $_SERVER['PHP_SELF'] . "?t=News" . "&sub_lang=" . $subtopic, "POST");
   
   
115            $table = html_table(400, 0, 2);            $table = html_table(400, 0, 2);
116            $table->add_row("translate from:", form_select("lang_show", $languages));            $table->add_row("translate from:", form_select("lang_show", $languages));
117            $table->add_row("            to:", form_select("lang_set", $languages));            $table->add_row("            to:", form_select("lang_set", $languages));
118            $table->add_row("only not translated :", form_radio("undone", "yes"));            $table->add_row("only not translated :", form_radio("undone", "yes"));
119            $table->add_row("                all :", form_radio("undone", "no"));            $table->add_row("                all :", form_radio("undone", "no", array("checked"=>"checked")));
120            $table->add_row("enter search-key :", form_text("sub_lang"));            $table->add_row("enter search-key :", form_text("sub_lang"));
121            $table->add_row("submit :", form_submit("submit", "submit"));            $table->add_row("submit :", form_submit("submit", "submit"));
122            $myForm->add($table);            $myForm->add($table);
   
123            $content = $myForm;            $content = $myForm;
124        
125                                
# Line 134  class YAA_NewsEdit extends WebExplorer_M Line 131  class YAA_NewsEdit extends WebExplorer_M
131            $table->add_row("translate from:", form_select("lang_show", $languages));            $table->add_row("translate from:", form_select("lang_show", $languages));
132            $table->add_row("            to:", form_select("lang_set", $languages));            $table->add_row("            to:", form_select("lang_set", $languages));
133            $table->add_row("only not translated :", form_radio("undone", "yes"));            $table->add_row("only not translated :", form_radio("undone", "yes"));
134            $table->add_row("                all :", form_radio("undone", "no"));            $table->add_row("                all :", form_radio("undone", "no", array("checked"=>"checked")));
135            $table->add_row("submit :", form_submit("submit", "submit"));            $table->add_row("submit :", form_submit("submit", "submit"));
136            $myForm->add($table);            $myForm->add($table);
137    
138            $content = $myForm;            $content = $myForm;*/
139        }        }
140      }      }
141      $this->_gui_object = &$content;      $this->_gui_object = &$content;
# Line 147  class YAA_NewsEdit extends WebExplorer_M Line 144  class YAA_NewsEdit extends WebExplorer_M
144  }  }
145    
146    
 ?>  
147    ?>

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