/[health_html]/inc/newsEdit.php
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /inc/newsEdit.php

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

revision 1.8 by ravilov, Tue Sep 25 15:38:04 2001 UTC revision 1.9 by ravilov, Wed Sep 26 13:04:28 2001 UTC
# Line 16  Line 16 
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;
# Line 525  sql($sql); Line 526  sql($sql);
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();";

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.26