Exemple #1
0
 public function getcontent()
 {
     $result = parent::getcontent();
     $args = targs::i();
     $args->script = $this->script;
     $args->ignorelink = $this->ignorelink;
     $about = tplugins::getabout(tplugins::getname(__FILE__));
     $args->scriptlabel = $about['scriptlabel'];
     $args->ignorelinklabel = $about['ignorelink'];
     $tml = file_get_contents(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'form.tml');
     $html = tadminhtml::i();
     $result .= $html->parsearg($tml, $args);
     return $result;
 }
 public function getcontent()
 {
     $result = parent::getcontent();
     $tagsmap = '';
     foreach ($this->tagsmap as $key => $val) {
         $tagsmap .= "{$key} = {$val}\n";
     }
     $args = targs::i();
     $args->tagsmap = $tagsmap;
     $args->script = $this->script;
     $about = tplugins::getabout(tplugins::getname(__FILE__));
     $args->maplabel = $about['maplabel'];
     $args->scriptlabel = $about['scriptlabel'];
     $tml = file_get_contents(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'form.tml');
     $html = tadminhtml::i();
     $result .= $html->parsearg($tml, $args);
     return $result;
 }