Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/flash/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 更改flash站点中的菜单链接_Php_Flash - Fatal编程技术网

Php 更改flash站点中的菜单链接

Php 更改flash站点中的菜单链接,php,flash,Php,Flash,我有一个flash站点和php面板。它的xml文件是动态的。我想在菜单项上添加外部链接 例如,新闻菜单转到News.com 我在panel/application/controllers中找到了process.php。以下是: //News if($lang == 'tr') { $nTitle = 'Haberler'; $nName = 'Haber Listesi'; } els

我有一个flash站点和php面板。它的xml文件是动态的。我想在菜单项上添加外部链接

例如,新闻菜单转到News.com

我在panel/application/controllers中找到了process.php。以下是:

//News
        if($lang == 'tr')
        {
            $nTitle = 'Haberler';
            $nName = 'Haber Listesi';
        }
        else
        {
            $nTitle = 'News';
            $nName = 'News List';
        }


        echo '<page>
                    <title><![CDATA['.$nTitle.']]></title>
                    <data>news</data>
                '.$this->getpagebackground('news').'
                    <page>
                        <title><![CDATA['.$nName.']]></title>
                        <data>news_list</data>'.$nl;

        $newsRs = $this->db->query("Select date_format(date,'%d.%m.%Y') date,content,content_en,id,title,title_en From news Where status = 10 Order By viewOrder Desc");
        if($newsRs[0])
        {
            foreach($newsRs as $news):
                if($lang == 'tr')
                {
                    $nContent = $news->content;
                        $newsTitle = $news->title;
                }
                else
                {
                    $nContent = $news->content_en;
                        $newsTitle = $news->title_en;
                }
               echo   '<news>
                                <data>news_'.$news->id.'</data>
                                <title>'.$newsTitle.'</title>
                            <date><![CDATA['.$news->date.']]></date>
                                <sum>'.substr($nContent,0,150).'</sum>
                            <content><![CDATA[<p>'.$nContent.'</p>]]></content>'.$nl;
               $newsGallery = $this->db->query("Select * From news_media Where status=10 And news_id=".$news->id);
                   if($newsGallery[0])
                   {
                       echo '<gallery>'.$nl;
                       foreach($newsGallery as $ng):
                           echo '<item>'.$ng->media.'</item>';
                       endforeach;
                       echo '</gallery>'.$nl;
                   }


                   echo '</news>'.$nl;
            endforeach;
        }
        echo '</page>'.$nl;
//新闻
如果($lang=='tr')
{
$nTitle=‘哈伯勒’;
$nName='Haber listsi';
}
其他的
{
$nTitle=‘新闻’;
$nName=‘新闻列表’;
}
回声'
新闻
'.$this->getpagebackground('news')。'
新闻列表“$nl;
$newsRs=$this->db->query(“选择日期格式(日期,'%d.%m.%Y')新闻中的日期、内容、内容、id、标题、标题,其中状态=10按viewOrder描述排序”);
如果($newsRs[0])
{
foreach($newers作为$news):
如果($lang=='tr')
{
$nContent=$news->content;
$newsttitle=$news->title;
}
其他的
{
$nContent=$news->content\u en;
$newsttitle=$news->title\u en;
}
回声'
新闻.'$news->id.'
“.$newsTitle。”
“.substr($nContent,0150)。”
“.$n内容”。

]]>”.$nl; $newsGallery=$this->db->query(“从状态为10且新闻id=“.$news->id”)的新闻媒体中选择*); 如果($newsGallery[0]) { 回音“”。$nl; foreach(新闻库为$ng): 回显“”。$ng->媒体。“; endforeach; 回音“”。$nl; } 回音“”。$nl; endforeach; } 回音“”。$nl;

我可以在此处更改链接吗?

此XML中没有链接。只有新闻标题、内容等。如果新闻有图库,也会添加图像。@EPyLEpSY,但我没有找到真正的xml文件。使用此PHP脚本生成的动态xml。不会有XML文件。@EPyLEpSY好吧,我怎样才能更改菜单链接?我想这个即时新闻网站不需要“链接”。从XML创建新闻对象。所以,如果你想添加链接系统,你必须在Flash/PHP中做很多修改。