16 |
} |
} |
17 |
function my_cmp($a, $b) { return MyCompare($a["txt"], $b["txt"]); } |
function my_cmp($a, $b) { return MyCompare($a["txt"], $b["txt"]); } |
18 |
function newsEdit($art, $trigger = "", $isVijest = false) { |
function newsEdit($art, $trigger = "", $isVijest = false) { |
19 |
global $phptmp, $picdir, $syspicdir, $aupicdir, $sysaupicdir, $section, $section_menu, $dbh, $tpl; |
global $phptmp, $picdir, $syspicdir, $aupicdir, $sysaupicdir, $dbh, $tpl; |
20 |
|
global $section, $section_menu, $section_menu2, $spec; |
21 |
global $ed_id, $ed_cat, $isMed; |
global $ed_id, $ed_cat, $isMed; |
22 |
$i = 1; |
$i = 1; |
23 |
global $ed_delete_main, $ed_del_main; |
global $ed_delete_main, $ed_del_main; |
526 |
$params = array(); |
$params = array(); |
527 |
if ($section) array_push($params, "section=$section"); |
if ($section) array_push($params, "section=$section"); |
528 |
if ($section_menu) array_push($params, "section_menu=$section_menu"); |
if ($section_menu) array_push($params, "section_menu=$section_menu"); |
529 |
|
if ($section_menu2) array_push($params, "section_menu2=$section_menu2"); |
530 |
|
if ($spec) array_push($params, "spec=$spec"); |
531 |
if ($ed_id) array_push($params, "ed_id=$ed_id"); |
if ($ed_id) array_push($params, "ed_id=$ed_id"); |
532 |
if ($ed_preview) array_push($params, "ed_preview=$ed_preview"); |
if ($ed_preview) array_push($params, "ed_preview=$ed_preview"); |
533 |
if ($trigger) array_push($params, "$trigger=1"); |
if ($trigger) array_push($params, "$trigger=1"); |
534 |
global $PHP_SELF; |
$tp->assign("FORM_ACTION", HTMLSpecialChars("?".implode("&", $params))); |
|
$tp->assign("FORM_ACTION", $PHP_SELF.HTMLSpecialChars("?".implode("&", $params))); |
|
535 |
if (!$ed_preview) { |
if (!$ed_preview) { |
536 |
global $onload; |
global $onload; |
537 |
$onload .= "document.forms[1].elements[0].focus();"; |
$onload .= "document.forms[1].elements[0].focus();"; |