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 |
|
|
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() |
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 |
|
|
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; |
144 |
} |
} |
145 |
|
|
146 |
|
|
|
?> |
|
147 |
|
?> |